/* Phase 1 retention: lantern streak, records strip, omikuji, countdown, crescendo banners, summit card preview. */

/* ---------- Lanterns ---------- */
.lantern-row{display:flex;gap:5px;justify-content:center;align-items:flex-end}
.lantern{display:inline-grid;place-items:center;width:20px;height:28px;position:relative}
.lantern-art{width:20px;height:28px;image-rendering:pixelated;overflow:visible}
.lantern .l-cap,.lantern .l-tassel{fill:#3b2a1c}
.lantern .l-body{fill:#5a5470}.lantern .l-rib{fill:#47415c}.lantern .l-core{fill:#5a5470}
.lantern[data-state=lit] .l-body{fill:#e85d3f}.lantern[data-state=lit] .l-rib{fill:#b8402c}.lantern[data-state=lit] .l-core{fill:#ffd27f}
.lantern[data-state=lit]::before{content:"";position:absolute;inset:4px -2px 6px;background:#ffb35c2e;box-shadow:0 0 0 2px #ffb35c17;pointer-events:none}
.lantern[data-state=today] .l-body{fill:#5a5470}.lantern[data-state=today] .l-core{fill:#ffd27f}
.lantern[data-state=today]{animation:lantern-wait 1.6s steps(2) infinite}
@keyframes lantern-wait{50%{opacity:.55}}
.lantern[data-state=lit]:last-child{animation:lantern-sway 2.4s ease-in-out infinite;transform-origin:50% 0}
@keyframes lantern-sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
.lantern[data-state=saved]{width:20px}
.onigiri-art{width:18px;height:18px;image-rendering:pixelated}
.onigiri-art .o-rice{fill:#fff6e8}.onigiri-art .o-nori{fill:#1f2a2a}
.lantern[data-state=saved] .onigiri-art{margin-top:8px}

/* ---------- Home strip ---------- */
.streak-strip{display:flex;align-items:center;gap:10px;margin:0 auto 14px;padding:5px 12px 4px;width:max-content;max-width:calc(100vw - 32px);background:#120f1fb3;box-shadow:inset 0 0 0 2px #fff1d81f,3px 3px 0 #050b1580;color:var(--c-cream,#fff1d8)}
.streak-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1;text-align:left}
.streak-main{font-size:18px;letter-spacing:2px}.streak-main b{color:var(--c-gold,#ffd27f);font-weight:400}
.streak-sub{font-size:13px;letter-spacing:1px;opacity:.82;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.streak-sub .bank{display:inline-flex;align-items:center;gap:2px}
.streak-sub .onigiri-art{width:12px;height:12px}
.streak-strip[data-lit=no] .streak-main{color:#fff1d8cc}
@media (max-width:520px){.streak-strip{flex-direction:column;gap:6px;padding:8px 10px}.streak-copy{align-items:center;text-align:center}.streak-sub{justify-content:center}}

/* ---------- Basecamp on the receipt ---------- */
.basecamp{margin:10px 0 4px;padding:10px 0;border-bottom:2px dashed var(--rule,#25232b5c);color:var(--paper-ink,#25232b)}
.basecamp .streak-strip{margin:0 auto;background:transparent;box-shadow:none;outline:1px dashed var(--rule,#25232b5c);outline-offset:0;color:var(--paper-ink,#25232b)}
.basecamp .streak-main b{color:#c0392b}
.basecamp .lantern[data-state=dark] .l-body,.basecamp .lantern[data-state=today] .l-body{fill:#cfc6b4}.basecamp .lantern[data-state=dark] .l-rib{fill:#b9af9c}.basecamp .lantern[data-state=dark] .l-core{fill:#cfc6b4}
.basecamp .lantern[data-state=lit]::before{display:none}
.basecamp .onigiri-art .o-rice{fill:#fff}.basecamp .onigiri-art{filter:drop-shadow(1px 0 #25232b) drop-shadow(-1px 0 #25232b) drop-shadow(0 1px #25232b) drop-shadow(0 -1px #25232b)}
/* Stamps stack in one centred column at the width of the widest, square to the paper (a rotation resampled the pixel text off its grid). */
.record-badges{display:grid;grid-template-columns:minmax(0,max-content);justify-content:center;gap:6px;margin-bottom:10px}
.record-badge{--badge-color:#c0392b;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 6px;padding:3px 8px 2px;background:transparent;color:#c0392b;text-align:center;box-shadow:inset 0 0 0 2px #c0392b,inset 0 0 0 3px var(--paper,#f5f0e3),inset 0 0 0 4px #c0392b99;animation:badge-stamp .5s steps(4) both}
.record-badge b{font-weight:400;font-size:16px;letter-spacing:1px;color:#c0392b}
.record-badge small{font-size:13px;opacity:.85}
@keyframes badge-stamp{0%{scale:1.6;opacity:0}60%{scale:.94;opacity:1}100%{scale:1}}
.records-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:10px 0 0;text-align:center}
.records-strip div{min-width:0}
.records-strip dt{font-size:12px;letter-spacing:1px;color:var(--paper-mute,#25232ba6)}
.records-strip dd{margin:2px 0 0;font-size:17px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.records-strip dd small{display:block;font-size:12px;color:var(--paper-mute,#25232ba6)}
.records-strip .rarest{display:inline-flex;align-items:center;gap:3px;max-width:100%}
.records-strip .rarest svg{flex:none}
@media (max-width:420px){.records-strip{grid-template-columns:repeat(2,1fr);row-gap:8px}}
.omikuji{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding:8px 10px;background:transparent;box-shadow:inset 0 0 0 1px var(--rule,#25232b5c)}
.omikuji-slip{flex:none;display:grid;place-items:center;width:30px;height:44px;background:#fff;box-shadow:inset 0 3px 0 #c0392b,inset 0 -3px 0 #c0392b,2px 2px 0 #25232b33}
.omikuji-slip b{display:block;width:1em;word-break:break-all;line-height:1;text-align:center;font-weight:400;font-size:18px;color:#c0392b;font-family:"Hiragino Mincho ProN","Yu Mincho",serif}
.omikuji small{font-size:12px;letter-spacing:1px;color:var(--paper-mute,#25232ba6)}
.omikuji p{margin:2px 0 0;font-size:16px;line-height:1.15}
.next-trail{display:flex;justify-content:center;align-items:baseline;gap:10px;margin-top:10px}
.omikuji .next-trail{justify-content:flex-start;gap:8px;margin-top:4px}
.omikuji .next-trail b{font-size:20px}
.next-trail small{font-size:13px;letter-spacing:2px;color:var(--paper-mute,#25232ba6)}
.next-trail b{font-weight:400;font-size:24px;letter-spacing:2px;font-variant-numeric:tabular-nums}

/* ---------- Ghost of the best climb on the distribution chart ---------- */
.distribution-ghost text{letter-spacing:1px}

/* ---------- Updraft heat on the HUD badge ---------- */
.updraft-badge[data-heat="2"]{background:#ff9ec0;box-shadow:inset 0 -2px 0 #c55b86,2px 2px 0 #0a1422}
.updraft-badge[data-heat="3"]{background:#ff7a5a;color:#2a0a06;box-shadow:inset 0 -2px 0 #b8402c,2px 2px 0 #0a1422}
.updraft-badge[data-heat="4"]{background:#fff2b8;box-shadow:inset 0 -2px 0 #ffb347,0 0 0 2px #ffd27f,2px 2px 0 #0a1422;animation:badge-pop .36s steps(3) both,badge-flicker .5s steps(2) .4s infinite}
@keyframes badge-flicker{50%{box-shadow:inset 0 -2px 0 #ff7a3a,0 0 0 2px #ff9e4c,2px 2px 0 #0a1422}}

/* ---------- Crescendo at the reveal impact ---------- */
.crescendo-layer{position:absolute;inset:0;z-index:40;pointer-events:none;overflow:hidden}
.crescendo-flash{position:absolute;inset:0;opacity:0}
.crescendo-layer[data-burst=gold] .crescendo-flash{background:radial-gradient(circle at 50% 43%,transparent 0 120px,#ffd27f66 120px 150px,#ffd27f40 150px 210px,#ffd27f22 210px 300px,#ffd27f10 300px 420px,transparent 420px);animation:cres-flash .9s steps(5) both}
.crescendo-layer[data-burst=ember] .crescendo-flash{box-shadow:inset 0 0 0 10px #ee7a7a55,inset 0 0 0 22px #ee7a7a2e,inset 0 0 0 38px #ee7a7a14;animation:cres-ember 1.4s steps(6) both}
@keyframes cres-flash{0%{opacity:0}12%{opacity:.9}100%{opacity:0}}
@keyframes cres-ember{0%{opacity:0}20%{opacity:1}100%{opacity:0}}
.crescendo-layer>i{position:absolute;top:-10px;left:var(--x);width:calc(var(--s)*3px);height:calc(var(--s)*3px);image-rendering:pixelated;background:var(--c);box-shadow:2px 2px 0 #120f1f66;animation:cres-fall 2.6s steps(16) var(--d) both}
@keyframes cres-fall{0%{transform:translate(0,0)}100%{transform:translate(calc(var(--s)*12px - 24px),105vh)}}
.crescendo-banners{position:absolute;left:50%;top:clamp(92px,17vh,150px);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px}
.crescendo-banner{display:flex;align-items:baseline;gap:8px;padding:4px 12px 3px;background:#120f1fe0;color:#fff1d8;box-shadow:inset 0 -3px 0 var(--bar,#9fd3ff),3px 3px 0 #050b1599;white-space:nowrap;animation:cres-slam .55s steps(4) both}
.crescendo-banner small{font-size:14px;letter-spacing:3px;opacity:.85}
.crescendo-banner b{font-weight:400;font-size:26px;letter-spacing:2px;color:var(--bar,#9fd3ff)}
.crescendo-banner.first{--bar:var(--tier-color);animation-delay:.05s}
.crescendo-banner.first b{font-size:30px}
.crescendo-banner.updraft[data-heat="1"]{--bar:#9fd3ff}
.crescendo-banner.updraft[data-heat="2"]{--bar:#ff9ec0}
.crescendo-banner.updraft[data-heat="3"]{--bar:#ff7a5a}
.crescendo-banner.updraft[data-heat="4"]{--bar:#ffd27f}
.crescendo-banner.updraft[data-heat="3"] b,.crescendo-banner.updraft[data-heat="4"] b{font-size:32px}
.crescendo-banner.updraft[data-heat="4"]{animation:cres-slam .55s steps(4) both,cres-shake .3s steps(3) .55s 3}
@keyframes cres-slam{0%{transform:scale(2.2);opacity:0}55%{transform:scale(.92);opacity:1}100%{transform:none;opacity:1}}
@keyframes cres-shake{33%{transform:translate(-2px,1px)}66%{transform:translate(2px,-1px)}}
.crescendo-layer .crescendo-banners{animation:cres-out .4s steps(3) 1.7s forwards}
.crescendo-layer[data-burst=gold] .crescendo-banners{animation-delay:2.6s}
@keyframes cres-out{to{opacity:0;transform:translateX(-50%) translateY(-8px)}}
body.reduce-motion .crescendo-banner,body.reduce-motion .record-badge,body.reduce-motion .lantern{animation:none!important}
body.reduce-motion .crescendo-layer .crescendo-banners{animation:cres-out .4s linear 1.7s forwards}

/* ---------- Summit card share ---------- */
.summit-card-preview{display:block;width:min(100%,360px);margin:6px auto 12px;image-rendering:pixelated;box-shadow:4px 4px 0 #050b1580}
.summit-card-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.summit-card-actions a.primary{text-decoration:none;display:inline-flex;align-items:center;color:#252737!important}
.result-actions #copy-climb{min-width:0}

/* Critic pass: the share modal is opaque, the comparison caption wraps. */
dialog:has(.summit-card-preview){background:#1d3340!important}
dialog:has(.summit-card-preview)::backdrop{background:#050b15e6!important}
.result-card .distribution-caption{white-space:normal;overflow:visible;text-overflow:clip}
/* Home: a small lantern + streak number under the date (the full strip lives on the receipt). */
.lantern-chip{position:fixed;top:calc(max(25px,env(safe-area-inset-top)) + 22px);right:max(22px,env(safe-area-inset-right));z-index:9;display:flex;align-items:center;gap:5px;padding:2px 8px 2px 5px;background:#120f1f8c;box-shadow:inset 0 0 0 1px #fff1d81f;color:#fff1d8;font:400 18px/1 var(--pixel,VT323,monospace);letter-spacing:1px;text-shadow:1px 2px #163048;cursor:default}
.lantern-chip .lantern,.lantern-chip .lantern-art{width:14px;height:20px}
.lantern-chip .lantern{animation:none}
.lantern-chip .lantern[data-state=lit]::before{inset:3px -2px 5px}
.lantern-chip[data-state=dark] b{opacity:.7}
/* Labelled and opaque (gacha critic): the streak chip sits above the labelled coin chip. */
.lantern-chip{background:#120f1f;min-height:40px;padding:0 10px 0 8px;text-shadow:none}
.lantern-chip small{font-size:12px;letter-spacing:2px;opacity:.75}
@media (max-width:700px){.lantern-chip{top:calc(max(22px,env(safe-area-inset-top)) + 18px);right:max(15px,env(safe-area-inset-right));font-size:16px}}
/* Receipt close: stays reachable while the receipt scrolls; returns to the village/title screen. */
.receipt .receipt-close{position:sticky;top:0;float:right;z-index:3;display:grid;place-items:center;width:34px;height:34px;margin:-14px -12px -20px 0;padding:0;border:0;background:var(--paper-ink,#25232b);color:var(--paper,#f5f0e3);font:400 26px/1 var(--pixel,VT323,monospace);box-shadow:2px 2px 0 #25232b55;cursor:pointer}
.receipt .receipt-close:focus-visible{background:#c0392b}
/* Keyboard focus keeps a visible ring; a mouse hover is only the colour change (user: no box on hover). */
.receipt .receipt-close:focus-visible{outline:2px solid #ffd27f;outline-offset:1px}
/* Home title round (2026-10-27): the streak is a quiet label on the sky, no box (user: more minimal). 20px+ pixel text
   with the title's ink outline reads on every sky; the date sits above it, the coins below. */
.lantern-chip{top:calc(max(25px,env(safe-area-inset-top)) + 22px);background:none;box-shadow:none;min-height:32px;padding:0 2px;gap:6px;color:#fff0ce;font-size:22px;text-shadow:1px 0 #20354d,-1px 0 #20354d,0 1px #20354d,0 -1px #20354d,1px 2px #20354d}
.lantern-chip small{font-size:20px;letter-spacing:1px;opacity:1;color:#eadfc4}
.lantern-chip[data-state=dark] b{opacity:1}.lantern-chip .lantern{filter:brightness(1.5)} /* critic r1: the unlit lantern and its 0 stay readable on every sky */
@media (max-width:700px){.lantern-chip{top:calc(max(22px,env(safe-area-inset-top)) + 20px);right:max(16px,env(safe-area-inset-right));font-size:22px}}
/* Anillion receipts (user, 2026-10-27): any Anillion answer turns the paper gold; a climb of only Anillions gets a soft prism paper, special but not loud.
   Uses :has(), so engines without it keep the plain receipt. */
/* Gold is metallic foil (user: "more gold and shiny"): hard-edged light and dark facets, plus a soft sheen that glides across and pixel glints that twinkle (user: animated effects, not a still beam).
   The sweep animates a registered --shine (the background itself is !important, which would block animating it); without @property it simply stays still. */
@property --shine{syntax:'<percentage>';inherits:false;initial-value:-30%}
@keyframes receipt-shine{0%{--shine:-40%}45%,100%{--shine:140%}}
/* Glints: pixel 4-point stars that grow 7 → 21 px in whole 7 px steps and back, in the text-free margins and header corner at fixed spots, each on its own clock, so the foil twinkles instead of showing a still beam. */
@property --g1{syntax:'<length>';inherits:false;initial-value:0px}
@property --g2{syntax:'<length>';inherits:false;initial-value:0px}
@property --g3{syntax:'<length>';inherits:false;initial-value:0px}
@property --g4{syntax:'<length>';inherits:false;initial-value:0px}
@property --g5{syntax:'<length>';inherits:false;initial-value:0px}
@keyframes glint1{0%,0%{--g1:0px}3%{--g1:7px}6%{--g1:14px}9%{--g1:21px}12%{--g1:14px}15%{--g1:7px}18%,100%{--g1:0px}}
@keyframes glint2{0%,22%{--g2:0px}25%{--g2:7px}28%{--g2:14px}31%{--g2:21px}34%{--g2:14px}37%{--g2:7px}40%,100%{--g2:0px}}
@keyframes glint3{0%,41%{--g3:0px}44%{--g3:7px}47%{--g3:14px}50%{--g3:21px}53%{--g3:14px}56%{--g3:7px}59%,100%{--g3:0px}}
@keyframes glint4{0%,63%{--g4:0px}66%{--g4:7px}69%{--g4:14px}72%{--g4:21px}75%{--g4:14px}78%{--g4:7px}81%,100%{--g4:0px}}
@keyframes glint5{0%,80%{--g5:0px}83%{--g5:7px}86%{--g5:14px}89%{--g5:21px}92%{--g5:14px}95%{--g5:7px}98%,100%{--g5:0px}}
/* Toned down (user: "a bit too golden"): paler champagne facets with less contrast between them, and a softer light band. */
body .result-card.receipt:has(summary[data-tier=gem]){--paper:#f7e8bc;--rule:#7a5a1a5c;--paper-mute:#25232bc0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23d9a12e' d='M3 0h1v7H3zM0 3h7v1H0z'/%3E%3Cpath fill='%23ffe680' d='M2 3h3v1H2zM3 2h1v3H3z'/%3E%3Cpath fill='%23ffffff' d='M3 3h1v1H3z'/%3E%3Cpath fill='%23d9a12e99' d='M1 1h1v1H1zM5 1h1v1H5zM1 5h1v1H1zM5 5h1v1H5z'/%3E%3C/svg%3E") left calc(48px - var(--g1) / 2) top calc(36px - var(--g1) / 2)/var(--g1) var(--g1) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23d9a12e' d='M3 0h1v7H3zM0 3h7v1H0z'/%3E%3Cpath fill='%23ffe680' d='M2 3h3v1H2zM3 2h1v3H3z'/%3E%3Cpath fill='%23ffffff' d='M3 3h1v1H3z'/%3E%3Cpath fill='%23d9a12e99' d='M1 1h1v1H1zM5 1h1v1H5zM1 5h1v1H1zM5 5h1v1H5z'/%3E%3C/svg%3E") right calc(12px - var(--g2) / 2) top calc(170px - var(--g2) / 2)/var(--g2) var(--g2) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23d9a12e' d='M3 0h1v7H3zM0 3h7v1H0z'/%3E%3Cpath fill='%23ffe680' d='M2 3h3v1H2zM3 2h1v3H3z'/%3E%3Cpath fill='%23ffffff' d='M3 3h1v1H3z'/%3E%3Cpath fill='%23d9a12e99' d='M1 1h1v1H1zM5 1h1v1H5zM1 5h1v1H1zM5 5h1v1H5z'/%3E%3C/svg%3E") left calc(12px - var(--g3) / 2) top calc(300px - var(--g3) / 2)/var(--g3) var(--g3) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23d9a12e' d='M3 0h1v7H3zM0 3h7v1H0z'/%3E%3Cpath fill='%23ffe680' d='M2 3h3v1H2zM3 2h1v3H3z'/%3E%3Cpath fill='%23ffffff' d='M3 3h1v1H3z'/%3E%3Cpath fill='%23d9a12e99' d='M1 1h1v1H1zM5 1h1v1H5zM1 5h1v1H1zM5 5h1v1H5z'/%3E%3C/svg%3E") right calc(12px - var(--g4) / 2) top calc(430px - var(--g4) / 2)/var(--g4) var(--g4) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23d9a12e' d='M3 0h1v7H3zM0 3h7v1H0z'/%3E%3Cpath fill='%23ffe680' d='M2 3h3v1H2zM3 2h1v3H3z'/%3E%3Cpath fill='%23ffffff' d='M3 3h1v1H3z'/%3E%3Cpath fill='%23d9a12e99' d='M1 1h1v1H1zM5 1h1v1H5zM1 5h1v1H1zM5 5h1v1H5z'/%3E%3C/svg%3E") left calc(12px - var(--g5) / 2) top calc(560px - var(--g5) / 2)/var(--g5) var(--g5) no-repeat,repeating-linear-gradient(0deg,#5a3c000a 0 1px,transparent 1px 4px),linear-gradient(115deg,transparent calc(var(--shine) - 14%),#fffaea70 calc(var(--shine) - 6%),#fffef8d8 var(--shine),#fffaea70 calc(var(--shine) + 6%),transparent calc(var(--shine) + 14%)),linear-gradient(170deg,#f6e6b4,#f3e0a8 55%,#f0da9c)!important;animation:receipt-shine 3s linear .6s infinite,glint1 1.9s step-end infinite,glint2 2.3s step-end .3s infinite,glint3 2.1s step-end .7s infinite,glint4 2.5s step-end 1.1s infinite,glint5 1.7s step-end .5s infinite}
/* gacha.css paints a flat var(--paper) strip beside and above the sticky close X to hide text scrolling under it; on foil and prism paper that
   strip reads as a box (user: "remove the hover box at the top"); it is dropped on every receipt (see the rule below). */
body .result-card.receipt .receipt-close::before,body .result-card.receipt .receipt-close::after{content:none}
body .result-card.receipt.enter:has(summary[data-tier=gem]){animation:receipt-print .7s steps(7) both,receipt-shine 3s linear .6s infinite,glint1 1.9s step-end infinite,glint2 2.3s step-end .3s infinite,glint3 2.1s step-end .7s infinite,glint4 2.5s step-end 1.1s infinite,glint5 1.7s step-end .5s infinite} /* keep fx.css's print-in */
/* The lite quality tiers cap every loop at one pass (fx.css); the foil keeps looping there because it is the reward moment and only repaints one card. */
body[data-quality] .result-card.receipt:not(#_):has(summary[data-tier=gem]){animation-iteration-count:infinite!important}
body[data-quality] .result-card.receipt.enter:not(#_):has(summary[data-tier=gem]){animation-iteration-count:1,infinite,infinite,infinite,infinite,infinite,infinite!important}
body.reduce-motion .result-card.receipt:has(summary[data-tier=gem]),body.reduce-motion .result-card.receipt.enter:has(summary[data-tier=gem]){animation:none}
@media (prefers-reduced-motion:reduce){body .result-card.receipt:has(summary[data-tier=gem]),body .result-card.receipt.enter:has(summary[data-tier=gem]){animation:none}}
body .result-card.receipt:has(summary[data-tier=gem]) .receipt-header{border-bottom-color:#b8861a}
body .result-card.receipt:has(summary[data-tier=gem]) .receipt-store{color:#7a4f00}
body .result-card.receipt:has(summary[data-tier=gem]):not(:has(summary:not([data-tier=gem]))){--paper:#f6f0ea;--rule:#5a4a6a5c;background:repeating-linear-gradient(0deg,#00000006 0 1px,transparent 1px 4px),linear-gradient(165deg,#fde4ea 0%,#fdf1d2 22%,#e6f4df 44%,#dfeefa 66%,#ece3fa 88%,#fde4ea 100%)!important}
body .result-card.receipt:has(summary[data-tier=gem]):not(:has(summary:not([data-tier=gem]))) .receipt-header{border-bottom:2px solid transparent;border-image:linear-gradient(90deg,#e8899a,#e8c06a,#8fc48a,#7fb0dc,#ae93dc) 1}
body .result-card.receipt:has(summary[data-tier=gem]):not(:has(summary:not([data-tier=gem]))) .receipt-store{color:#5a3f7a}
/* Climb log (user: the Anillion bar is yellow on yellow): the Anillion column (tier colour #ffd27f; app.js only passes the colour) gets a solid,
   stepped rainbow stem with a dark edge, readable on cream, gold and prism paper. */
.receipt .log-column[data-tier=gem] .log-stem{width:2px;opacity:1;background:linear-gradient(0deg,#d9637a 0 20%,#d99a2b 20% 40%,#5fa85a 40% 60%,#4f8fc9 60% 80%,#8a6cc9 80%);box-shadow:0 0 0 1px #25232b80}
/* Contrast on foil and prism paper (QA 2026-10-27 measured 3.1–4.4:1 against the pale prism stops): the stamps, streak count, seals and the
   Anillion tier label go one step darker on special receipts only. */
body .result-card.receipt:has(summary[data-tier=gem]) .record-badge,body .result-card.receipt:has(summary[data-tier=gem]) .record-badge b{color:#9a2419}
body .result-card.receipt:has(summary[data-tier=gem]) .record-badge{box-shadow:inset 0 0 0 2px #9a2419,inset 0 0 0 3px var(--paper,#f5f0e3),inset 0 0 0 4px #9a241999}
body .result-card.receipt:has(summary[data-tier=gem]) .record-badge small{opacity:1}
body .result-card.receipt:has(summary[data-tier=gem]) .basecamp .streak-main b{color:#9a2419}
body .result-card.receipt:has(summary[data-tier=gem]) .seal,body .result-card.receipt:has(summary[data-tier=gem]) .receipt-hanko{color:#a8281e}
body .result-card.receipt:has(summary[data-tier=gem]) [data-tier=gem] b,body .result-card.receipt:has(summary[data-tier=gem]) summary[data-tier=gem] .receipt-price b{color:#6e4c0c}
/* Rarity legend under the Climb log (QA 2026-10-28 measured 3.4–3.5:1 at the old 52% tint): a 30% tier tint keeps each hue but reads ≥ 5:1 on cream, gold and prism. */
body .result-card.receipt .rarity-legend>span{color:color-mix(in srgb,var(--tier-color) 30%,#25232b)!important}

/* ---- Game review 2026-11-03 (D-receipt): I3 phone receipt order + contrast, A2 home next trail. Scoped to the receipt and home. ---- */
/* I3 contrast: secondary receipt text was --paper-mute (65% ink, ~4.6:1 on cream, under 4.5:1 on tinted rows). A solid ink reads ≥ 6:1 on every row tint. */
body .result-card.receipt{--receipt-mute:#45404d}
body .result-card.receipt .response-count,body .result-card.receipt .archive-count,body .result-card.receipt .rarity-empty,body .result-card.receipt .rarity-group-heading small,body .result-card.receipt .receipt-item small,body .result-card.receipt .receipt-qty,body .result-card.receipt .result-score small,body .result-card.receipt .result-local,body .result-card.receipt .receipt-deeper,body .result-card.receipt .round-expand,body .result-card.receipt .receipt-meta,body .result-card.receipt .seal-empty{color:var(--receipt-mute)!important}
/* I3: the seven answer tiles under the headline. */
body .result-card.receipt .receipt-tiles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;list-style:none;margin:10px 0 0;padding:0}
body .result-card.receipt .receipt-tiles li{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:6px 0 4px;background:color-mix(in srgb,var(--tier-color) 34%,var(--paper));border-bottom:3px solid var(--tier-color);color:var(--paper-ink)}
body .result-card.receipt .receipt-tiles li[data-tier=miss]{background:transparent;border:2px dashed var(--rule);border-bottom-width:3px}
body .result-card.receipt .receipt-tile-gem{display:block;width:24px;height:24px;line-height:0}
body .result-card.receipt .receipt-tile-gem svg{width:24px;height:24px;image-rendering:pixelated}
body .result-card.receipt .receipt-tiles b{font:400 20px/1 var(--pixel);color:var(--paper-ink)}
body .result-card.receipt .receipt-tiles small{font:400 20px/1 var(--pixel);color:var(--receipt-mute)}
/* I3: everything below Share folds into one native <details>. */
body .result-card.receipt .receipt-more{margin-top:10px;border-top:2px dashed var(--rule)}
body .result-card.receipt .receipt-more>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 2px;cursor:pointer;list-style:none;font:400 20px/1.1 var(--pixel);letter-spacing:1px;color:var(--paper-ink)}
body .result-card.receipt .receipt-more>summary::-webkit-details-marker{display:none}
body .result-card.receipt .receipt-more>summary small{flex:1;font-size:20px;letter-spacing:0;color:var(--receipt-mute)}
body .result-card.receipt .receipt-more>summary::after{content:"+";font-size:22px;color:var(--paper-ink)}
body .result-card.receipt .receipt-more[open]>summary::after{content:"−"}
body .result-card.receipt .receipt-more>summary:focus-visible{outline:2px solid var(--paper-ink);outline-offset:2px}
/* A2: the next trail and the streak under YOUR CLIMB on home. */
body .home-ascend:has(.home-next-trail){flex-direction:column;align-items:center;gap:6px}
body .home-next-trail{order:-1;margin:0;padding:3px 10px;width:max-content;max-width:calc(100% - 32px);font:400 20px/1.2 var(--pixel,VT323,monospace);letter-spacing:1px;color:#fff6e3;background:none;text-shadow:1px 1px 0 #120f1f;text-align:center}

/* Review F2 (Game designer, 2026-11-03): the climb HUD hides behind the Journal, as on home. Kept here, not in fuji.css/fx.css,
   so other teams' files stay theirs. */
body[data-phase=journal] .hud,body[data-phase=journal] .altitude-rail,body[data-phase=journal] .pet-action,body[data-phase=journal] .summit-label,body[data-phase=journal] .hud-top{visibility:hidden}

/* Review A3 (Game designer, 2026-11-03): the sound button's visible state and the volume sliders. */
#sound-state{position:fixed;z-index:30;transform:translateY(-50%);padding:1px 5px;font:400 20px/1 var(--pixel,VT323,monospace);letter-spacing:1px;color:#fff6e3;background:#120f1fcc;white-space:nowrap;pointer-events:none}
#sound-state[data-state="off"]{color:#ffd27f}
.setting-volume input[type=range]{width:min(160px,40vw);accent-color:var(--c-gold,#ffd27f)}
.setting-volume output{min-width:3.5ch;text-align:right;font-variant-numeric:tabular-nums}

/* RECEIPT DETAILS: at 20px the hint takes its own line under the title instead of wrapping beside it. */
body .result-card.receipt .receipt-more>summary{flex-wrap:wrap;position:relative;padding-right:28px}
body .result-card.receipt .receipt-more>summary small{flex:1 1 100%;order:2}
body .result-card.receipt .receipt-more>summary::after{position:absolute;right:4px;top:50%;transform:translateY(-50%)}


/* Review R2 (Game designer, 2026-11-03): the Atlas and Goshuin Book inside the Journal; How to play's Altitude section;
   New questions beside RESUME during a free climb. VT323 stays at 20px or more. */
.logbook .journal-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.logbook .journal-links button{min-height:44px;flex:1 1 140px}
.howto-head{margin:18px 0 6px;font:400 22px/1.1 var(--pixel,VT323,monospace);letter-spacing:2px}
#new-questions{min-height:44px;margin-left:10px}


/* Polish (Game designer, 2026-11-04): the phone Journal uses the space the hidden HUD left, its rows sit on two lines,
   and the RECEIPT DETAILS "+" lines up with its title. */
@media(max-width:520px){
 body[data-phase=journal] .logbook{max-height:calc(100dvh - 120px)}
 /* critic r6: fuji.css starts the Journal under the climb HUD (--hud-safe + 100px, 230px on phone), but F2 hides that HUD here; start it
    under the menu and sound buttons instead, so a long Journal grows up before it scrolls. */
 html body[data-phase=journal] .game-content{top:96px}
 .logbook .journal-entry{display:grid;grid-template-columns:30px minmax(0,1fr) auto;grid-template-areas:"icon text text" ". alt view";align-items:center;gap:4px 10px}
 .logbook .journal-entry>.tier-symbol{grid-area:icon}
 .logbook .journal-entry>div{grid-area:text;min-width:0}
 .logbook .journal-entry>div>strong,.logbook .journal-entry>div>small{display:block}
 .logbook .journal-entry>b{grid-area:alt}
 .logbook .journal-entry>button{grid-area:view;min-height:44px}
}
body .result-card.receipt .receipt-more>summary::after{top:4px;transform:none;line-height:22px}

/* User 2026-11-04: no ON/OFF/NO MUSIC tag beside the sound button (the speaker icon already shows the state). */
#sound-state{display:none!important}

/* Summit Wind card styles removed 2026-11-04 (Summit Wind retired; before copy in game-review-fixes-2026-11-03/straight-altitude/). */
