/* The tabbed website: Play, Arrivals, Stamps and Passport, with the five flights as a strip and one game open at a time.
   Applies only when the head script has set .has-tabs; the legacy Android app shell never loads it. */
html.has-tabs [hidden]{display:none!important}
html.has-tabs header{max-width:none;margin:0;padding:0 max(20px,calc((100% - 1240px)/2 + 32px));height:64px;gap:24px}
html.has-tabs .topnote{display:none}
html.has-tabs .brand{font-size:19px}
.tabs{display:flex;gap:4px;height:100%;margin-right:auto}
.tabs a{display:flex;align-items:center;gap:8px;padding:0 16px;height:100%;color:var(--muted);font-weight:700;font-size:15px;text-decoration:none;border-bottom:3px solid transparent}
main .tabs a,.tabs a:hover{text-decoration:none}
.tabs a:hover{color:var(--ink)}
.tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--ink)}
.tabs svg{display:none}
.header-date{font:500 12px var(--mono);letter-spacing:1px;color:var(--muted);text-transform:uppercase}

html.has-tabs main{max-width:1240px;padding:20px 32px 32px}

/* One tab at a time. */
html.has-tabs main>.leaderboard,html.has-tabs main>.sticker-book,html.has-tabs main>.bottom{display:none;margin-top:0}
html.has-tabs[data-view=hangar] #view-play,html.has-tabs[data-view=arrivals] #view-play,html.has-tabs[data-view=stamps] #view-play,html.has-tabs[data-view=passport] #view-play{display:none}
html.has-tabs[data-view=arrivals] main>.leaderboard{display:flex}
html.has-tabs[data-view=stamps] main>.sticker-book{display:block}
html.has-tabs[data-view=passport] main>.bottom{display:grid}

/* Play: the strip across the top, the open game on the left, today's pass and status on the right. */
html.has-tabs #view-play{display:grid;grid-template-columns:minmax(0,1fr) 320px;column-gap:24px;align-items:start;
 grid-template-areas:"challenge challenge" "progress progress" "strip strip" "summary summary" "game ticket" "game flyer" "game landed" "game friends" "game ." "status status" "reconnect reconnect";grid-template-rows:auto auto auto auto auto auto auto auto 1fr auto auto}
/* Once every flight has landed, the landed card takes the main column instead of an open game. */
/* Desktop, everything landed: the card fills the column beside the status and friends panels, tomorrow's line at its foot. */
html.has-tabs #view-play.all-landed section.landed{grid-area:game;margin-bottom:0;align-self:stretch;display:flex;flex-direction:column}
html.has-tabs #view-play.all-landed section.landed .landed-next{margin-top:auto}
/* When the side panels are taller, the five score rows spread out to use the height rather than leaving a gap. */
html.has-tabs #view-play.all-landed section.landed .landed-flights{flex:1 1 auto;align-content:space-evenly;min-height:190px}
html.has-tabs #view-play.all-landed section.landed .landed-review{margin-bottom:16px}
html.has-tabs #securestatus{grid-area:status;margin:6px 0 8px;font-size:12px;line-height:1.5;color:var(--muted)}
html.has-tabs #securestatus+button{grid-area:reconnect;justify-self:start;width:auto;padding:8px 14px;font-size:12px}
.challenge{grid-area:challenge}.trip-progress{grid-area:progress}.departures{grid-area:strip}.stage{grid-area:game;min-width:0}
.hero{grid-area:ticket}.flyer{grid-area:flyer}section.landed{grid-area:landed}.friends-mini{grid-area:friends}
html.has-tabs .hero{display:block;margin:0 0 14px}
/* The Departures heading is kept for screen readers (the page's one h1), not shown. */
html.has-tabs .hero>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
html.has-tabs .daily{margin:0}
html.has-tabs .flyer,html.has-tabs section.landed,html.has-tabs .friends-mini{margin:0 0 14px}
html.has-tabs .challenge{margin:0 0 14px}
html.has-tabs .trip-progress{margin:0 0 12px}

html.has-tabs .departures{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 20px;border:0;border-radius:0;background:none;overflow:visible}
html.has-tabs .dep-head{display:none}
html.has-tabs a.dep-row{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"code status" "dest dest";gap:10px 8px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-size:12px}
html.has-tabs a.dep-row:hover{background:var(--panel-high)}
html.has-tabs .dep-row .code{grid-area:code}
html.has-tabs .dep-row .status{grid-area:status;justify-self:end;font-size:11px}
html.has-tabs .dep-row .dest{grid-area:dest;font-size:15px;line-height:1.2}
html.has-tabs a.dep-row.is-open{border-color:var(--game);box-shadow:0 0 0 1px var(--game)}

/* One game at a time. */
html.has-tabs .stage>*{margin-top:0}
html.has-tabs .stage>[data-game]:not(.is-open){display:none}
html.has-tabs .stage>.grid{display:block}
html.has-tabs .stage>.grid:not(.is-open){display:none}
html.has-tabs .stage>.grid>.card:not(.is-open){display:none}
html.has-tabs .stage>.grid>.card.is-open{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr)}
html.has-tabs .stage>.grid>.card.is-open>.photo,html.has-tabs .stage>.grid>.card.is-open>.animalart{grid-column:1;grid-row:1;height:auto;min-height:300px}
html.has-tabs .stage>.grid>.card.is-open>.photocredit{grid-column:1;grid-row:2;align-self:start;margin:0;padding:8px 12px}
html.has-tabs .stage>.grid>.card.is-open>.cardbody{grid-column:2;grid-row:1/span 2}

html.has-tabs .friends-mini{padding:16px 18px}
.friends-mini h3{margin:0 0 8px;font-size:15px}
.friends-mini .friend-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--panel-high);font-size:14px}
.friends-mini .friend-row span:first-child{width:18px;font:500 12px var(--mono);color:var(--muted)}
.friends-mini .friend-row span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friends-mini .friend-row span:last-child{font-family:var(--mono)}
.friends-mini .friend-you{font-weight:700}
.friends-mini a{font-size:12px;color:var(--muted)}

/* Phones: a bottom tab bar, the strip scrolls sideways, and the game comes before the pass. */
@media (max-width:420px){
 /* Brand, sign-in name and help all fit a 360px phone: help shrinks to a question mark and a long name is cut short. */
 html.has-tabs .brand{font-size:17px}
 html.has-tabs .topbar-actions{gap:8px;min-width:0}
 html.has-tabs #how{font-size:0;width:40px;height:40px;padding:0;flex:none}
 html.has-tabs #how::after{content:'?';font-size:16px}
 html.has-tabs #headersignin{max-width:120px}
}
@media (max-width:760px){
 html.has-tabs body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
 html.has-tabs header{height:56px;padding:0 14px;gap:12px}
 .header-date{display:none}
 .tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;height:auto;margin:0;display:grid;grid-template-columns:repeat(5,1fr);gap:0;background:#16181d;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
 .tabs a{flex-direction:column;justify-content:center;gap:4px;padding:10px 0 8px;height:auto;min-height:56px;font-size:11px;border-bottom:0}
 .tabs a[aria-current=page]{box-shadow:inset 0 3px 0 var(--ink)}
 .tabs svg{display:block}
 html.has-tabs main{padding:14px 14px 20px}
 html.has-tabs #view-play{grid-template-columns:minmax(0,1fr);grid-template-areas:"challenge" "progress" "strip" "landed" "game" "ticket" "flyer" "friends" "status" "reconnect";grid-template-rows:none}
 html.has-tabs #view-play.all-landed section.landed{grid-area:landed;margin-bottom:14px}
 html.has-tabs .departures{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(124px,1fr);overflow-x:auto;overscroll-behavior-x:contain;padding:0 14px 4px;margin:0 -14px 14px;scroll-padding-inline:14px}
 html.has-tabs .stage>.grid>.card.is-open{display:block}
 html.has-tabs .stage>.grid>.card.is-open>.photo{min-height:0;height:190px}
 html.has-tabs a.dep-row{grid-template-columns:1fr;grid-template-areas:"code" "dest" "status";gap:8px}
 html.has-tabs .dep-row .status{justify-self:start}
 html.has-tabs .hero{margin:14px 0 14px}
}
html.has-tabs .dep-row .gate{display:none}
html.has-tabs a.dep-row{align-content:start}
html.has-tabs{color-scheme:dark}
html.has-tabs #view-play.all-landed .hero{margin:0}html.has-tabs #view-play.all-landed .hero .daily{display:none}

/* Arrivals: signed out, a slim banner sits above the board and opens the join form in place; signed in, the player line and the long explanation go below the board. */
html.has-tabs .leaderboard{display:flex;flex-direction:column}
html.has-tabs .leaderboard>#leaderboardplayer,html.has-tabs .leaderboard>#emailnudge{order:20}
html.has-tabs .leaderboard>p.leaderboard-small{order:30;font-size:12px;color:var(--muted);margin-top:18px}
html.has-tabs .leaderboard>#leaderboardauth{margin-top:14px}
html.has-tabs #leaderboardauth:not(.open){display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
html.has-tabs #leaderboardauth:not(.open)>:not(h3):not(.auth-toggle){display:none}
html.has-tabs #leaderboardauth:not(.open)>h3{margin:0;font-size:15px;line-height:1.3}
html.has-tabs #leaderboardauth:not(.open)>.auth-toggle{margin:0;flex:none;white-space:nowrap;padding:10px 18px}
html.has-tabs #leaderboardauth.open>.auth-toggle{display:none}
@media (max-width:760px){
 html.has-tabs .leaderboard th:last-child{width:80px}
 html.has-tabs .leaderboard th{letter-spacing:.8px;font-size:9px}
 html.has-tabs .leaderboard td:last-child{white-space:nowrap}
}
/* In the narrow column the landed card stacks its title and miles. */
html.has-tabs #view-play:not(.all-landed) section.landed .landed-top{flex-direction:column;align-items:flex-start;gap:6px}
html.has-tabs #view-play:not(.all-landed) section.landed .landed-miles{text-align:left}

/* A short "Perfect!" pop-up after a game, round or question is finished with full marks. */
.perfect-pop{position:fixed;left:50%;top:84px;z-index:60;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:12px 20px 12px 14px;border:1px solid #4f7b6a;border-radius:99px;background:#1b2a25;color:var(--ink);box-shadow:0 10px 30px #0008;pointer-events:none;transform:translateX(-50%);animation:perfect-pop 2.2s ease both}
.perfect-mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--good);color:var(--navy);font-weight:800}
.perfect-pop strong{font-size:16px}
.perfect-detail{color:var(--muted);font:500 12px var(--mono)}
@keyframes perfect-pop{0%{opacity:0;transform:translate(-50%,-12px) scale(.9)}12%{opacity:1;transform:translate(-50%,0) scale(1.04)}20%{transform:translate(-50%,0) scale(1)}85%{opacity:1}100%{opacity:0;transform:translate(-50%,-6px) scale(1)}}
@media (prefers-reduced-motion:reduce){.perfect-pop{animation:perfect-fade 2.2s ease both}@keyframes perfect-fade{0%{opacity:0}10%,85%{opacity:1}100%{opacity:0}}}
@media (max-width:760px){.perfect-pop{top:68px}}

/* "Next flight": floats above the tab bar on a phone, bottom centre on a larger screen, only on the Play tab. It is centred with
   `translate`, not `transform`: a pressed button gets its own transform (button:active), which replaced the centring and made the
   button jump half its width sideways under the finger and back (November 2026). */
.next-flight{display:none;position:fixed;left:50%;translate:-50% 0;bottom:24px;z-index:30;box-shadow:0 8px 24px rgba(0,0,0,.45)}
html.has-tabs[data-view="play"] .next-flight:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 20px}
.next-code{font:700 12px var(--mono);letter-spacing:.5px;color:var(--navy);border-radius:5px;padding:3px 7px}
@media(max-width:760px){.next-flight{bottom:calc(84px + env(safe-area-inset-bottom));touch-action:manipulation;width:calc(100% - 32px);max-width:420px}}
/* Everything landed and a game reopened (shell.js placeLanded): the card is a slim bar under the flight strip and the miles ticket
   steps aside, the bar already showing the total. */
html.has-tabs #view-play:has(section.landed.slim:not([hidden])) .hero{margin:0}html.has-tabs #view-play:has(section.landed.slim:not([hidden])) .hero .daily{display:none}
html.has-tabs section.landed.slim .landed-flights,html.has-tabs section.landed.slim .landed-review,html.has-tabs section.landed.slim .landed-kicker{display:none}
html.has-tabs section.landed.slim{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 18px;margin:0 0 14px}
html.has-tabs #view-play section.landed.slim .landed-top{flex-direction:row;align-items:baseline;gap:12px}
html.has-tabs section.landed.slim h2{margin:0;font-size:18px}
html.has-tabs #view-play section.landed.slim .landed-miles{text-align:left}
html.has-tabs section.landed.slim .landed-miles span{display:none}
html.has-tabs section.landed.slim .landed-miles strong::after{content:' / 700';font:500 13px var(--mono);color:var(--muted)}
html.has-tabs section.landed.slim .landed-miles strong{font-size:22px}
html.has-tabs section.landed.slim .landed-actions{margin:0;gap:8px}
html.has-tabs section.landed.slim .landed-actions button{min-height:38px;padding:7px 14px;font-size:13px}
html.has-tabs section.landed.slim .landed-feedback{flex-basis:100%;margin:0}
html.has-tabs section.landed.slim .landed-next{margin:0 0 0 auto;padding:0;border:0;font-size:12px;max-width:290px}
html.has-tabs section.landed.slim .landed-next .landed-label{display:none}
/* Desktop: one line (total, buttons, countdown at the right); a copy or share message sits underneath only while it shows. */
@media(min-width:761px){
 html.has-tabs #view-play section.landed.slim{grid-area:summary;display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:"top actions next" "feedback feedback feedback";align-items:center;gap:6px 20px;padding:12px 20px}
 html.has-tabs section.landed.slim .landed-top{grid-area:top}
 html.has-tabs section.landed.slim .landed-actions{grid-area:actions}
 html.has-tabs section.landed.slim .landed-next{grid-area:next;justify-self:end;max-width:none;margin:0;text-align:right}
 html.has-tabs section.landed.slim .landed-feedback{grid-area:feedback;font-size:12px}
}
@media(max-width:760px){html.has-tabs section.landed.slim .landed-next{margin:0;flex-basis:100%}}
/* Text for screen readers only: the page's main heading on every tab. */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* The route (shell.js): today's five flights as stops on one line, all in view on a phone, with a plane at the open flight and
   the day's miles above. It replaces the separate miles ticket and progress line. */
html.has-tabs .hero,html.has-tabs .trip-progress{display:none!important}
html.has-tabs .route{grid-area:strip;position:relative;margin:0 0 18px;padding:12px 16px 12px;border:1px solid var(--line);border-radius:14px;background:var(--board)}
html.has-tabs .route:has(.departures[hidden]){display:none}
html.has-tabs .route-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;height:26px;font:500 11px var(--mono);letter-spacing:1px;text-transform:uppercase;color:var(--muted);white-space:nowrap}
html.has-tabs .route-words{overflow:hidden;text-overflow:ellipsis}
html.has-tabs .route-miles strong{font:700 20px var(--mono);letter-spacing:0;color:var(--ink)}
html.has-tabs .route .departures{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:0;margin:0;padding:30px 0 0;overflow:visible;border:0;border-radius:0;background:none}
html.has-tabs .route .departures::before,html.has-tabs .route .departures::after{content:'';position:absolute;top:41px;left:10%;height:0;border-top:2px dashed var(--line)}
html.has-tabs .route .departures::before{right:10%}
html.has-tabs .route .departures::after{width:calc(var(--fill,0) * 20%);border-top-style:solid;border-color:var(--ink);transition:width .6s ease}
html.has-tabs .route a.dep-row{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 2px 2px;border:0;border-radius:0;background:none;box-shadow:none;text-align:center;min-width:0}
html.has-tabs .route a.dep-row:hover{background:none}
html.has-tabs .route .dep-row .code{position:relative;z-index:1;margin:0;padding:4px 8px;border-radius:6px;font-size:12px;background:var(--board);color:var(--game);box-shadow:inset 0 0 0 1.5px var(--game);transition:background .2s,color .2s}
html.has-tabs .route .dep-row:has(.status.landed) .code{background:var(--game);color:var(--navy)}
html.has-tabs .route a.dep-row.is-open .code{background:var(--game);color:var(--navy);box-shadow:0 0 0 3px var(--board),0 0 0 5px var(--game)}
html.has-tabs .route a.dep-row:hover .code{background:var(--game);color:var(--navy)}
html.has-tabs .route .dep-row .dest{font:600 13px/1.25 'Archivo',sans-serif;color:var(--ink);overflow-wrap:anywhere}
html.has-tabs .route .dep-row .status{justify-self:auto;padding:0;border-radius:0;background:none;animation:none;font:500 10px var(--mono);letter-spacing:.5px;color:var(--muted)}
html.has-tabs .route .dep-row .status.landed{color:var(--good)}
html.has-tabs .route .dep-row .status.boarding{color:var(--ink)}
html.has-tabs .route-plane{position:absolute;z-index:2;top:42px;left:calc(16px + (100% - 32px) * (var(--at,0) + .5) / 5);translate:-50% 0;rotate:90deg;line-height:0;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));transition:left .7s cubic-bezier(.45,.05,.3,1),color .3s}
@media (max-width:760px){
 html.has-tabs .route{padding:10px 10px 10px;margin:0 0 14px}
 html.has-tabs .route .dep-row .dest{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html.has-tabs .route .dep-row .status{font-size:0}
 html.has-tabs .route .dep-row .status::after{content:attr(data-short);font-size:11px}
 html.has-tabs .route .dep-row .status[data-short=""]{display:none}
 html.has-tabs .route a.dep-row{gap:5px}
 html.has-tabs .route-plane{top:40px;left:calc(10px + (100% - 20px) * (var(--at,0) + .5) / 5)}
 html.has-tabs .route-miles strong{font-size:17px}
}
@media (prefers-reduced-motion:reduce){html.has-tabs .route-plane,html.has-tabs .route .departures::after{transition:none}}

/* The boarding board (shell.js): before the day's first move, a departures board of today's five flights, their destinations
   flipping into place, and one button, in place of the route and the open game. */
html.has-tabs .boarding{grid-area:game;grid-column:1/-1;width:100%;max-width:560px;justify-self:center;margin:0 auto 24px}
html.has-tabs #view-play.boarding-open .stage,html.has-tabs #view-play.boarding-open section.landed,html.has-tabs #view-play.boarding-open .flyer,html.has-tabs #view-play.boarding-open .friends-mini,html.has-tabs #view-play.boarding-open .route,html.has-tabs #view-play.boarding-open #securestatus,html.has-tabs #view-play.boarding-open #securestatus+button{display:none}
.dep-board{padding:18px 18px 16px;border:1px solid var(--line);border-radius:16px;background:var(--board);box-shadow:0 18px 44px rgba(0,0,0,.45)}
.dep-board-top{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;font:500 11px var(--mono);letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.boarding .flap{margin:0 0 18px;font-size:28px}
.dep-board-head,.dep-board-row{display:grid;grid-template-columns:52px minmax(0,1fr) 40px 96px;align-items:center;gap:8px}
.dep-board-head{padding:0 0 8px;font:500 10px var(--mono);letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.dep-board-head span:last-child,.dep-board-row .bb-status{justify-self:end}
html.has-tabs .dep-board-row{padding:11px 0;border-top:1px solid var(--panel);color:var(--ink);text-decoration:none;font:500 13px var(--mono)}
html.has-tabs .dep-board-row:hover{background:var(--panel);text-decoration:none}
.bb-code{font-weight:700;letter-spacing:1px;color:var(--game)}
.bb-dest{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-gate{color:var(--muted)}
.bb-status{font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
.bb-status.now{padding:3px 7px;border-radius:4px;background:var(--ink);color:var(--navy);font-weight:700;animation:board-blink 1.6s steps(1) infinite}
.boarding-fields{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:8px 28px;margin:4px 0 0;padding-top:14px;border-top:1px solid var(--panel)}
.boarding-fields dt{font:500 10px var(--mono);letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.boarding-fields dd{margin:3px 0 0;font:700 18px var(--mono);color:var(--ink)}
html.has-tabs .boarding .boarding-go{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin:14px 0 0;border:0;border-radius:12px;box-shadow:none;font:800 18px 'Archivo',sans-serif}
.boarding-note{margin:12px 0 0;text-align:center;font-size:13px;color:var(--muted)}
@media (max-width:760px){html.has-tabs .boarding{margin:0 auto 16px}.dep-board{padding:16px 14px 14px}.boarding .flap{font-size:22px;margin-bottom:14px}.dep-board-head,.dep-board-row{grid-template-columns:40px minmax(0,1fr) 26px 82px;gap:6px}html.has-tabs .dep-board-row{padding:10px 0;font-size:12px}.bb-status{font-size:10px}}
@media (prefers-reduced-motion:reduce){.bb-status.now{animation:none}}

/* Sign in sits in the top bar as an outline button, so the game, not the account, is the first thing the eye lands on. */
html.has-tabs #headersignin{border:1px solid var(--line);background:transparent;color:var(--ink);box-shadow:none}

/* Touchdown (shell.js): the plane bumps down on its stop, the stop pulses, and a short note gives the miles. */
html.has-tabs .route-plane.landing svg{animation:touchdown .8s cubic-bezier(.3,1.4,.5,1)}
@keyframes touchdown{0%{transform:translateX(-10px)}40%{transform:translateX(3px)}70%{transform:translateX(-1px)}100%{transform:none}}
html.has-tabs .route-touch{position:absolute;z-index:0;top:73px;left:calc(16px + (100% - 32px) * (var(--i) + .5) / 5);width:44px;height:44px;translate:-50% -50%;border-radius:50%;border:2px solid currentColor;pointer-events:none;animation:touch-pulse 1.2s ease-out forwards}
@keyframes touch-pulse{0%{opacity:.9;scale:.4}100%{opacity:0;scale:1.8}}
.landing-toast{position:fixed;z-index:40;left:50%;top:76px;translate:-50% -16px;display:flex;align-items:center;gap:8px;margin:0;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font:600 14px 'Archivo',sans-serif;white-space:nowrap;box-shadow:0 10px 30px rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .25s,translate .35s cubic-bezier(.3,1.3,.5,1)}
.landing-toast.show{opacity:1;translate:-50% 0}
.landing-toast b{padding:2px 7px;border-radius:5px;color:var(--navy);font:700 11px var(--mono);letter-spacing:1px}
@media (max-width:760px){html.has-tabs .route-touch{top:67px;left:calc(10px + (100% - 20px) * (var(--i) + .5) / 5)}.landing-toast{top:66px}}
@media (prefers-reduced-motion:reduce){html.has-tabs .route-plane.landing svg,html.has-tabs .route-touch{animation:none}.landing-toast{transition:opacity .2s}}

/* Quieter game cards: the flight code stays (it matches the route); the stacked labels and photo badges go. */
html.has-tabs .stage .photo>.badge,html.has-tabs .stage .animalart>.badge,html.has-tabs .stage .meta .dot,html.has-tabs #flight-ord .meta>span:last-child{display:none}
html.has-tabs .stage .card .meta>span:first-child,html.has-tabs .stage .rareintro .eyebrow,html.has-tabs #flight-dbl .meta>span:first-child,html.has-tabs #flight-ord .meta>span:first-child{font-size:0;letter-spacing:0}
html.has-tabs .stage .meta,html.has-tabs .stage .rareintro .eyebrow{margin-bottom:10px}

/* Give up is a quiet link (it still asks before revealing); the connection line and Reconnect show only when offline or after an error. */
html.has-tabs .give-up-area{margin-top:22px;padding-top:0;border-top:0}
html.has-tabs .give-up-area p{display:none}
html.has-tabs .give-up-area .give-up-button{min-height:44px;padding:0;border:0;background:none;color:var(--muted);font:500 13px 'Archivo',sans-serif;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
html.has-tabs .give-up-area .give-up-button:hover:not(:disabled){background:none;color:var(--ink)}
html.has-tabs #view-play.is-online #securestatus,html.has-tabs #view-play.is-online #securestatus+button{display:none}

/* Arrivals: today's board first; the sign-in prompt, actions and fine print follow it. The periods are one compact switch. */
html.has-tabs .leaderboard>#leaderboardmessage{order:30;font-size:12px;color:var(--muted);margin-top:14px;padding:0;border:0}
html.has-tabs .leaderboard>#leaderboardauth{order:12;margin-top:18px}
html.has-tabs .leaderboard>.leaderboard-actions{order:14;margin-top:10px;font-size:13px;color:var(--muted)}
html.has-tabs .leaderboard>.leaderboard-actions{align-items:center;gap:10px 14px;flex-wrap:wrap}
html.has-tabs .leaderboard>.leaderboard-actions>#leaderboardrefresh{flex:none;width:auto;min-height:36px;padding:6px 12px;font-size:12px}
html.has-tabs .leaderboard>.leaderboard-actions #leaderboardsavestatus{font-size:13px;color:var(--muted)}
html.has-tabs .leaderboard>.meta{display:none}
html.has-tabs .leaderboard>.sticker-filters{display:flex;flex-wrap:nowrap;gap:2px;margin:6px 0 10px;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--board)}
html.has-tabs .leaderboard>.sticker-filters button{flex:1 1 0;min-width:0;margin:0;padding:8px 4px;border:0;border-radius:8px;background:none;color:var(--muted);font:600 13px 'Archivo',sans-serif;white-space:nowrap;box-shadow:none}
html.has-tabs .leaderboard>.sticker-filters button[aria-pressed=true]{background:var(--ink);color:var(--navy)}

/* The trip's last landing gets a bigger note. */
.landing-toast.big{padding:13px 20px;font-size:16px}

/* Who am I? starts on its clues: the placeholder art shows only once the animal is revealed. */
html.has-tabs .stage .animalart:not(.revealed){display:none}
html.has-tabs .stage>.grid>#flight-ani.is-open:has(>.animalart:not(.revealed)){grid-template-columns:minmax(0,1fr)}
html.has-tabs .stage>.grid>#flight-ani.is-open:has(>.animalart:not(.revealed))>.cardbody{grid-column:1}

/* Desktop, nothing in the side column (signed out): the open game and the Trip complete card centre in the full width. */
@media (min-width:761px){
 html.has-tabs #view-play:not(:has(.flyer:not([hidden]))):not(:has(.friends-mini:not([hidden]))){grid-template-columns:minmax(0,1fr) 0;column-gap:0}
 html.has-tabs #view-play:not(:has(.flyer:not([hidden]))):not(:has(.friends-mini:not([hidden]))) :is(.stage,section.landed){width:100%;max-width:980px;justify-self:center}
}

/* When a country or animal game ends, the answer stands out in its feedback line. */
html.has-tabs :is(#placefeedback,#animalfeedback).game-over{font-size:18px;font-weight:800;color:var(--ink)}

/* The field journal: a world map of the countries found, then the places by region. */
.bottom>.journal{grid-column:1/-1}
.journal-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.journal-head h3{margin:0}
.journal-count{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#e0ae3f}
.journal-map{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:1000/451;margin:16px 0 4px;border-radius:10px;background:var(--board);touch-action:manipulation}
.journal-land path{fill:#2c3039;stroke:var(--board);stroke-width:.6;stroke-linejoin:round;transition:fill .3s}
.journal-dots circle{fill:#2c3039;stroke:none}
.journal-dots .journal-ring{fill:none;stroke:none}
.journal-map .is-seen{fill:#5b6170}
.journal-map .is-found{fill:#e0ae3f}
.journal-map .is-latest{fill:#ffe08a}
.journal-dots .journal-ring.is-found,.journal-dots .journal-ring.is-latest{fill:none;stroke:#e0ae3f;stroke-width:1.4;opacity:.8}
.journal-dots .journal-ring.is-seen{fill:none;stroke:#5b6170;stroke-width:1.2}
.journal-map [data-code]{cursor:default}
@media (prefers-reduced-motion:reduce){.journal-land path{transition:none}}
.journal-hover{min-height:1.4em;margin:0;font-family:var(--mono);font-size:12px;color:var(--ink)}
.journal-note{margin:4px 0 12px;color:var(--muted);max-width:65ch}
.journal-regions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.journal-region{border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:12px;color:var(--muted)}
.journal-region b{color:var(--ink);font-variant-numeric:tabular-nums}
.journal-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px 24px}
.journal-group h4{margin:0 0 6px;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.journal-group ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.journal-entry{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:7px 0;border-bottom:1px solid var(--line)}
.journal-name{font-weight:700;color:var(--ink)}
.journal-date{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.journal-badge{font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#e0ae3f;border:1px solid #e0ae3f66;border-radius:4px;padding:1px 5px}
.journal-badge.is-count{background:#e0ae3f;color:var(--board);border-color:#e0ae3f;font-weight:700}
.journal-entry.is-seen .journal-name{color:var(--muted);font-weight:500}

/* The field guide: a compact grid of photo tiles; tapping one opens its page in a dialog. */
.guide-controls{display:grid;gap:6px;margin:12px 0}.guide-controls[hidden],.guide-paging[hidden],.guide-paging button[hidden]{display:none}
.guide-controls label{font-size:13px;font-weight:700}.guide-controls input{box-sizing:border-box;width:100%;max-width:420px;min-height:44px}
.guide-filter{color:var(--ink);cursor:pointer;font:inherit}.guide-filter[aria-pressed="true"]{background:var(--ink);color:var(--board)}
.guide-filter:focus-visible{outline:2px solid #e0ae3f;outline-offset:2px}
.guide-paging{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:12px}.guide-paging p{font-size:13px;color:var(--muted);margin:0}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.guide-tile{position:relative;display:block;min-width:0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel-high);color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.guide-tile:focus-visible{outline:2px solid #e0ae3f;outline-offset:2px}
.guide-photo{aspect-ratio:1;background:var(--board);overflow:hidden}
.guide-photo img,.guide-detail-photo img{display:block;width:100%;height:100%;object-fit:cover}
.guide-photo.is-missing img,.guide-detail-photo.is-missing img{display:none}
.guide-tile-name{display:block;padding:6px 8px 7px;font-size:13px;font-weight:700;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guide-tile-count{position:absolute;top:6px;right:6px;padding:1px 6px;border-radius:4px;background:#e0ae3f;color:var(--board);font-family:var(--mono);font-size:11px;font-weight:700}
.guide-tile.is-seen img{filter:grayscale(1);opacity:.55}
.guide-tile.is-seen .guide-tile-name{color:var(--muted);font-weight:500}
@media (max-width:560px){.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.guide-tile-name{font-size:12px;padding:5px 6px 6px}}
.guide-detail{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);overflow:auto}
.guide-detail::backdrop{background:rgba(0,0,0,.6)}
/* A guest's quiet offer to join the standings, on the Trip complete card (dist/join-prompt.js). */
.landed-join{margin:12px 0 0;font-size:14px;color:var(--muted)}
.landed-join[hidden]{display:none}
.landed-join .linklike{display:inline;min-height:0;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
html.has-tabs section.landed.slim .landed-join{display:none}
.guide-detail{position:fixed}
.guide-detail-close{position:absolute;top:10px;right:10px;z-index:1;background:var(--navy-glass);backdrop-filter:blur(4px)}
#guidedetailbody{display:grid;gap:8px;padding:0 18px 18px}
.guide-detail-photo{margin:0 -18px 6px;aspect-ratio:4/3;background:var(--board);overflow:hidden}
.guide-detail-photo.is-seen img{filter:grayscale(1);opacity:.7}
.guide-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.guide-head h2{margin:0;font-size:22px}
.guide-group{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.guide-tags{display:flex;flex-wrap:wrap;gap:6px}
.guide-facts{margin:2px 0 0;padding:0;list-style:none;display:grid;gap:6px;font-size:14px;line-height:1.45}
.guide-facts li{font-style:italic}
.guide-facts li::before{content:'“'}.guide-facts li::after{content:'”'}
.guide-credit{margin:4px 0 0;font-size:11px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.guide-credit a{color:var(--muted)}
/* Closed mid-detour: only the heading and the note show. */
.journal.is-locked .journal-map,.journal.is-locked .journal-hover,.journal.is-locked .journal-regions,.journal.is-locked .journal-list,.journal.is-locked .guide-grid{display:none}
.journal.is-locked .journal-count{color:var(--muted)}

/* The gate room (dist/gate-room.js): before the day's first move, the boarding board hangs on the wall of a pixel-art terminal,
   beside a window onto your gate. Hard pixel frames and stepped shadows so the board looks mounted, not pasted on. */
html.has-tabs .gate-room{grid-area:game;grid-column:1/-1;position:relative;width:100%;max-width:1180px;justify-self:center;margin:0 auto 24px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--board)}
.gate-room-canvas{display:block;margin:0 auto;image-rendering:pixelated;image-rendering:crisp-edges}
html.has-tabs .gate-room .boarding{position:absolute;margin:0;max-width:none}
.gate-room .dep-board{position:relative;border:4px solid #2a2f3c;border-radius:0;outline:2px solid #000;box-shadow:6px 6px 0 #00000080;background:#07080b}
.gate-room .dep-board::before,.gate-room .dep-board::after{content:"";position:absolute;top:-24px;width:6px;height:20px;background:#3a4152}
.gate-room .dep-board::before{left:18%}.gate-room .dep-board::after{right:18%}
html.has-tabs .gate-room .boarding .boarding-go{border:4px solid #ffb238;border-radius:0;background:#0b0c10;color:#ffb238;box-shadow:6px 6px 0 #000;font:700 17px var(--mono);letter-spacing:.1em;text-transform:uppercase}
html.has-tabs .gate-room .boarding .boarding-go:hover{background:#1a160c}
html.has-tabs .gate-room .boarding .boarding-go:active{transform:translate(4px,4px);box-shadow:2px 2px 0 #000}
.gate-room .boarding-note{color:#d6d2c6;text-shadow:0 1px 0 #000}
/* On a phone the room comes first and the board follows it in the page. */
html.has-tabs .gate-room.is-narrow{border-radius:0;border-left:0;border-right:0;background:none;overflow:visible}
html.has-tabs .gate-room.is-narrow .boarding{position:static;margin:16px 0 0}
.gate-room.is-narrow .boarding-note{color:var(--muted);text-shadow:none}
/* In the room the gate is on its own sign (and painted on the apron), so the board drops its per-flight gate column. */
.gate-room .dep-board-head,.gate-room .dep-board-row{grid-template-columns:44px minmax(0,1fr) 88px}
.gate-room .dep-board-head span:nth-child(3),.gate-room .dep-board-row .bb-gate{display:none}
/* On a phone the button comes straight after the room, then the board. */
html.has-tabs .gate-room.is-narrow .boarding{display:flex;flex-direction:column}
html.has-tabs .gate-room.is-narrow .boarding .boarding-go{order:-1;margin:0 0 14px}
.gate-room.is-narrow .boarding-note{order:-1;margin:-6px 0 22px}

/* The Hangar tab (dist/hangar.js): the aircraft at your gate, its paint and the airport outside, with a live preview. */
html.has-tabs main>.hangar{display:none}
html.has-tabs[data-view=hangar] main>.hangar{display:block}
.hangar{max-width:1100px;margin:0 auto 32px;padding:0 4px}
.hangar-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;margin-bottom:8px}
.hangar-intro p{max-width:56ch;color:var(--muted);line-height:1.5}
.hangar-status{min-height:1.4em;color:var(--ink)!important}
.hangar-window{border:4px solid #2a2f3c;outline:2px solid #000;box-shadow:6px 6px 0 #00000080;background:var(--board);line-height:0}
#hangarpreview{width:292px;height:375px;image-rendering:pixelated;image-rendering:crisp-edges}
.hangar-tabs{display:flex;gap:8px;margin-top:24px}
.hangar-tabs button{flex:1;min-width:0;min-height:44px;padding:10px 12px;border:2px solid var(--line);background:var(--panel);color:var(--ink);font:700 14px 'Archivo',sans-serif;cursor:pointer;box-shadow:3px 3px 0 #000}
.hangar-tabs button[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:var(--board)}
.hangar-tabs button:focus-visible,.hangar-panel:focus-visible{outline:3px solid #ffb238;outline-offset:3px}
.hangar-panel[hidden]{display:none}
.hangar-heading{display:flex;align-items:baseline;gap:10px;margin:28px 0 12px;font:800 20px 'Archivo',sans-serif}
.hangar-heading span{font:500 12px var(--mono);color:var(--muted);letter-spacing:.06em}
.hangar-planes{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px}
.hangar-airports{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.hangar-card{display:grid;gap:6px;align-content:start;min-width:0;padding:12px;border:2px solid var(--line);background:var(--panel);color:var(--ink);text-align:left;font:inherit;cursor:pointer;box-shadow:4px 4px 0 #000}
.hangar-card:hover:not(:disabled){border-color:var(--muted)}
.hangar-card:focus-visible{outline:3px solid #ffb238;outline-offset:2px}
.hangar-card:disabled{cursor:default}
.hangar-card.is-here{border-color:#ffb238;box-shadow:4px 4px 0 #000,0 0 0 1px #ffb238}
.hangar-card.is-locked{opacity:.78}
.hangar-card strong{font:700 15px 'Archivo',sans-serif}
.hangar-badge{width:100%;height:72px;object-fit:contain;image-rendering:pixelated;background:var(--board)}
.hangar-card.is-locked .hangar-badge,.hangar-card.is-locked .hangar-view{filter:grayscale(1) brightness(.6)}
.hangar-rarity{font:700 10px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.rarity-rare .hangar-rarity{color:#c9d1da}.rarity-epic .hangar-rarity{color:#f2c14e}.rarity-legendary .hangar-rarity{color:#8fd6e1}
.hangar-state{font:500 12px var(--mono);color:var(--muted)}
.hangar-state.is-here{color:#ffb238;font-weight:700}
.hangar-need{font-size:12px;line-height:1.4;color:var(--muted)}
.hangar-progress{height:6px;background:var(--board);border:1px solid var(--line)}
.hangar-progress span{display:block;height:100%;background:#ffb238}
.hangar-card small{font:500 11px var(--mono);color:var(--muted)}
.hangar-view{width:100%;height:84px;object-fit:cover;object-position:50% 46%;image-rendering:pixelated;background:var(--board)}
.hangar-paints{display:flex;flex-wrap:wrap;gap:10px}
.hangar-paint{display:grid;grid-template-columns:auto auto;grid-template-areas:"swatch name" "swatch state";gap:2px 10px;align-items:center;padding:10px 14px;border:2px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:4px 4px 0 #000}
.hangar-paint.is-here{border-color:#ffb238}
.hangar-paint.is-locked{opacity:.7}
.hangar-paint:disabled{cursor:default}
.hangar-paint:focus-visible{outline:3px solid #ffb238;outline-offset:2px}
.hangar-swatch{grid-area:swatch;width:22px;height:22px;border:2px solid #000}
.paint-original .hangar-swatch{background:linear-gradient(135deg,#f4f7fb 50%,#1aa3a8 50%)}
.paint-coastal .hangar-swatch{background:linear-gradient(135deg,#f4f7fb 50%,#3f8fc9 50%)}
.paint-sunset .hangar-swatch{background:linear-gradient(135deg,#f4f7fb 50%,#e0703c 50%)}
.paint-yellow .hangar-swatch{background:linear-gradient(135deg,#f4f7fb 50%,#c5a632 50%)}
.paint-green .hangar-swatch{background:linear-gradient(135deg,#f4f7fb 50%,#4e8c57 50%)}
.paint-midnight .hangar-swatch{background:linear-gradient(135deg,#9aa6c4 50%,#2c3566 50%)}
.hangar-paint strong{grid-area:name;font:700 14px 'Archivo',sans-serif}
.hangar-paint small{grid-area:state;font:500 11px var(--mono);color:var(--muted)}
@media (max-width:640px){.hangar-top{grid-template-columns:minmax(0,1fr)}.hangar-window{justify-self:center}#hangarpreview{width:195px;height:250px}.hangar-planes{grid-template-columns:repeat(2,minmax(0,1fr))}.hangar-airports{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* The browser greys disabled buttons; the one at your gate is disabled only because it is already chosen. */
html.has-tabs .hangar-card:disabled,html.has-tabs .hangar-paint:disabled{color:var(--ink);opacity:1}
html.has-tabs .hangar-card.is-locked:disabled,html.has-tabs .hangar-paint.is-locked:disabled{color:var(--muted);opacity:.78}
/* After the day: the Trip complete card hangs on the room's wall like the board, mounted the same way. */
html.has-tabs #view-play.all-landed .gate-room section.landed{position:absolute;margin:0;align-self:auto;display:flex;flex-direction:column;border:4px solid #2a2f3c;border-radius:0;outline:2px solid #000;box-shadow:6px 6px 0 #00000080;background:#07080b}
html.has-tabs .gate-room section.landed::before,html.has-tabs .gate-room section.landed::after{content:"";position:absolute;top:-24px;width:6px;height:20px;background:#3a4152}
html.has-tabs .gate-room section.landed::before{left:18%}html.has-tabs .gate-room section.landed::after{right:18%}
html.has-tabs #view-play.all-landed .gate-room section.landed .landed-flights{min-height:0;flex:none}
html.has-tabs .gate-room section.landed .primary{border-radius:0;box-shadow:4px 4px 0 #000}
html.has-tabs .gate-room section.landed .secondary{border-radius:0}
html.has-tabs #view-play.all-landed .gate-room.is-narrow section.landed{position:static;margin:16px 0 0}
/* In the room the route bar above already lists each flight's miles, so the card keeps the total, sharing and tomorrow. */
html.has-tabs .gate-room section.landed .landed-flights{display:none}
html.has-tabs #view-play.all-landed .gate-room section.landed .landed-top{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
html.has-tabs #view-play.all-landed .gate-room section.landed .landed-miles{text-align:left}
html.has-tabs .gate-room section.landed .landed-actions{flex-wrap:wrap}
html.has-tabs #view-play.all-landed .gate-room section.landed .landed-next{margin-top:12px}

/* Signed out: an invitation above the collection, which is shown in full but locked. */
.hangar-invite{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin-top:6px;padding:14px 16px;border:2px solid #ffb238;background:#14120c;box-shadow:4px 4px 0 #000}
.hangar-invite[hidden]{display:none}
.hangar-invite strong{display:block;font:800 17px 'Archivo',sans-serif;color:#ffb238}
.hangar-invite span{display:block;margin-top:2px;max-width:46ch;font-size:14px;line-height:1.45;color:var(--ink)}
.hangar-join{padding:10px 18px;border:3px solid #ffb238;background:#ffb238;color:#14120c;font:800 15px 'Archivo',sans-serif;cursor:pointer;box-shadow:3px 3px 0 #000}
.hangar-join:focus-visible{outline:3px solid var(--ink);outline-offset:2px}

/* Day five's wildcard: Price Check and Year Guess (dist/secure-game.js drawWild). */
.order-game .wild-intro{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--board)}
.order-game .wild-kicker{margin:0;font:700 11px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#ffb238}
.order-game .wild-intro h3{margin:0;font-size:22px}
.order-game .wild-intro p,.order-game .wild-rule{margin:0;line-height:1.5}
.order-game .wild-meta{color:var(--muted);font-size:13px}
.order-game .wild-actions{display:flex;flex-wrap:wrap;gap:10px}
.order-game .wild-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:4px 0 14px}
.order-game .wild-progress i{height:6px;border-radius:3px;background:var(--line)}
.order-game .wild-progress i.good,.order-game .wild-line.is-good .wild-p,.order-game .is-good.wild-points,.order-game .wild-how.is-good{background:none;color:var(--good)}
.order-game .wild-progress i.good{background:var(--good)}
.order-game .wild-progress i.near{background:#ffb238}.order-game .wild-progress i.miss{background:#e0705f}.order-game .wild-progress i.now{background:var(--ink)}
.order-game .wild-round{display:grid;gap:10px}
.order-game .wild-round-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.order-game .wild-where{font:700 12px var(--mono);letter-spacing:.1em;color:var(--muted)}
.order-game .wild-level{font:700 10px var(--mono);letter-spacing:.14em;padding:2px 7px;border:1px solid var(--line);border-radius:6px}
.order-game .wild-level.is-easy{color:var(--good)}.order-game .wild-level.is-medium{color:#ffb238}.order-game .wild-level.is-hard{color:#e0705f}.order-game .wild-level.is-practice{color:#ffb238;border-color:#ffb238}
.order-game .wild-count{margin-left:auto;font:500 12px var(--mono);color:var(--muted)}
.order-game .wild-round h3,.order-game .wild-last{margin:0;font-size:20px;line-height:1.3;text-wrap:balance}
.order-game .wild-form{display:flex;flex-wrap:wrap;gap:10px}.order-game .wild-form input{flex:1 1 180px;min-width:0;font:700 18px var(--mono)}
.order-game .wild-note{margin:0;color:var(--muted);font-size:13px;min-height:1em}
.order-game .wild-reveal{display:grid;gap:6px;margin:10px 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--board)}
.order-game .wild-reveal p{margin:0;line-height:1.45}
.order-game .wild-answer{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.order-game .wild-answer strong{font-size:22px}
.order-game .wild-chip{font:500 12px var(--mono);color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:2px 7px}
.order-game .wild-how.is-near,.order-game .wild-points.is-near,.order-game .wild-line.is-near .wild-p{color:#ffb238}
.order-game .wild-how.is-miss,.order-game .wild-points.is-miss,.order-game .wild-line.is-miss .wild-p{color:#e0705f}
.order-game .wild-points{font:700 14px var(--mono)}
.order-game .wild-why{color:var(--muted)}
.order-game .wild-source{font-size:13px}
.order-game .wild-line{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 10px;align-items:baseline;padding:8px 0;border-top:1px solid var(--line)}
.order-game .wild-line .wild-n{font:700 12px var(--mono);color:var(--muted)}.order-game .wild-line .wild-q{min-width:0}
.order-game .wild-line .wild-a{grid-column:2;font:500 12px var(--mono);color:var(--muted)}.order-game .wild-line .wild-p{grid-row:1;grid-column:3;font:700 13px var(--mono)}
.order-game .wild-done{margin:12px 0 0;font-weight:700}
.order-game .wild-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.order-game .wild-options button{display:grid;gap:2px;justify-items:start;text-align:left;min-height:64px;padding:12px 14px;white-space:normal}
.order-game .wild-options button strong{font-size:16px;line-height:1.25}.order-game .wild-options button span{font-size:12px;color:var(--muted)}
.order-game .wild-heights{margin:2px 0;padding-left:20px;font:500 13px var(--mono);color:var(--muted)}
.howto-wild{display:block;margin-top:6px;color:var(--muted)}

/* Wildcard reveals: the shared frame, with a distinct explanation for each game. */
.order-game .wild-price-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.order-game .wild-price-pair>div{min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px}
.order-game .wild-price-pair span,.order-game .wild-outsider>span,.order-game .wild-outsider small{display:block;color:var(--muted);font-size:12px}
.order-game .wild-price-pair strong{display:block;margin-top:4px;font:700 clamp(17px,4.5vw,24px) var(--mono);overflow-wrap:anywhere}
.order-game .wild-comparisons{list-style:none;padding:0;margin:8px 0;display:grid;gap:14px}
.order-game .wild-comparison-label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 10px;font-size:13px}
.order-game .wild-comparison-label strong{overflow-wrap:anywhere}.order-game .wild-comparison-label small{width:100%;color:var(--muted)}
.order-game .wild-comparison-rail{height:7px;margin-top:6px;border-radius:4px;background:var(--line);overflow:hidden}
.order-game .wild-comparison-rail i{display:block;height:100%;background:var(--muted)}
.order-game .is-winner .wild-comparison-rail i{background:var(--good)}
.order-game .wild-outsider{display:grid;gap:4px;border-left:3px solid var(--good);padding:10px 12px;background:var(--panel);border-radius:4px}
.order-game .wild-odd-group{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.order-game .wild-group-label{width:100%;font-size:12px;color:var(--muted)}
.order-game .wild-timeline{position:relative;height:52px;margin:6px 8px}
.order-game .wild-timeline:before{content:'';position:absolute;top:24px;left:0;right:0;height:4px;background:var(--line)}
.order-game .wild-time-window{position:absolute;top:18px;height:16px;background:#a5d8b744;border:1px solid var(--good);border-radius:3px}
.order-game .wild-time-guess,.order-game .wild-time-answer{position:absolute;width:3px;background:var(--ink);transform:translateX(-50%)}
.order-game .wild-time-guess{top:4px;height:24px}.order-game .wild-time-answer{top:24px;height:24px;background:var(--good)}
.order-game .wild-time-legend{display:grid;gap:4px;font-size:12px;color:var(--muted)}
.order-game .wild-time-legend .is-guess:before{content:'\25cf\20';color:var(--ink)}
.order-game .wild-time-legend .is-answer:before{content:'\25cf\20';color:var(--good)}
@media(max-width:650px){.order-game .wild-form input{flex:0 0 auto;min-height:48px}}

.order-game .wild-unit-picker{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:12px;color:var(--muted)}
.order-game .wild-unit-picker label{display:flex;align-items:center;gap:8px}.order-game .wild-unit-picker select{min-height:44px;background:var(--board);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px;font:inherit}
.order-game .wild-source-context,.order-game .wild-price-label{color:var(--muted);font-size:12px}
