/* Omniposter Games - /_omni/games.css (hosted-site platform file, pinned with ?v=).
   Everything is scoped under .og-root. The game page (.og-game) paints with the
   game's own palette (--og-*, set inline by games.js); the hub, stats page and
   promo card (.og-site) sit in the site's page and use its tokens (--bg, --text,
   --surface, --border, --muted, --accent, --accent-fg, --radius, --font-heading). */

.og-root {
  --og-bg: #0f172a; --og-surface: #1e293b; --og-glass: rgba(30, 41, 59, .82); --og-glass-strong: rgba(30, 41, 59, .94);
  --og-fg: #f1f5f9; --og-muted: #a8b4c6; --og-accent: #eab308; --og-accent-text: #eab308; --og-accent-fg: #0f172a;
  --og-accent-soft: rgba(234, 179, 8, .18); --og-line: rgba(241, 245, 249, .14); --og-soft: rgba(241, 245, 249, .07);
  --og-shadow: rgba(0, 0, 0, .55); --og-display: var(--font-heading, inherit); --og-radius: 22px;
  box-sizing: border-box; font-family: inherit; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.og-root *, .og-root *::before, .og-root *::after { box-sizing: border-box; }
.og-root [hidden] { display: none !important; }
.og-root p { margin: 0 0 .75rem; }
.og-root :focus-visible { outline: 2px solid var(--og-fg); outline-offset: 3px; }
.og-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.og-ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------------------------------------------------------------- the stage */
.og-game {
  position: relative; color: var(--og-fg);
  width: var(--og-vw, 100vw); max-width: var(--og-vw, 100vw);
  margin-left: calc(50% - var(--og-vw, 100vw) / 2); margin-right: calc(50% - var(--og-vw, 100vw) / 2);
}
.og-stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: clamp(640px, 94svh, 940px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5vh, 56px) 16px;
  background: radial-gradient(120% 80% at 50% 0%, var(--og-surface), var(--og-bg) 70%);
}
.og-stage.og-empty {
  background:
    radial-gradient(70% 50% at 50% 115%, var(--og-accent-soft), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, var(--og-surface), var(--og-bg) 70%);
}
.og-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.og-set { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.og-set.og-on { opacity: 1; }
.og-scene {
  position: absolute; inset: -5%; opacity: 0; visibility: hidden;
  background-color: var(--og-bg); background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform, opacity; backface-visibility: hidden;
}
.og-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .16) 62%, rgba(0, 0, 0, calc(.42 + var(--og-depth, 0) * .22)) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .5) 100%);
}
.og-fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.og-ui { position: relative; z-index: 3; width: 100%; max-width: 680px; margin: 0 auto; }

/* ---------------------------------------------------------------- the panel */
.og-panel {
  position: relative; color: var(--og-fg);
  background: var(--og-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--og-line); border-radius: var(--og-radius);
  box-shadow: 0 36px 90px -24px var(--og-shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
  padding: clamp(20px, 4vw, 38px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .og-panel { background: var(--og-glass-strong); } }
.og-panel { scroll-margin-top: 84px; }
.og-panel.og-enter { animation: og-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes og-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.og-game .og-muted { color: var(--og-muted); }
.og-small { font-size: .875rem; }
.og-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55em; margin: 0 0 .25rem;
  color: var(--og-accent-text); font-size: .8125rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.og-kicker > span + span:not(.og-chip)::before { content: "\00b7"; margin-right: .55em; opacity: .75; }
.og-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--og-accent-soft); color: var(--og-accent-text);
  font-size: .6875rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.og-title {
  font-family: var(--og-display); font-weight: 800; color: var(--og-fg);
  font-size: clamp(2.1rem, 6.4vw, 3.5rem); line-height: 1.02; letter-spacing: -.025em; margin: .12em 0 .25em;
  text-wrap: balance;
}
.og-title-sm { font-size: clamp(1.5rem, 4vw, 2rem); }
.og-tagline { font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.35; margin: 0 0 1rem !important; }
.og-day-title { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--og-line); font-weight: 700; }
.og-howto, .og-lede { color: var(--og-muted); font-size: 1rem; margin: 0 0 1.25rem !important; }
.og-lede { font-size: 1.125rem; color: var(--og-fg); }
.og-note { font-size: .875rem; color: var(--og-muted); }
.og-h3 { margin: 0 0 .55rem; font-family: inherit; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--og-muted); }

/* what to aim for: rare or popular (above the how-to) */
.og-callout {
  display: flex; align-items: flex-start; gap: 14px; margin: .25rem 0 1rem; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--og-accent); background: linear-gradient(135deg, var(--og-accent-soft), rgba(255, 255, 255, .02));
  box-shadow: 0 12px 32px -20px var(--og-accent);
}
.og-callout-ic { display: flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--og-accent); color: var(--og-accent-fg); }
.og-callout-ic .og-ic { width: 22px; height: 22px; }
.og-callout-text { min-width: 0; }
.og-callout-h { margin: 0 0 .2rem !important; color: var(--og-fg); font-family: var(--og-display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.og-callout-b { margin: 0 !important; color: var(--og-fg); font-size: .9375rem; line-height: 1.45; opacity: .92; }
.og-q-reward { display: flex; align-items: center; gap: .4em; margin: .45rem 0 0 !important; color: var(--og-muted); font-size: .8125rem; font-weight: 650; }
.og-q-reward .og-ic { width: 1em; height: 1em; color: var(--og-accent-text); }

/* how answers score */
.og-legend { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.og-legend li {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 12px; border-radius: 12px; background: var(--og-soft); border: 1px solid var(--og-line); text-align: center;
}
.og-legend li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--og-tier); }
.og-legend-emoji { width: 34px; height: 34px; font-size: 1.3rem; }
.og-legend-name { font-size: .6875rem; line-height: 1.15; color: var(--og-muted); }
.og-legend-pts { font-weight: 800; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.og-legend li.og-goal { border-color: var(--og-tier); box-shadow: inset 0 0 0 1px var(--og-tier), 0 10px 24px -14px var(--og-tier); }

/* buttons */
.og-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.25rem; }
.og-btn {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  background: var(--og-accent); color: var(--og-accent-fg);
  font: inherit; font-size: 1rem; font-weight: 750; line-height: 1.1; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 30px -12px var(--og-accent);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.og-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px var(--og-accent); }
.og-btn:active { transform: translateY(1px); }
.og-btn:disabled { opacity: .6; cursor: default; transform: none; }
.og-btn-ghost { background: var(--og-soft); color: var(--og-fg); border-color: var(--og-line); box-shadow: none; }
.og-btn-ghost:hover { background: var(--og-line); box-shadow: none; }
.og-btn-big { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.og-link-btn {
  appearance: none; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 6px;
  background: none; border: 0; color: var(--og-muted); font: inherit; font-size: .875rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.og-link-btn:hover { color: var(--og-fg); }

/* header: title, progress, score */
.og-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: -4px 0 20px; font-size: .875rem; }
.og-head-title { display: flex; align-items: center; gap: .5em; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; }
.og-head-name { overflow: hidden; text-overflow: ellipsis; }
.og-head-num { color: var(--og-muted); font-weight: 650; }
.og-head-score { justify-self: end; color: var(--og-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.og-head-score strong { color: var(--og-fg); font-size: 1.0625rem; }
.og-dots { display: flex; gap: 7px; list-style: none; margin: 0; padding: 0; }
.og-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--og-line); transition: background-color .4s, transform .4s; }
.og-dot.og-done { background: var(--og-tier); box-shadow: 0 0 12px var(--og-tier); }
.og-dot.og-miss { background: transparent; box-shadow: inset 0 0 0 2px var(--og-muted); }
.og-dot.og-now { background: var(--og-fg); animation: og-dot 1.4s ease-in-out infinite; }
@keyframes og-dot { 50% { transform: scale(1.4); opacity: .7; } }

/* question */
.og-q-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.og-q-meta { min-width: 0; }
.og-q-num { margin: 0 0 .3rem !important; color: var(--og-accent-text); font-size: .8125rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.og-prompt {
  margin: 0 0 .35rem; font-family: var(--og-display); font-weight: 800; color: var(--og-fg);
  font-size: clamp(1.65rem, 4.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.018em; text-wrap: balance;
}
.og-prompt-sm { font-size: clamp(1.15rem, 3vw, 1.45rem); margin-bottom: 1rem; }
.og-hint { margin: 0 !important; color: var(--og-muted); font-size: .9375rem; }

.og-timer { position: relative; flex: none; width: 70px; height: 70px; }
.og-ring { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px var(--og-accent-soft)); }
.og-ring-track { fill: none; stroke: var(--og-line); stroke-width: 5; }
.og-ring-bar { fill: none; stroke: var(--og-accent); stroke-width: 5; stroke-linecap: round; transition: stroke .3s ease; }
.og-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.og-timer.og-warn .og-ring-bar { stroke: #f59e0b; }
.og-timer.og-danger .og-ring-bar { stroke: #f87171; }
.og-timer.og-danger { animation: og-throb 1s ease-in-out infinite; }
.og-timer.og-danger .og-ring { filter: drop-shadow(0 0 10px rgba(248, 113, 113, .65)); }
@keyframes og-throb { 50% { transform: scale(1.08); } }

.og-answer { display: flex; gap: 10px; margin: 22px 0 10px; }
.og-input {
  flex: 1; min-width: 0; height: 60px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid var(--og-line); background: rgba(0, 0, 0, .26); color: var(--og-fg);
  font: inherit; font-size: 1.25rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.og-input::placeholder { color: var(--og-muted); opacity: .8; }
.og-input:focus { border-color: var(--og-accent); box-shadow: 0 0 0 4px var(--og-accent-soft); }
.og-btn-go { min-height: 60px; border-radius: 14px; padding: 0 22px; }
.og-checking .og-input { border-color: var(--og-accent); animation: og-breathe 1.1s ease-in-out infinite; }
.og-checking .og-btn-go {
  background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 220% 100%; animation: og-sheen 1s linear infinite;
}
@keyframes og-breathe { 50% { box-shadow: 0 0 0 7px var(--og-accent-soft); } }
@keyframes og-sheen { from { background-position: 200% 0; } to { background-position: -120% 0; } }
.og-shake { animation: og-shake .44s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes og-shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}
.og-msg { min-height: 1.6em; font-size: .9375rem; }
.og-msg-main { margin: .2rem 0 !important; padding-left: 10px; border-left: 3px solid #f87171; font-weight: 650; }
.og-msg-err { padding-left: 10px; border-left: 3px solid #f87171; }
.og-near { margin: .5rem 0 0 !important; padding: 10px 12px; border-radius: 12px; background: var(--og-soft); border: 1px dashed var(--og-line); }
.og-q-foot { display: flex; justify-content: flex-end; margin-top: 4px; }

/* reveal */
.og-reveal-hero { display: flex; align-items: center; gap: 22px; margin: 4px 0 14px; }
.og-badge {
  --og-tier: #94a3b8; --og-tier-ink: #0b1020;
  position: relative; z-index: 0; flex: none; width: 122px; height: 122px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
  background-color: var(--og-tier);
  background-image: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 44%), radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 62%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 0 56px -6px var(--og-tier), inset 0 -10px 22px rgba(0, 0, 0, .25);
}
.og-s-reveal .og-badge { animation: og-pop .75s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes og-pop { 0% { transform: scale(.3) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.09) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.og-badge::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--og-tier); opacity: 0; animation: og-ring-out 1.3s .2s ease-out both; }
@keyframes og-ring-out { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.og-badge-max::before {
  content: ""; position: absolute; inset: -20px; z-index: -1; border-radius: 50%; opacity: .8; filter: blur(7px);
  background: conic-gradient(from 0deg, transparent, var(--og-tier), transparent 28%, transparent 50%, var(--og-tier), transparent 78%);
  animation: og-spin 6s linear infinite;
}
.og-badge-miss { filter: saturate(.35); box-shadow: inset 0 -10px 22px rgba(0, 0, 0, .25); }
.og-badge-emoji { font-size: 2.5rem; }
/* A tier portrait fills the medallion inside a ring of the tier colour; the
   name becomes a pill across the bottom edge. Glow, pop and burst are unchanged. */
.og-badge-art { width: 136px; height: 136px; margin-bottom: 14px; }
.og-badge-art .og-badge-emoji.og-has-art { position: absolute; inset: 6px; z-index: 0; overflow: hidden; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.og-badge-art .og-badge-name {
  position: absolute; left: 50%; bottom: -12px; z-index: 1; max-width: none; padding: 4px 11px; transform: translateX(-50%);
  border-radius: 999px; background: var(--og-tier); white-space: nowrap; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .55);
}
.og-badge-art.og-badge-miss .og-portrait { filter: grayscale(.7) brightness(.85); }
.og-badge-name { max-width: 100px; color: var(--og-tier-ink); font-size: .75rem; font-weight: 850; line-height: 1.12; letter-spacing: .04em; text-transform: uppercase; }
.og-reveal-text { min-width: 0; }
.og-points { margin: 0 !important; color: var(--og-tier); font-family: var(--og-display); font-size: clamp(2.3rem, 6vw, 3.1rem); line-height: 1; }
.og-points strong { font-weight: 900; }
.og-points span { color: var(--og-muted); font-size: .42em; font-weight: 750; }
.og-said { margin: .55rem 0 .15rem !important; font-weight: 650; }
.og-line { margin: 0 !important; color: var(--og-muted); font-style: italic; }
.og-share-pct { padding: 10px 14px; border-radius: 12px; background: var(--og-soft); border: 1px solid var(--og-line); }
.og-share-pct strong { color: var(--og-accent-text); font-size: 1.15em; }
.og-fact { padding-left: 12px; border-left: 3px solid var(--og-accent); }
.og-top { margin: 0 0 1rem; }
.og-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.og-bars li { display: grid; grid-template-columns: minmax(0, 10em) 1fr 3.8em; align-items: center; gap: 10px; font-size: .9375rem; }
.og-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-bar-track { height: 10px; border-radius: 999px; background: var(--og-soft); overflow: hidden; }
.og-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--og-accent), var(--og-fg)); transform-origin: left center; animation: og-grow .95s .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes og-grow { from { transform: scaleX(0); } }
.og-bar-pct { text-align: right; color: var(--og-muted); font-variant-numeric: tabular-nums; }
.og-mine .og-bar-label { color: var(--og-accent-text); font-weight: 800; }
.og-gem {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 1rem; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(167, 139, 250, .12)); border: 1px solid rgba(34, 211, 238, .38);
}
.og-gem .og-ic { margin-top: 3px; color: #67e8f9; }
.og-gem p { margin: 0 !important; }
.og-related {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--og-line); background: var(--og-soft); color: var(--og-fg); font-weight: 650; text-decoration: none;
}
.og-related:hover { border-color: var(--og-accent); }
.og-related-k { color: var(--og-accent-text); font-size: .6875rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.og-related .og-ic { margin-left: auto; opacity: .7; }

/* end */
.og-final { margin: .12em 0 .08em; font-family: var(--og-display); font-size: clamp(3.4rem, 12vw, 5.6rem); font-weight: 900; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.og-final span { color: var(--og-muted); font-size: .36em; font-weight: 750; letter-spacing: 0; }
.og-emoji-row { margin: .3rem 0 .6rem !important; font-size: clamp(1.6rem, 6.2vw, 2.15rem); line-height: 1.2; letter-spacing: .08em; }
.og-emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.og-emoji-row > .og-glyph { animation: og-drop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.og-row-glyph { width: 1.3em; height: 1.3em; }
.og-row-glyph.og-has-art { width: 1.45em; height: 1.45em; }
@keyframes og-drop { from { transform: translateY(-16px) scale(.45); opacity: 0; } }
.og-rank { font-size: 1.125rem; font-weight: 650; }
.og-gems { display: flex; align-items: center; gap: .5em; font-weight: 650; }
.og-gems .og-ic { color: #67e8f9; }
.og-share { margin: 1rem 0; padding: 16px; border-radius: 16px; background: var(--og-soft); border: 1px solid var(--og-line); }
.og-share .og-actions { margin-top: 0; }
.og-share-status { display: block; min-height: 1.4em; margin-top: 8px; color: var(--og-muted); font-size: .875rem; }
.og-share-text { margin: 10px 0 0; padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-size: .8125rem; white-space: pre-wrap; user-select: all; }
.og-signin { margin: 1rem 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--og-accent); background: var(--og-accent-soft); }
.og-signin p { margin: 0 0 .6rem !important; }
.og-next { display: flex; align-items: center; gap: .5em; margin: .75rem 0 !important; color: var(--og-muted); }
.og-next strong { color: var(--og-fg); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.og-recap-box { margin: 1rem 0 0; padding-top: .5rem; border-top: 1px solid var(--og-line); }
.og-recap-box summary { display: flex; align-items: center; min-height: 44px; font-weight: 750; cursor: pointer; }
.og-recap { list-style: none; display: grid; gap: 6px; margin: .4rem 0 0; padding: 0; }
.og-recap li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--og-soft); border-left: 3px solid var(--og-tier); }
.og-recap-emoji { width: 32px; height: 32px; font-size: 1.2rem; }
.og-recap-q { display: flex; flex-direction: column; min-width: 0; }
.og-recap-prompt { font-weight: 650; line-height: 1.25; }
.og-recap-a { color: var(--og-muted); font-size: .875rem; }
.og-recap-pts { font-weight: 850; font-variant-numeric: tabular-nums; }
.og-gems, .og-rank, .og-next { line-height: 1.4; }

/* tier glyphs: a circular portrait (theme icon_url) or the emoji fallback */
.og-glyph { display: inline-flex; flex: none; align-items: center; justify-content: center; line-height: 1; }
.og-glyph.og-has-art { border-radius: 50%; background: #0b0b10; box-shadow: 0 0 0 2px var(--og-tier, var(--og-line)); }
.og-portrait { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.og-legend li .og-glyph.og-has-art { box-shadow: 0 0 0 2px var(--og-tier), 0 0 14px -3px var(--og-tier); }
.og-mini-glyph.og-has-art { box-shadow: 0 0 0 1.5px var(--og-tier, var(--og-line)); }

/* archive picker */
.og-archive { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--og-line); }
.og-arch-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; margin: .5rem 0 0; padding: 2px; }
.og-arch-grid { scrollbar-width: thin; scrollbar-color: var(--og-line) transparent; }
.og-arch { display: flex; flex-direction: column; gap: 1px; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--og-line); background: var(--og-soft); color: var(--og-fg); text-decoration: none; }
.og-arch:hover { border-color: var(--og-accent); }
.og-arch-num { font-weight: 850; }
.og-arch-date, .og-arch-state { color: var(--og-muted); font-size: .8125rem; }
.og-arch-done { border-color: var(--og-accent-soft); }

/* loading */
.og-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; color: var(--og-muted); }
.og-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--og-line); border-top-color: var(--og-accent); animation: og-spin .8s linear infinite; }
@keyframes og-spin { to { transform: rotate(360deg); } }

/* phones */
@media (max-width: 640px) {
  .og-stage { min-height: 100vh; min-height: 100svh; align-items: flex-start; padding: 12px 10px 24px; }
  .og-panel { padding: 20px 16px; border-radius: 18px; }
  .og-head { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .og-dots { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .og-legend-name { font-size: .625rem; }
  .og-reveal-hero { gap: 14px; }
  .og-badge { width: 98px; height: 98px; }
  .og-badge-emoji { font-size: 1.9rem; }
  .og-badge-art { width: 108px; height: 108px; }
  .og-badge-name { font-size: .625rem; max-width: 80px; }
  .og-bars li { grid-template-columns: minmax(0, 7.5em) 1fr 3.4em; }
  .og-timer { width: 62px; height: 62px; }
}
@media (max-width: 420px) {
  .og-callout { gap: 10px; padding: 12px 14px; }
  .og-callout-ic { width: 34px; height: 34px; }
  .og-callout-h { font-size: 1.1rem; }
  .og-answer { flex-direction: column; }
  /* In a column the input's flex: 1 would override its height (flex-basis
     wins on the main axis) and squash it to one line of text. */
  .og-answer .og-input { flex: none; height: 64px; }
  .og-btn-go { width: 100%; min-height: 52px; }
  .og-actions > .og-btn-big { width: 100%; }
}

/* ------------------------------------------------- hub, stats, promo (site colours) */
.og-site { color: var(--text, inherit); }
.og-site .og-muted { color: var(--muted, #64748b); }
.og-site .og-h3 { color: var(--muted, #64748b); margin-top: .25rem; }
.og-site .og-ic { width: 1.05em; height: 1.05em; }
.og-btn-site {
  appearance: none; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius, 10px); background: var(--accent, #111827); color: var(--accent-fg, #fff);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.og-btn-site:hover { filter: brightness(1.06); }
.og-btn-site-ghost { background: transparent; color: var(--text, inherit); border-color: var(--border, rgba(127, 127, 127, .35)); }
.og-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0; padding: 0; }
.og-card-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--border, rgba(127, 127, 127, .25)); border-radius: calc(var(--radius, 10px) + 6px); background: var(--surface, transparent);
  transition: transform .2s ease, box-shadow .25s ease;
}
.og-card-link:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .5); }
.og-art { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 0%, var(--og-surface), var(--og-bg)); }
.og-art-a, .og-art-b { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 6s ease; }
.og-art-b { clip-path: polygon(64% 0, 100% 0, 100% 100%, 40% 100%); }
.og-card-link:hover .og-art-a, .og-card-link:hover .og-art-b, .og-promo-link:hover .og-art-a { transform: scale(1.07); }
.og-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .7)); }
.og-art-title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; display: flex; align-items: baseline; gap: .5em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .65); }
.og-art-name { font-family: var(--font-heading, inherit); font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.og-art-num { font-weight: 750; opacity: .9; }
.og-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.og-card-tag { color: var(--muted, #64748b); font-size: .9375rem; line-height: 1.4; }
.og-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.og-state { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(127, 127, 127, .15); font-size: .8125rem; font-weight: 700; }
.og-state-done { background: rgba(34, 197, 94, .18); }
.og-state-live { background: rgba(234, 179, 8, .24); }
.og-streak { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 750; }
.og-streak .og-ic { color: #f97316; }
.og-card-cta { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; color: var(--accent, inherit); font-weight: 800; }
.og-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; }
.og-card-foot .og-card-cta { margin-top: 0; }
.og-reward-line { display: inline-flex; align-items: center; gap: .35em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border, rgba(127, 127, 127, .3)); color: var(--text, inherit); font-size: .8125rem; font-weight: 700; }
.og-reward-line .og-ic { width: 1em; height: 1em; color: var(--accent, currentColor); }
.og-hub-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0 !important; }

.og-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 14px 18px;
  border: 1px solid var(--accent, #ca8a04); border-radius: calc(var(--radius, 10px) + 4px); background: var(--surface, transparent);
}
.og-banner p { flex: 1 1 260px; margin: 0 !important; }
.og-stat-card { margin: 0 0 24px; padding: 20px; border: 1px solid var(--border, rgba(127, 127, 127, .25)); border-radius: calc(var(--radius, 10px) + 6px); background: var(--surface, transparent); }
.og-stat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.og-stat-head p { margin: 0 !important; }
.og-art-sm { flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 10px; }
.og-art-sm::after { display: none; }
.og-stat-title { margin: 0; font-size: 1.45rem; }
.og-stat-title a { color: inherit; text-decoration: none; }
.og-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.og-tile { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border: 1px solid var(--border, rgba(127, 127, 127, .25)); border-radius: 12px; background: var(--bg, transparent); text-align: center; }
.og-tile-v { font-family: var(--font-heading, inherit); font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.og-tile-k { color: var(--muted, #64748b); font-size: .75rem; line-height: 1.2; }
.og-hist-bars { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 6px; height: 120px; margin: 0; padding: 0; }
.og-hist-bars li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.og-hist-bar { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--accent, #ca8a04); }
.og-hist-n { height: 1.1em; margin-top: 3px; color: var(--muted, #64748b); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.og-hist-axis { display: flex; justify-content: space-between; margin: .3rem 0 1rem !important; color: var(--muted, #64748b); font-size: .75rem; }
.og-tally-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.og-tally-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border, rgba(127, 127, 127, .25)); border-radius: 999px; font-size: .875rem; }
.og-recent summary { display: flex; align-items: center; min-height: 44px; font-weight: 750; cursor: pointer; }
.og-recent summary::after, .og-recap-box summary::after {
  content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; opacity: .7;
}
.og-recent[open] summary::after, .og-recap-box[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.og-root summary::-webkit-details-marker { display: none; }
.og-stat-empty { padding: 14px 20px; }
.og-stat-empty .og-stat-head { margin: 0; }
.og-stat-play { margin-left: auto; }
.og-recent-list { list-style: none; margin: 0; padding: 0; }
.og-recent-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 44px; padding: 8px 4px; border-top: 1px solid var(--border, rgba(127, 127, 127, .2)); color: inherit; text-decoration: none; }
.og-recent-list a:hover .og-recent-d { text-decoration: underline; }
.og-recent-e { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.og-mini-glyph { width: 20px; height: 20px; font-size: .95rem; }
.og-tally-glyph { width: 24px; height: 24px; font-size: 1rem; }
.og-recent-s { font-weight: 750; font-variant-numeric: tabular-nums; }
.og-empty-stats { padding: 30px; border: 1px dashed var(--border, rgba(127, 127, 127, .35)); border-radius: 16px; text-align: center; }
@media (max-width: 560px) {
  .og-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .og-recent-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .og-recent-e { grid-column: 1 / -1; grid-row: 2; }
}

.og-promo-link {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--border, rgba(127, 127, 127, .25)); border-radius: calc(var(--radius, 10px) + 6px); background: var(--surface, transparent);
  transition: box-shadow .25s ease;
}
.og-promo-link:hover { box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .5); }
.og-art-promo { aspect-ratio: auto; min-height: 190px; }
.og-art-promo::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .25)); }
.og-promo-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.og-promo-k { color: var(--accent, inherit); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.og-promo-title { font-family: var(--font-heading, inherit); font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.og-promo-tag { color: var(--muted, #64748b); line-height: 1.4; }
@media (max-width: 560px) {
  .og-promo-link { grid-template-columns: 1fr; }
  .og-art-promo { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .og-root *, .og-root *::before, .og-root *::after { animation: none !important; transition: none !important; }
  .og-set { transition: none; }
}
