/* ================= ROUND 13 · reveal results card, flung quips, rarity emblems (agent E) ================= */

/* ---- Rarity emblems (emblems.js inline SVG) ---- */
svg.emblem,svg.rc-emblem-art,svg.rc-mini{display:inline-block;image-rendering:pixelated;flex:none;vertical-align:middle}
.rarity-legend .emblem{width:32px;height:32px}.log-gem .emblem{width:24px;height:24px}
.result-rarity .emblem,.rarity-group-heading .emblem{width:24px;height:24px;margin:-4px 6px 0 0}
.log-gem:has(.emblem){background:none!important;border:0!important;box-shadow:none!important;width:24px!important;height:24px!important;font-size:0!important;line-height:0!important;transform:translate(-50%,50%)}
.log-gem .emblem{filter:drop-shadow(0 1px 0 #120f1f)}

/* ---- Results card (round 14: transparent, centred, minimal - krillion reference) ---- */
/* No panel, frame, scroll box or rows: small emblem, big tier name, quoted answer, "+N PTS · climb M m", one flavour
   line. Every line is pixel text with a 2 px ink outline + 1 px night drop (same recipe as the quips); a soft
   elliptical scrim (no edges, no box) darkens the world just enough behind the text at any region or hour. */
.round-card{--rc:var(--tier-color,var(--c-gold));--ol:#120f1f;--dp:#1e1a33;pointer-events:auto;position:relative;isolation:isolate;width:min(560px,calc(100vw - 32px));margin:0 auto;padding:0;
 display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--c-cream);font-family:var(--pixel);background:none;border:0;
 --tx:2px 0 0 var(--ol),-2px 0 0 var(--ol),0 2px 0 var(--ol),0 -2px 0 var(--ol),2px 2px 0 var(--ol),-2px 2px 0 var(--ol),2px -2px 0 var(--ol),-2px -2px 0 var(--ol),1px 4px 0 var(--dp),-1px 4px 0 var(--dp),0 0 10px rgba(18,15,31,.55);
 --tx1:1px 0 0 var(--ol),-1px 0 0 var(--ol),0 1px 0 var(--ol),0 -1px 0 var(--ol),1px 1px 0 var(--ol),-1px 1px 0 var(--ol),1px -1px 0 var(--ol),-1px -1px 0 var(--ol),0 3px 0 var(--dp),0 0 8px rgba(18,15,31,.6)}
.round-card::before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:calc(100% + 360px);height:calc(100% + 220px);transform:translate(-50%,-50%);pointer-events:none;
 background:radial-gradient(closest-side,rgba(18,15,31,.4),rgba(18,15,31,.2) 55%,rgba(18,15,31,0))}
.round-card.enter{animation:rc-in .45s cubic-bezier(.2,1.4,.4,1) both}
.round-card.enter::before{animation:rc-scrim .5s ease-out both}
@keyframes rc-in{0%{opacity:0;transform:translateY(14px)}100%{opacity:1;transform:none}}
@keyframes rc-scrim{0%{opacity:0}100%{opacity:1}}
/* 2026-11-02 (user): the rarity is the focus. The 48 px emblem grid at whole multiples only: since the
   krillion-style pass (later 2026-11-02) 2× everywhere, so every art pixel stays square; the bob is one art pixel. The shadow is one art pixel. */
.rc-emblem{position:relative;flex:none;width:96px;height:96px;margin:0 0 14px;--epx:2px}
.rc-emblem-stack{position:relative;display:block;width:100%;height:100%;animation:rc-bob 2.6s steps(6,end) infinite}
.rc-emblem svg.rc-emblem-art{position:relative;width:100%;height:100%;filter:drop-shadow(0 var(--epx,2px) 0 #120f1f)}
/* Emblem escalation: dithered glow ring / sun-ray cycle behind, spirit-orb pulse in front (pixel SVG, opacity frames only). */
.rc-fx{position:absolute;left:-25%;top:-25%;width:150%;height:150%;pointer-events:none}
.rc-fx-front{z-index:1}
.rc-fx .fx-f0,.rc-fx .fx-f1,.rc-fx .fx-f2,.rc-fx .fx-f3{opacity:0}
.rc-fx-back .fx-f0,.rc-fx-back .fx-f1,.rc-fx-back .fx-f2,.rc-fx-back .fx-f3{animation:rc-f4 1.2s steps(1,end) infinite}
.rc-fx-back .fx-f1{animation-delay:-.9s}.rc-fx-back .fx-f2{animation-delay:-.6s}.rc-fx-back .fx-f3{animation-delay:-.3s}
.rc-fx-front .fx-f1{animation:rc-f2 .8s steps(1,end) infinite}
@keyframes rc-f4{0%{opacity:1}25%,100%{opacity:0}}
@keyframes rc-f2{0%{opacity:0}50%,100%{opacity:1}}
@keyframes rc-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.round-card .rc-tier{margin:0;font:400 48px/.95 var(--pixel);letter-spacing:5px;color:var(--rc);text-transform:uppercase;text-shadow:3px 0 0 var(--ol),-3px 0 0 var(--ol),0 3px 0 var(--ol),0 -3px 0 var(--ol),3px 3px 0 var(--ol),-3px 3px 0 var(--ol),3px -3px 0 var(--ol),-3px -3px 0 var(--ol),0 6px 0 var(--dp),0 0 18px color-mix(in srgb,var(--rc) 40%,transparent)}
.round-card .rc-answer{margin:14px 0 0;font-size:24px;line-height:1.05;letter-spacing:1px;color:var(--c-cream);overflow-wrap:anywhere;text-wrap:balance;text-shadow:var(--tx)}
.round-card .rc-points{margin:12px 0 0;font-size:22px;line-height:1;letter-spacing:1px;color:var(--c-cream);text-shadow:var(--tx)}
.round-card .rc-points b{font-weight:400;color:var(--rc);text-shadow:3px 0 0 var(--ol),-3px 0 0 var(--ol),0 3px 0 var(--ol),0 -3px 0 var(--ol),3px 3px 0 var(--ol),-3px 3px 0 var(--ol),3px -3px 0 var(--ol),-3px -3px 0 var(--ol),0 5px 0 var(--dp)}
.round-card .rc-points i{font-style:normal;margin:0 4px;color:var(--c-haze)}
.round-card .rc-coins{display:flex;align-items:center;justify-content:center;gap:6px;margin:14px 0 0;font-size:17px;line-height:1;letter-spacing:1px;color:#ffd27f;text-shadow:var(--tx1)}
.round-card .rc-coins b{font-weight:400}
.round-card .rc-coins .coin-icon{width:16px;height:16px;flex:none;image-rendering:pixelated;filter:drop-shadow(1px 1px 0 #120f1f)}
.round-card .rc-flavour{max-width:100%;text-wrap:balance;margin:10px auto 0;font-size:19px;line-height:1.1;letter-spacing:1px;color:#e7d8e2;text-shadow:var(--tx1)}
.round-card .rc-note{margin:12px 0 0;font-size:19px;line-height:1.1;letter-spacing:1px;color:#e7d8e2;text-wrap:balance;text-shadow:var(--tx1)}
.round-card .rc-quip{max-width:100%;text-wrap:balance;margin:14px auto 0;font-size:17px;line-height:1.15;letter-spacing:1px;color:#d9c6d3;text-shadow:var(--tx1)}
.round-card .rc-deeper{margin:10px 0 0;font-size:18px;letter-spacing:1px;color:var(--c-cream);text-shadow:var(--tx)}
.round-card .rc-deeper b{font-weight:400;color:var(--deeper-color,var(--c-lilac))}
.round-card.is-miss .rc-tier{font-size:36px;letter-spacing:4px;color:#c9a3c2}
.round-card.is-miss .rc-points b{color:#c9a3c2}
/* Staggered lines: each one arrives on its own beat. */
.round-card.enter .rc-answer,.round-card.enter .rc-points,.round-card.enter .rc-note,.round-card.enter .rc-flavour,.round-card.enter .rc-deeper,.round-card.enter .rc-quip,.round-card.enter .rc-coins{animation:rc-line .35s ease-out both}
.round-card.enter .rc-answer{animation-delay:.12s}.round-card.enter .rc-points{animation-delay:.22s}.round-card.enter .rc-flavour{animation-delay:.34s}.round-card.enter .rc-note{animation-delay:.22s}.round-card.enter .rc-deeper{animation-delay:.3s}.round-card.enter .rc-quip{animation-delay:.42s}.round-card.enter .rc-coins{animation-delay:.52s}
@keyframes rc-line{0%{opacity:0;transform:translateY(6px)}100%{opacity:1;transform:none}}
/* Centre the summary over the world (it was a left-column panel). */
body[data-phase="continue"] .game-content{z-index:3;inset:var(--hud-safe,150px) 0 calc(var(--footer-safe,40px) + 92px) 0!important;width:auto!important;left:0!important;right:0!important;transform:none!important;align-items:center!important;justify-content:center!important;overflow:visible}
@media(max-width:700px){
 .round-card{width:calc(100vw - 32px);padding-inline:12px;box-sizing:border-box}
 /* Round 16c (user, 2026-10-21): no phone plate -- the details are transparent like desktop; the desktop glow block
    below now applies at every width so the lines stay readable over busy scenes. */
 .rc-emblem{margin-bottom:10px}
 .round-card .rc-tier{font-size:36px;letter-spacing:3px}
 .round-card.is-miss .rc-tier{font-size:28px;letter-spacing:2px}
 .round-card .rc-answer{font-size:20px;margin-top:8px}
 .round-card .rc-points{font-size:18px;margin-top:8px}
 .round-card .rc-note{font-size:16px;margin-top:8px}
 .round-card .rc-quip{font-size:15px;margin-top:10px}
 .round-card .rc-coins{font-size:15px;margin-top:12px}
 .round-card .rc-flavour{font-size:16px;letter-spacing:1px;margin-top:8px}
 .round-card .rc-deeper{font-size:15px;text-wrap:balance}
 body[data-phase="continue"] .game-content{inset:var(--hud-safe,130px) 16px calc(var(--footer-safe,22px) + 234px) 16px!important} /* round 16c: +150 px so the details sit centred above the raised dock (nudged up 25 px after critic) */
}
@media(max-height:700px){.rc-emblem{margin-bottom:8px}.round-card .rc-tier{font-size:34px}.round-card .rc-quip,.round-card .rc-coins{margin-top:8px}}
body.reduce-motion .round-card,body.reduce-motion .round-card *,body.reduce-motion .round-card::before{animation:none!important}
@media(prefers-reduced-motion:reduce){.round-card,.round-card *,.round-card::before{animation:none!important}}
body[data-quality="0"] .rc-emblem-stack{animation:none!important}
@media(prefers-reduced-motion:reduce){.rc-fx .fx-f0{opacity:1}}
body.reduce-motion .rc-fx .fx-f0{opacity:1}

/* ---- Tap to skip hint during the reveal ---- */
/* 13b (E4): cream on a 72 % ink plate - >=7.2:1 even over the full cream impact flash and any day grade. */
.reveal-skip-hint{position:fixed;right:16px;bottom:18px;z-index:8;pointer-events:none;font:400 15px/1 var(--pixel);letter-spacing:2px;color:#fff1d8;background:rgba(18,15,31,.72);padding:6px 10px;border-radius:4px;opacity:0;text-shadow:none;transition:opacity .3s}
body[data-phase="reveal"] .reveal-skip-hint.show{opacity:1}
@media(max-width:700px){.reveal-skip-hint{right:50%;transform:translateX(50%);bottom:14px}}

/* ---- Quips: no bubble, transparent background, outlined pixel text flung up from the bottom edge ---- */
.quip-layer .quip.fling{position:absolute;left:0;top:0;width:max-content;max-width:min(300px,calc(100vw - 32px));transform:none;animation:none;will-change:transform,opacity;pointer-events:none;background:none}
.quip-layer .quip.fling::after{content:none!important;display:none!important}
.quip-layer .quip.fling .quip-text{display:block;padding:0;background:none!important;box-shadow:none!important;clip-path:none!important;color:var(--q);
 font:400 26px/1 var(--pixel);letter-spacing:1px;text-align:center;white-space:normal;
 /* 13b (E5): 2 px F.ink outline + 1 px F.night drop at (+1,+2); still no backing plate. */
 text-shadow:2px 0 0 #120f1f,-2px 0 0 #120f1f,0 2px 0 #120f1f,0 -2px 0 #120f1f,2px 2px 0 #120f1f,-2px 2px 0 #120f1f,2px -2px 0 #120f1f,-2px -2px 0 #120f1f,1px 0 0 #120f1f,-1px 0 0 #120f1f,0 1px 0 #120f1f,0 -1px 0 #120f1f,3px 4px 0 #1e1a33,-1px 4px 0 #1e1a33,1px 4px 0 #1e1a33,3px 2px 0 #1e1a33}
/* Everything behind is bright (summit snow, sky, cream flash): cream fill, 3 px outline and a soft ink glow. Still no plate. */
.quip-layer .quip.fling.bright .quip-text{color:#fff1d8;
 text-shadow:3px 0 0 #120f1f,-3px 0 0 #120f1f,0 3px 0 #120f1f,0 -3px 0 #120f1f,3px 3px 0 #120f1f,-3px 3px 0 #120f1f,3px -3px 0 #120f1f,-3px -3px 0 #120f1f,2px 0 0 #120f1f,-2px 0 0 #120f1f,0 2px 0 #120f1f,0 -2px 0 #120f1f,2px 2px 0 #120f1f,-2px -2px 0 #120f1f,2px -2px 0 #120f1f,-2px 2px 0 #120f1f,1px 5px 0 #1e1a33,4px 5px 0 #1e1a33,0 0 6px rgba(18,15,31,.8),0 0 6px rgba(18,15,31,.8)}
.quip-layer .quip.fling.still{transition:opacity .35s ease}
@media(max-width:700px){.quip-layer .quip.fling .quip-text{font-size:22px}}
/* Phone (2026-10-21 critic): the 3 px ink outline from .bright for every colour, so pale quips (haze/lilac) hold over purple terrain. */
@media(max-width:700px){.quip-layer .quip.fling:not(.bright) .quip-text{text-shadow:3px 0 0 #120f1f,-3px 0 0 #120f1f,0 3px 0 #120f1f,0 -3px 0 #120f1f,3px 3px 0 #120f1f,-3px 3px 0 #120f1f,3px -3px 0 #120f1f,-3px -3px 0 #120f1f,2px 0 0 #120f1f,-2px 0 0 #120f1f,0 2px 0 #120f1f,0 -2px 0 #120f1f,2px 2px 0 #120f1f,-2px -2px 0 #120f1f,2px -2px 0 #120f1f,-2px 2px 0 #120f1f,1px 5px 0 #1e1a33,4px 5px 0 #1e1a33}}
body:not(.kb-open) #quip-layer .quip.fling{margin-top:0}

/* ---- Avatar headshot reaction (avatar-react.js) ---- */
.avatar-react{position:fixed;left:18px;bottom:110px;z-index:9;display:flex;align-items:flex-end;gap:10px;pointer-events:none;transform:translateY(calc(100% + 140px));transition:transform .45s cubic-bezier(.2,1.5,.4,1)}
.avatar-react.show{transform:none}
.avatar-react.still{transition:opacity .3s;opacity:0;transform:none}.avatar-react.still.show{opacity:1}
.avatar-react-face{box-sizing:content-box;width:136px;height:132px;image-rendering:pixelated;background:#1e1a33;border:3px solid var(--c-gold);outline:3px solid #120f1f;clip-path:polygon(0 6px,6px 6px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 6px) calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 6px),0 calc(100% - 6px))}
.avatar-react-words{max-width:240px;margin-bottom:10px;font:400 20px/1.05 var(--pixel);color:var(--c-cream);text-shadow:2px 0 0 #120f1f,-2px 0 0 #120f1f,0 2px 0 #120f1f,0 -2px 0 #120f1f,0 4px 0 #120f1f}
.avatar-react-name{display:block;font-size:14px;letter-spacing:2px;color:var(--c-gold);text-transform:uppercase}
.avatar-react-line{margin:2px 0 0}
/* 13b (E10): phone dock - a 72 px headshot perched on the results card's top-left corner for 1.2 s. */
.avatar-react.avatar-dock{position:fixed;bottom:auto;z-index:9;transform:translateY(16px) scale(.6);opacity:0;transition:transform .3s cubic-bezier(.2,1.5,.4,1),opacity .2s}
.avatar-react.avatar-dock.show{transform:none;opacity:1}
.avatar-react.avatar-dock .avatar-react-face{width:68px;height:66px;border-width:2px;outline-width:2px}

/* Keep the hint's quoted title in one piece: the line breaks before it, not inside it. */
.round-card .rc-deeper-title{display:inline-block;max-width:100%}
/* Desktop (manager decision 2026-10-21): no box; a soft dark glow behind each text line keeps lantern strings,
   emotes and signs from cutting through the words while the card stays minimal. */
@media(min-width:0px){ /* round 16c: was min-width:701px (desktop only) */
 .round-card{--glow:0 0 6px #120f1f,0 0 12px #120f1fd9,0 0 22px #120f1fa6}
 .round-card .rc-answer,.round-card .rc-points,.round-card .rc-deeper{text-shadow:var(--tx),var(--glow)}
 .round-card .rc-flavour,.round-card .rc-note,.round-card .rc-quip,.round-card .rc-coins{text-shadow:var(--tx1),var(--glow)}
 .round-card .rc-tier{filter:drop-shadow(0 0 10px #120f1fcc)}
 /* A deeper version of the same edgeless radial scrim fills the gaps between words (e.g. the ' · ' in the points line). */
 .round-card::before{background:radial-gradient(closest-side,rgba(18,15,31,.86),rgba(18,15,31,.62) 55%,rgba(18,15,31,0))}
}

/* Phone quips (2026-10-21 critic 2): wider lines so fewer quips wrap, and the pale kinds (pass, time-up, deep cut) use
   gold ink so they hold against the purple paddies. The skip pill stays on one line. */
@media(max-width:700px){
 .quip-layer .quip.fling{max-width:calc(100vw - 24px)}
 .quip-layer .quip.fling.quip-skip,.quip-layer .quip.fling.quip-timeout,.quip-layer .quip.fling.quip-deep{--q:var(--c-gold)}
 .reveal-skip-hint{white-space:nowrap;letter-spacing:1px}
}
