/* The First Road (shared/road.ts, client/road.ts): a new trainer's hunt shows the fight alone, and what is still
   sealed waits in view as plates. <html data-road> lists the panels still sealed; everything here hangs off it, so the
   hunt's own layout never has to know. */

/* ---- Before the first catch: the fight, your first creature, nothing else ---- */
[data-road~="noteam"]:not([data-road~="autotab"]) #ptabs,
[data-road~="noteam"] #huntview > .lcol > :not(#teamlist),
/* (the tall-desktop rule in fit.css that puts the trainer card over the team is this strong) */
[data-road~="noteam"] #huntview#huntview .lcol > .panel.playercard:not(#teamlist),
[data-road~="noteam"] #combatlog,
/* The starter's card shows its grade and rolls from the start (Jonny 2026-11-22); only its moves wait. */
[data-road~="noteam"] #teamlist .slot.lead .movebar,
[data-road~="noteam"] #teamlist .slot.empty { display: none !important; }
[data-road~="noteam"] #teamlist .slot.lead { cursor: default; pointer-events: none; }

/* ---- Before the third catch: no Automation, no scene tools, no session bar, one hunt at a time ---- */
[data-road~="noauto"]:not([data-road~="autotab"]) #auto,
[data-road~="noauto"] #fieldtools,
[data-road~="noauto"] #session,
[data-road~="noauto"] #suggest,
[data-road~="noauto"] #fieldhead .facts,
[data-road~="noauto"] #fieldhead .seg,
[data-road~="noauto"] #fieldhead .hc-fold,
[data-road~="noauto"] #fieldhead .hc-x { display: none !important; }
/* The crumb is a way to the Map, which is sealed until its step. */
[data-road~="on"]:is([data-road~="noauto"], [data-road~="nochat"]) #fieldhead .crumb { pointer-events: none; }

/* ---- Until chat opens: its panel holds the road ahead ---- */
[data-road~="nochat"] #chat,
[data-road~="nochat"] #chatdock { display: none !important; }
.tabs2 .road-h { margin: 0; padding: 2px 4px; flex: 1; }
.road-plates { display: grid; gap: 7px; padding: 8px 6px 6px; align-content: start; }
.road-plate { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 6px 12px; border: 1px dashed color-mix(in srgb, var(--ink, #2a1c10) 45%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--ink, #2a1c10) 6%, transparent); color: var(--ink, #2a1c10); font: inherit; text-align: left; cursor: pointer; }
.road-plate:hover, .road-plate:focus-visible { background: color-mix(in srgb, var(--ink, #2a1c10) 12%, transparent); border-style: solid; }
.road-plate svg { width: 14px; height: 14px; flex: none; opacity: .6; }
.road-plate b { font-weight: 600; font-variant: small-caps; letter-spacing: .07em; font-size: 15px; }
.road-plate span { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--rg-rubric, #7a2e12); white-space: nowrap; }
/* Short windows: the plates tighten so all eight fit without a scroll. */
@media (max-height: 640px) { .road-plates { gap: 4px; padding-top: 4px; } .road-plate { min-height: 30px; padding: 3px 10px; } .road-plate b { font-size: 14px; } }

/* ---- The top bar ---- */
/* (The More menu hangs from the bar's right end, as the theme has it: the road's bar is the full one since
   2026-11-22, with More at its right. The first road's bar was Hunt, Creatures and More, and opened it rightwards;
   kept through the tutorial, that ran the menu off the right edge of every window under 1200 px wide.) */
.appbar button.nextunlock { border: 0; font: inherit; font-size: 12.5px; cursor: pointer; }
.appbar button.nextunlock:hover { box-shadow: inset 0 0 0 1px rgba(240, 196, 90, .85); }
.menu > button.locked { display: flex; width: 100%; cursor: pointer; }
.menu > button.locked:hover { background: none; opacity: .95; }
.menuwrap.gone { display: none; }

/* ---- The goal's tab glows until it is visited ---- */
@keyframes road-glow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(240, 196, 90, .35), 0 0 0 0 rgba(240, 196, 90, 0); } 50% { box-shadow: inset 0 0 0 1px rgba(240, 196, 90, .95), 0 0 12px 1px rgba(240, 196, 90, .5); } }
.nav > a.road-glow, .nav .navmore > button.road-glow, .bnav a.road-glow { animation: road-glow 1.8s ease-in-out infinite; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .nav > a.road-glow, .nav .navmore > button.road-glow, .bnav a.road-glow { animation: none; box-shadow: inset 0 0 0 1px rgba(240, 196, 90, .9); } }
/* The area the Map goal points at (client/map.ts roadArea). */
.mnode.road-go .ring { animation: road-glow 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .mnode.road-go .ring { animation: none; box-shadow: inset 0 0 0 1px rgba(240, 196, 90, .9); } }
.menu > a.road-goal { box-shadow: inset 3px 0 0 rgba(240, 196, 90, .95); }

/* ---- The hunt card's goal row ---- */
.hc-next.hc-road .goal { color: inherit; }
.hc-next.hc-road .goal b { font-variant: small-caps; letter-spacing: .05em; margin-right: 4px; }
.hc-next.hc-road .btn { text-decoration: none; }
/* A catching goal's button is the creature's face and "Catch": with its name the row ran past a 340 px card. */
.hc-next.hc-road .hc-nm { display: none; }
/* The narrowest phones show a next-catch button as its creature's picture alone (fit.css); a goal's "Go" has no picture, so it keeps its word. */
@media (max-width: 340px) and (max-height: 720px) {
  [data-theme] #huntview .huntcard .hc-next.hc-road a.btn { font-size: 12px; padding: 0 9px; }
}

/* ---- Phones: sealed tabs keep their place under a small lock ---- */
.bnav button.sealed, .ptabs button.sealed { position: relative; opacity: .45; }
/* Jonny 2026-11-22: the 11 px lock read as a grey dot. The tab dims and the lock is twice the size, bright. */
.bnav button.sealed { opacity: 1; }
.bnav button.sealed > :not(.lk) { opacity: .4; }
.bnav button.sealed .lk { position: absolute; top: 2px; right: calc(50% - 26px); z-index: 1; line-height: 0; color: #f3e2b3; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.bnav button.sealed .lk svg { width: 22px; height: 22px; }
.ptabs button.sealed .lk { margin-left: 4px; line-height: 0; vertical-align: -1px; }
.ptabs button.sealed .lk svg { width: 10px; height: 10px; }

/* Jonny 2026-11-22: team traits are one more thing to read in the first minutes: hidden while the tutorial runs
   (trainers further down the road keep the panel they had). */
[data-road~="noteam"] #huntview .tf { display: none !important; }

/* Jonny 2026-11-22: on phones the fighter card's "Fighting" tag sat on the hunt frame. A little space under the field. */
@media (max-width: 760px) { [data-road~="on"] #teamlist .slot.lead { margin-top: 14px; } }

/* Jonny 2026-11-22: a new objective gets its own look so it reads as new: a gold frame, a banner, a small pop. */
.tut-card.tut-obj { box-shadow: 0 0 0 3px #c9a227, 0 0 18px rgba(240, 196, 90, .55), 0 6px 18px rgba(0, 0, 0, .45); animation: tut-obj-pop .45s ease-out; }
.tut-card.tut-obj .tut-top b { font-size: 19px; }
.tut-objhd { display: inline-block; margin: -2px 0 4px; padding: 2px 8px; border-radius: 4px; background: #7a2e12; color: #f6ead0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@keyframes tut-obj-pop { 0% { opacity: 0; box-shadow: 0 0 0 3px #c9a227, 0 0 40px rgba(240, 196, 90, 1); } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tut-card.tut-obj { animation: none; } }

/* The objective's box: empty until done, then ticked (Jonny 2026-11-22). */
.tut-top:has(.tut-chk) { display: flex; align-items: center; gap: 8px; }
.tut-chk { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #7a2e12; background: #fffaf0; }
.tut-chk.done { border-color: #3f7a2a; background: #4c9a32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* The objective's reward (Jonny 2026-11-22): shown while open, gold and "+" once paid. */
.tut-reward { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; padding: 4px 8px; border-radius: 6px; background: rgba(122, 46, 18, .08); font-size: 13px; color: #5a3a1a; }
.tut-reward span { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; font-weight: 700; color: #7a2e12; }
.tut-reward img { width: 18px; height: 18px; image-rendering: pixelated; }
.tut-reward.got { background: rgba(201, 162, 39, .25); }
.tut-reward.got b { color: #6b4e00; }

/* Jonny 2026-11-22: during the three guided catches the hunt card ("Snowpup Lv 1") covered wilds near the top of the
   field. The tip card already names the objective, so the hunt card waits until the catches are done. */
[data-road~="catching"] #fieldhead { display: none !important; }

/* The tick lands with a small pop, and Claim glows so it reads as the next step (Jonny 2026-11-22). */
.tut-chk.done { animation: tut-tick .5s ease-out; }
@keyframes tut-tick { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.tut-claim { box-shadow: 0 0 0 2px #f0c45a, 0 0 12px rgba(240, 196, 90, .7); animation: claim-pulse 1.4s ease-in-out infinite; }
/* Claim pulses gold so it reads as the thing to tap (Jonny 2026-11-22). */
@keyframes claim-pulse { 0%, 100% { box-shadow: 0 0 0 2px #f0c45a, 0 0 6px rgba(240, 196, 90, .4); scale: 1; } 50% { box-shadow: 0 0 0 3px #ffd970, 0 0 20px 4px rgba(240, 196, 90, .85); scale: 1.05; } }
/* A gold glow didn't show on the cream card (Jonny 2026-11-22): a red arrow beside Claim nudges toward it instead.
   Its own element: the codex theme clips a button to its frame (clip-path), so nothing drawn on the button shows outside it. */
.tut-arrow { flex: none; width: 26px; height: 26px; margin-left: auto; margin-right: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h10V4l9 8-9 8v-5H3z' fill='%23a8321f' stroke='%23fff3d6' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; animation: claim-arrow .8s ease-in-out infinite; }
@keyframes claim-arrow { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .tut-claim, .tut-arrow { animation: none; } }
@media (prefers-reduced-motion: reduce) { .tut-chk.done { animation: none; } }

/* The guided catches go through the Map (Jonny 2026-11-22): its button glows, then the next creature's Hunt here. */
[data-road~="tomap"] #huntview a.ft[data-key="map"] { animation: road-glow 1.8s ease-in-out infinite; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { [data-road~="tomap"] #huntview a.ft[data-key="map"] { animation: none; box-shadow: 0 0 0 2px rgba(240, 196, 90, .9); } }
/* The guided catches on the Map: a bobbing "Tap here" over the meadow, then over the next creature's Hunt here. */
[data-road~="tomap"] #bnav a[href="#/map"] { animation: road-glow 1.8s ease-in-out infinite; border-radius: 6px; }
/* Over every other area, whatever the label fitter gives them or it (client/map.ts fitLabels sets z-index on the
   node itself, which outranked this: on a small map the Glade's name sat on the Meadow's ring, "Tap here" over it). */
.mnode.road-tap { z-index: 9 !important; }
.road-tapwrap { position: relative; display: inline-block; flex: none; }
/* A glow is clipped on a themed button, so Hunt here pulses in and out like Claim. */
.hcard .btn.road-go { animation: claim-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hcard .btn.road-go { animation: none; } }
/* The bubble over Hunt here is its own element: the codex theme clips a button to its frame. */
.mnode.road-tap::before, .road-tapbub { content: 'Tap here'; font-style: normal; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #f0c45a; color: #2a1a0c; font: 700 12px/1 system-ui, sans-serif; letter-spacing: 0; text-transform: none; padding: 5px 9px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; animation: road-bob 1s ease-in-out infinite; z-index: 5; }
@keyframes road-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .mnode.road-tap::before, .road-tapbub { animation: none; } }
/* Toasts ("New species: Snowpup") keep clear of the tutorial's card. A phone: at the top, the card sits low. A
   computer: the throw step's card is at the foot of the scene, so its toasts go to the scene's top right, clear of
   the hunt card too; the last steps' cards are at the top (the Shop tab), so theirs are back at the foot. */
[data-road~="toastup"] .toasts { bottom: auto; top: 64px; }
@media (min-width: 761px) {
  [data-road~="toastup"] .toasts { left: auto; right: 340px; transform: none; align-items: flex-end; }
  /* A tablet's tabs have a row of their own just there, the Map tab and its "Tap here" among them: lower, at the scene's right. */
  @media (max-width: 1200px) { [data-road~="toastup"]:not([data-road~="tutlate"]) .toasts { top: 124px; right: 16px; } }
  [data-road~="toastup"][data-road~="tutlate"] .toasts { top: auto; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); align-items: center; }
}
/* The Map's unlock: the locked tab glows gold, and a tap lifts the lock off before the Map opens. */
.bnav button.road-unlock { animation: road-glow 1.8s ease-in-out infinite; border-radius: 6px; }
.bnav button.road-unlock .lk { color: #ffd970; filter: drop-shadow(0 0 4px rgba(240, 196, 90, .9)); animation: road-bob 1s ease-in-out infinite; }
.bnav button.road-unlock.going > :not(.lk) { opacity: 1; transition: opacity .4s; }
.bnav button.road-unlock.going .lk { animation: lock-open .7s ease-out forwards; }
@keyframes lock-open { 0% { transform: none; opacity: 1; } 35% { transform: translateY(-6px) rotate(-18deg) scale(1.3); opacity: 1; } 100% { transform: translateY(-22px) rotate(-30deg) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bnav button.road-unlock, .bnav button.road-unlock .lk { animation: none; } }
/* The guided catches on a phone: the three caught creatures sit in one row under the fighter, so the objective card
   below them never covers the third (Jonny 2026-11-22). Their roll pills wait until the team opens. */
@media (max-width: 760px) {
  [data-road~="noteam"] #teamlist .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  [data-road~="noteam"] #teamlist .slot.bench { grid-template-columns: 28px minmax(0, 1fr); gap: 5px; padding: 4px 6px 5px; }
  [data-road~="noteam"] #teamlist .slot.bench :is(img, .walker) { width: 28px; height: 28px; }
  /* Name and grade only (Jonny 2026-11-22): the talent and quality pills wait until the team opens. */
  [data-road~="noteam"] #teamlist .slot.bench :is(.rpills > :not(.gr), .r1 .lv) { display: none; }
  [data-road~="noteam"] #teamlist .slot.bench .r1 .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* The tutorial's auto step (Jonny 2026-11-22): the Auto tab alone opens, and Automation shows just its Throw at line. */
[data-road~="autotab"] #auto .advs,
[data-road~="autotab"] #auto .grp.now > :not(:first-child) { display: none !important; }
/* The meadow objective: a tick box per creature. */
.tut-checks { display: grid; gap: 4px; }
.tut-card.tut-obj .tut-checks .tut-top b { font-size: 17px; }
/* Back to the Map for the next one: a "Tap here" over the bottom bar's Map tab too. */
@media (max-width: 760px) {
  [data-road~="tomap"] #bnav a[href="#/map"]::before, [data-road~="tomap"] #bnav button.road-unlock[data-id="map"]::before { content: 'Tap here'; position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); background: #f0c45a; color: #2a1a0c; font: 700 12px/1 system-ui, sans-serif; padding: 5px 9px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; animation: road-bob 1s ease-in-out infinite; z-index: 5; }
}
/* The tutorial's free Mythril Seals: a green line on the card. */
.bs-free { font: 700 12.5px var(--sans); color: #2f6a1f; }
/* On a phone's seal card the free line gets its own row, and "Buy for 0 coins" the full width (the total says 0 anyway). */
@media (max-width: 760px) {
  [data-theme="codex"] .bs-card:has(.bs-free) { grid-template-areas: "art name name" "art stat stat" "quiet quiet quiet" "have have price" "free free free" "step step step" "go go go"; }
  [data-theme="codex"] .bs-card:has(.bs-free) > .bs-free { grid-area: free; }
  [data-theme="codex"] .bs-card:has(.bs-free) > .bs-total { display: none; }
  [data-theme="codex"] .bs-card:has(.bs-free) > .bs-go { justify-self: stretch; width: 100%; }
}
/* Seven tabs on the First Road's bar: a locked tab is a button, whose default side padding cut "Kinstead" and "Creatures" short. */
@media (max-width: 760px) { .bnav button { padding-left: 0; padding-right: 0; } }
/* A short phone: the objective card drops its header and dots so it fits between the team and the bottom bar, then
   its reward row and some padding (client/tutorial.ts place). */
.tut-card.tut-compact .tut-objhd, .tut-card.tut-compact .tut-acts:not(:has(button)) { display: none; }
.tut-card.tut-compact .tut-reward { margin-bottom: 0; }
.tut-card.tut-compact:has(.tut-acts button) .tut-reward { margin-bottom: 8px; }
.tut-card.tut-tight { padding-top: 8px; padding-bottom: 8px; }
.tut-card.tut-tight .tut-reward { display: none; }
.tut-card.tut-tight p { margin: 2px 0 4px; }
.tut-card.tut-tight .tut-acts { margin-top: 2px; }
/* The same phones: the field gives up some height while the tutorial runs (public/fit.css stops at 176 px, which
   left no room under the team for the card on a screen under 676 px tall, an ad's in-app browser among them). */
@media (max-width: 760px) { [data-road~="noteam"] #huntview { --fieldh: clamp(120px, calc(100dvh - 500px), 380px); } }
/* And under 600 px tall the Map tab's "Tap here" has no room over the bar: the tab's glow points alone. */
@media (max-width: 760px) and (max-height: 600px) {
  [data-road~="tomap"] #bnav a[href="#/map"]::before, [data-road~="tomap"] #bnav button.road-unlock[data-id="map"]::before { display: none; }
}
/* A computer on the First Road (Jonny 2026-11-22): the top bar keeps its tabs, locked ones dimmed under a lock. */
[data-theme="codex"] .nav > button.sealed { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 33px; padding: 0 13px; border: 0; border-radius: 6px 6px 0 0; font: 700 15.5px/1 var(--pixel); letter-spacing: .03em; color: var(--ink); background: url(themes/codex/vellum.svg) 0 0 / 300px, linear-gradient(180deg, #a8946f, #978260); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; white-space: nowrap; }
.nav > button.sealed > :not(.lk) { opacity: .45; }
.nav > button.sealed .lk { line-height: 0; color: #3a2612; }
.nav > button.sealed .lk svg { width: 14px; height: 14px; display: block; }
.nav > button.road-unlock { animation: road-glow 1.8s ease-in-out infinite; }
.nav > button.road-unlock .lk { color: #8a5a00; animation: road-bob 1s ease-in-out infinite; }
.nav > button.road-unlock.going > :not(.lk) { opacity: 1; }
.nav > button.road-unlock.going .lk { animation: lock-open .7s ease-out forwards; }
[data-road~="tomap"] .nav [data-nav="map"] { animation: road-glow 1.8s ease-in-out infinite; }
@media (min-width: 761px) {
  [data-road~="tomap"] .nav [data-nav="map"]::before { content: 'Tap here'; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #f0c45a; color: #2a1a0c; font: 700 12px/1 system-ui, sans-serif; letter-spacing: 0; padding: 5px 9px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; animation: road-bob 1s ease-in-out infinite; z-index: 60; }
}
/* A sealed panel's stand-in: a lock and what opens it, in place of the road's list. */
.road-lockpanel { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 160px; padding: 24px 12px; text-align: center; color: var(--ink, #2a1c10); opacity: .75; }
.road-lockpanel svg { width: 34px; height: 34px; }
.road-lockpanel b { font: 700 18px var(--pixel, inherit); }
.road-lockpanel span { font-size: 14px; }
.road-h .lk { display: inline-block; line-height: 0; vertical-align: -1px; margin-left: 4px; }
.road-h .lk svg { width: 13px; height: 13px; }
/* Locked links fold into More like open ones (client/ui.ts fitNav). */
.nav > button.sealed.ovf { display: none !important; }
.appbar.nav-measure .nav > button.sealed.ovf { display: inline-flex !important; }
/* Locked lines in the More dropdown: the live line (icon, name) dimmed, a lock, and when it opens. */
.menu .locked.mlock { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; font-size: 15px; opacity: 1; cursor: pointer; text-align: left; }
.menu .locked.mlock > :is(img.ui-ic, svg:not(.lk svg)) { width: 24px; height: 24px; flex: none; filter: grayscale(1); opacity: .45; image-rendering: pixelated; }
.menu .locked.mlock > span { opacity: .55; }
.menu .locked.mlock .lk { line-height: 0; opacity: .7; }
.menu .locked.mlock .lk svg { width: 12px; height: 12px; }
.menu .locked.mlock small { margin-left: auto; padding-left: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: .75; }

/* ---- A computer on the First Road (Jonny 2026-11-22): the live hunt screen from the start, nothing missing, the
   panels that wait each under a lock. The Team / Trainer tabs and the trainer card show locked; the hunt card shows
   with its hunts; the log and the session tracker stay away. A tablet (761 to 1200 px) has the same left column. ---- */
@media (min-width: 761px) {
  html[data-road~="noteam"] #huntview#huntview #ptabs#ptabs { display: grid !important; }
  html[data-road~="noteam"] #huntview#huntview .lcol > #playercard#playercard { display: block !important; }
  /* Not on a short window (a phone on its side): the locked panel took the column, and the team was cut off under it. */
  @media (max-height: 560px) { html[data-road~="noteam"] #huntview#huntview .lcol > #playercard#playercard { display: none !important; } }
  [data-road~="catching"] #fieldhead { display: block !important; }
  [data-road~="noauto"] #fieldhead :is(.facts, .seg) { display: flex !important; }
  /* A locked panel: its insides hidden under a lock, its name, and a word on when it opens. */
  [data-road~="noteam"] #huntview .lcol > .panel.playercard { position: relative; min-height: 120px; pointer-events: none; }
  [data-road~="noteam"] #huntview .lcol > .panel.playercard > * { visibility: hidden; }
  [data-road~="noteam"] #huntview .lcol > .panel.playercard::after { content: 'Trainer\A Opens when the tutorial ends'; position: absolute; inset: 0; display: grid; place-content: center; padding-top: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233a2612'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center 22px / 30px no-repeat; color: var(--ink, #2a1c10); font: 700 17px var(--pixel, inherit); text-align: center; white-space: pre-line; opacity: .7; }
}
/* Automation's locked panel, where a computer's right column always shows it (a tablet keeps it behind its Auto tab). */
@media (min-width: 1201px) {
  [data-road~="noauto"]:not([data-road~="autotab"]) #auto { display: block !important; position: relative; min-height: 120px; pointer-events: none; }
  [data-road~="noauto"]:not([data-road~="autotab"]) #auto > * { visibility: hidden; }
  [data-road~="noauto"]:not([data-road~="autotab"]) #auto::after { content: 'Automation\A Opens when the tutorial ends'; position: absolute; inset: 0; display: grid; place-content: center; padding-top: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233a2612'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center 22px / 30px no-repeat; color: var(--ink, #2a1c10); font: 700 17px var(--pixel, inherit); text-align: center; white-space: pre-line; opacity: .7; }
}
/* A page waiting for its unlock tap in the phone's More grid, and More itself while one waits (Jonny 2026-11-23). */
.phone-only .menu.more-grid > .mg-t.road-unlock { border-style: solid; border-color: #c9a227; animation: road-glow 1.8s ease-in-out infinite; }
.phone-only .menu.more-grid > .mg-t.road-unlock > :is(img.ui-ic, svg) { filter: none; opacity: .8; }
.phone-only .menu.more-grid > .mg-t.road-unlock .lk { color: #b07d00; animation: road-bob 1s ease-in-out infinite; }
.phone-only .menu.more-grid > .mg-t.road-unlock.going .lk { animation: lock-open .7s ease-out forwards; }
.bnav [data-act="menu-more"].road-glow, .navmore > button.road-glow { animation: road-glow 1.8s ease-in-out infinite; }
/* A page in the desktop More menu waiting for its unlock click: the slim locked line, glowing, its lock bobbing gold
   like the bar's tabs (Jonny 2026-11-23). */
.menu .locked.mlock.road-unlock { border-radius: 6px; animation: road-glow 1.8s ease-in-out infinite; }
.menu .locked.mlock.road-unlock > :is(img.ui-ic, svg:not(.lk svg)) { filter: none; opacity: 1; }
.menu .locked.mlock.road-unlock > span { opacity: 1; }
.menu .locked.mlock.road-unlock .lk { opacity: 1; color: #8a5a00; animation: road-bob 1s ease-in-out infinite; }
.menu .locked.mlock.road-unlock.going .lk { animation: lock-open .7s ease-out forwards; }
/* The top bar's Notices and Quests buttons on the First Road: greyed under a small lock, then glowing for the click (Jonny 2026-11-23). */
.iconbtn.road-lockbtn { position: relative; }
.iconbtn.road-lockbtn > img.ui-ic, .iconbtn.road-lockbtn > svg:not(.lk svg) { filter: grayscale(1); opacity: .45; }
.iconbtn.road-lockbtn .lk { position: absolute; right: -2px; bottom: -2px; line-height: 0; color: #f3e2b3; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.iconbtn.road-lockbtn .lk svg { width: 14px; height: 14px; }
.iconbtn.road-lockbtn.road-unlock { border-radius: 8px; animation: road-glow 1.8s ease-in-out infinite; }
.iconbtn.road-lockbtn.road-unlock > img.ui-ic { filter: none; opacity: 1; }
.iconbtn.road-lockbtn.road-unlock .lk { color: #ffd970; animation: road-bob 1s ease-in-out infinite; }
.iconbtn.road-lockbtn.road-unlock.going .lk { animation: lock-open .7s ease-out forwards; }
/* The bell's first open on the First Road: what it is, at the top of its own list (Jonny 2026-11-23). */
.bellmenu .bl-intro { margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; background: rgba(201, 162, 39, .18); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .55); }
.menu.bellmenu .bl-intro p, [data-theme="codex"] .menu.bellmenu .bl-intro p { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--ink-l, #f0e6cf); font-style: normal; }
/* The quick explanation cards sit over everything, a page opened as a window included (Jonny 2026-11-23: the Quests card was under the Quests window). */
.nu-tour.mini-tour { position: fixed; z-index: 120; }
/* The bell's list with its first-open word on a short screen: it scrolls inside the screen (the rows per page are
   counted for the list alone, client/bell.ts perPage). */
.menu.bellmenu:has(.bl-intro) { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; }

/* The grade walkthrough's last card (Jonny 11-23): one row per grade letter with its badge, then the Aura. */
.tut-grades { display: grid; gap: 3px; margin: 6px 0 8px; }
.tut-gr { display: grid; grid-template-columns: 20px 26px 48px 1fr; align-items: center; gap: 4px; font-size: 13.5px; color: #2a1c10; }
.tut-gr .gr { width: 20px; height: 20px; }
.tut-gr b { font-size: 15px; }
.tut-grn { font-variant-numeric: tabular-nums; color: #5a4630; }
.tut-gr.g-c b { color: #4a5470; } .tut-gr.g-b b { color: #2f8a3b; } .tut-gr.g-a b { color: #2a6fc0; } .tut-gr.g-s b { color: #8a4fd0; } .tut-gr.g-sp b { color: #c86a10; }
.tut-aura-line { display: flex; align-items: center; gap: 8px; }
.tut-aura { flex: none; padding: 1px 8px; border-radius: 10px; background: #3a2a12; color: #f0c45a; font-weight: 700; font-size: 12px; border: 1px solid #c9a227; }
/* The grade walkthrough's pictures (Jonny 11-23): the creature's result big, a pin on a scale, colored tier rows. */
.tut-hero { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 4px; }
.tut-hero > b { font-size: 26px; }
.tut-big { font-size: 30px; font-weight: 800; color: #2a1c10; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tut-of { font-size: 14px; color: #5a4630; align-self: flex-end; margin-bottom: 4px; }
.tut-hero.g-c > b { color: #4a5470; } .tut-hero.g-b > b { color: #2f8a3b; } .tut-hero.g-a > b { color: #2a6fc0; } .tut-hero.g-s > b { color: #8a4fd0; } .tut-hero.g-sp > b { color: #c86a10; }
.tut-range { text-align: center; font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.tut-rarrow { color: #b8901e; width: 22px; height: 11px; vertical-align: middle; margin: 0 3px; }
.tut-scale { margin: 6px 4px 6px; }
.tut-track { position: relative; height: 10px; border-radius: 5px; background: #d9ccb4; border: 1px solid #a88f66; }
.tut-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #8fbf6a, #f0c45a); }
.tut-track:not(.fill) { background: linear-gradient(90deg, #e8dcc6, #b98f45 35%, #8a5a1c 50%, #b98f45 65%, #e8dcc6); }
.tut-pin { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid #2a1c10; box-shadow: 0 0 0 2px #f0c45a; }
.tut-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: #5a4630; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tut-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-weight: 700; color: #8a6a3a; margin: 6px 0 2px; }
.tut-sum > span { padding: 2px 7px; border-radius: 10px; background: #efe3cb; border: 1px solid #c9b48a; color: #2a1c10; font-size: 12.5px; }
.tut-sum > .tut-sum-g { background: #3a2a12; color: #f0c45a; border-color: #c9a227; }
.tut-small { text-align: center; font-size: 13px; color: #5a4630; margin: 4px 0 0; }
.tut-pts { display: table; margin: 6px auto 0; padding: 2px 9px; border-radius: 10px; background: #3a2a12; color: #f0c45a; font-weight: 700; font-size: 12px; border: 1px solid #c9a227; }
.tut-bls { display: grid; gap: 3px; margin: 4px 0 2px; }
.tut-bl { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; font-size: 13.5px; color: #2a1c10; border: 1px solid transparent; }
.tut-bl > b { font-size: 15px; }
.tut-odds { color: #5a4630; font-variant-numeric: tabular-nums; }
.tut-bl.b0 > b { color: #4a5470; } .tut-bl.b1 > b { color: #2f8a3b; } .tut-bl.b2 > b { color: #2a6fc0; } .tut-bl.b3 > b { color: #8a4fd0; } .tut-bl.b4 > b { color: #c86a10; }
.tut-bl.me, .tut-gr.me { background: #fff3cf; border: 1px solid #f0c45a; box-shadow: 0 0 8px rgba(240,196,90,.7); border-radius: 8px; }
.tut-gr { padding: 1px 6px; border: 1px solid transparent; }
/* The one card for Talent, Quality and Bloodline: a row each, name and roll, then its scale. */
.tut-parts { display: grid; gap: 7px; margin: 2px 0 4px; }
.tut-ph { display: flex; align-items: baseline; gap: 6px; }
.tut-ph > b { font-size: 14px; } .tut-pv { font-weight: 700; font-variant-numeric: tabular-nums; }
.tut-ph > small { margin-left: auto; font-size: 11.5px; color: #5a4630; }
.tut-part .tut-scale { margin: 3px 2px 0; } .tut-part .tut-ends { display: none; }
.tut-blrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 3px; }
.tut-blrow > span { text-align: center; font-weight: 700; font-size: 12px; padding: 1px 0; border-radius: 6px; border: 1px solid #c9b48a; background: #efe3cb; }
.tut-blrow > .b0 { color: #4a5470; } .tut-blrow > .b1 { color: #2f8a3b; } .tut-blrow > .b2 { color: #2a6fc0; } .tut-blrow > .b3 { color: #8a4fd0; } .tut-blrow > .b4 { color: #c86a10; }
.tut-blrow > .me { background: #fff3cf; border-color: #f0c45a; box-shadow: 0 0 6px rgba(240,196,90,.7); }
/* Short phones: the walkthrough's pictures close up so the card fits under the popup's pills. */
@media (max-height: 620px) {
  .tut-big { font-size: 22px; } .tut-hero { margin: 0; } .tut-hero .gr.lg { width: 28px; height: 28px; }
  .tut-range { font-size: 13px; } .tut-scale { margin: 3px 4px; } .tut-small { font-size: 12px; margin-top: 2px; }
  .tut-pts { margin-top: 3px; font-size: 11px; } .tut-bl { padding: 0 8px; font-size: 12.5px; } .tut-bls { gap: 1px; }
  .tut-gr { font-size: 12.5px; } .tut-grades { gap: 1px; margin: 2px 0 4px; } .tut-sum { margin: 3px 0 0; }
}
