/* Rarest Answer — Unified Pixel Sky & Tactile Editorial Design System */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}

:root {
  --rx-bg: #14182b;
  --rx-bg-deep: #0e1120;
  --rx-surface: #1b213b;
  --rx-surface-glass: rgba(20, 24, 43, 0.86);
  --rx-surface-soft: rgba(255, 246, 229, 0.055);
  --rx-border: rgba(255, 246, 229, 0.18);
  --rx-border-strong: rgba(255, 246, 229, 0.36);
  --rx-cream: #fff6e5;
  --rx-ink-80: rgba(255, 246, 229, 0.88);
  --rx-muted: rgba(255, 246, 229, 0.72);
  --rx-dim: rgba(255, 246, 229, 0.52);
  --rx-gold: #ffd166;
  --rx-gold-deep: #8a5a08;
  --rx-coral: #f06553;
  --rx-teal: #58d6a3;
  --rx-teal-deep: #1f6b4e;
  --rx-sky: #64b5ff;
  --rx-pink: #f072d0;
  --rx-shadow: 0 4px 0 rgba(9, 11, 22, 0.85);
  --site-head: 52px;
  --grot: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html, body { margin: 0; padding: 0; background: var(--rx-bg); color: var(--rx-cream); font-family: var(--grot); -webkit-font-smoothing: antialiased; }
body { min-height: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(255, 209, 102, 0.32); color: var(--rx-cream); }
:focus-visible { outline: 2px solid var(--rx-gold); outline-offset: 2px; }

.ra-skip {
  position: fixed; top: -80px; left: 12px; z-index: 300;
  padding: 10px 14px; border-radius: 8px;
  background: var(--rx-gold); color: var(--rx-bg);
  font: 700 13px var(--mono); text-decoration: none;
}
.ra-skip:focus { top: 8px; }

.ra-share-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 260; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 9px;
  background: var(--rx-surface); border: 2px solid var(--rx-gold); color: var(--rx-gold);
  font: 700 13px var(--mono); box-shadow: var(--rx-shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.ra-share-toast:not(:empty) { opacity: 1; }

/* =========================================================================
 * 1. UNIFIED TWILIGHT SKY HEADER (Home + All Document Pages)
 * ========================================================================= */
.ra-header {
  height: var(--site-head); position: relative; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 18px;
  background: rgba(16, 20, 38, 0.92);
  border-bottom: 1.5px solid var(--rx-border);
  backdrop-filter: blur(8px);
}
.ra-document-body .ra-header { position: sticky; top: 0; }

.ra-brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; white-space: nowrap; flex: none;
  font: 800 16px var(--grot); letter-spacing: -.01em; color: var(--rx-cream);
}
.ra-brand-icon { width: 40px; height: 40px; display: block; object-fit: contain; flex: none; filter: drop-shadow(0 2px 8px rgba(240, 114, 208, 0.28)); }
.ra-reticle-svg { width: 20px; height: 20px; display: block; }

.ra-primary-pills, .ra-document-nav {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.ra-primary-pills a, .ra-document-nav a {
  padding: 6px 11px; border-radius: 7px;
  text-decoration: none; white-space: nowrap;
  font: 600 13px var(--grot); color: var(--rx-muted);
  border: 1.5px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.ra-primary-pills a:hover, .ra-document-nav a:hover {
  color: var(--rx-cream); background: var(--rx-surface-soft); border-color: var(--rx-border);
}
.ra-document-nav .ra-nav-play {
  background: linear-gradient(180deg, var(--rx-gold), var(--rx-gold));
  color: var(--rx-bg); border-color: var(--rx-cream); font-weight: 800;
  box-shadow: 0 2px 0 var(--rx-gold-deep);
}
.ra-document-nav .ra-nav-play:hover {
  filter: brightness(1.06); color: var(--rx-bg); background: linear-gradient(180deg, var(--rx-gold), var(--rx-gold)); border-color: var(--rx-cream);
}

.ra-home-actions {
  display: flex; align-items: center; gap: 6px; flex: none;
}
.ra-home-actions button {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 7px;
  background: var(--rx-surface-soft); border: 1.5px solid var(--rx-border);
  color: var(--rx-ink-80); font: 600 12.5px var(--mono); white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, transform .1s ease;
}
.ra-home-actions button:hover { color: var(--rx-cream); border-color: var(--rx-border-strong); }
.ra-home-actions button:active { transform: translateY(1px); }
.ra-home-actions button[data-gf-liked] { color: var(--rx-pink); border-color: var(--rx-pink); }
.ra-home-actions .ra-observation-toggle {
  background: rgba(255, 209, 102, 0.14); border-color: rgba(255, 209, 102, 0.55); color: var(--rx-gold); font-weight: 700;
}
.ra-home-actions .ra-observation-toggle:hover { background: rgba(255, 209, 102, 0.24); color: var(--rx-gold); }

/* Home fixed viewport & Theater Mode */
.ra-home-body, .ra-embed-body {
  position: fixed; inset: 0; overflow: hidden;
  height: var(--visible-game-height, 100%);
  top: var(--visible-game-top, 0px);
}
.ra-home-body .ra-main { position: absolute; inset: var(--site-head) 0 0; overflow: hidden; }
.ra-theater-active .ra-home-body { --site-head: 40px; }
.ra-theater-active .ra-home-header { justify-content: flex-end; }
.ra-theater-active .ra-home-header > :not(#ra-theater-exit) { display: none; }
#ra-theater-exit {
  appearance: none; cursor: pointer; padding: 6px 12px; border-radius: 7px;
  background: var(--rx-gold); border: 1.5px solid var(--rx-cream); color: var(--rx-bg);
  font: 700 12px var(--mono); text-transform: uppercase;
}

/* =========================================================================
 * 2. HOMEPAGE LIVING PIXEL COVER & GAME STAGE (.rx-*)
 * ========================================================================= */
.rx-home-stage, .rx-stage { position: absolute; inset: 0; overflow: hidden; background: var(--rx-bg); }
.rx-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; z-index: 6; }

.rx-cover { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: var(--rx-bg); }
.rx-cover-canvas, .rx-world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.rx-sky-wonder {
  position: absolute; top: 30%; right: -120px; z-index: 15; pointer-events: none;
  width: 96px; height: 96px;
  background-image: url("https://img.rarestanswer.app/s_1p106v0f6q076o/wonders-sheet.b1ae7c22bb.webp");
  background-size: 400% 300%; background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(255, 209, 102, 0.55));
}
.rx-sky-wonder.is-gliding {
  animation: rxWonderGlide 6.8s linear forwards;
}
@keyframes rxWonderGlide {
  0%   { transform: translate(0, 0) scale(0.95); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate(calc(-50vw - 60px), -18px) scale(1.04); opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(calc(-100vw - 160px), -6px) scale(0.95); opacity: 0; }
}
.rx-cover-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 20, 42, 0.36) 0%, rgba(16, 20, 42, 0.02) 38%, rgba(16, 20, 42, 0.14) 64%, rgba(14, 18, 36, 0.78) 100%);
}
.rx-cover-ui {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  max-width: 960px; width: 100%; margin: 0 auto;
  padding: clamp(14px, 2.5vh, 24px) 20px clamp(16px, 2.8vh, 26px);
}
.rx-cover-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-edition-pill, .rx-clock-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 7px;
  background: rgba(18, 22, 42, 0.74); border: 1.5px solid var(--rx-border);
  font: 600 12px var(--mono); letter-spacing: .04em; color: var(--rx-cream);
  backdrop-filter: blur(4px);
}
.rx-edition-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--rx-teal); box-shadow: 0 0 8px var(--rx-teal); }
.rx-clock-pill b { color: var(--rx-gold); font-weight: 700; }

.rx-cover-hero { text-align: center; margin-top: clamp(4px, 1.8vh, 18px); margin-bottom: auto; padding-top: clamp(4px, 1.2vh, 12px); }
.rx-cover-h1 {
  margin: 0; font: 800 clamp(30px, 5.2vw, 56px)/1.05 var(--grot); letter-spacing: -.03em; color: var(--rx-cream);
  text-shadow: 0 4px 0 rgba(16, 20, 42, 0.85), 0 10px 28px rgba(16, 20, 42, 0.55);
}
.rx-cover-tagline {
  margin: 10px auto 0; max-width: 46ch;
  font: 500 clamp(14px, 1.5vw, 17px)/1.45 var(--grot); color: var(--rx-cream);
  text-shadow: 0 2px 10px rgba(14, 18, 36, 0.88);
}

.rx-cover-dock { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: auto; }
.rx-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 820px; }
.rx-arcade-btn {
  appearance: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-radius: 11px;
  border: 2px solid rgba(255, 246, 229, 0.88);
  box-shadow: 0 5px 0 rgba(12, 14, 28, 0.92), 0 10px 22px rgba(10, 12, 24, 0.45);
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
  color: var(--rx-bg);
}
.rx-arcade-btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 7px 0 rgba(12, 14, 28, 0.92), 0 14px 26px rgba(10, 12, 24, 0.5); }
.rx-arcade-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(12, 14, 28, 0.92); }
.rx-btn-daily     { background: linear-gradient(180deg, var(--rx-gold), var(--rx-gold)); }
.rx-btn-unlimited { background: linear-gradient(180deg, var(--rx-teal), var(--rx-teal)); }
.rx-btn-packs     { background: linear-gradient(180deg, var(--rx-pink), var(--rx-pink)); }
.rx-btn-archive   { background: linear-gradient(180deg, var(--rx-cream), var(--rx-sky)); }

.rx-btn-icon {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(20, 24, 43, 0.14);
  font: 700 17px var(--mono); color: var(--rx-bg);
}
.rx-btn-copy { display: flex; flex-direction: column; min-width: 0; }
.rx-btn-copy strong { font: 800 15px/1.15 var(--grot); letter-spacing: -.01em; color: var(--rx-bg); white-space: nowrap; }
.rx-btn-copy small { font: 600 12px/1.25 var(--grot); color: rgba(20, 24, 43, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rx-cover-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font: 600 13px var(--mono); color: var(--rx-cream); }
.rx-cover-links a {
  color: var(--rx-cream); text-decoration: none; padding: 5px 10px; border-radius: 6px;
  background: rgba(18, 22, 42, 0.62); border: 1.5px solid var(--rx-border);
  transition: border-color .15s ease, color .15s ease;
}
.rx-cover-links a:hover { color: var(--rx-gold); border-color: var(--rx-gold); }

/* Loader (z-index 3: sits under .rx-cover z-index 4, revealed only while iframe mounts) */
.rx-loader {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--rx-bg); color: var(--rx-cream);
}
.rx-loader p { margin: 4px 0 0; font: 700 13px var(--mono); letter-spacing: .12em; }
.rx-loader span { font: 500 13px var(--grot); color: var(--rx-muted); }
.rx-loader-ship {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; background: var(--rx-gold); color: var(--rx-bg);
  font: 700 22px var(--mono); box-shadow: var(--rx-shadow);
  animation: rxBob 1s ease-in-out infinite;
}
@keyframes rxBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* =========================================================================
 * 3. ACTIVE GAME EMBED UI (.rx-game)
 * ========================================================================= */
.rx-game {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; background: var(--rx-bg); color: var(--rx-cream);
}

/* Sleek floating HUD — blends cleanly over the living sky without heavy double-header feel */
.rx-hud {
  position: relative; z-index: 20; flex: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 10px 16px 8px;
  background: linear-gradient(180deg, rgba(14, 18, 36, 0.72) 0%, rgba(14, 18, 36, 0) 100%);
}
.rx-hud-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rx-hud-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rx-hud-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.rx-chip, .rx-icon-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(18, 22, 42, 0.78); border: 1.5px solid var(--rx-border);
  color: var(--rx-cream); font: 700 12px var(--mono); white-space: nowrap;
  box-shadow: 0 2px 0 rgba(10, 12, 24, 0.7); backdrop-filter: blur(4px);
  transition: transform .1s ease, border-color .15s ease, color .15s ease;
}
.rx-chip:hover, .rx-icon-btn:hover { border-color: var(--rx-gold); color: var(--rx-gold); }
.rx-chip:active, .rx-icon-btn:active { transform: translateY(1px); }
.rx-ico { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; }
.rx-ico-lg { width: 18px; height: 18px; vertical-align: -3px; }
.rx-streak-chip .rx-ico { color: var(--rx-gold); }
.rx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rx-teal); }
.rx-pace-btn.is-relaxed { border-color: var(--rx-teal); color: var(--rx-teal); }
.rx-streak-chip { cursor: default; }

.rx-pips { display: flex; align-items: center; gap: 5px; }
.rx-pip {
  width: 12px; height: 12px; border-radius: 3px;
  background: rgba(20, 24, 43, 0.55); border: 1.5px solid rgba(255, 246, 229, 0.34);
  transition: transform .2s ease, background .2s ease;
}
.rx-pip.is-current { border-color: var(--rx-gold); background: rgba(255, 209, 102, 0.45); transform: scale(1.18); }
.rx-pip.is-done.tier-miss     { background: var(--rx-surface); border-color: var(--rx-border-strong); }
.rx-pip.is-done.tier-crowd    { background: var(--rx-coral); border-color: var(--rx-cream); }
.rx-pip.is-done.tier-common   { background: var(--rx-coral); border-color: var(--rx-cream); }
.rx-pip.is-done.tier-uncommon { background: var(--rx-gold); border-color: var(--rx-cream); }
.rx-pip.is-done.tier-rare     { background: var(--rx-teal); border-color: var(--rx-cream); }
.rx-pip.is-done.tier-deep     { background: var(--rx-sky); border-color: var(--rx-cream); }
.rx-pip.is-done.tier-unicorn  { background: var(--rx-pink); border-color: var(--rx-cream); box-shadow: 0 0 8px var(--rx-pink); }

.rx-telemetry { display: flex; align-items: baseline; gap: 8px; font: 800 15px var(--mono); text-shadow: 0 2px 6px rgba(10, 12, 24, 0.85); }
.rx-alt-val { color: var(--rx-gold); }
.rx-sep { color: var(--rx-muted); }
.rx-score-val { color: var(--rx-cream); }
.rx-zone-tag { font: 700 12px var(--mono); letter-spacing: .12em; color: var(--rx-cream); opacity: .82; text-shadow: 0 1px 4px rgba(10, 12, 24, 0.85); }

.rx-zone-banner {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 25;
  padding: 10px 22px; border-radius: 10px; text-align: center; pointer-events: none;
  background: rgba(20, 24, 43, 0.92); border: 2px solid var(--rx-gold); box-shadow: var(--rx-shadow);
}
.rx-zone-banner.is-in { animation: rxPop .35s cubic-bezier(.2, .85, .3, 1.1) both; }
.rx-zb-kicker { display: block; font: 700 12px var(--mono); letter-spacing: .14em; color: var(--rx-gold); }
.rx-zb-name { display: block; font: 800 18px var(--grot); letter-spacing: .04em; color: var(--rx-cream); }

.rx-wonder-toast {
  position: absolute; top: 68px; right: 16px; z-index: 26;
  padding: 9px 14px; border-radius: 9px; pointer-events: none;
  background: rgba(20, 24, 43, 0.92); border: 2px solid var(--rx-pink); box-shadow: var(--rx-shadow);
}
.rx-wonder-toast.is-in { animation: rxSlideRight .35s cubic-bezier(.2, .85, .3, 1.1) both; }
.rx-wt-badge { display: block; font: 700 12px var(--mono); color: var(--rx-pink); }
.rx-wonder-toast strong { font: 700 14px var(--grot); color: var(--rx-cream); }

/* Timeout regret animation */
.rx-timeout-flash {
  position: absolute; inset: 0; z-index: 24; pointer-events: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, transparent 25%, rgba(14, 17, 32, 0.72) 100%);
  animation: rxTimeoutFade 1.25s ease-out forwards;
}
.rx-timeout-flash span {
  padding: 10px 20px; border-radius: 10px;
  background: rgba(20, 24, 43, 0.92); border: 2px solid var(--rx-coral);
  color: var(--rx-coral); font: 800 20px var(--mono); letter-spacing: .08em;
  box-shadow: var(--rx-shadow);
  animation: rxTimeoutDrop 1.25s cubic-bezier(.22, .8, .3, 1) forwards;
}
@keyframes rxTimeoutFade { 0%{opacity:0} 18%{opacity:1} 75%{opacity:1} 100%{opacity:0} }
@keyframes rxTimeoutDrop { 0%{transform:translateY(-16px) scale(.92)} 24%{transform:translateY(0) scale(1.04)} 45%{transform:translateY(2px) rotate(-1.5deg)} 65%{transform:translateY(4px) rotate(1deg)} 100%{transform:translateY(14px) scale(.96)} }
.rx-reveal-card[data-tier="miss"] { border-color: var(--rx-coral); animation: rxMissSigh .42s ease both; }
@keyframes rxMissSigh { 0%{opacity:0;transform:translateY(-6px)} 40%{opacity:1;transform:translateY(4px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes rxPop { 0%{opacity:0;transform:translate(-50%,-10px) scale(.94)} 100%{opacity:1;transform:translate(-50%,0) scale(1)} }
@keyframes rxSlideRight { 0%{opacity:0;transform:translateX(16px)} 100%{opacity:1;transform:translateX(0)} }

.rx-stage-layer { position: relative; z-index: 10; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rx-view { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 16px 16px; }
.rx-view[hidden] { display: none !important; }
.rx-view-loading { justify-content: center; }
#rx-daily-recovery { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rx-boot-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 32px; border-radius: 14px;
  background: var(--rx-surface-glass); border: 2px solid var(--rx-border);
  box-shadow: var(--rx-shadow); font: 600 14px var(--mono);
}

/* Play View */
.rx-view-play { justify-content: space-between; }
.rx-prompt-card {
  width: min(640px, 100%); text-align: center;
  padding: 13px 20px; border-radius: 13px;
  background: rgba(18, 22, 42, 0.82); border: 2px solid var(--rx-border-strong);
  box-shadow: var(--rx-shadow); backdrop-filter: blur(6px);
}
.rx-prompt-meta { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; font: 700 12px var(--mono); letter-spacing: .06em; }
.rx-step-pill { padding: 2px 8px; border-radius: 5px; background: var(--rx-gold); color: var(--rx-bg); }
.rx-cat-pill  { padding: 2px 8px; border-radius: 5px; background: rgba(255, 246, 229, 0.14); color: var(--rx-cream); }
.rx-pool-pill { color: var(--rx-muted); font-weight: 500; }
.rx-prompt-q { margin: 0; font: 800 clamp(21px, 3vw, 31px)/1.18 var(--grot); letter-spacing: -.02em; color: var(--rx-cream); }
.rx-prompt-hint { margin: 5px 0 0; font: 500 13px/1.4 var(--grot); color: var(--rx-muted); }

.rx-play-spacer { flex: 1; min-height: 70px; pointer-events: none; }
.rx-input-dock { width: min(640px, 100%); display: flex; flex-direction: column; gap: 8px; }
.rx-coach-pill {
  align-self: center; max-width: 100%; padding: 7px 14px; border-radius: 8px;
  background: rgba(240, 101, 83, 0.94); border: 2px solid var(--rx-cream);
  color: var(--rx-cream); font: 600 13px var(--grot); text-align: center; box-shadow: 0 3px 0 rgba(80, 16, 16, 0.8);
}
.rx-coach-pill.is-info {
  background: rgba(27, 33, 59, 0.96); border-color: var(--rx-gold); color: var(--rx-gold);
  box-shadow: 0 3px 0 rgba(10, 12, 24, 0.8);
}
.rx-coach-pill.is-shake { animation: rxShake .32s ease; }
@keyframes rxShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

.rx-answer-form {
  padding: 12px; border-radius: 13px;
  background: rgba(18, 22, 42, 0.88); border: 2px solid var(--rx-border-strong);
  box-shadow: var(--rx-shadow); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 10px;
}
.rx-input-row { display: flex; align-items: stretch; gap: 10px; }
.rx-answer-input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 9px;
  background: rgba(255, 246, 229, 0.96); border: 2px solid var(--rx-bg);
  color: var(--rx-bg); font: 700 18px var(--grot); outline: none;
  box-shadow: inset 0 2px 0 rgba(20, 24, 43, 0.14);
}
.rx-answer-input::placeholder { color: rgba(20, 24, 43, 0.45); font-weight: 500; }
.rx-answer-input:focus { border-color: var(--rx-gold); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.35); }

.rx-btn-launch, .rx-btn-primary, .ra-daily-cta, .ra-cat-cta, .ra-submit-btn {
  appearance: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 9px;
  background: linear-gradient(180deg, var(--rx-gold), var(--rx-gold));
  border: 2px solid var(--rx-cream); color: var(--rx-bg);
  font: 800 14px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--rx-gold-deep);
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}
.rx-btn-launch:hover, .rx-btn-primary:hover, .ra-daily-cta:hover, .ra-cat-cta:hover, .ra-submit-btn:hover { filter: brightness(1.06); color: var(--rx-bg); }
.rx-btn-launch:active, .rx-btn-primary:active, .ra-daily-cta:active, .ra-cat-cta:active, .ra-submit-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rx-gold-deep); }
.rx-btn-launch kbd { font: 700 12px var(--mono); opacity: .7; }
.rx-btn-lg { padding: 14px 26px; font-size: 15px; }

.rx-btn-secondary, .ra-cat-cta-ghost {
  appearance: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 9px;
  background: linear-gradient(180deg, var(--rx-teal), var(--rx-teal));
  border: 2px solid var(--rx-cream); color: var(--rx-bg);
  font: 800 13px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--rx-teal-deep);
}
.rx-btn-secondary:active, .ra-cat-cta-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rx-teal-deep); }

.rx-btn-ghost {
  appearance: none; cursor: pointer; padding: 11px 14px; border-radius: 9px;
  background: rgba(255, 246, 229, 0.1); border: 1.5px solid var(--rx-border);
  color: var(--rx-cream); font: 700 13px var(--mono); text-transform: uppercase;
}
.rx-btn-ghost:hover { border-color: var(--rx-gold); color: var(--rx-gold); }

.rx-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rx-boost-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 7px;
  background: rgba(255, 209, 102, 0.14); border: 1.5px solid rgba(255, 209, 102, 0.45);
  color: var(--rx-gold); font: 700 12px var(--mono); white-space: nowrap;
}
.rx-boost-btn em { font-style: normal; opacity: .8; }
.rx-boost-btn.is-armed { background: var(--rx-gold); color: var(--rx-bg); border-color: var(--rx-cream); box-shadow: 0 0 14px rgba(255, 209, 102, 0.65); }
.rx-boost-btn.is-nudge { border-color: var(--rx-gold); animation: rxBoostNudge 1.6s ease-in-out infinite; }
@keyframes rxBoostNudge { 0%,100%{box-shadow:0 0 0 0 rgba(255,209,102,0.12)} 50%{box-shadow:0 0 12px 2px rgba(255,209,102,0.48)} }
.rx-boost-btn:disabled { opacity: .4; cursor: not-allowed; animation: none; }

.rx-timer-box { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 80px; }
.rx-timer-track { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 246, 229, 0.14); overflow: hidden; }
.rx-timer-fill { height: 100%; width: 100%; background: var(--rx-teal); border-radius: 99px; transition: background .2s ease; }
.rx-timer-fill.is-warn { background: var(--rx-gold); }
.rx-timer-fill.is-crit { background: var(--rx-coral); }
.rx-timer-num { font: 700 12px var(--mono); color: var(--rx-cream); min-width: 42px; text-align: right; transition: color .15s ease; }
.rx-timer-num.is-pulse { color: var(--rx-coral); transform: scale(1.12); }
.rx-skip-btn { appearance: none; cursor: pointer; background: none; border: 0; padding: 6px 8px; color: var(--rx-muted); font: 600 12px var(--mono); white-space: nowrap; }
.rx-skip-btn:hover { color: var(--rx-cream); }

/* Reveal View */
.rx-view-reveal { justify-content: flex-end; }
.rx-reveal-spacer { flex: 1; min-height: 60px; pointer-events: none; }
.rx-reveal-card {
  width: min(560px, 100%); padding: 18px 20px; border-radius: 14px;
  background: rgba(18, 22, 42, 0.92); border: 2px solid var(--rx-border-strong);
  box-shadow: var(--rx-shadow), 0 18px 40px rgba(8, 10, 22, 0.65);
  backdrop-filter: blur(8px); animation: rxRise .28s cubic-bezier(.2, .85, .3, 1.05) both;
}
@keyframes rxRise { 0%{opacity:0;transform:translateY(18px)} 100%{opacity:1;transform:translateY(0)} }
.rx-reveal-card[data-tier="unicorn"] { border-color: var(--rx-pink); box-shadow: var(--rx-shadow), 0 0 28px rgba(240, 114, 208, 0.28), 0 18px 40px rgba(8, 10, 22, 0.65); }
.rx-reveal-card[data-tier="deep"]    { border-color: var(--rx-sky); box-shadow: var(--rx-shadow), 0 0 22px rgba(100, 181, 255, 0.22), 0 18px 40px rgba(8, 10, 22, 0.65); }
.rx-reveal-card[data-tier="rare"]    { border-color: var(--rx-teal); }

.rx-rev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.rx-rev-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.rx-tier-badge { display: inline-block; padding: 3px 9px; border-radius: 5px; font: 800 12px var(--mono); letter-spacing: .08em; background: rgba(255, 246, 229, 0.14); color: var(--rx-gold); }
.rx-fuzzy-badge { display: inline-block; padding: 3px 8px; border-radius: 5px; font: 600 12px var(--mono); background: rgba(88, 214, 163, 0.14); border: 1px solid rgba(88, 214, 163, 0.4); color: var(--rx-teal); }
.rx-reveal-card[data-tier="unicorn"] .rx-tier-badge { background: var(--rx-pink); color: var(--rx-bg); }
.rx-reveal-card[data-tier="deep"] .rx-tier-badge    { background: var(--rx-sky); color: var(--rx-bg); }
.rx-reveal-card[data-tier="rare"] .rx-tier-badge    { background: var(--rx-teal); color: var(--rx-bg); }
.rx-rev-answer { margin: 0; font: 800 clamp(22px, 3vw, 28px)/1.12 var(--grot); color: var(--rx-cream); }
.rx-rev-score-box { text-align: right; flex: none; }
.rx-rev-pts { display: block; font: 800 24px/1 var(--mono); color: var(--rx-gold); }
.rx-rev-climb { display: block; margin-top: 4px; font: 700 12px var(--mono); color: var(--rx-teal); }
.rx-rev-verdict { margin: 10px 0 12px; font: 500 14px/1.45 var(--grot); color: var(--rx-muted); }

.rx-ladder { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.rx-ladder-row {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  background: rgba(255, 246, 229, 0.06); border: 1px solid rgba(255, 246, 229, 0.1);
  font: 600 13px var(--grot);
}
.rx-ladder-row.is-mine { background: rgba(255, 209, 102, 0.18); border: 1.5px solid var(--rx-gold); }
.rx-lr-tag { font: 700 12px var(--mono); color: var(--rx-muted); }
.rx-ladder-row.is-mine .rx-lr-tag { color: var(--rx-gold); }
.rx-lr-name { color: var(--rx-cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-lr-pts { font: 700 12px var(--mono); color: var(--rx-teal); }
.rx-rev-actions { display: flex; }
.rx-btn-next { width: 100%; padding: 13px 18px; font-size: 14px; }

/* Lobby, Summary Postcard & Codex Modal */
.rx-view-lobby, .rx-view-summary { justify-content: center; overflow-y: auto; }
.rx-modal-card, .rx-summary-shell {
  width: min(640px, 100%); max-height: 100%; overflow-y: auto;
  padding: 20px 22px; border-radius: 14px;
  background: rgba(18, 22, 42, 0.94); border: 2px solid var(--rx-border-strong);
  box-shadow: var(--rx-shadow), 0 20px 50px rgba(8, 10, 22, 0.72); backdrop-filter: blur(8px);
}
.rx-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rx-kicker { display: block; font: 700 12px var(--mono); letter-spacing: .12em; color: var(--rx-gold); }
.rx-modal-head h2 { margin: 2px 0 0; font: 800 22px var(--grot); color: var(--rx-cream); }
.rx-close-btn { appearance: none; cursor: pointer; padding: 6px 11px; border-radius: 7px; background: rgba(255, 246, 229, 0.1); border: 1.5px solid var(--rx-border); color: var(--rx-cream); font: 700 12px var(--mono); touch-action: manipulation; }
.rx-close-btn:hover { border-color: var(--rx-gold); color: var(--rx-gold); }
.rx-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; border-bottom: 1.5px solid rgba(255, 246, 229, 0.14); padding-bottom: 8px; }
.rx-sum-head .rx-sum-tabs { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; min-width: 0; }
.rx-sum-close { flex: none; white-space: nowrap; }
.rx-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1.5px solid rgba(255, 246, 229, 0.14); padding-bottom: 8px; }
.rx-tab { appearance: none; cursor: pointer; padding: 7px 13px; border-radius: 7px; background: transparent; border: 1.5px solid transparent; color: var(--rx-muted); font: 700 13px var(--mono); }
.rx-tab.is-active { background: rgba(255, 209, 102, 0.18); border-color: var(--rx-gold); color: var(--rx-gold); }
.rx-lobby-h3 { margin: 0 0 6px; font: 700 19px var(--grot); color: var(--rx-cream); }
.rx-lobby-desc { margin: 0 0 16px; font: 400 14px/1.55 var(--grot); color: var(--rx-muted); }
.rx-pace-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 9px; background: var(--rx-surface-soft); margin-bottom: 16px; font: 600 13px var(--mono); }
.rx-seg { display: flex; gap: 6px; }
.rx-seg-btn { appearance: none; cursor: pointer; padding: 7px 12px; border-radius: 6px; background: rgba(255, 246, 229, 0.08); border: 1.5px solid transparent; color: var(--rx-muted); font: 700 12px var(--mono); }
.rx-seg-btn.is-active { background: var(--rx-teal); color: var(--rx-bg); border-color: var(--rx-cream); }
.rx-done-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 246, 229, 0.14); }
.rx-done-box p { margin: 0 0 10px; font: 600 13px var(--grot); color: var(--rx-gold); }
.rx-done-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rx-packs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rx-pack-card { appearance: none; cursor: pointer; text-align: left; padding: 13px; border-radius: 10px; background: var(--rx-surface-soft); border: 1.5px solid var(--rx-border); color: var(--rx-cream); transition: border-color .15s ease, transform .1s ease; }
.rx-pack-card:hover { border-color: var(--rx-gold); transform: translateY(-2px); }
.rx-pack-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 5px; }
.rx-pack-top strong { font: 700 14px var(--grot); color: var(--rx-cream); }
.rx-pack-top span { font: 600 12px var(--mono); color: var(--rx-gold); white-space: nowrap; }
.rx-pack-card p { margin: 0; font: 400 12.5px/1.45 var(--grot); color: var(--rx-muted); }
.rx-archive-meta { grid-column: 1 / -1; margin: 0 0 4px; font: 600 12.5px var(--mono); color: var(--rx-muted); }
.rx-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rx-arch-btn { appearance: none; cursor: pointer; padding: 10px 8px; border-radius: 8px; background: var(--rx-surface-soft); border: 1.5px solid var(--rx-border); color: var(--rx-cream); font: 600 12px var(--mono); text-align: center; }
.rx-arch-btn:hover { border-color: var(--rx-gold); color: var(--rx-gold); }
.rx-arch-btn.is-done { border-color: var(--rx-teal); color: var(--rx-teal); }

.rx-pc-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.rx-pc-zone { margin: 4px 0 2px; font: 800 clamp(20px, 3vw, 26px)/1.12 var(--grot); color: var(--rx-cream); }
.rx-pc-rank { margin: 0; font: 600 14px var(--grot); color: var(--rx-teal); }
.rx-pc-rank-pill {
  display: inline-block; margin-top: 7px; padding: 3px 10px; border-radius: 6px;
  background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--rx-gold); font: 700 12px var(--mono);
}
.rx-pc-score { text-align: right; flex: none; }
.rx-pc-score strong { font: 800 36px/1 var(--mono); color: var(--rx-gold); }
.rx-pc-score span { display: block; font: 700 12px var(--mono); color: var(--rx-muted); }
.rx-pc-score em { display: block; font-style: normal; font: 700 13px var(--mono); color: var(--rx-sky); margin-top: 2px; }
.rx-pc-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 14px 12px; border-radius: 10px; background: var(--rx-surface-soft); margin-bottom: 14px; }
.rx-pc-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rx-pc-bar-track { width: 100%; height: 64px; border-radius: 6px; background: rgba(255, 246, 229, 0.08); display: flex; align-items: flex-end; overflow: hidden; }
.rx-pc-bar-fill { width: 100%; border-radius: 4px 4px 0 0; }
.rx-pc-bar-fill.tier-miss     { background: var(--rx-surface); }
.rx-pc-bar-fill.tier-crowd    { background: var(--rx-coral); }
.rx-pc-bar-fill.tier-common   { background: var(--rx-coral); }
.rx-pc-bar-fill.tier-uncommon { background: var(--rx-gold); }
.rx-pc-bar-fill.tier-rare     { background: var(--rx-teal); }
.rx-pc-bar-fill.tier-deep     { background: var(--rx-sky); }
.rx-pc-bar-fill.tier-unicorn  { background: var(--rx-pink); }
.rx-pc-bar-col span { font: 700 12px var(--mono); color: var(--rx-cream); }
.rx-pc-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.rx-pc-stat { padding: 12px; border-radius: 9px; background: var(--rx-surface-soft); border: 1px solid rgba(255, 246, 229, 0.12); }
.rx-pc-stat span { display: block; font: 700 12px var(--mono); color: var(--rx-gold); margin-bottom: 3px; }
.rx-pc-stat strong { display: block; font: 700 15px var(--grot); color: var(--rx-cream); }
.rx-pc-stat small { display: block; margin-top: 3px; font: 500 12px var(--grot); color: var(--rx-muted); }
.rx-pc-stat #rx-res-streak { display: inline; color: inherit; font: inherit; }
.rx-pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rx-pc-actions > * { flex: 1 1 auto; }
.rx-share-msg { margin: 8px 0 0; min-height: 18px; font: 600 13px var(--mono); color: var(--rx-teal); }
.rx-pc-links { margin: 12px 0 0; font: 600 12.5px var(--mono); color: var(--rx-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.rx-pc-links a { color: var(--rx-cream); text-decoration: none; }
.rx-pc-links a:hover { color: var(--rx-gold); }
.rx-studio-cross {
  display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 10px 13px;
  border-radius: 9px; text-decoration: none;
  background: rgba(88, 214, 163, 0.08); border: 1.5px solid rgba(88, 214, 163, 0.32);
  transition: border-color .15s ease, background .15s ease;
}
.rx-studio-cross:hover { background: rgba(88, 214, 163, 0.14); border-color: var(--rx-teal); }
.rx-sc-tag { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--rx-teal); }
.rx-sc-text { font: 500 13px/1.4 var(--grot); color: var(--rx-cream); }
.rx-sc-text strong { color: var(--rx-gold); font-weight: 700; }
.rx-sc-text .rx-ico { width: 14px; height: 14px; vertical-align: -.15em; color: var(--rx-teal); }
.ra-guide-cta-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Daily flight log and postcard */
.rx-pc-scoreline { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rx-medal { display: grid; justify-items: center; gap: 3px; }
.rx-pc-score .rx-medal span { color: var(--rx-cream); font-size: 12px; }
.rx-medal-icon { width: 18px; height: 18px; flex: none; color: var(--rx-gold); }
.rx-medal .rx-medal-icon { width: 27px; height: 27px; }
.rx-medal-icon.medal-bronze { color: #cd8c52; }
.rx-medal-icon.medal-silver { color: #cfd9e8; }
.rx-medal-icon.medal-mythic { color: var(--rx-sky); }
.rx-medal-ribbon { fill: var(--rx-coral); }
.rx-medal-metal { fill: currentColor; stroke: var(--rx-cream); stroke-width: .7; }
.medal-mythic .rx-medal-metal { stroke: var(--rx-gold); stroke-width: 1.2; }
.rx-medal-cut { fill: var(--rx-bg-deep); }
.rx-medal-goal {
  display: grid; grid-template-columns: minmax(0, auto) minmax(40px, 1fr); align-items: center; gap: 10px;
  padding: 6px 10px; margin-bottom: 12px; border: 1px solid var(--rx-border); border-radius: 6px;
  color: var(--rx-gold); font: 700 13px/1.3 var(--grot);
}
.rx-medal-track { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--rx-surface-soft); }
.rx-medal-track i { display: block; height: 100%; background: var(--rx-gold); }
.rx-medal-shelf {
  padding: 9px 12px; margin-bottom: 8px; border: 1px solid var(--rx-border); border-radius: 8px;
  background: var(--rx-surface-soft);
}
.rx-medal-shelf h4 { margin: 0 0 6px; color: var(--rx-gold); font: 700 12px/1.3 var(--mono); text-transform: uppercase; }
.rx-medal-shelf ul { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; padding: 0; list-style: none; }
.rx-medal-shelf li { display: flex; align-items: center; gap: 4px; font: 600 12px/1.3 var(--mono); color: var(--rx-muted); }
.rx-medal-shelf b { color: var(--rx-cream); }
.rx-sky-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.rx-sky-notes:not(:has(> :not([hidden]))) { display: none; }
.rx-sky-notes > span { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1.4 var(--mono); }
#rx-ship-tier { padding: 3px 6px; border: 1px solid var(--rx-border); border-radius: 5px; color: var(--rx-gold); }
#rx-forecast { color: var(--rx-sky); font: 600 12px/1.4 var(--grot); letter-spacing: -.01em; }
.rx-retention-btn {
  min-width: 40px; min-height: 40px; padding: 0 8px; border: 1px solid var(--rx-border-strong);
  border-radius: 6px; background: var(--rx-bg-deep); color: var(--rx-cream);
  font: 700 12px var(--mono); cursor: pointer; touch-action: manipulation;
}
.rx-retention-btn:hover:not(:disabled) { border-color: var(--rx-gold); color: var(--rx-gold); }
.rx-retention-btn:disabled { opacity: .65; cursor: wait; }
.rx-retention-btn:focus-visible, .rx-dispatch-open:focus-visible, .rx-studio-cross:focus-visible, .ra-inline-play:focus-visible {
  outline: 2px solid var(--rx-gold); outline-offset: 2px;
}
.rx-kudos-echo, .rx-reminder {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  border: 1px solid var(--rx-border-strong); border-radius: 8px; background: var(--rx-surface);
  padding: 4px 7px 4px 10px; color: var(--rx-cream); font: 700 13px/1.3 var(--grot);
}
.rx-kudos-echo { position: relative; z-index: 11; align-self: center; max-width: calc(100% - 24px); margin: 4px 0; border-color: var(--rx-gold); }
.rx-game:not([data-screen="lobby"]):not([data-screen="summary"]) .rx-kudos-echo { display: none; }
.rx-kudos-echo > svg, .rx-reminder > svg { color: var(--rx-gold); }
.rx-reminder { margin-top: 12px; box-shadow: var(--rx-shadow); }
.rx-reminder p { grid-column: 2 / -1; margin: 0 0 4px; color: var(--rx-muted); font: 500 12px/1.4 var(--grot); }
.rx-dispatch { margin: 0 0 12px; border: 1px solid var(--rx-border-strong); border-radius: 9px; background: var(--rx-surface); }
.rx-dispatch-open {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 7px 10px;
  border: 0; border-radius: inherit; background: transparent; color: var(--rx-cream);
  text-align: left; cursor: pointer; touch-action: manipulation;
}
.rx-dispatch-open:hover:not(:disabled) { background: var(--rx-surface-soft); }
.rx-dispatch-open:disabled { cursor: default; }
.rx-dispatch-open span span, .rx-dispatch-open strong { display: block; overflow-wrap: anywhere; }
.rx-dispatch-open strong { color: var(--rx-gold); font: 700 12px/1.4 var(--mono); text-transform: uppercase; }
.rx-dispatch-open span span { color: var(--rx-muted); font: 600 13px/1.3 var(--grot); }
.rx-seal { width: 34px; height: 34px; flex: none; transition: transform .2s ease; }
.rx-seal > path:first-child { fill: var(--rx-coral); stroke: var(--rx-gold); stroke-width: .65; }
.rx-seal circle { fill: var(--rx-bg-deep); stroke: var(--rx-gold); stroke-width: .6; }
.rx-seal-mark { fill: var(--rx-gold); }
.rx-seal-break { fill: none; stroke: var(--rx-cream); stroke-width: .9; opacity: 0; transition: opacity .2s ease; }
.is-unsealed .rx-seal { transform: rotate(-13deg); }
.is-unsealed .rx-seal-break { opacity: 1; }
.rx-dispatch-recap { padding: 8px 10px; border-top: 1px solid var(--rx-border); font: 600 13px/1.35 var(--grot); color: var(--rx-muted); }
.rx-dispatch-recap p { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; margin: 0; padding: 3px 0; overflow-wrap: anywhere; }
.rx-dispatch-recap strong { color: var(--rx-cream); font: 700 12px/1.4 var(--mono); }
.ra-inline-play {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; margin: 16px 0 22px; padding: 9px 12px;
  border: 1px solid var(--rx-border-strong); border-radius: 8px; background: var(--rx-surface);
  color: var(--rx-cream); text-decoration: none; touch-action: manipulation;
}
.ra-inline-play strong { color: var(--rx-gold); }
.ra-inline-play:hover { border-color: var(--rx-gold); }
.ra-letter-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ra-letter-table th, .ra-letter-table td { border-bottom: 1px solid var(--rx-border); padding: 8px 5px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ra-letter-table th:first-child { width: 13%; color: var(--rx-gold); }
.ra-letter-table a { display: inline-flex; align-items: center; min-height: 40px; touch-action: manipulation; }
@media (max-width: 480px) {
  .rx-summary-shell { padding-inline: 16px; }
  .rx-sum-head { gap: 4px; }
  .rx-sum-head .rx-sum-tabs { gap: 3px; }
  .rx-sum-head .rx-tab, .rx-sum-close { min-height: 40px; padding: 6px 6px; font-size: 12px; white-space: nowrap; }
  .rx-game[data-screen="lobby"] .rx-hud, .rx-game[data-screen="summary"] .rx-hud { grid-template-columns: minmax(0, 1fr) auto; }
  .rx-game[data-screen="lobby"] .rx-hud-center, .rx-game[data-screen="summary"] .rx-hud-center { grid-area: 2 / 1 / 3 / -1; }
  .rx-view-lobby .rx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .rx-view-lobby .rx-tab { min-height: 40px; padding: 5px 2px; font-size: 12px; touch-action: manipulation; }
  .rx-pc-hero .rx-kicker { letter-spacing: .045em; }
  .rx-pc-scoreline { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
  .rx-medal { display: flex; align-items: center; }
  .rx-medal .rx-medal-icon { width: 20px; height: 20px; }
  .rx-pc-score .rx-medal span { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-seal, .rx-seal-break, .rx-studio-cross { transition: none; }
}

.rx-ans-intro { margin: 0 0 10px; font: 500 13px/1.45 var(--grot); color: var(--rx-muted); }
.rx-ans-list { display: flex; flex-direction: column; gap: 8px; }
.rx-ans-card { border-radius: 9px; background: var(--rx-surface-soft); border: 1px solid rgba(255, 246, 229, 0.1); border-left: 4px solid var(--rx-border); overflow: hidden; }
.rx-ans-card.tier-unicorn { border-left-color: var(--rx-pink); }
.rx-ans-card.tier-deep    { border-left-color: var(--rx-sky); }
.rx-ans-card.tier-rare    { border-left-color: var(--rx-teal); }
.rx-ans-card.tier-uncommon{ border-left-color: var(--rx-gold); }
.rx-ans-row {
  width: 100%; appearance: none; background: transparent; border: 0; text-align: left; color: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px;
}
.rx-ans-row.is-expandable { cursor: pointer; }
.rx-ans-row.is-expandable:hover { background: rgba(255, 246, 229, 0.04); }
.rx-ans-q { font: 500 12.5px var(--grot); color: var(--rx-muted); }
.rx-ans-pick { font: 700 15px var(--grot); color: var(--rx-cream); }
.rx-ans-right { display: flex; align-items: center; gap: 8px; flex: none; }
.rx-ans-pts { font: 700 14px var(--mono); color: var(--rx-gold); white-space: nowrap; }
.rx-ans-caret { font: 700 12px var(--mono); color: var(--rx-muted); transition: transform .15s ease; }
.rx-ans-card.is-open .rx-ans-caret { transform: rotate(180deg); color: var(--rx-gold); }
.rx-ans-drawer { padding: 10px 12px 12px; border-top: 1px solid rgba(255, 246, 229, 0.1); background: rgba(14, 17, 32, 0.45); display: flex; flex-direction: column; gap: 8px; }
.rx-ans-refs { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 12.5px/1.4 var(--grot); color: var(--rx-muted); }
.rx-ans-refs b { color: var(--rx-cream); font-weight: 700; }
.rx-whatif-form { display: flex; gap: 6px; align-items: stretch; }
.rx-whatif-input {
  flex: 1; min-width: 0; padding: 7px 10px; border-radius: 7px;
  background: rgba(255, 246, 229, 0.08); border: 1.5px solid var(--rx-border);
  color: var(--rx-cream); font: 600 13px var(--grot); outline: none;
}
.rx-whatif-input:focus { border-color: var(--rx-gold); }
.rx-whatif-btn {
  appearance: none; cursor: pointer; padding: 7px 11px; border-radius: 7px;
  background: rgba(255, 209, 102, 0.16); border: 1.5px solid rgba(255, 209, 102, 0.5);
  color: var(--rx-gold); font: 700 12px var(--mono); white-space: nowrap;
}
.rx-whatif-btn:hover { background: rgba(255, 209, 102, 0.26); }
.rx-whatif-res { margin: 0; font: 600 12.5px var(--mono); color: var(--rx-teal); }
.rx-whatif-res.is-miss { color: var(--rx-coral); }

.rx-board-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.rx-board-top h3 { margin: 0; font: 700 18px var(--grot); }
.rx-board-top span { font: 600 12px var(--mono); color: var(--rx-muted); }
.rx-nick-form { display: flex; gap: 8px; margin-bottom: 10px; }
.rx-nick-form input { flex: 1; padding: 9px 12px; border-radius: 7px; background: rgba(255, 246, 229, 0.1); border: 1.5px solid var(--rx-border); color: var(--rx-cream); font: 600 13px var(--mono); outline: none; }
.rx-service-msg { margin: 0 0 10px; font: 600 12.5px var(--mono); color: var(--rx-gold); }
#rx-service-msg:empty { margin: 0; }
#rx-retry-score { margin-bottom: 12px; }
.rx-board-tbl, .ra-board-table { width: 100%; border-collapse: collapse; font: 600 13.5px var(--mono); }
.rx-board-tbl td, .ra-board-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 246, 229, 0.1); color: var(--rx-cream); vertical-align: middle; }
.rx-board-tbl td.rx-board-pts, .ra-board-table td.rx-board-pts { text-align: right; color: var(--rx-gold); white-space: nowrap; }
.rx-board-tbl td.rx-board-cheer, .ra-board-table td.rx-board-cheer { width: 1%; white-space: nowrap; text-align: right; padding-right: 2px; }
.rx-board-tbl tr.is-me td, .ra-board-table tr.is-me td { color: var(--rx-teal); }
.rx-star-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--rx-border);
  background: rgba(255, 246, 229, 0.08);
  color: var(--rx-cream);
  font: 700 12px var(--mono);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 90ms ease, border-color 140ms ease, background-color 140ms ease;
}
.rx-star-btn:hover { border-color: var(--rx-gold); }
.rx-star-btn:active { transform: scale(0.9); }
.rx-star-btn.is-cheered {
  border-color: var(--rx-gold);
  background: #3b2a12;
  color: #fde68a;
}
.rx-star-btn.is-pop { animation: rxStarPop 220ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.rx-star-float {
  position: absolute;
  left: 50%;
  top: -12px;
  pointer-events: none;
  white-space: nowrap;
  font: 800 12px var(--mono);
  color: var(--rx-gold);
  animation: rxStarFloat 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes rxStarPop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes rxStarFloat {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.88); }
  30% { opacity: 1; transform: translate(-50%, -14px) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -34px) scale(0.95); }
}

.rx-modal-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 16px; background: rgba(10, 12, 24, 0.82); backdrop-filter: blur(5px); }
.rx-codex-card { max-height: min(680px, calc(100dvh - 48px)); }
.rx-modal-overlay[hidden] { display: none !important; }
.rx-codex-sub { margin: 0 0 10px; font: 500 13.5px/1.5 var(--grot); color: var(--rx-muted); }
.rx-codex-progress { height: 7px; border-radius: 99px; background: rgba(255, 246, 229, 0.1); overflow: hidden; margin-bottom: 14px; }
.rx-codex-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--rx-teal), var(--rx-gold), var(--rx-pink)); transition: width .3s ease; }
.rx-codex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rx-codex-item { position: relative; padding: 12px; border-radius: 10px; background: rgba(255, 246, 229, 0.04); border: 1.5px solid rgba(255, 246, 229, 0.12); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; }
.rx-codex-item.is-found { background: rgba(255, 246, 229, 0.09); border-color: rgba(255, 209, 102, 0.5); box-shadow: 0 3px 0 rgba(10, 12, 24, 0.7); }
.rx-codex-new { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 4px; background: var(--rx-pink); color: var(--rx-bg); font: 800 12px/1 var(--mono); }
.rx-cx-sprite {
  width: 64px; height: 64px; flex: none;
  background-image: url("https://img.rarestanswer.app/s_1p106v0f6q076o/wonders-sheet.b1ae7c22bb.webp");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: brightness(0) opacity(0.32);
  transition: filter .25s ease, transform .25s ease;
}
.rx-codex-item.is-found .rx-cx-sprite { filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.45)); }
.rx-codex-item.is-found:hover .rx-cx-sprite { transform: scale(1.1) translateY(-2px); }
.rx-codex-item strong { font: 700 13.5px var(--grot); color: var(--rx-cream); }
.rx-codex-item small { font: 500 12px/1.35 var(--grot); color: var(--rx-muted); }
.rx-icon-btn[aria-pressed="false"] { opacity: 0.48; }

/* =========================================================================
 * 4. FIELD MANUAL DRAWER (Homepage SEO Drawer — Unified Pixel Sky Theme)
 * ========================================================================= */
.ra-log-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(10, 12, 24, 0.72); backdrop-filter: blur(3px); }
.ra-observation-log {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 94vw); z-index: 150;
  display: flex; flex-direction: column;
  background: var(--rx-bg); border-left: 2px solid var(--rx-border-strong);
  box-shadow: -24px 0 60px rgba(8, 10, 22, 0.75);
  transform: translateX(104%); visibility: hidden;
  transition: transform .32s cubic-bezier(.22, .72, .18, 1), visibility .32s;
}
.ra-observation-log.is-open { transform: none; visibility: visible; }
.ra-log-grab { display: none; }
.ra-log-head {
  position: relative; flex: none; padding: 18px 22px 0;
  background: var(--rx-surface); border-bottom: 1.5px solid var(--rx-border);
}
.ra-log-heading > span, .ra-section-no { display: block; font: 700 12px var(--mono); letter-spacing: .12em; color: var(--rx-gold); text-transform: uppercase; }
.ra-log-title { margin: 4px 0 12px; font: 800 22px/1.15 var(--grot); color: var(--rx-cream); }
.ra-log-title-strong { margin: 8px 0 10px; font: 800 26px/1.15 var(--grot); color: var(--rx-cream); }
.ra-log-close {
  position: absolute; top: 16px; right: 18px; appearance: none; cursor: pointer;
  padding: 6px 11px; border-radius: 7px;
  background: var(--rx-surface-soft); border: 1.5px solid var(--rx-border);
  color: var(--rx-cream); font: 700 12px var(--mono);
}
.ra-log-close:hover { border-color: var(--rx-gold); color: var(--rx-gold); }
.ra-log-utilities { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.ra-log-utilities button {
  appearance: none; cursor: pointer; padding: 5px 10px; border-radius: 6px;
  background: var(--rx-surface-soft); border: 1.5px solid var(--rx-border);
  color: var(--rx-muted); font: 600 12px var(--mono);
}
.ra-log-utilities button:hover { color: var(--rx-cream); border-color: var(--rx-border-strong); }
.ra-log-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; }
.ra-log-tabs button {
  appearance: none; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 7px;
  background: transparent; border: 1.5px solid transparent;
  color: var(--rx-muted); font: 700 12.5px var(--mono);
}
.ra-log-tabs button.is-active { background: rgba(255, 209, 102, 0.16); border-color: var(--rx-gold); color: var(--rx-gold); }
.ra-log-body { flex: 1; overflow-y: auto; padding: 22px 24px 36px; }
.ra-log-deck { margin: 6px 0 18px; font: 500 15px/1.6 var(--grot); color: var(--rx-muted); }
.ra-log-footer {
  flex: none; display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 22px;
  background: var(--rx-surface); border-top: 1.5px solid var(--rx-border);
}
.ra-log-footer a { font: 600 12px var(--mono); color: var(--rx-muted); text-decoration: none; }
.ra-log-footer a:hover { color: var(--rx-gold); }

.ra-field-rules { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.ra-field-rules section { padding: 14px 16px; border-radius: 10px; background: var(--rx-surface); border: 1.5px solid var(--rx-border); }
.ra-field-rules section > span { display: block; font: 700 12px var(--mono); color: var(--rx-gold); margin-bottom: 4px; }
.ra-field-rules h3 { margin: 0 0 6px; font: 700 16px var(--grot); color: var(--rx-cream); }
.ra-field-rules p { margin: 0; font: 400 14px/1.6 var(--grot); color: var(--rx-ink-80); }
.ra-log-note { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 209, 102, 0.08); border: 1.5px solid rgba(255, 209, 102, 0.35); }
.ra-log-note strong { display: block; font: 700 12px var(--mono); color: var(--rx-gold); margin-bottom: 4px; }
.ra-log-note p { margin: 0; font: 400 14px/1.6 var(--grot); color: var(--rx-cream); }

.ra-shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.ra-shot { margin: 0; padding: 10px; border-radius: 10px; background: var(--rx-surface); border: 1.5px solid var(--rx-border); }
.ra-shot img { width: 100%; height: auto; border-radius: 6px; display: block; }
.ra-shot figcaption { margin-top: 8px; font: 500 12.5px/1.45 var(--grot); color: var(--rx-muted); }

/* Comments inside Field Manual */
.ra-comment-form { padding: 16px; border-radius: 12px; background: var(--rx-surface); border: 1.5px solid var(--rx-border); margin: 14px 0 20px; }
.ra-comment-form label { display: block; margin-top: 12px; }
.ra-comment-form label:first-of-type { margin-top: 0; }
.ra-comment-form label > span { display: block; margin-bottom: 6px; font: 700 12px var(--mono); color: var(--rx-gold); }
.ra-comment-form input, .ra-comment-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: var(--rx-bg); border: 1.5px solid var(--rx-border);
  color: var(--rx-cream); font: 500 14px var(--grot); outline: none;
}
.ra-comment-form input:focus, .ra-comment-form textarea:focus { border-color: var(--rx-gold); }
.ra-comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ra-outline-btn { appearance: none; cursor: pointer; padding: 9px 16px; border-radius: 8px; background: var(--rx-gold); border: 2px solid var(--rx-cream); color: var(--rx-bg); font: 800 12.5px var(--mono); text-transform: uppercase; box-shadow: 0 3px 0 var(--rx-gold-deep); }
.ra-text-btn { appearance: none; cursor: pointer; background: none; border: 0; padding: 4px 0; color: var(--rx-teal); font: 700 12px var(--mono); }
.ra-comment { padding: 14px 0; border-bottom: 1px solid var(--rx-border); }
.ra-comment-meta { display: flex; gap: 10px; align-items: center; font: 600 12px var(--mono); color: var(--rx-muted); }
.ra-comment-meta strong { color: var(--rx-cream); }
.ra-comment > p { margin: 6px 0 8px; font: 400 14.5px/1.6 var(--grot); color: var(--rx-ink-80); }
.ra-comment-replies { margin-left: 20px; padding-left: 14px; border-left: 2px solid var(--rx-border); }

/* =========================================================================
 * 5. ALL DOCUMENT PAGES (/daily, /leaderboard, /trivia/*, /answers/*, /legal)
 * ========================================================================= */
.ra-document-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(92, 74, 158, 0.24), transparent 70%),
    radial-gradient(ellipse 50% 30% at 85% 12%, rgba(255, 209, 102, 0.08), transparent 65%),
    var(--rx-bg);
}
.ra-document-body .ra-main { min-height: calc(100vh - 220px); }
.ra-article { max-width: 860px; margin: 0 auto; padding: 36px 24px 72px; }

.ra-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 6px 12px; border-radius: 8px;
  background: var(--rx-surface-soft); border: 1.5px solid var(--rx-border);
  font: 600 12px var(--mono); color: var(--rx-muted);
}
.ra-breadcrumb a { text-decoration: none; color: var(--rx-cream); }
.ra-breadcrumb a:hover { color: var(--rx-gold); }

.ra-legal-head, .ra-daily-head, .ra-cat-head {
  padding-bottom: 24px; margin-bottom: 28px;
  border-bottom: 1.5px solid var(--rx-border);
}
.ra-daily-kicker, .ra-cat-kicker {
  display: inline-block; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
  background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.4);
  font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rx-gold);
}
.ra-h1 {
  margin: 0; font: 800 clamp(28px, 4.4vw, 44px)/1.12 var(--grot);
  letter-spacing: -.025em; color: var(--rx-cream);
}
.ra-daily-deck, .ra-cat-deck {
  margin: 12px 0 0; font: 500 16px/1.6 var(--grot); color: var(--rx-muted); max-width: 48em;
}

/* Cards on /daily, /leaderboard, /trivia/*, /answers/* */
.ra-daily-plate, .ra-cat-prompts, .ra-cat-table-wrap {
  margin: 0 0 32px; padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.05), transparent 36%), var(--rx-surface);
  border: 2px solid var(--rx-border); box-shadow: var(--rx-shadow);
}
.ra-daily-plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ra-daily-plate-head h2, .ra-cat-prompts h2, .ra-cat-table-wrap h2 { margin: 0 0 12px; font: 800 22px/1.25 var(--grot); color: var(--rx-cream); }
.ra-daily-edition { font: 700 12px var(--mono); letter-spacing: .1em; color: var(--rx-gold); }
.ra-daily-clock { margin: 0 0 16px; font: 600 13px var(--mono); color: var(--rx-teal); }
.ra-daily-note, .ra-cat-note { margin: 14px 0 16px; font: 500 14px/1.6 var(--grot); color: var(--rx-muted); }
.ra-daily-note a, .ra-cat-note a { color: var(--rx-gold); text-underline-offset: 3px; }

.ra-daily-prompts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ra-daily-prompts li {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: baseline; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(20, 24, 43, 0.65); border: 1.5px solid var(--rx-border);
  font: 600 15px/1.4 var(--grot); color: var(--rx-cream);
}
.ra-daily-no { font: 700 12px var(--mono); color: var(--rx-gold); }
.ra-daily-cat { font: 700 12px var(--mono); color: var(--rx-teal); text-transform: uppercase; white-space: nowrap; }

/* Stats strip on /trivia/* & /answers/* */
.ra-cat-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin: 0 0 28px; padding: 0;
}
.ra-cat-stats > div {
  padding: 16px 18px; border-radius: 12px;
  background: var(--rx-surface); border: 2px solid var(--rx-border); box-shadow: var(--rx-shadow);
}
.ra-cat-stats dt { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rx-muted); margin-bottom: 6px; }
.ra-cat-stats dd { margin: 0; font: 800 24px/1.1 var(--mono); color: var(--rx-gold); }

/* Prompt list on /trivia/* */
.ra-cat-prompt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ra-cat-prompt-list li {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(20, 24, 43, 0.6); border: 1.5px solid var(--rx-border);
}
.ra-cat-num { font: 700 12px var(--mono); color: var(--rx-gold); padding-top: 2px; }
.ra-cat-q { display: block; font: 700 15.5px/1.35 var(--grot); color: var(--rx-cream); text-decoration: none; }
a.ra-cat-q:hover { color: var(--rx-gold); text-decoration: underline; text-underline-offset: 3px; }
.ra-cat-commons { display: block; margin-top: 5px; font: 500 13px/1.5 var(--grot); color: var(--rx-muted); }
.ra-cat-commons b { font: 700 12px var(--mono); color: var(--rx-teal); margin-left: 6px; }

/* Index list on /trivia */
.ra-cat-more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ra-cat-more-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(20, 24, 43, 0.6); border: 1.5px solid var(--rx-border);
  transition: border-color .15s ease;
}
.ra-cat-more-list li:hover { border-color: var(--rx-gold); }
.ra-cat-more-list a { font: 700 15.5px var(--grot); color: var(--rx-cream); text-decoration: none; }
.ra-cat-more-list a:hover { color: var(--rx-gold); }
.ra-cat-more-list li span { font: 600 12px var(--mono); color: var(--rx-teal); white-space: nowrap; }

/* Tables */
.ra-table-wrap, .ra-cat-table-scroll { max-width: 100%; overflow-x: auto; }
.ra-prose table, .ra-survey-table, .ra-cat-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font: 500 13.5px/1.5 var(--mono); }
.ra-prose th, .ra-survey-table th, .ra-cat-table th {
  text-align: left; padding: 10px 12px 10px 0;
  border-bottom: 2px solid var(--rx-border-strong);
  font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rx-gold);
}
.ra-prose td, .ra-survey-table td, .ra-cat-table td {
  text-align: left; padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(255, 246, 229, 0.1);
  color: var(--rx-ink-80); vertical-align: top;
}
.ra-prose td:last-child, .ra-survey-table td:last-child, .ra-cat-table td:last-child { color: var(--rx-teal); }

/* Prose Typography */
.ra-prose h2 { margin: 36px 0 12px; font: 800 24px/1.25 var(--grot); letter-spacing: -.015em; color: var(--rx-cream); scroll-margin-top: calc(var(--site-head) + 18px); }
.ra-prose h3 { margin: 24px 0 8px; font: 700 17px/1.35 var(--grot); color: var(--rx-gold); }
.ra-prose p, .ra-prose li { font: 400 15.5px/1.75 var(--grot); color: var(--rx-ink-80); }
.ra-prose p { margin: 0 0 16px; }
.ra-prose ul, .ra-prose ol { margin: 0 0 20px; padding-left: 1.4em; }
.ra-prose li { margin: 6px 0; }
.ra-prose a { color: var(--rx-gold); text-underline-offset: 3px; }
.ra-prose a:hover { color: var(--rx-teal); }

/* Tactile FAQ Accordion */
.ra-faq-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 28px; }
.ra-faq-item {
  border-radius: 12px; background: var(--rx-surface);
  border: 1.5px solid var(--rx-border); overflow: hidden;
  transition: border-color .15s ease;
}
.ra-faq-item[open] { border-color: rgba(255, 209, 102, 0.5); }
.ra-faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ra-faq-item summary::-webkit-details-marker { display: none; }
.ra-faq-item summary::after { content: "+"; font: 700 18px var(--mono); color: var(--rx-gold); flex: none; }
.ra-faq-item[open] summary::after { content: "−"; }
.ra-faq-item summary h3 { margin: 0; font: 700 15.5px/1.4 var(--grot); color: var(--rx-cream); }
.ra-faq-ans { padding: 0 18px 16px; border-top: 1px solid rgba(255, 246, 229, 0.08); }
.ra-faq-ans p { margin: 12px 0 0; font: 400 14.5px/1.7 var(--grot); color: var(--rx-ink-80); }

.ra-back-box { margin-top: 32px; }

/* =========================================================================
 * 6. UNIFIED TWILIGHT HORIZON FOOTER
 * ========================================================================= */
.ra-footer {
  border-top: 2px solid var(--rx-border);
  background: var(--rx-bg-deep);
  padding: 36px 24px 44px;
}
.ra-footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.ra-footer-brand p { margin: 10px 0 0; max-width: 56ch; font: 400 14px/1.6 var(--grot); color: var(--rx-muted); }
.ra-footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ra-footer-inner nav a {
  font: 600 13px var(--mono); color: var(--rx-ink-80); text-decoration: none;
}
.ra-footer-inner nav a:hover { color: var(--rx-gold); }
.ra-footer-inner small { font: 500 12.5px var(--mono); color: var(--rx-dim); }

/* =========================================================================
 * 7. RESPONSIVE (MOBILE 320px–760px)
 * ========================================================================= */
@media (max-width: 760px) {
  :root { --site-head: 48px; }
  .ra-header { padding: 0 12px; gap: 8px; }
  .ra-brand { font-size: 14px; gap: 7px; }
  .ra-brand-icon { width: 34px; height: 34px; }
  .ra-primary-pills { display: none; }
  .ra-home-actions { gap: 5px; }
  .ra-home-actions button { padding: 6px 8px; font-size: 12px; }
  .ra-home-actions button[data-gf-share], .ra-home-actions button[data-gf-fullscreen] { display: none; }

  .ra-document-nav { gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .ra-document-nav a { padding: 5px 8px; font-size: 12px; }
  .ra-document-nav a[href="/#faq"], .ra-document-nav a[href="/contact"] { display: none; }
  .ra-document-body .ra-header .ra-brand span:last-child { display: none; }

  .rx-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rx-arcade-btn { padding: 11px 12px; gap: 9px; }
  .rx-btn-icon { width: 28px; height: 28px; font-size: 15px; }
  .rx-btn-copy strong { font-size: 14px; }

  .rx-hud { grid-template-columns: auto 1fr auto; padding: 8px 10px; gap: 6px; }
  .rx-pips, .rx-streak-chip { display: none; }
  .rx-prompt-card { padding: 11px 14px; }
  .rx-prompt-q { font-size: 20px; }
  .rx-input-row { gap: 7px; }
  .rx-answer-input { font-size: 16px; padding: 10px 12px; }
  .rx-btn-launch { padding: 10px 13px; font-size: 13px; }
  .rx-btn-launch kbd { display: none; }

  .rx-packs-grid, .rx-pc-highlights { grid-template-columns: 1fr; }
  .rx-codex-grid, .rx-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-ladder-row { grid-template-columns: 78px 1fr auto; gap: 6px; font-size: 12.5px; }
  .rx-pc-actions button, .rx-btn-next { min-height: 44px; }

  .rx-game.is-kbd-open .rx-hud { padding: 4px 10px; }
  .rx-game.is-kbd-open .rx-zone-tag,
  .rx-game.is-kbd-open .rx-prompt-hint { display: none; }
  .rx-game.is-kbd-open .rx-play-spacer { min-height: 8px; }
  .rx-game.is-kbd-open .rx-prompt-card { padding: 8px 12px; }
  .rx-game.is-kbd-open .rx-prompt-q { font-size: 18px; }
  .rx-game.is-kbd-open .rx-answer-form { padding: 8px; gap: 7px; }

  .ra-observation-log {
    top: 4dvh; left: 0; right: 0; width: auto;
    border-left: 0; border-top: 2px solid var(--rx-border-strong); border-radius: 16px 16px 0 0;
    transform: translateY(105%);
  }
  .ra-observation-log.is-open { transform: none; }
  .ra-log-grab { display: block; height: 18px; position: relative; }
  .ra-log-grab::after { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 3px; border-radius: 99px; margin-left: -20px; background: var(--rx-border-strong); }

  .ra-article { padding: 24px 16px 56px; }
  .ra-daily-plate, .ra-cat-prompts, .ra-cat-table-wrap { padding: 16px; }
  .ra-daily-prompts li { grid-template-columns: 26px 1fr; }
  .ra-daily-cat { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rx-sky-wonder.is-gliding { right: 10%; }
}
