:root {
  color-scheme: light;
  --page: #fff3e0;
  --surface: #fffdf7;
  --ink: #2f2a4f;
  --muted: #5d5879;
  --line: #ecd9c2;
  --green: #0d7a6e;
  --green-hover: #0a6258;
  --mint: #cff3e7;
  --mint-ink: #0b5c54;
  --peach: #ffd578;
  --peach-ink: #6a4a0c;
  --soft: #ffe8cc;
  --drawing-ink: #2f2a4f;
  --brand-caravan: #0d7a6e;
  --brand-saray: #ef5b3a;
  /* The original logo keeps its own colours and lettering. */
  --logo-green: #47734d; --logo-mint: #e0ebd5; --logo-saray: #a76243;
  --doodle-opacity: .36;
  /* Sticker-book skin: a dark edge under bright shapes, plus a few pastel pops. */
  --edge: #2f2a4f;
  --coral: #ff8263;
  --coral-hover: #ff6f4c;
  --btn-ink: #2f2a4f;
  --marker: #ffd578;
  --sky: #c9eaff;
  --pink: #ffd3de;
  --lav: #e3d9ff;
  --tile-a: #fff0c2;
  --tile-b: #ffe0ea;
  --focus: #6a4df4;
  --glow-a: #ffd9a6;
  --glow-b: #ffc9d6;
  --pop-1: #ffd578; --pop-2: #ffb3c7; --pop-3: #9fe3d0; --pop-4: #bfe6ff; --pop-5: #d9ccff;
  font-family: 'Fredoka', ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; min-height: 100svh; margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
/* A quiet, repeating sketchbook behind every screen. It never catches taps. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('assets/community-doodles.svg') 0 0 / 600px 600px repeat;
  opacity: var(--doodle-opacity);
}
/* Let the pattern show in the open space, with a soft wash behind the content. */
#app { min-height: 100svh; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--page) 78%, transparent) 30%, color-mix(in srgb, var(--page) 78%, transparent) 70%, transparent); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
button, h1, h2, h3, .brand { font-weight: 750; }
svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; vertical-align: middle; }
.container { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.site-header { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; letter-spacing: -.055em; font-size: 24px; }
.brand-mark { width: 35px; height: 39px; }
.brand-wordmark { display: inline-block; white-space: nowrap; }
.brand-caravan { color: var(--logo-green); }
.brand-saray { color: var(--logo-saray); }
.choice-menu { position: relative; display: inline-flex; flex-shrink: 0; }
.menu-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; background: var(--surface); color: var(--ink); font-size: 13px; }
.menu-trigger:hover, .menu-trigger[aria-expanded="true"] { background: var(--soft); border-color: var(--green); }
.menu-trigger .icon { width: 17px; height: 17px; }
.menu-trigger .icon:last-child { width: 13px; height: 13px; }
.choice-menu-options { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: max-content; min-width: 160px; max-width: calc(100vw - 32px); padding: 6px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 9px 24px #17261826; }
.choice-menu-options button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 44px; border: 0; border-radius: 10px; padding: 10px 12px; background: transparent; color: inherit; text-align: left; font-size: 14px; }
.choice-menu-options button:hover, .choice-menu-options button:focus-visible, .choice-menu-options button[aria-checked="true"] { background: var(--mint); color: var(--mint-ink); }
.choice-menu-options .icon { width: 17px; height: 17px; }
.menu-flag { display: block; width: 30px; height: 20px; overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.menu-flag svg { display: block; width: 100%; height: 100%; }
.language .menu-trigger { gap: 6px; padding-inline: 9px; }
#language-menu { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; gap: 4px; }
#language-menu button { position: relative; justify-content: center; min-width: 56px; min-height: 54px; padding: 9px; }
#language-menu .menu-flag { width: 40px; height: 27px; }
#language-menu .icon { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--mint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 19px; border: 2px solid var(--drawing-ink); border-radius: 15px; background: var(--green); color: #fffdf6; box-shadow: 0 3px 0 var(--drawing-ink); text-decoration: none; font-size: 14px; line-height: 1.4; transition: transform .16s, background .16s, box-shadow .16s; }
.btn:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 4px 0 var(--drawing-ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--drawing-ink); }
.btn.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: 0 2px 0 var(--line); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.quiet { background: transparent; color: var(--muted); box-shadow: none; border-color: transparent; font-weight: 600; }
.btn.quiet:hover { background: var(--soft); transform: none; }
.btn.full-width { width: 100%; }
.icon-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; background: transparent; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: none; }
.text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding-block: 16px; font-size: 11px; color: var(--muted); }
.footer-credit { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; color: inherit; text-decoration: none; white-space: nowrap; }
.footer-credit img { display: block; width: 22px; height: 22px; object-fit: contain; }
.footer-credit:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.privacy-delete { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.privacy-delete-dialog > p + p, .privacy-delete-dialog .dialog-actions { margin-top: 14px; }
body[data-page="home"] #app, body.creating-group #app { display: flex; flex-direction: column; min-height: 100svh; }
.home-language { height: 80px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-inline: 32px; }
.profile-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; padding: 3px; background: var(--surface); }
.profile-button .avatar { width: 35px; height: 35px; }
.home-language .profile-button { margin-right: auto; }
.simple-home { width: min(560px, calc(100% - 40px)); margin-inline: auto; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 40px 18vh; text-align: center; }
.home-brand { display: flex; align-items: center; gap: 14px; font-size: clamp(38px, 7vw, 60px); font-weight: 850; letter-spacing: -.065em; }
.home-brand .brand-mark { width: 54px; height: 60px; }
.home-explanation { margin-top: 22px; max-width: 430px; font-size: 16px; color: var(--muted); line-height: 1.7; text-wrap: pretty; }
.start-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 30px; }
.start-form input { width: 100%; min-height: 60px; border: 2px solid var(--line); border-radius: 30px; padding: 15px 24px; background: var(--surface); box-shadow: 0 3px 0 var(--soft); }
.start-form input:focus { border-color: var(--green); }
.start-form .btn { min-height: 48px; padding-inline: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.board-main { padding-top: 20px; padding-bottom: 10px; }
.trip-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.trip-header h1 { font-size: clamp(25px, 3vw, 34px); overflow-wrap: anywhere; }
.trip-header > .btn { flex-shrink: 0; font-size: 12px; }
.trip-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.trip-facts span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; min-width: 0; }
.trip-facts .icon { width: 15px; height: 15px; }
.avatar { display: inline-flex; width: 48px; height: 48px; flex-shrink: 0; }
.avatar svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rides-section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 22px; }
.section-head > span { font-size: 12px; color: var(--muted); }
.ride-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 34px; }
.ride-card { min-width: 0; width: 100%; max-width: 350px; margin-inline: auto; }
[data-colour] { --car-colour: #dfa58e; }
[data-colour="turquoise"] { --car-colour: #a1c7b5; }
[data-colour="saffron"] { --car-colour: #e8cc88; }
[data-colour="cobalt"] { --car-colour: #a5becd; }
[data-colour="olive"] { --car-colour: #b0c18e; }
[data-colour="plum"] { --car-colour: #c2afc4; }
.ride-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 0 10px 18px; }
.ride-top h3 { font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 9px; background: var(--mint); color: var(--mint-ink); font-size: 11px; font-weight: 700; }
.badge.neutral { background: var(--soft); color: var(--muted); }
.motorcar { position: relative; isolation: isolate; margin-inline: auto; width: calc(100% - 32px); max-width: 300px; padding: 0 12px 32px; border: 2.5px solid var(--drawing-ink); border-radius: 64px 64px 40px 40px; background: var(--car-colour); color: var(--drawing-ink); box-shadow: 0 6px 0 #493b3617, inset 5px 0 0 #ffffff24, inset -5px 0 0 #493b3610; }
.car-bonnet { display: block; width: calc(100% + 10px); height: auto; margin-inline: -5px; }
.tyre { position: absolute; z-index: -1; width: 15px; height: 52px; border: 2px solid var(--drawing-ink); border-radius: 7px; background: #5c5956; }
.tyre.left { left: -12px; }.tyre.right { right: -12px; }
.tyre.front { top: 90px; }.tyre.rear { bottom: 40px; }
.mirror { position: absolute; width: 18px; height: 17px; top: 65px; border: 2px solid var(--drawing-ink); background: var(--car-colour); }
.mirror.left { left: -17px; border-radius: 9px 3px 3px 9px; transform: rotate(-10deg); }
.mirror.right { right: -17px; border-radius: 3px 9px 9px 3px; transform: rotate(10deg); }
.car-cabin { border: 2px solid var(--drawing-ink); border-radius: 22px; padding: 10px 6px; background: #fff6df; }
.seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 4px; align-items: stretch; }
.seat { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 3px 2px 6px; border: 2px solid transparent; border-radius: 16px; background: transparent; color: #493b36; text-align: center; }
.seat:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 2px); justify-self: center; }
.seat-drawing { display: block; position: relative; width: 78px; max-width: 100%; height: 70px; }
.chair { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; stroke: #89765e; stroke-width: 1.8; }
.chair-head { fill: #d7c8aa; }.chair-back { fill: #e9ddc6; }.chair-base { fill: #d7c8aa; }
.chair-arms { fill: none; stroke-width: 4; stroke-linecap: round; }
.seat .avatar { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); width: 46px; height: 46px; }
.seat.occupied .chair-back { fill: #c6d1bb; }.seat.occupied .chair-base { fill: #a5b397; }
.seat-label { margin-top: 3px; font-size: 11px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.seat small { display: block; font-size: 10px; line-height: 1.35; margin-top: 3px; color: #76644e; }
.seat.free .chair { stroke: #b48a3f; }
.seat.free .chair-head, .seat.free .chair-base { fill: #f6d886; }.seat.free .chair-back { fill: #fff3c5; stroke-dasharray: 4 3; }
.seat-plus { position: absolute; left: 50%; top: 27px; transform: translateX(-50%); display: grid; place-items: center; width: 24px; height: 24px; color: #85652c; }
.seat-plus .icon { width: 19px; height: 19px; stroke-width: 2.5; }
button.seat.free:not(:disabled):hover { background: #ffedb2; border-color: #c79f53; }
button.seat.free:not(:disabled):hover .seat-drawing { transform: translateY(-3px); }
.seat-drawing { transition: transform .18s ease-out; }
.seat.free:disabled { opacity: .65; }
.seat.own-seat { background: #e1edce; border-color: #6f8a59; }
.seat.own-seat .avatar { animation: seat-hop .3s ease-out; }
.steering-wheel { position: absolute; width: 29px; height: 29px; bottom: 4px; left: 50%; transform: translateX(-50%); fill: #f8f0dc; stroke: #493b36; stroke-width: 2.2; }
.tail-light { position: absolute; bottom: 12px; width: 24px; height: 9px; background: #b76852; border: 1.5px solid var(--drawing-ink); border-radius: 4px; }
.tail-light.left { left: 25px; }.tail-light.right { right: 25px; }
.rear-window { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); height: 10px; width: 70px; border: 1.5px solid var(--drawing-ink); border-radius: 3px; background: #d4e9e6; }
.ride-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 12px; font-size: 11px; color: var(--muted); margin-top: 18px; }
.ride-meta span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.ride-meta .icon { width: 14px; height: 14px; }
.ride-meta strong { color: var(--ink); }
.edit-ride { width: 100%; justify-content: center; }
.gathering { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.people-title { display: flex; align-items: center; gap: 10px; }
.people-title h2 { font-size: 17px; }
.count { font-size: 12px; color: var(--muted); }
.people-list { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 16px; }
.person { width: 84px; display: flex; flex-direction: column; align-items: center; font-size: 11px; text-align: center; gap: 4px; }
.person.me > span { color: var(--green); font-weight: 750; }
.person-drawing { display: block; width: 60px; height: 92px; overflow: visible; }
.waving-arm { transform-box: fill-box; transform-origin: 10% 40%; animation: wave 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.person-body { animation: breathe 4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 7s infinite; animation-delay: var(--delay, -2s); }
.empty-copy { font-size: 13px; color: var(--muted); margin-top: 16px; }
.preview-note { color: var(--muted); font-size: 11px; text-align: center; margin-top: 38px; }
.empty-rides { grid-column: 1 / -1; text-align: center; padding: 28px 20px; }
.little-car { width: 100px; height: 68px; overflow: visible; }
.empty-rides h3 { font-size: 21px; margin-top: 16px; }
.empty-rides p { color: var(--muted); font-size: 14px; margin: 10px 0 20px; }
@keyframes wave { 0%, 7%, 18%, 100% { transform: rotate(0); } 10%, 15% { transform: rotate(-16deg); } 12% { transform: rotate(6deg); } }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
@keyframes seat-hop { from { margin-top: -16px; opacity: .3; } to { margin-top: 0; opacity: 1; } }
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 26px; padding: 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
dialog input, dialog textarea { scroll-margin-top: 90px; }
dialog::backdrop { background: #1b302b66; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { position: sticky; top: -1px; z-index: 2; background: var(--surface); box-shadow: 0 -28px 0 var(--surface); padding-block: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 27px; min-width: 0; overflow-wrap: anywhere; }
.dialog-description { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; }
.field label span { color: var(--muted); font-size: 11px; font-weight: 400; }
input, textarea { width: 100%; min-width: 0; min-height: 48px; background: var(--page); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 16px; }
input::placeholder { color: var(--muted); opacity: .85; }
input:focus, textarea:focus { border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { color: var(--muted); font-size: 12px; margin: 16px 0; }
.privacy-copy { font-size: 14px; line-height: 1.75; }
.privacy-copy p + p { margin-top: 16px; }
.privacy-visibility { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; color: var(--mint-ink); font-size: 14px; line-height: 1.6; }
.privacy-visibility .icon { flex-shrink: 0; margin-top: 2px; }
.acceptance-explanation { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.open-terms { width: 100%; white-space: normal; text-align: center; }
.privacy-step .acceptance-explanation { font-size: 15px; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--page); border-radius: 16px; padding: 14px 20px; max-width: calc(100% - 32px); width: max-content; font-size: 13px; box-shadow: 0 4px 20px #0002; z-index: 10; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 20; background: var(--surface); color: var(--ink); padding: 12px; }
.skip-link:focus { top: 12px; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.mode-switch .menu-trigger { border-radius: 999px; background: var(--mint); color: var(--mint-ink); }
.mode-switch .menu-trigger { width: 44px; padding: 10px; }
.mode-switch .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.role-heart { font-family: system-ui, sans-serif; font-size: 25px; line-height: 1; color: var(--brand-saray); }
.mode-switch .menu-trigger > .icon:last-child { display: none; }
.mode-switch .menu-trigger > .icon:first-child { width: 22px; height: 22px; }
.group-details .trip-header { align-items: flex-start; }
.group-details .trip-header h1 { flex: 1; min-width: 0; }
.share-button { background: transparent; border: 0; flex-shrink: 0; }
.share-button:hover { background: var(--soft); }
.group-details:has(.share-reminder) .share-button { align-self: flex-end; background: var(--peach); color: var(--ink); }
.share-reminder { position: relative; width: min(350px, 100%); margin: 16px 0 24px auto; padding: 18px 50px 18px 18px; border: 2px solid var(--ink); border-radius: 20px 10px 20px 20px; background: var(--peach); color: var(--ink); box-shadow: 0 4px 0 var(--line); }
.share-reminder::before { content: ''; position: absolute; right: 14px; top: -10px; width: 16px; height: 16px; background: var(--peach); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); transform: rotate(45deg); }
.share-reminder h2 { font-size: 18px; line-height: 1.3; }
.share-reminder p { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.dismiss-share-reminder { position: absolute; top: 6px; right: 4px; border: 0; background: transparent; }
.dismiss-share-reminder .icon { width: 16px; height: 16px; }
.group-description { margin-top: 20px; }
.free-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.75; color: var(--muted); }
.free-text a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.group-description summary { display: list-item; cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--muted); font-size: 12px; }
.group-description[open] .free-text { padding-bottom: 14px; max-width: 760px; }
.group-details.compact .group-description { margin-top: 4px; }
.ride-note { margin: 12px 10px 0; font-size: 12px; }
.wizard-page { width: min(650px, calc(100% - 40px)); padding-block: 52px 48px; min-height: calc(100svh - 160px); }
.wizard-page .trip-header h1 { font-size: 32px; }
.wizard-page .trip-facts { font-size: 13px; gap: 12px 18px; }
.wizard-page .group-description { font-size: 15px; }
.joining-count { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green); margin-top: 22px; }
.joining-count .icon { width: 17px; height: 17px; }
.wizard-step { margin-top: 38px; }
.wizard-step > h2 { font-size: 24px; }
.wizard-step > p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.mode-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.mode-choice { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; border: 2px solid var(--line); border-radius: 24px; padding: 20px 16px; background: var(--surface); box-shadow: 0 4px 0 var(--line); color: var(--ink); text-align: center; transition: border-color .18s, transform .18s; }
.mode-choice:hover { border-color: var(--green); transform: translateY(-2px); }
.mode-choice strong { font-size: 17px; line-height: 1.35; }
.mode-choice > span:not(.choice-art) { color: var(--muted); font-size: 12px; font-weight: 400; }
.mode-choice > .icon { margin-top: 5px; color: var(--green); }
.choice-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100px; height: 76px; margin-bottom: 4px; }
.passenger-choice { width: 80px; }
.passenger-choice .avatar { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); }
.profile-step, .setup-page .wizard-step { max-width: 520px; margin-inline: auto; }
.wizard-step form { margin-top: 24px; }
.wizard-step > .text-link { gap: 6px; margin-bottom: 16px; }
.waiting-lounge { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 18px 22px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.waiting-lounge .people-list { padding-top: 0; }
.waiting-lounge .people-title { min-width: 170px; }
.waiting-lounge .person-drawing { height: 78px; width: 52px; }
.waiting-lounge .empty-copy { margin-top: 0; }
.waiting-lounge .person { width: 74px; }
.rider-status { display: flex; align-items: center; gap: 10px; padding-top: 18px; }
.rider-status p { font-size: 13px; }
.rider-status .btn { margin-left: auto; font-size: 12px; }
.my-car-section { margin-top: 28px; }
.my-car-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 48px; align-items: center; }
.driver-message { max-width: 360px; }
.driver-message h3 { font-size: 23px; }
.driver-message p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.driver-message .passenger-summary { font-size: 13px; }
.other-drivers, .full-cars { margin-top: 36px; }
.other-drivers .section-head, .full-cars .section-head { margin-bottom: 16px; }
.other-drivers h2, .full-cars h2 { font-size: 19px; }
.compact-car-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.compact-car { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.compact-car > summary { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; min-height: 88px; }
.compact-car > summary::-webkit-details-marker { display: none; }
.compact-car > summary > .little-car { width: 72px; height: 48px; }
.compact-car > summary > .icon { margin-left: auto; width: 16px; }
.compact-car[open] > summary > .icon { transform: rotate(180deg); }
.compact-car-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.compact-car-name strong { font-size: 13px; overflow-wrap: anywhere; }
.compact-car-name small { font-size: 11px; color: var(--muted); }
.expanded-car { padding: 12px 8px 20px; }
.expanded-car .ride-top { display: none; }
.expanded-car .ride-card { width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.gathering { display: block; }
.sitting-legs { transform-box: fill-box; transform-origin: 30% 0; animation: swing-legs 4.5s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.looking-person .idle-head { transform-box: fill-box; transform-origin: center 90%; animation: look-around 8s ease-in-out infinite; animation-delay: var(--delay, 0s); }
textarea { resize: vertical; }
@keyframes swing-legs { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes look-around { 0%, 25%, 70%, 100% { transform: rotate(0); } 35%, 50% { transform: rotate(7deg); } }
/* Optional, provider-independent links belong to the group details. */
.group-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.group-links li { min-width: 0; max-width: 100%; }
.group-links a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--green); background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 650; }
.group-links a:hover { border-color: var(--green); }
.group-links a span { overflow-wrap: anywhere; min-width: 0; }
.group-links .icon { width: 15px; height: 15px; }
.group-links .icon:last-child { width: 12px; height: 12px; }
.links-editor { margin: 20px 0; padding: 0; border: 0; min-width: 0; }
.links-editor > legend { font-size: 13px; font-weight: 700; padding: 0; }
.links-editor > legend span { font-size: 11px; color: var(--muted); font-weight: 400; }
.links-editor > p { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
.links-editor > .btn { min-height: 44px; font-size: 12px; padding: 8px 14px; }
.link-editor-row { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 30px 14px 0; margin: 0 0 18px; }
.link-editor-row legend { font-size: 11px; color: var(--muted); padding-inline: 5px; }
.link-editor-row .remove-link { position: absolute; top: -8px; right: 6px; background: transparent; border: 0; }
.link-editor-row .remove-link .icon { width: 16px; height: 16px; }
/* Big flags enter the selected language directly. */
body.choosing-language #app { display: flex; flex-direction: column; min-height: 100svh; }
.language-welcome { width: min(700px, calc(100% - 40px)); margin-inline: auto; padding-block: clamp(32px, 9vh, 90px) 40px; flex: 1; }
.language-welcome .home-brand { justify-content: center; font-size: 44px; gap: 10px; }
.language-welcome .brand-mark { width: 42px; height: 48px; }
.welcome-explanation { max-width: 470px; margin: 24px auto 0; color: var(--muted); font-size: 16px; line-height: 1.75; text-align: center; }
.flag-picker { margin-top: 38px; text-align: center; }
.flag-picker h2 { font-size: 20px; letter-spacing: -.025em; }
.language-flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 26px; }
.language-flag { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 5px 0 var(--line); line-height: 0; transition: transform .18s, box-shadow .18s; }
.language-flag svg { display: block; width: 100%; height: 100%; }
.language-flag:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--line); }
.language-flag:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.free-note { display: block; width: 220px; height: auto; margin: 42px auto 0; transform: rotate(-5deg); }
/* The first-visit introduction has its own page; the group-name page stays simple. */
body[data-page="intro"] #app { display: flex; flex-direction: column; }
.intro-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1000px, calc(100% - 40px)); min-height: 68px; margin-inline: auto; }
.intro-toolbar .text-link { gap: 7px; }
.intro-toolbar .text-link .icon { width: 14px; }
.intro-page { width: min(640px, calc(100% - 40px)); margin-inline: auto; flex: 1; padding-block: 18px 32px; }
.intro-brand { text-align: center; animation: intro-brand-arrive 1.4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(0ms - var(--intro-elapsed)); }
.intro-brand .home-brand { justify-content: center; font-size: clamp(32px, 6vw, 48px); gap: 10px; }
.intro-brand .brand-mark { width: 44px; height: 49px; }
.intro-brand > p { font-size: 14px; color: var(--muted); margin: 14px auto 0; max-width: 350px; text-wrap: pretty; }
.intro-steps { list-style: none; margin: 30px auto 0; padding: 0; max-width: 560px; }
.intro-step { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) 64px; gap: 16px; align-items: center; padding: 13px 0 18px; animation: intro-step-arrive .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--step-delay) - var(--intro-elapsed)); }
.intro-step:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: calc(50% + 20px); bottom: -12px; border-left: 2px dashed var(--line); }
.intro-number { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--green); border-radius: 43% 52% 47% 48%; font-size: 17px; font-weight: 750; background: var(--mint); color: var(--mint-ink); transform: rotate(-6deg); }
.intro-step:nth-child(even) .intro-number { transform: rotate(5deg); }
.intro-step h2 { font-size: 21px; line-height: 1.35; letter-spacing: -.025em; text-wrap: pretty; }
.intro-step p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.intro-art { display: flex; align-items: center; justify-content: center; color: var(--green); transform: rotate(-7deg); }
.intro-art > .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.intro-art > .icon + .icon { width: 25px; height: 25px; margin-left: -6px; margin-top: 22px; }
.intro-art .little-car { width: 72px; height: 49px; }
.intro-finale { text-align: center; margin-top: 16px; animation: intro-step-arrive .65s ease both; animation-delay: calc(var(--step-delay) - var(--intro-elapsed)); }
.intro-easy { display: inline-block; color: var(--brand-saray); font-size: 27px; font-weight: 750; transform: rotate(-4deg); text-decoration: underline double; text-underline-offset: 5px; }
.intro-actions { text-align: center; margin-top: 24px; }
.intro-actions .btn { min-height: 50px; padding-inline: 28px; }
.intro-complete .intro-brand, .intro-complete .intro-step, .intro-complete .intro-finale { animation: none; }
@keyframes intro-brand-arrive {
  0% { opacity: 0; transform: translateY(120px) scale(.93); }
  30%, 55% { opacity: 1; transform: translateY(120px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes intro-step-arrive {
  from { opacity: 0; transform: translateY(15px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.creation-page { width: min(520px, calc(100% - 40px)); margin-inline: auto; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-block: 36px 12vh; text-align: center; }
.creation-page .home-brand { font-size: clamp(31px, 5vw, 43px); gap: 10px; }
.creation-page .brand-mark { width: 39px; height: 44px; }
.creation-group-name { max-width: 100%; margin-top: 26px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.creation-page h1 { margin-top: 12px; font-size: 28px; line-height: 1.3; text-wrap: pretty; }
.creation-hint { max-width: 440px; margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.creation-page form { width: 100%; margin-top: 30px; text-align: left; }
.creation-page .field { margin-bottom: 0; }
.creation-page input, .creation-page textarea { background: var(--surface); }
.creation-page input[type="date"], .creation-page input[type="time"] { min-height: 58px; text-align: center; }
.native-date-control { position: relative; }
.native-date-control input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.native-date-display { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); }
.native-date-display .icon { color: var(--green); }
.native-date-control:hover .native-date-display { border-color: var(--green); }
.native-date-control:focus-within .native-date-display { outline: 3px solid var(--green); outline-offset: 4px; }
.native-date-fallback input { position: static; opacity: 1; }
.native-date-fallback .native-date-display { display: none; }
.creation-page input[type="text"] { min-height: 56px; padding-inline: 18px; border-radius: 18px; }
.creation-page .links-editor { margin: 0; }
.creation-page .link-editor-row .field { margin-bottom: 18px; }
.creation-navigation { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.creation-navigation #create-next, .creation-navigation .join-next { margin-left: auto; }
.creation-navigation .btn { min-height: 48px; padding-inline: 24px; }
.creation-summary { margin: 0; }
.creation-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.creation-summary dt { color: var(--muted); font-size: 13px; }
.creation-summary dd { margin: 0; text-align: right; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
.driver-car-art { text-align: center; margin: 20px 0; }
.driver-car-art .little-car { width: 140px; height: 92px; }
.driver-navigation { align-items: flex-start; }
.driver-finish-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 0; }
.driver-finish-actions .btn { white-space: normal; }
.customize-car { margin-top: 12px; width: 100%; }
.summary-change { display: block; min-height: 32px; font-size: 12px; }
.setup-page.compact-driver { padding-block: 12px; min-height: 0; flex: 1; }
.setup-page.compact-driver .trip-header h1 { font-size: 22px; }
.compact-driver .wizard-step { margin-top: 18px; }
.compact-driver .wizard-step form { margin-top: 16px; }
.compact-driver .creation-summary > div { padding-block: 6px; }
.compact-driver .creation-navigation { margin-top: 12px; gap: 12px; }
.compact-driver .driver-navigation:has(.driver-finish-actions) { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.compact-driver .driver-finish-actions { display: contents; }
.compact-driver .driver-finish-actions [value="save"] { grid-column: 1 / -1; }
.compact-driver > .wizard-art { width: 140px; margin-top: 16px; }
.car-details-summary dd { white-space: pre-wrap; }
.car-details-summary dt { flex: 0 1 45%; }
.car-details-summary dd { flex: 1 1 55%; }
.saved-car-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.saved-car-card { position: relative; min-width: 0; border: 1.5px solid var(--line); border-radius: 22px; background: var(--surface); }
.saved-car-select { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; height: 100%; padding: 52px 18px 24px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); text-align: center; }
.saved-car-select:hover { background: var(--soft); }
.saved-car-select .little-car { width: 112px; height: 74px; }
.saved-car-select strong { font-size: 20px; }
.saved-car-select span { font-size: 13px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.saved-car-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.delete-saved-car { position: absolute; top: 5px; right: 5px; border: 0; background: transparent; }
.delete-saved-car .icon { width: 17px; height: 17px; }
.edit-saved-car { position: absolute; top: 5px; right: 49px; border: 0; background: transparent; }
.edit-saved-car .icon { width: 17px; height: 17px; }
.another-car { margin-top: 18px; }
.saved-car-delete-actions { margin-top: 24px; }
.wizard-art { width: min(220px, 65%); margin: 32px auto 0; opacity: .9; pointer-events: none; }
.wizard-art svg { display: block; width: 100%; height: auto; }
.wizard-art svg * { vector-effect: non-scaling-stroke; }
.creation-page, .simple-home { padding-bottom: 36px; }
.setup-page > .wizard-art { margin-top: 38px; }
.person-name, .person-avatar { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.person-name { min-height: 44px; text-align: left; }
.person-name:hover { text-decoration: underline; text-underline-offset: 4px; }
button.person { border: 0; padding: 4px; border-radius: 16px; background: transparent; color: var(--ink); font-weight: 500; }
button.person:hover { background: var(--mint); }
button.seat.occupied:hover .avatar { transform: translateY(-2px); }
.group-visibility-terms { margin-bottom: 24px; }
.group-visibility-terms h2 { font-size: 16px; margin-bottom: 10px; }
.group-visibility-terms p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.terms-of-use { margin-bottom: 28px; font-size: 14px; line-height: 1.7; }
.terms-of-use > h2 { font-size: 19px; margin: 20px 0 18px; }
.terms-of-use section + section { margin-top: 20px; }
.terms-of-use h3 { font-size: 15px; margin-bottom: 8px; }
.terms-of-use p { color: var(--muted); }
.terms-of-use .terms-rights { margin-top: 20px; color: var(--ink); }
.group-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.group-settings-actions { display: grid; gap: 16px; }
.organiser-list { display: grid; gap: 14px; }
.organiser-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.organiser-list > div > span { overflow-wrap: anywhere; }
#connection-banner { position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 20; border-radius: 16px; padding: 10px 18px; background: var(--ink); color: var(--page); font-size: 14px; max-width: calc(100% - 24px); box-shadow: 0 3px 12px #0002; }
.connection-notice { text-align: center; margin-top: 24px; color: var(--muted); }
.admin-page { padding-block: 40px; }
.admin-page h2 { margin: 30px 0 18px; }
.admin-page > p, .admin-group p { margin: 12px 0; }
.admin-group { margin: 24px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.admin-group details { margin: 18px 0; }
.admin-group textarea { margin: 12px 0; }
.admin-group input[type=checkbox] { width: auto; min-height: auto; }
button:disabled { cursor: wait; opacity: .65; }
.my-ride-section { max-width: 450px; margin: 28px auto 0; }
.other-rides-section { margin-top: 36px; }
.view-other-rides { display: flex; margin-inline: auto; }
.view-other-rides[aria-expanded="true"] > .icon:last-child { transform: rotate(180deg); }
#other-rides-content { margin-top: 28px; }
.driver-notice-dialog { max-width: 480px; border: 2px solid var(--green); }
.driver-notice-person { width: 90px; margin: 12px auto 0; }
.driver-notice-person .person-drawing { width: 90px; height: 136px; }
.driver-notice-bubble { position: relative; margin: 18px 0 26px; padding: 20px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--mint); color: var(--mint-ink); font-size: 16px; line-height: 1.7; }
.driver-notice-bubble::before { content: ''; position: absolute; left: calc(50% - 9px); top: -10px; width: 16px; height: 16px; background: var(--mint); border-top: 1.5px solid var(--line); border-left: 1.5px solid var(--line); transform: rotate(45deg); }
.person-profile-figure { text-align: center; }
.person-profile-figure .person-drawing { width: 100px; height: 150px; }
.person-travel-status { text-align: center; color: var(--muted); font-size: 15px; margin: 12px 0 24px; }
.person-profile .dialog-actions { margin-top: 24px; }
.avatar-picker, .avatar-styles, .avatar-colour-row, .car-colour-picker { min-width: 0; padding: 0; border: 0; margin: 0; }
.avatar-picker { margin-top: 28px; }
.avatar-picker > legend, .car-colour-picker > legend { font-size: 15px; font-weight: 750; padding: 0; margin-bottom: 14px; }
.avatar-style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.avatar-style-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 138px; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 6px; background: var(--surface); color: var(--ink); font-size: 13px; }
.avatar-style-option .person-drawing { width: 58px; height: 90px; }
.avatar-style-option[aria-pressed="true"], .car-colour-option[aria-pressed="true"] { border-color: var(--green); background: var(--mint); box-shadow: inset 0 0 0 1px var(--green); }
.avatar-style-option > .icon, .car-colour-option > .icon { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; }
.avatar-colour-row { margin-top: 18px; }
.avatar-colour-row legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.avatar-colour-row legend span { margin-left: 12px; color: var(--muted); font-weight: 400; }
.avatar-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-swatch { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 50%; background: var(--swatch); padding: 0; }
.avatar-swatch[aria-pressed="true"] { border-color: var(--ink); outline: 2px solid var(--page); outline-offset: -5px; }
.avatar-swatch .icon { width: 21px; height: 21px; padding: 2px; border-radius: 50%; color: var(--ink); background: var(--surface); stroke-width: 2.5; }
.car-colour-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.car-colour-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 112px; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 6px 12px; background: var(--surface); color: var(--ink); font-size: 13px; }
.car-colour-option .little-car { width: 78px; max-width: 100%; height: 52px; }
@media (max-width: 420px) {
  .saved-car-list { grid-template-columns: 1fr; }
  .driver-navigation { flex-wrap: wrap; }
  .driver-finish-actions { flex: 1 1 100%; }
  .car-colour-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-style-options { gap: 8px; }
}
@media (max-width: 600px) {
  body::before { background-size: 480px 480px; }
  #app { background: color-mix(in srgb, var(--page) 35%, transparent); }
  .language-welcome { padding-top: 32px; }
  .language-welcome .home-brand { font-size: clamp(31px, 8.8vw, 40px); gap: 8px; }
  .language-welcome .brand-mark { width: 34px; height: 40px; }
  .welcome-explanation { font-size: 15px; margin-top: 20px; }
  .flag-picker { margin-top: 28px; }
  .language-flags { grid-template-columns: 1fr; width: min(190px, 56vw); margin: 22px auto 0; gap: 20px; }
  .language-flag { border-radius: 14px; }
  .free-note { width: 180px; margin-top: 32px; }
  .intro-page { padding-top: 10px; }
  .intro-brand .home-brand { font-size: clamp(29px, 7.8vw, 40px); gap: 8px; }
  .intro-brand .brand-mark { width: 32px; height: 38px; }
  .intro-brand > p { max-width: 280px; font-size: 13px; }
  .intro-steps { margin-top: 24px; }
  .intro-step { grid-template-columns: 32px minmax(0, 1fr) 45px; gap: 12px; padding-block: 10px 16px; }
  .intro-number { width: 32px; height: 32px; font-size: 15px; }
  .intro-step:not(:last-child)::after { left: 15px; top: calc(50% + 16px); }
  .intro-step h2 { font-size: 18px; }
  .intro-step p { font-size: 12px; }
  .intro-art > .icon { width: 29px; height: 29px; }
  .intro-art .avatar { width: 39px; height: 39px; }
  .intro-art .little-car { width: 53px; height: 36px; }
  .intro-actions { margin-top: 16px; }
  .creation-page { padding-block: 24px 32px; }
  .creation-page .home-brand { font-size: clamp(29px, 7.8vw, 38px); gap: 8px; }
  .creation-page .brand-mark { width: 32px; height: 38px; }
  .creation-page h1 { font-size: 25px; }
  .creation-hint { font-size: 13px; }
  .creation-page form { margin-top: 24px; }
  .creation-navigation { gap: 8px; }
  .creation-navigation .btn { padding-inline: 14px; }
}
@media (max-width: 900px) {
  .compact-car-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-car-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 25px; }
  .ride-list { gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .site-header { min-height: 72px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 31px; height: 35px; }
  .home-language { height: 64px; padding-inline: 20px; }
  .home-brand { gap: 9px; font-size: clamp(33px, 9.1vw, 46px); }
  .home-brand .brand-mark { width: 36px; height: 43px; }
  .simple-home { padding-block: 30px 32px; }
  .home-explanation { font-size: 15px; margin-top: 20px; }
  .start-form { margin-top: 26px; gap: 20px; }
  .start-form input { padding-inline: 20px; min-height: 56px; }
  .board-main { padding-top: 12px; }
  .trip-header { flex-wrap: wrap; gap: 16px; }
  .trip-header h1 { font-size: 27px; }
  .trip-facts { gap: 8px 14px; font-size: 12px; margin-top: 12px; }
  .trip-header > .btn { min-height: 44px; padding: 8px 14px; }
  .section-head { margin-bottom: 24px; gap: 8px; }
  .section-head h2 { font-size: 21px; }
  .section-head > span { font-size: 11px; text-align: right; }
  .ride-list { grid-template-columns: 1fr; gap: 32px; }
  .ride-card { width: min(350px, 100%); margin-inline: auto; }
  .motorcar { max-width: 280px; }
  .ride-top { max-width: 300px; margin-inline: auto; margin-bottom: 16px; }
  .ride-top h3 { font-size: 17px; }
  .badge { font-size: 12px; }
  .seat-label { font-size: 12px; }
  .seat small { font-size: 11px; }
  .ride-meta { font-size: 12px; }
  .gathering { grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }
  .people-list { gap: 12px; }
  .person { width: 72px; }
  dialog { padding: 22px; border-radius: 22px; }
  .dialog-head h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .site-header { display: flex; gap: 8px; padding-block: 14px; }
  .site-header .brand { font-size: 18px; gap: 6px; }
  .site-header .brand-mark { width: 26px; height: 29px; }
  .header-tools { display: flex; gap: 8px; }
  .header-tools .language .menu-trigger > .icon:first-child { display: none; }
  .header-tools .language .menu-trigger { padding-inline: 10px; }
  .wizard-page { padding-top: 24px; min-height: calc(100svh - 156px); }
  .wizard-page .trip-header h1 { font-size: 27px; }
  .group-details .trip-header { flex-wrap: nowrap; gap: 8px; }
  .wizard-step { margin-top: 28px; }
  .wizard-step > h2 { font-size: 22px; }
  .mode-choices { gap: 12px; }
  .mode-choice { border-radius: 20px; padding: 18px 10px; }
  .mode-choice strong { font-size: 15px; }
  .mode-choice > span:not(.choice-art) { font-size: 11px; }
  .choice-art { width: 80px; height: 66px; }
  .choice-art .little-car { width: 80px; }
  .passenger-choice { width: 70px; }
  .waiting-lounge { margin-top: 10px; padding-block: 14px 18px; gap: 10px; }
  .waiting-lounge .people-title { width: 100%; }
  .waiting-lounge .person-drawing { width: 48px; height: 74px; }
  .waiting-lounge .people-list { gap: 8px; }
  .waiting-lounge .person { width: 70px; }
  .my-car-layout { grid-template-columns: 1fr; gap: 18px; }
  .driver-message { text-align: center; margin-inline: auto; max-width: 310px; }
  .driver-message h3 { font-size: 20px; }
  .compact-car-list { grid-template-columns: 1fr; }
  .compact-car > summary { padding: 10px 14px; min-height: 78px; }
  .rider-status { flex-wrap: wrap; }
  .rider-status p { flex: 1; }
  .rider-status .btn { min-height: 44px; padding-inline: 8px; }
  .my-car-section .section-head .btn { padding: 8px 12px; font-size: 12px; }
  .full-cars .section-head { align-items: center; }
  .full-cars .section-head > span { max-width: 170px; }
}
@media (max-width: 370px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .home-brand { gap: 7px; }
  .home-brand .brand-mark { width: 30px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #1c1930; --surface: #29254a; --ink: #f4eeff; --muted: #c0b8dd;
    --line: #433d6a; --green: #6fe0cc; --green-hover: #8fead9;
    --mint: #1e4a4b; --mint-ink: #bdf4e7; --peach: #5a4824; --peach-ink: #ffe1a1;
    --soft: #332e58; --doodle-opacity: .2;
    --brand-caravan: #6fe0cc; --brand-saray: #ff9a7e;
    --logo-green: #b0ce9e; --logo-mint: #354f36; --logo-saray: #e4ad88;
    --edge: #0d0b1c; --coral: #ff8f72; --coral-hover: #ffa48b; --btn-ink: #2a1830;
    --marker: #5b3fb0; --sky: #25406a; --pink: #5a2f4b; --lav: #3b3170;
    --tile-a: #4a3d1f; --tile-b: #4b2942; --focus: #b9a8ff;
    --glow-a: #3a2a5c; --glow-b: #4a2444;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:active, .language-flag:hover, .language-flag:active, button.seat.free:not(:disabled):hover .seat-drawing { transform: none; }
}

/* Compact navigation and creation steps; long user content can still scroll. */
.header-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-start .profile-button { flex-shrink: 0; }
.site-footer { flex-wrap: nowrap; justify-content: space-between; gap: 12px; padding-block: 8px; }
.site-footer .text-link { margin-left: auto; text-align: right; font-size: 11px; line-height: 1.35; justify-content: flex-end; }
.footer-credit { font-size: 11px; flex-shrink: 0; }
.compact-creation { padding-block: 16px 20px; }
.compact-creation .creation-group-name { margin-top: 0; }
.compact-creation form { margin-top: 20px; }
.compact-creation .creation-navigation { margin-top: 20px; }
.compact-creation .wizard-art { width: 150px; margin-top: 16px; }
.compact-creation .creation-summary > div { padding-block: 9px; }
.time-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.time-fields .field { min-width: 0; }
.time-fields input[type="text"] { padding-inline: 10px; font-size: 14px; min-height: 58px; }
.empty-rides h3 { font-size: 18px; margin-top: 0; }
.empty-rides p { font-size: 12px; margin-bottom: 0; }
.empty-rides > .little-car { display: none; }
.private-profile { max-width: 680px; flex: 1; padding-block: 24px; }
.private-profile > h1 { margin-bottom: 20px; }
.private-profile-person { display: flex; align-items: center; gap: 12px; }
.private-profile-person .avatar { width: 52px; height: 52px; }
.private-profile-id { margin-block: 20px; }
.private-profile-id h2 { font-size: 14px; }
.private-profile-id code { display: block; margin-top: 6px; font-size: 18px; overflow-wrap: anywhere; }
.private-profile-id p, .profile-groups > p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px; }
.profile-groups { margin-block: 26px; }
.profile-groups ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.profile-groups li a { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.profile-groups li a:hover { border-color: var(--green); }
.profile-groups li span { font-size: 13px; color: var(--muted); }
.profile-groups li small { font-size: 12px; color: var(--green); }
@media (max-width: 600px) {
  .site-header.has-profile .brand { font-size: 16px; }
  .site-header.has-profile .brand-mark { display: none; }
  .header-start { gap: 7px; }
  .site-header.has-profile .profile-button { width: 40px; height: 40px; }
  .compact-creation { padding-block: 12px 16px; }
  .compact-creation h1 { font-size: 24px; }
  .site-footer { width: calc(100% - 32px); }
}
@media (max-height: 700px) {
  .compact-creation .wizard-art { width: 120px; margin-top: 10px; }
  .compact-creation form, .compact-creation .creation-navigation { margin-top: 16px; }
}

/* Public guides are readable without JavaScript and do not alter wizard layout. */
.discovery-page > header, .discovery-page > main, .discovery-page > footer, .discovery-fallback { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.discovery-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.discovery-header > a { font-size: 24px; font-weight: 750; text-decoration: none; }
.discovery-header nav { display: flex; gap: 16px; flex-wrap: wrap; }
.discovery-header nav a { padding-block: 10px; }
.discovery-page main, .discovery-fallback { padding-block: 24px; overflow-wrap: anywhere; }
.discovery-page h1, .discovery-fallback h1 { font-size: clamp(28px, 6vw, 42px); }
.discovery-page h2 { font-size: 23px; }
.discovery-page section { margin-top: 32px; }
.discovery-page p, .discovery-fallback p { margin-top: 18px; line-height: 1.75; }
.discovery-page footer { padding-block: 24px; font-size: 12px; }

/* ───── Sticker-book skin, November 2026 ─────
   A visual layer only: colour, type, borders, shadows and small motion.
   The layout metrics above stay as they were, so compact screens still fit. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('assets/fonts/fredoka-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('assets/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* A warm glow at the top of every page, like early light on the road. */
html { background: radial-gradient(900px 420px at 8% -120px, var(--glow-a), transparent 70%), radial-gradient(760px 380px at 104% -60px, var(--glow-b), transparent 70%), var(--page); background-repeat: no-repeat; }
body { background: transparent; font-weight: 450; }
#app { background: none; }
::selection { background: var(--pop-1); color: #2f2a4f; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.01em; }
button, h1, h2, h3 { font-weight: 650; }
.brand, .home-brand { font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.brand { letter-spacing: -.055em; font-weight: 750; }
.home-brand { letter-spacing: -.065em; font-weight: 850; }
strong, b { font-weight: 650; }

/* Buttons are stickers: a dark edge, a hard shadow, and a springy press. */
.btn { border: 2px solid var(--edge); border-radius: 999px; background: var(--coral); color: var(--btn-ink); box-shadow: 0 4px 0 var(--edge); letter-spacing: .01em; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .16s, box-shadow .16s; }
.btn:hover { background: var(--coral-hover); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--edge); box-shadow: 0 3px 0 var(--edge); }
.btn.secondary:hover { background: var(--soft); border-color: var(--edge); box-shadow: 0 5px 0 var(--edge); }
.btn.quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.quiet:hover { background: var(--soft); color: var(--ink); transform: none; box-shadow: none; }
.icon-button { border: 2px solid var(--edge); background: var(--surface); box-shadow: 0 3px 0 var(--edge); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.icon-button:hover { transform: translateY(-2px) rotate(-5deg); }
.share-button { background: var(--pop-1); color: #2f2a4f; border: 2px solid var(--edge); }
.share-button:hover { background: var(--pop-2); }
.dismiss-share-reminder, .delete-saved-car, .edit-saved-car, .link-editor-row .remove-link { border: 0; box-shadow: none; background: transparent; }
.text-link:hover { color: var(--green); }

/* Header controls. */
.menu-trigger { border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); box-shadow: 0 3px 0 var(--edge); }
.menu-trigger:hover, .menu-trigger[aria-expanded="true"] { border-color: var(--edge); }
.choice-menu-options { border: 2px solid var(--edge); border-radius: 20px; box-shadow: 0 6px 0 var(--edge); }
.choice-menu-options button { border-radius: 14px; }
.menu-flag { box-shadow: 0 0 0 1.5px var(--edge); }
.profile-button { border: 2px solid var(--edge); background: var(--lav); box-shadow: 0 3px 0 var(--edge); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.profile-button:hover { transform: translateY(-2px) rotate(-6deg); }
/* The portrait fills its circle: shoulders run into the rim instead of floating above it. */
.profile-button { padding: 0; overflow: hidden; place-items: end center; }
.profile-button .avatar { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: -2px; }
.profile-button .avatar:has(.ghost-drawing) { align-self: start; aspect-ratio: 64 / 98; margin: 1px 0 0; }

/* Fields. */
input, textarea { background: var(--surface); border: 2px solid color-mix(in srgb, var(--ink) 32%, var(--line)); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); outline: none; }
.start-form input { border: 2px solid var(--edge); border-radius: 999px; box-shadow: 0 4px 0 var(--edge); }
.start-form input:focus { border-color: var(--focus); box-shadow: 0 4px 0 var(--focus); }
.native-date-display { border: 2px solid color-mix(in srgb, var(--ink) 32%, var(--line)); }
.native-date-display .icon { color: var(--brand-saray); }
.native-date-control:hover .native-date-display { border-color: var(--focus); }
.native-date-control:focus-within .native-date-display { outline-color: var(--focus); }
.link-editor-row { border: 2px dashed color-mix(in srgb, var(--ink) 30%, var(--line)); border-radius: 18px; }

/* Cards and tiles. */
.mode-choice { border: 2px solid var(--edge); border-radius: 26px; box-shadow: 0 5px 0 var(--edge); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.mode-choice[data-action="choose-driver"] { background: var(--tile-a); }
.mode-choice[data-action="choose-rider"] { background: var(--tile-b); }
.mode-choice:hover { border-color: var(--edge); transform: translateY(-3px) rotate(-1.2deg); box-shadow: 0 8px 0 var(--edge); }
.mode-choice[data-action="choose-rider"]:hover { transform: translateY(-3px) rotate(1.2deg); }
.mode-choice:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); }
.mode-choice > .icon { color: var(--ink); }
.compact-car, .saved-car-card, .avatar-style-option, .car-colour-option, .admin-group { border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); }
.compact-car > summary { border-radius: 16px; }
.compact-car > summary:hover { background: var(--soft); }
.group-links a { border: 2px solid var(--edge); border-radius: 999px; background: var(--sky); color: var(--ink); box-shadow: 0 3px 0 var(--edge); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.group-links a:hover { border-color: var(--edge); transform: translateY(-2px); }
.free-text a { color: var(--green); }
.profile-groups li a { border: 2px solid var(--edge); border-radius: 18px; box-shadow: 0 4px 0 var(--edge); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.profile-groups li a:hover { border-color: var(--edge); transform: translateY(-2px); }
.private-profile-id { padding: 14px 16px; border: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 18px; background: var(--tile-a); }
.private-profile-id code { font-family: inherit; font-weight: 650; letter-spacing: .01em; }
.creation-summary > div { border-bottom: 2px dashed var(--line); }
.creation-group-name { padding: 1px 12px; border-radius: 999px; background: var(--lav); color: var(--ink); font-weight: 550; }
.wizard-art { opacity: 1; }

/* Dialogs and messages. */
dialog { border: 2.5px solid var(--edge); border-radius: 28px; box-shadow: 0 8px 0 var(--edge); }
dialog[open] { animation: pop-in .26s cubic-bezier(.3, 1.5, .5, 1); }
dialog::backdrop { background: #1c1930a6; backdrop-filter: blur(4px); }
.driver-notice-bubble { border: 2px solid var(--edge); }
.driver-notice-bubble::before { border-top: 2px solid var(--edge); border-left: 2px solid var(--edge); }
.toast, #connection-banner { border: 2px solid var(--edge); border-radius: 22px; font-weight: 550; box-shadow: 0 4px 0 color-mix(in srgb, var(--edge) 45%, transparent); }
.share-reminder { border-color: var(--edge); box-shadow: 0 4px 0 var(--edge); }
.share-reminder::before { border-top-color: var(--edge); border-left-color: var(--edge); }

/* The trip is a ticket; its facts are little labels. */
.board-main .group-details, .wizard-page:not(.compact-driver) .group-details { padding: 18px 18px 14px; border: 2px solid var(--edge); border-radius: 26px; background: var(--surface); box-shadow: 0 5px 0 var(--edge); }
.board-main .trip-facts > span, .wizard-page:not(.compact-driver) .trip-facts > span { padding: 5px 11px; border-radius: 14px; background: var(--sky); color: var(--ink); font-weight: 500; }
.board-main .trip-facts > span:nth-child(2), .wizard-page:not(.compact-driver) .trip-facts > span:nth-child(2) { background: var(--pink); }
.board-main .trip-facts > span:nth-child(3), .wizard-page:not(.compact-driver) .trip-facts > span:nth-child(3) { background: var(--lav); }
.trip-facts small { opacity: .75; }
.joining-count { color: var(--brand-saray); font-weight: 600; }
.section-head h2, .people-title h2, .discovery-page h2 { text-decoration-line: underline; text-decoration-color: var(--marker); text-decoration-thickness: .4em; text-underline-offset: -.22em; text-decoration-skip-ink: none; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 6px; border: 2px solid var(--edge); border-radius: 999px; background: var(--coral); color: var(--btn-ink); font-weight: 700; }
.waiting-lounge { padding-inline: 18px; border: 2px dashed color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--sky) 55%, transparent); }
button.person { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .15s; }
button.person:hover { background: var(--surface); transform: translateY(-3px); }
.person.me > span { color: var(--brand-saray); }
.rider-status { margin-top: 18px; padding: 10px 14px; border: 2px solid var(--edge); border-radius: 20px; background: var(--mint); color: var(--mint-ink); box-shadow: 0 3px 0 var(--edge); }
.rider-status .btn.quiet { color: var(--mint-ink); }
.gathering { border-top: 2px dashed var(--line); }
.empty-rides { border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 24px; }
.badge { padding: 4px 10px; border: 2px solid var(--edge); border-radius: 999px; background: var(--pop-1); color: #2f2a4f; transform: rotate(-2deg); }
.badge.neutral { background: var(--soft); color: var(--muted); transform: none; }
.ride-note { padding: 10px 12px; border-radius: 14px; background: var(--tile-a); color: var(--ink); }
.driver-message > p { display: inline-block; padding: 14px 18px; border: 2px solid var(--edge); border-radius: 20px 20px 20px 6px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--edge); }
.connection-notice { font-weight: 550; }

/* Cars keep light interiors in both themes, so their colours are fixed. */
[data-colour] { --car-colour: #ff9d8a; }
[data-colour="turquoise"] { --car-colour: #7fd6c2; }
[data-colour="saffron"] { --car-colour: #ffd166; }
[data-colour="cobalt"] { --car-colour: #8fbcff; }
[data-colour="olive"] { --car-colour: #b9d977; }
[data-colour="plum"] { --car-colour: #cfa8f0; }
.motorcar { border-width: 3px; box-shadow: 0 8px 0 #2f2a4f2e, inset 6px 0 0 #ffffff47, inset -6px 0 0 #2f2a4f14; }
.ride-card.mine > .motorcar { animation: car-idle 3.6s ease-in-out infinite; }
.tyre { border-width: 2.5px; background: #4b4668; }
.car-cabin { border-width: 2.5px; border-radius: 24px; background: #fffaf0; }
.seat { color: #2f2a4f; transition: background .15s, border-color .15s; }
.seat small { color: #6b6588; }
.seat:focus-visible { outline-color: #6a4df4; }
.chair { stroke: #6f6790; }
.chair-head, .chair-base { fill: #e4dcf5; }
.chair-back { fill: #f3eefc; }
.seat.occupied .chair-back { fill: #c9f0e2; }
.seat.occupied .chair-base { fill: #9fdcc9; }
.seat.free .chair { stroke: #c98a1a; }
.seat.free .chair-head, .seat.free .chair-base { fill: #ffd578; }
.seat.free .chair-back { fill: #fff1c2; }
.seat-plus { color: #a86a00; }
button.seat.free:not(:disabled) .seat-plus { animation: plus-pulse 1.8s ease-in-out infinite; }
button.seat.free:not(:disabled):hover { background: #fff1c2; border-color: #c98a1a; }
.seat.own-seat { background: #cff3e7; border-color: #0d7a6e; }
.seat.own-seat::after { content: '✦'; position: absolute; top: 1px; right: 7px; color: #ef5b3a; font-size: 14px; line-height: 1; animation: twinkle 2.4s ease-in-out infinite; }
.steering-wheel { fill: #fffaf0; stroke: #2f2a4f; }
.tail-light { background: #ff6b5a; }
.rear-window { background: #c8ecf5; }
.mirror { border-width: 2.5px; }

/* Welcome, flags and the first-visit steps. */
.language-flag { border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 0 6px 0 var(--edge); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.language-flag:nth-child(1) { transform: rotate(-2.5deg); }
.language-flag:nth-child(2) { transform: rotate(1.5deg); }
.language-flag:nth-child(3) { transform: rotate(-1deg); }
.language-flag:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 11px 0 var(--edge); }
.language-flag:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.welcome-explanation a { color: var(--green); font-weight: 600; }
.intro-number { border: 2px solid var(--edge); background: var(--pop-1); color: #2f2a4f; box-shadow: 0 3px 0 var(--edge); }
.intro-step:nth-child(2) .intro-number { background: var(--pop-2); }
.intro-step:nth-child(3) .intro-number { background: var(--pop-3); }
.intro-step:nth-child(4) .intro-number { background: var(--pop-4); }
.intro-step:nth-child(5) .intro-number { background: var(--pop-5); }
.intro-step:not(:last-child)::after { border-left: 2px dashed color-mix(in srgb, var(--ink) 28%, transparent); }
.intro-art { color: var(--brand-saray); }

/* Guides and the intranet admin page share the same paper. */
.discovery-header > a { color: var(--logo-green); }
.discovery-header nav a[aria-current="page"] { color: var(--green); font-weight: 650; }

/* The plain summary in the first HTML is for visitors without scripts. With
   scripts it would only flash during loading, so a small bobbing logo waits there. */
#app > .discovery-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#app:has(> .discovery-fallback)::before, #app:empty::before { content: ''; display: block; width: 54px; height: 60px; margin: 38svh auto 0; background: url('assets/favicon.svg') center / contain no-repeat; animation: loading-bob 1s ease-in-out infinite; }
@keyframes loading-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@keyframes pop-in { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes car-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes plus-pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.25); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(40deg); opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .icon-button:hover, .profile-button:hover, .mode-choice:hover, .mode-choice[data-action="choose-rider"]:hover, .mode-choice:active, .group-links a:hover, .profile-groups li a:hover, button.person:hover { transform: none; }
}
