/* ================= Engagement v2, slice S1 (2026-10-27): Trail Atlas + Goshuin Book =================
   Panels live in the shared #modal (the Capsules/Companions idiom) and use the menu's role tokens (--m-*, menu.css), so they follow
   the time-of-day palettes. Pixel art is canvas at an integer scale with image-rendering: pixelated; whole-pixel sizes, stepped
   corners (--px-r*), no glow. The book pages are washi paper with fixed ink colours (art, not theme). Tap targets >= 44 px. */


/* ---------- Shared ---------- */
#modal .ev2 .px{display:block;image-rendering:pixelated;image-rendering:crisp-edges;flex:none}
#modal .ev2{font:400 20px/1.25 var(--pixel);color:var(--m-text)}
#modal .ev2 :where(h3,div,dl,dd,ul,ol){margin:0}
#modal .ev2 .ev2-btn,#modal .ev2 .atlas-tabs button{box-sizing:border-box;min-height:44px;min-width:44px;padding:8px 14px 7px;border:0;border-radius:0;cursor:pointer;
 font:400 20px/1 var(--pixel);letter-spacing:1px;color:var(--m-text);background:var(--m-card);box-shadow:inset 0 0 0 2px var(--m-line);clip-path:var(--px-r1)}
#modal .ev2 .ev2-btn:hover:not(:disabled),#modal .ev2 .atlas-tabs button:hover{box-shadow:inset 0 0 0 2px var(--m-line-hi)}
#modal .ev2 :is(.ev2-btn,.atlas-tabs button,.atlas-entry,.gs-title,summary,.atlas-search,.atlas-code):focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--m-ink),inset 0 0 0 4px var(--m-text)}
#modal .ev2 .ev2-btn:disabled{color:var(--m-line-hi);background:var(--m-bg);box-shadow:inset 0 0 0 2px var(--m-card);cursor:default}
#modal .ev2 .atlas-tabs button[aria-pressed=true]{color:var(--m-card);background:var(--m-text);box-shadow:inset 0 -4px 0 var(--m-line-hi)}

/* ---------- Trail Atlas ---------- */
#modal .atlas-head{display:flex;gap:16px;align-items:center;margin-bottom:14px}
#modal .atlas-sum{display:grid;gap:6px;min-width:0}
#modal .atlas .atlas-count{font:400 20px/1 var(--pixel)!important;color:var(--m-muted)!important}
#modal .atlas .atlas-count b{font:400 30px/1 var(--pixel);color:var(--m-text);margin-right:4px}
#modal .atlas .atlas-blurb{font-size:18px!important;color:var(--m-muted)!important}
#modal .atlas .atlas-note{font-size:17px!important;color:var(--m-accent-text)!important}
#modal .atlas-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
#modal .atlas-search{flex:1 1 180px;min-width:0;box-sizing:border-box;min-height:46px;padding:6px 12px;border:0;border-radius:0;font:400 20px/1 var(--pixel);
 color:var(--m-text);background:var(--m-card);box-shadow:inset 0 0 0 2px var(--m-line);clip-path:var(--px-r1)}
#modal .ev2 .atlas-search::placeholder{color:var(--m-muted)!important;opacity:1!important}
#modal .ev2 .atlas-tabs button{min-height:46px}
#modal .atlas-tabs{display:flex;gap:6px}
#modal .atlas-shelf{margin-top:14px}
#modal .atlas-shelf h3{display:flex;align-items:center;gap:10px;margin:0 0 8px;font:400 22px/1 var(--pixel);letter-spacing:1px;color:var(--m-text)}
#modal .atlas-shelf h3::after{content:"";flex:1;height:2px;background:repeating-linear-gradient(90deg,var(--m-line) 0 4px,transparent 4px 8px)}
#modal .atlas-shelf h3 small{order:2;font:400 17px/1 var(--pixel);letter-spacing:1px;color:var(--m-muted)}
#modal .atlas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#modal .atlas-entry{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-width:0;min-height:52px;padding:6px 10px;border:0;border-radius:0;cursor:pointer;text-align:left;
 font:400 19px/1.05 var(--pixel);color:var(--m-text);background:var(--m-card);box-shadow:inset 0 0 0 2px var(--m-line),inset 0 -6px 0 -4px var(--tier-color);clip-path:var(--px-r1)}
/* Tier frame: the tier colour 45% toward the panel text, >= 3:1 against the card in every menu palette (tests/atlas.test.mjs). */
#modal .ev2 :is(.atlas-entry,.atlas-card){--tier-frame:color-mix(in srgb,var(--tier-color) 45%,var(--m-text))}
#modal .atlas-entry{box-shadow:inset 0 0 0 2px var(--tier-frame)}
#modal .atlas-entry:hover{background:var(--m-card-hi)}
/* Gold frame only for Lost episode and rarer, or a Trailblazer/Pathfinder find: gold, a 2 px card gap, gold shade (no glow). */
#modal .atlas-entry[data-gold]{box-shadow:inset 0 0 0 2px var(--m-accent),inset 0 0 0 4px var(--m-card),inset 0 0 0 6px var(--m-accent-shade),inset 0 0 0 8px var(--tier-frame)}
#modal .atlas-entry[data-gold]:hover{background:var(--m-card-hi)}
#modal .atlas-entry svg{flex:none;width:32px;height:32px}
#modal .atlas-entry-text{flex:1;min-width:0;display:grid;gap:3px}
#modal .atlas-entry-name{overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto;line-height:1.05}
#modal .atlas-entry small{font:400 16px/1 var(--pixel);color:var(--m-muted)}
#modal .atlas-flag{display:block;flex:none;width:22px;height:22px}
#modal .atlas-empty{margin-top:14px;padding:16px;text-align:center;background:var(--m-card);clip-path:var(--px-r2)}
#modal .atlas-empty .ev2-p{color:var(--m-muted)!important}
#modal .atlas-empty .ev2-p:first-child{font-size:24px!important;color:var(--m-text)!important;margin-bottom:6px!important}
/* Entry card (gold variant for Lost episode and rarer or a first-ever flag); the hero and stats hide while a card is open */
#modal .atlas[data-view=card] .atlas-head{display:none}
#modal:has(.ev2) .modal-close{position:sticky!important;top:0!important;float:right;margin:-8px -6px 6px 12px!important;z-index:3;background:var(--m-line-hi)!important}
#modal:has(.ev2) .modal-close::before{background:var(--m-card)!important;opacity:1!important}
#modal .ev2-back{margin-bottom:10px}
#modal .atlas-card{position:relative;padding:18px;background:var(--m-card);box-shadow:inset 0 0 0 2px var(--tier-frame);clip-path:var(--px-r1)}
#modal .atlas-card[data-gold]{box-shadow:inset 0 0 0 2px var(--m-accent),inset 0 0 0 4px var(--m-card),inset 0 0 0 6px var(--m-accent-shade),inset 0 0 0 8px var(--tier-frame)}
#modal .atlas-card-top{display:flex;gap:14px;align-items:center}
#modal .atlas-card-top svg{flex:none;width:64px;height:64px}
#modal .atlas-card h3{font:400 30px/1.05 var(--pixel);color:var(--m-text);overflow-wrap:anywhere}
#modal .atlas .atlas-card-tier{display:flex;align-items:center;gap:8px;margin-top:6px!important;font-size:20px!important;color:var(--m-muted)!important}
#modal .atlas-card-tier i{width:10px;height:10px;background:var(--tier-color);box-shadow:2px 2px 0 var(--m-ink)}
#modal .atlas-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:14px!important}
#modal .atlas-facts .wide{grid-column:1/-1}
#modal .atlas-facts dt{font:400 15px/1 var(--pixel);letter-spacing:2px;text-transform:uppercase;color:var(--m-muted)}
#modal .atlas-facts dd{margin:4px 0 0;font:400 21px/1.15 var(--pixel);color:var(--m-text)}
#modal .atlas-flags{list-style:none;padding:0;margin-top:14px!important;display:grid;gap:6px}
#modal .atlas .atlas-flags li{display:flex;align-items:center;gap:8px;padding:6px 8px;font-size:18px!important;background:var(--m-bg);clip-path:var(--px-r1)}
#modal .atlas-flags li[data-badge=footprint]::before{content:"";flex:none;width:6px;height:6px;margin:0 8px;background:var(--m-sakura);box-shadow:2px 2px 0 var(--m-ink)}
/* Backup */
#modal .atlas-backup{margin-top:18px;padding:0 12px 12px;background:var(--m-card);clip-path:var(--px-r2)}
#modal .atlas-backup summary{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font:400 20px/1 var(--pixel);letter-spacing:1px;color:var(--m-text);list-style:none}
#modal .atlas-backup summary::-webkit-details-marker{display:none}
#modal .atlas-backup summary::before{content:"";flex:none;width:0;height:0;border-left:6px solid var(--m-accent-text);border-top:5px solid transparent;border-bottom:5px solid transparent}
#modal .atlas-backup[open] summary::before{border-top:6px solid var(--m-accent-text);border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:0}
#modal .atlas-backup summary::after{content:"Copy · Restore";margin-left:auto;font-size:16px;color:var(--m-muted)}
#modal .atlas .atlas-backup .ev2-p{font-size:17px!important;color:var(--m-muted)!important;margin-bottom:10px!important}
#modal .atlas-backup-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#modal .atlas-restore-label{display:block;margin-top:10px;font:400 17px/1 var(--pixel);color:var(--m-muted)}
#modal .atlas-code{display:block;box-sizing:border-box;width:100%;min-height:64px;margin-top:6px;padding:6px 8px;border:0;border-radius:0;resize:vertical;
 font:400 15px/1.2 ui-monospace,monospace;color:var(--m-text);background:var(--m-bg);box-shadow:inset 0 0 0 2px var(--m-line);word-break:break-all}
#modal .atlas .atlas-msg{margin:6px 0 0!important;color:var(--m-text)!important}
#modal .atlas .atlas-msg:empty{display:none}

/* ---------- Goshuin Book ---------- */
#modal .goshuin{--gs-ink:#2c2747;--gs-ink-soft:#64486e;--gs-red:#c8423b;--gs-paper:#f4e6c8}
#modal .gs-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#modal .gs-arrow{font-size:28px!important;padding:4px 0!important;width:44px}
#modal .goshuin .gs-week{display:grid;gap:2px;text-align:center}
#modal .goshuin .gs-week b{font:400 22px/1 var(--pixel);color:var(--m-text)}
#modal .goshuin .gs-week small{font:400 16px/1 var(--pixel);letter-spacing:1px;color:var(--m-muted)}
#modal .gs-spread{position:relative;margin:0 auto;max-width:100%}
#modal .gs-paper{position:absolute;left:0;top:0}
#modal .gs-days{list-style:none;padding:0;margin:0}
#modal .gs-day,#modal .gs-offer-slot{position:absolute}
#modal .gs-offer-slot .gs-stamp{display:block}
/* The day's seal: the receipt's station seal, inked in vermilion on the washi page (art: decorative, the sr-only line names it). */
#modal canvas.gs-seal{display:block}
#modal .gs-blot{position:absolute;left:calc(var(--s) * -2px);top:calc(var(--s) * -2px);pointer-events:none}
#modal .gs-offer{position:absolute;display:grid;gap:4px;justify-items:center;text-align:center}
#modal .gs-offer small{font:400 15px/1 var(--pixel);letter-spacing:1px;text-transform:uppercase;color:var(--gs-ink-soft)}
#modal .gs-offer b{font:400 18px/1.05 var(--pixel);color:var(--gs-ink)}
#modal .gs-count{font:400 18px/1 var(--pixel);color:var(--gs-ink)}
#modal .gs-pips{display:flex;gap:4px}
#modal .gs-pips i{width:8px;height:8px;box-shadow:inset 0 0 0 2px var(--gs-ink-soft)}
#modal .gs-pips i.on{background:var(--gs-red);box-shadow:none}
#modal .goshuin .gs-offer-line{margin:10px 0 0!important;text-align:center;font-size:18px!important;color:var(--m-muted)!important}
#modal .goshuin .gs-h{display:flex;align-items:center;gap:10px;margin:18px 0 4px;font:400 24px/1 var(--pixel);letter-spacing:1px;color:var(--m-text)}
#modal .goshuin .gs-h::after{content:"";flex:1;height:2px;background:repeating-linear-gradient(90deg,var(--m-line) 0 4px,transparent 4px 8px)}
#modal .goshuin .gs-sub,#modal .goshuin .gs-none{font-size:17px!important;color:var(--m-muted)!important;margin-bottom:10px!important}
#modal .gs-titles{display:grid;gap:6px}
#modal .gs-title{display:flex;align-items:center;gap:12px;min-height:44px;padding:4px 10px 4px 4px;border:0;border-radius:0;cursor:pointer;text-align:left;
 background:var(--m-card);box-shadow:inset 0 0 0 2px var(--m-line);clip-path:var(--px-r1)}
#modal .gs-title:hover{box-shadow:inset 0 0 0 2px var(--m-line-hi)}
#modal .gs-title[aria-pressed=true]{background:var(--m-card-hi);box-shadow:inset 0 0 0 2px var(--m-accent)}
#modal .gs-plate{position:relative;flex:none;width:192px;height:27px}
#modal .gs-title-name{position:absolute;left:4px;width:192px;text-align:center;font:400 19px/27px var(--pixel);letter-spacing:1px;color:#fff1d8;pointer-events:none;white-space:nowrap}
#modal .gs-title{position:relative}
#modal .gs-title small{margin-left:auto;font:400 16px/1 var(--pixel);letter-spacing:2px;color:var(--m-muted)}
#modal .gs-title[aria-pressed=true] small{color:var(--m-accent-text)}
#modal .gs-title[data-new] small{color:var(--m-sakura)}
#modal .gs-next{list-style:none;padding:0;margin:8px 0 0!important;display:grid;gap:6px}
#modal .goshuin .gs-next li{display:grid;grid-template-columns:minmax(0,1fr) 80px auto;align-items:center;gap:10px;font-size:18px!important;color:var(--m-text)!important}
#modal .gs-next span:first-child{overflow-wrap:anywhere}
#modal .gs-bar{height:8px;background:var(--m-bg);box-shadow:inset 0 0 0 2px var(--m-line)}
#modal .gs-bar i{display:block;height:100%;background:var(--m-accent)}
#modal .gs-next b{font-weight:400;color:var(--m-muted)}

@media(max-width:520px){
 #modal .atlas-grid{grid-template-columns:minmax(0,1fr)}
 #modal .gs-offer small,#modal .gs-offer b{display:none} /* the same line repeats under the spread at a readable size */
 #modal .gs-count{font-size:20px}
 #modal .gs-plate,#modal .gs-title-name{width:192px}
}
@media(max-width:359px){#modal .atlas-cover{width:64px!important;height:80px!important}#modal .gs-title small{display:none}}
/* Panel text is in divs and spans: menu.css sizes every p/li in #modal with !important, so list text sits in spans sized here. */
#modal .atlas-flags li>span{font:400 18px/1.2 var(--pixel)}
#modal .goshuin .gs-next li>*{font-size:18px}
#modal .goshuin .gs-days li{font-size:0}

/* I5 + I10 (Graphics, 2026-11-03; game review): phone tap targets >= 44 px and HUD text >= 12 px, grown in hit area where
   the art would look heavy; a soft dark plate behind the reveal quip on bright zones. Appended last so it wins without
   reworking the layered rules above. Before/after numbers: D:/Anillion/art-audit-2026-11-03/i5i10/. */
@media(max-width:700px){
 /* corner buttons: art unchanged (their ::before is the plate), a transparent ::after is the 44-px hit area; the sound
    button drops 6 px so the two hit areas don't overlap */
 .topbar #mobile-menu::after,.topbar #sound::after{content:"";position:absolute;inset:-6px}
 .topbar #sound{margin-top:12px}
 /* their pixel-corner clip-path also clips taps, so on phone (32-px boxes) the clip becomes the 44-px hit square with the
    same stepped corner notches cut out as even-odd holes: the drawn corners are unchanged */
 .topbar #mobile-menu{clip-path:path(evenodd,'M-6 -6H38V38H-6Z M0 0H8V2H4V4H2V8H0Z M32 0V8H30V4H28V2H24V0Z M32 32H24V30H28V28H30V24H32Z M0 32V24H2V28H4V30H8V32Z')!important}
 .topbar #sound{clip-path:path(evenodd,'M-6 -6H38V38H-6Z M0 0H4V2H2V4H0Z M32 0V4H30V2H28V0Z M32 32H28V30H30V28H32Z M0 32V28H2V30H4V32Z')!important}
 /* the 36-px dialog/menu close buttons: both pseudos are art, so the box itself grows to 44 with a transparent 4-px border
    shifted back by translate (their margins are pinned by other rules); the art (padding box, ::before inset, centred ::after x) stays put, and the clip is the
    44-px square with the same 4/2-px stepped corners cut out around the 36-px plate */
 #navigation #close-navigation.modal-close,#modal:not(:has(.summit-card-preview)) .modal-close.modal-close{box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:4px solid transparent!important;background-clip:padding-box!important;clip-path:path(evenodd,'M0 0H44V44H0Z M4 4H8V6H6V8H4Z M40 4V8H38V6H36V4Z M40 40H36V38H38V36H40Z M4 40V36H6V38H8V40Z')!important}
 /* all are anchored top-right, so the 8-px growth moves the art 4 px left and 4 px down: this puts it back (measured) */
 #navigation #close-navigation.modal-close,#modal:not(:has(.summit-card-preview)) .modal-close.modal-close{translate:4px -4px}
 /* the receipt x (34 px; its pseudos are click-through paper bands): transparent borders make the tappable part 44x44.
    The receipt's edge clips ~2 px on the right, so the extra width goes on the left (12 px) and the extra height on top (10 px), both under the paper bands (a bottom border would show through); it is sticky at top:0, so the
    10-px top border is taken back with margin-top:-10px (and top:-10px, so the sticky limit lets it sit there), so nothing below moves; the 2-px drop shadow is re-aimed at the 34-px square (spread -5, offset 9/7) */
 .receipt .receipt-close.receipt-close{box-sizing:border-box;width:46px;height:44px;border:5px solid transparent;border-width:10px 0 0 12px;background-clip:padding-box;box-shadow:9px 7px 0 -5px #25232b55;top:-10px;margin:-10px -12px 8px auto}
 /* PASS keeps its 30-px indigo plate; a transparent ::after makes the tap area 44x44 (the dock doesn't clip) */
 .r9-dock .pod-answer .skip{position:relative;box-sizing:border-box;width:37px!important;justify-content:center}
 .r9-dock .pod-answer .skip::after{content:"";position:absolute;inset:-7px -4px}
 /* its own pixel-corner clip-path would clip those taps:  same even-odd hit rectangle as the corner buttons (the box is pinned to 37x30, its natural 36.8 rounded, so the notches are exact) */
 .r9-dock .pod-answer .skip{clip-path:path(evenodd,'M-4 -7H41V37H-4Z M0 0H4V2H2V4H0Z M37 0V4H35V2H33V0Z M37 30H33V28H35V26H37Z M0 30V26H2V28H4V30Z')!important}
 /* the coin chip is plain text on no plate: a real 44-px box */
 .coin-chip{min-height:44px}
 /* HUD labels to 12 px, letter-spacing trimmed so they still fit their boxes */
 /* (fx.css sets these with !important at the same specificity; this file loads later, so it wins) */
 .hud-top .hud-alt .micro-label,.hud-top .hud-score .micro-label{font-size:12px!important;letter-spacing:1px!important}
 .hud-top .round-caption{font-size:12px!important;letter-spacing:1px!important}
}
/* I10: the reveal card's small lines (the quip, flavour, note, "Hoshi found") get their own soft dark plate so they read
   on the snow zone's pale lavender and the forest's busy trees. The plate is a ::before that reaches 14 px past the line's
   own box (so it never narrows or re-wraps the line): a solid rectangle with feathered edges (two intersected masks),
   following the line box, so a two-line wrap gets one rectangle, not a blob */
.round-card .rc-quip,.round-card .rc-flavour,.round-card .rc-note,.round-card .rc-deeper{position:relative;width:fit-content;max-width:100%;margin-inline:auto}
.round-card .rc-quip::before,.round-card .rc-flavour::before,.round-card .rc-note::before,.round-card .rc-deeper::before{content:"";position:absolute;z-index:-1;inset:-8px -14px;pointer-events:none;background:#120f1fb8;
 -webkit-mask:linear-gradient(90deg,#0000,#000 10px calc(100% - 10px),#0000),linear-gradient(#0000,#000 5px calc(100% - 5px),#0000);-webkit-mask-composite:source-in;
 mask:linear-gradient(90deg,#0000,#000 10px calc(100% - 10px),#0000),linear-gradient(#0000,#000 5px calc(100% - 5px),#0000);mask-composite:intersect}

@media(max-width:700px){
 /* the Journal's x (F2, 30 px, its own 4/2-px pixel-corner clip, no pseudos): the same hit-square path as the other
    buttons plus a transparent ::after make it 44x44; its 3-px box-shadow was already clipped away, so it stays off */
 .logbook #close-journal{box-shadow:none!important;clip-path:path(evenodd,'M-7 -7H37V37H-7Z M0 0H4V2H2V4H0Z M30 0V4H28V2H26V0Z M30 30H26V28H28V26H30Z M0 30V26H2V28H4V30Z')!important}
 .logbook #close-journal::after{content:"";position:absolute;inset:-9px}
}

/* I5 on desktop too (Boss, 2026-11-03): the HUD labels (ALTITUDE / POINTS) to 12 px (were 11; fx.css sets them with
   !important at this specificity, and this file loads later). The prompt caption is already 12 px there. */
@media(min-width:701px){.hud-top .micro-label{font-size:12px!important}}

/* ===== Launch wave 2 UI (w2-ui, 2026-11-17) ===== */
/* A-M2a: the see-through question sign let lantern glow punch through the text. The sign's own ink fill is denser (still the
   same sign, no new box) and the prompt + its hint get a crisp 1-px ink pixel outline, so they read at day and night. */
.challenge-card,body[data-night] .challenge-card,body[data-night=dusk] .challenge-card{--sign-fill:#120f1fb8!important}
body[data-night="1"] .challenge-card{--sign-fill:#120f1fcc!important}
body .challenge-card .prompt{text-shadow:1px 0 0 var(--c-ink),-1px 0 0 var(--c-ink),0 1px 0 var(--c-ink),0 -1px 0 var(--c-ink),2px 2px 0 var(--c-ink)!important}
body .challenge-card .prompt-hint{opacity:1!important;color:#e6d6c8!important;text-shadow:1px 0 0 var(--c-ink),-1px 0 0 var(--c-ink),0 1px 0 var(--c-ink),0 -1px 0 var(--c-ink),2px 2px 0 var(--c-ink)!important}
/* K-13/R2-07: the receipt scrolls inside .receipt-scroll, so the X sits on its own strip of the same paper and nothing scrolls under it
   (no paper band painted over the text: the user removed that box). */
body .result-card.receipt{display:flex!important;flex-direction:column;overflow:hidden!important}
body .result-card.receipt>.receipt-close{position:relative!important;top:0!important;flex:none;align-self:flex-end;margin:-14px -12px 2px auto!important}
body .result-card.receipt>.receipt-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;margin-right:-12px;padding-right:12px;scrollbar-width:thin;scrollbar-color:var(--rule,#25232b55) transparent}
/* B-R3-02/03: the panel (max min(820px,100dvh-24px)-4px, menu.css) was taller than the dialog's UA max-height (100% - 46px), so every
   dialog's bottom was clipped and a script scroll of the dialog cut the X. The dialog now fits its panel; the panel keeps the cap. */
#modal:not(:has(.summit-card-preview)){max-height:none!important}
/* R2-14: the rules (and every plain dialog) keep the X in reach: like the receipt, the X sits on its own row of the panel and only
   #modal-body scrolls below it, so text never runs under the X (critic r1: a sticky X brushed long lines on desktop). */
#modal:not(:has(.summit-card-preview,.ev2,.gashapon,.companion-grid)) .modal-inner{display:flex!important;flex-direction:column;overflow:hidden!important}
#modal:not(:has(.summit-card-preview,.ev2,.gashapon,.companion-grid)) #modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;margin:0 -20px;padding:0 20px;scrollbar-width:thin}/* the side bleed keeps the list numbers (drawn in the gutter) unclipped */
#modal:not(:has(.summit-card-preview,.ev2,.gashapon,.companion-grid)) .modal-close{position:relative!important;top:auto!important;right:auto!important;flex:none;align-self:flex-end;margin:-6px -6px 2px auto!important}
@media(max-width:520px){#modal:not(:has(.summit-card-preview,.ev2,.gashapon,.companion-grid)) .modal-close{margin:-6px -4px 2px auto!important}#modal:not(:has(.summit-card-preview,.ev2,.gashapon,.companion-grid)) #modal-body{margin:0 -14px;padding:0 14px}}
/* N-5: a long rarest find wraps at a word instead of being cut mid-word. */
.records-strip dd:has(.rarest){white-space:normal;overflow-wrap:normal}
.records-strip .rarest{display:inline-flex;flex-wrap:nowrap;text-align:left}
/* R2-11: desktop receipt body text was 12–14 px VT323 (reads ~10 px); the small lines step up. */
@media(min-width:701px){
 body .result-card.receipt .receipt-item small{font-size:16px!important}
 body .result-card.receipt .receipt-deeper{font-size:15px!important}
 body .result-card.receipt :is(.records-strip dt,.records-strip dd small,.omikuji small,.next-trail small,.streak-sub){font-size:14px!important}
}
/* Graphics prompt-size 2026-11-18 (user: "make the prompt box a bit bigger"; one block, wins the cascade by load order + body specificity) */
body .challenge-card{width:min(600px,100%)!important;padding:14px 26px 12px!important}
body .challenge-card .prompt{font-size:clamp(27px,2.65vw,35px)!important;line-height:1.08!important}
@media(max-width:700px){body .challenge-card{padding:11px 14px 10px!important}body .challenge-card .prompt{font-size:25px!important}}
@media(max-width:700px) and (max-height:700px){body .challenge-card .prompt{font-size:24px!important}}
/* Graphics title No. 2026-11-18 (user: Noillirk-style "THE DAILY CLIMB · NO. N" on the main menu; play-at line hidden until the domain is live). No box: pixel outline over the scene. */
.home-title .home-no,.home-title .home-at{margin:0 0 12px;font:400 19px/1 var(--pixel);letter-spacing:7px;text-transform:uppercase;color:#fff0ce;text-shadow:2px 0 #20354d,-2px 0 #20354d,0 2px #20354d,0 -2px #20354d,2px 3px #20354d}
.home-title .home-at{font-size:15px;letter-spacing:3px;color:#eadcc6}
@media(max-width:700px){.home-title .home-no{font-size:16px;letter-spacing:4px;margin-bottom:10px}.home-title .home-at{font-size:13px;letter-spacing:2px}}
/* phone landscape (audit P4): the tagline is in How to play; dropping it keeps "How to play" off the Fumoto Mart sign */
@media(max-height:450px) and (orientation:landscape){.home-title .home-sub{display:none}.home-title h1{font-size:min(17vh,96px)!important;margin-bottom:6px!important}.home-title .home-no{margin-bottom:4px}.home-title .home-how{margin-top:0}}

/* Fixer 2 (overnight 2026-11-20): the Daily Ascent with fewer than 5 climbers is a sentence, not a near-empty curve */
.early-ascent-copy{margin:4px 6px 6px;text-align:center;font:17px/1.3 var(--pixel);color:#d7e6e4}
.receipt .early-ascent-copy{color:var(--paper-ink)!important}
/* How to play: Trail words glossary */
#modal .trail-words{margin:6px 0 14px;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:baseline}
#modal .trail-words dt{font:400 18px/1.2 var(--pixel);color:var(--m-accent-text,#ffd27f);white-space:nowrap}
#modal .trail-words dd{margin:0;font:400 18px/1.25 var(--pixel);color:var(--m-text,#fff1d8)}
@media(max-width:400px){#modal .trail-words{grid-template-columns:1fr;gap:2px}#modal .trail-words dd{margin-bottom:6px}}
/* Updraft badge explains itself on tap (phones cannot hover a title); 10 px invisible margin makes the hit area >= 40 px */
.updraft-badge{pointer-events:auto;cursor:pointer}
.updraft-badge::before{content:"";position:absolute;inset:-10px}
/* Home: a ready-to-evolve link beside How to play (same pixel underline style, gold) */
.home-title .home-evolve{display:block;margin:2px auto 0;color:#ffd27f;text-shadow:2px 2px 0 #120f1f}
/* Home goal line (playtest F4): the subtitle states the goal; the counts sit under it, smaller */
.home-title .home-meta{margin:-8px 0 14px;font:400 18px/1 var(--pixel);letter-spacing:1px;color:#e2d3ea;text-shadow:2px 0 #20354d,-2px 0 #20354d,0 2px #20354d,0 -2px #20354d,2px 2px #20354d,-2px -2px #20354d,2px -2px #20354d,-2px 2px #20354d}
@media(max-height:450px) and (orientation:landscape){.home-title .home-meta{display:none}}
/* desktop/tablet: the counts line pushed How to play onto the Fumoto Mart sign (critic, 1280x800); phones keep it */
@media(min-width:701px){.home-title .home-meta{display:none}}
/* How to play (playtest F4): three plain lines first, the full rules folded */
#modal ol.howto-lead{padding-left:22px;margin:4px 0 12px}
#modal ol.howto-lead b{font-weight:400;color:var(--m-accent-text,#ffd27f)}
#modal .howto-more{margin:0 0 12px}
#modal .howto-more>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;font:400 20px/1.1 var(--pixel);letter-spacing:1px;color:var(--m-text,#fff1d8);text-decoration:none;list-style:none}
#modal .howto-more>summary::-webkit-details-marker{display:none}
#modal .howto-more>summary::before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;background:var(--m-accent,#ffd27f);color:var(--m-ink,#120f1f);text-decoration:none}
#modal .howto-more[open]>summary::before{content:"-"}
/* Challenge link greeting (playtest F7) */
.home-title .home-friend{margin:0 auto 10px;max-width:min(520px,calc(100vw - 32px));font:400 20px/1.2 var(--pixel);letter-spacing:1px;color:#fff0ce;text-shadow:2px 0 #20354d,-2px 0 #20354d,0 2px #20354d,0 -2px #20354d,2px 2px #20354d,-2px -2px #20354d,2px -2px #20354d,-2px 2px #20354d}
.home-title .home-friend b{font-weight:400;color:#ffd27f}
.home-title .home-friend i{font-style:normal;color:#f3a7b8}
/* Results hero (playtest F5): the climb leads the receipt: altitude, points, rank today, streak */
.receipt .receipt-hero{margin:14px 0 4px;padding:12px 0 10px;text-align:center;border-top:2px dashed var(--rule);border-bottom:2px dashed var(--rule)}
.receipt .rh-alt b{display:block;font:400 64px/0.9 var(--pixel);letter-spacing:2px;color:var(--paper-ink)}
.receipt .rh-alt b small{font-size:30px;letter-spacing:0}
.receipt .rh-alt>span{display:block;margin-top:6px;font:400 20px/1.1 var(--pixel);letter-spacing:1px;color:var(--paper-mute)}
.receipt .rh-line{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin-top:8px;font:400 20px/1.15 var(--pixel);color:var(--paper-ink)}
.receipt .rh-rank:empty{display:none}
.receipt .rh-streak{color:#a84a2c}
.receipt .receipt-hero+h2{font-size:24px!important;margin-top:10px!important}
@media(max-width:420px){.receipt .rh-alt b{font-size:54px}}
/* F14: the reveal auto-advances. Its own 4 px gold bar fills in 8 one-second steps along KEEP CLIMBING's bottom edge
   (a child element, not ::after: that is the button's sheen, which low quality deliberately freezes). */
.continue-btn .auto-next-bar{position:absolute;left:6px;bottom:4px;height:4px;width:0;background:#ffd27f;box-shadow:0 2px 0 #120f1f;pointer-events:none;animation:auto-next var(--auto-ms,8000ms) steps(8,start) both}
@keyframes auto-next{from{width:0}to{width:calc(100% - 12px)}}
body.reduce-motion .continue-btn .auto-next-bar{display:none}
.receipt .rh-streak.rh-new{animation:rh-lit .9s steps(3) .4s both}
@keyframes rh-lit{0%{opacity:0;translate:0 4px}100%{opacity:1;translate:0 0}}
body.reduce-motion .receipt .rh-streak.rh-new{animation:none}

/* Critic r1 M2: with a challenge greeting, desktop drops the tagline line so How to play stays above the Fumoto Mart sign */
.home-title .home-friend .nowrap,.home-title .home-friend i{white-space:nowrap}
@media(min-width:701px){.home-title:has(.home-friend) .home-sub{display:none}}
/* Critic r1 M3/M4: one pinned Share row at the bottom of the receipt view, on every viewport; the rest stay in the flow */
.receipt .result-actions.result-share{position:sticky!important;bottom:0;z-index:3;border-top:2px dashed var(--rule);margin-top:0!important;padding:10px 0 12px!important;background:var(--paper)!important}
.receipt .result-actions.result-share #share{width:100%;min-height:52px;font-size:22px;letter-spacing:2px}
.receipt .result-actions.result-more{border-top:0}
.receipt .result-actions .first-fortune{border-color:#b9506e!important;color:#8c2a4d!important}
/* r2: the greeting is one line on desktop (two lines pushed How to play onto the Fumoto Mart roof) */
@media(min-width:701px){.home-title .home-friend{max-width:none;white-space:nowrap}}
/* r2: the lantern line keeps full ink (the stepped fade-in read as washed out on paper) */
.receipt .rh-streak{color:#8c2a1c!important;opacity:1}
.receipt .rh-streak.rh-new{animation:rh-lit .6s steps(2) .3s backwards}
/* critic r2 SHOULDs */
.continue-btn .auto-next-bar{background:#120f1f;box-shadow:none;opacity:.7}
.receipt .result-actions .nowrap{white-space:nowrap}
.receipt .result-actions.result-share #share.primary{font-size:22px!important;letter-spacing:2px!important}
@media(max-width:420px){.receipt .result-actions.result-share #share.primary{font-size:20px!important}}
@media(min-width:701px){.continue-dock .continue-hint{display:none}}
/* critic r2-5: the Summit Card preview never pushes "Save image" past the dialog edge */
#modal .summit-card-preview{display:block;width:auto!important;max-width:100%;max-height:calc(100dvh - 260px)!important;margin:0 auto;image-rendering:pixelated}
/* F11 (playtest): desktop HUD labels were 11 px VT323; step them up so ALTITUDE / POINTS / PROMPT n OF 7 read at a glance */
@media(min-width:701px){.hud-top .micro-label{font-size:15px!important;letter-spacing:3px!important}.hud-top .round-caption{font-size:15px!important;letter-spacing:3px!important}}
/* F8: hint chip after a miss, and how known a correct answer was (pixel text with outline, no boxes) */
#validation .hint-chip{display:inline-flex;align-items:center;min-height:40px;margin-left:6px;padding:0 6px;border:0;background:none;cursor:pointer;font:inherit;color:#ffd27f;text-decoration:underline 2px;text-underline-offset:4px}
#validation .hint-line{color:#fff1d8}
.continue-dock .continue-rarity{margin:0 0 8px;text-align:center;font:400 19px/1.2 var(--pixel);letter-spacing:1px;color:#fff1d8;text-shadow:2px 0 #120f1f,-2px 0 #120f1f,0 2px #120f1f,0 -2px #120f1f,2px 2px #120f1f,-2px -2px #120f1f,2px -2px #120f1f,-2px 2px #120f1f}
/* critic r3 */
#validation .hint-line{display:block;margin-top:4px}
#validation:has(.hint-line){max-width:none;width:auto}
.continue-dock .continue-rarity{max-width:min(560px,calc(100vw - 32px));padding:0 16px;box-sizing:border-box;text-wrap:balance}
#modal .summit-card-preview{max-height:calc(100dvh - 390px)!important}
@media(max-height:700px){#modal .summit-card-preview{max-height:calc(100dvh - 300px)!important}}
/* critic r4 */
#validation .nw{white-space:nowrap}
/* hint width: set from the dock by widenHint() in app.js (the % here only measured the narrow answer pod) */
#modal .summit-card-preview{max-height:calc(100dvh - 402px)!important}
@media(max-height:700px){#modal .summit-card-preview{max-height:calc(100dvh - 312px)!important}}
#modal:has(.summit-card-preview) .summit-card-actions{margin-top:12px}
#modal:has(.summit-card-preview) .modal-note{color:#efe3c8!important;opacity:1}
/* Art QA F2 (overnight 2026-11-20): on phones the question card's plank edge cut the walkway climbers at the ankles; 20 px lower clears the walkway lip */
@media(max-width:400px){.game-content .challenge-card{top:20px}}
/* N1: a queued ASCEND is bright, says it will start by itself, and fills in stepped 4 % increments as the trail loads */
.home-ascend #begin.prep-live{opacity:1!important;filter:none!important;position:relative;overflow:hidden;cursor:progress}
/* r8: an opaque stepped fill drawn on the button itself; the up-arrows (its ::before/::after) step aside while preparing */
.home-ascend #begin.prep-live{background-image:linear-gradient(90deg,#6e5326 0 var(--prep,0%),transparent var(--prep,0%))!important}
.home-ascend #begin.prep-live::before,.home-ascend #begin.prep-live::after{display:none!important}
.home-ascend #begin.prep-live .prep-pct{display:inline-block;min-width:3.2em;text-align:left;color:#ffd27f}
body[data-warming] .topbar #mobile-menu[aria-disabled=true]{cursor:progress}

/* F5 nit (playtest r1): the receipt eyebrow said "WELCOME!" above the result; it names the climb instead */
.receipt .receipt-store::before{content:"YOUR CLIMB"!important}
/* User 2026-11-20: both ASCEND arrows bob up together (the right one was half a beat behind, so they alternated) */
.home-ascend .primary::after{animation-delay:0s!important}
/* User 2026-11-20: the evolve note sits above the main home button */
.home-ascend{flex-direction:column;align-items:center;gap:4px}
.home-ascend .home-evolve{pointer-events:auto;margin:0;color:#ffd27f;font:400 20px/1 var(--pixel);letter-spacing:2px;text-decoration:underline solid 2px;text-underline-offset:5px;min-height:40px;padding:0 6px;border:0;background:none;cursor:pointer;text-shadow:2px 0 #120f1f,-2px 0 #120f1f,0 2px #120f1f,0 -2px #120f1f,2px 2px #120f1f,-2px -2px #120f1f,2px -2px #120f1f,-2px 2px #120f1f}
/* Google sign-in corner (account.js): third in the top-left column under menu and sound; account.js aims its tip at the screen centre */
.topbar .account-corner{pointer-events:auto}
/* critic r9: the Google corner tile matches the menu and sound tiles (size, gap, dusk frame + night fill) and shows on home only */
.topbar .account-corner{margin-top:8px}
.topbar .account-corner .account-corner-button{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0!important;background:var(--c-dusk)!important;box-shadow:none!important;color:var(--c-cream);isolation:isolate;clip-path:var(--px-r3)}
.topbar .account-corner .account-corner-button::before{content:"";position:absolute;inset:2px;z-index:-1;clip-path:var(--px-r2);background:linear-gradient(#fff1d80d,#fff1d800 50%),var(--c-night)}
.topbar .account-corner .account-corner-button:hover{background:var(--c-gold)!important}
.topbar .account-corner .account-corner-button:focus-visible{background:var(--c-cream)!important;outline:0}
@media(max-width:700px){.topbar .account-corner{margin-top:12px}.topbar .account-corner .account-corner-button{width:32px;height:32px}}
body:not([data-phase=home]) .topbar .account-corner{display:none}
/* anillion.org line (2026-11-20): on desktop the extra line pushed How to play onto the Fumoto Mart sign; tighter spacing keeps it above */
@media(min-width:701px){.home-title .home-at{margin-top:2px!important;margin-bottom:4px!important}.home-title .home-sub{margin-bottom:6px!important}.home-title .home-how{min-height:32px}}
