.sumthing-cog-companion { position: absolute; z-index: 2; top: 0; left: 50%; width: clamp(48px, 10vw, 76px); aspect-ratio: 320 / 250; transform: translateX(-50%); transition: top 550ms cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.sumthing-cog-companion > :is(img, svg) { display: block; width: 100%; height: 100%; background: transparent; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .sumthing-cog-companion { transition: none; }
}
[data-theme="sumthing"] .page-shell { width: min(1600px, calc(100% - 64px)); }
[data-theme="sumthing"] .app-heading { min-height: 190px; padding-top: 12px; display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: 12px; }
[data-theme="sumthing"] .app-heading > :not(.game-engagement):not(.game-controls) { max-width: none; }
[data-theme="sumthing"] .app-heading h1 { letter-spacing: .08em; }
[data-theme="sumthing"] .app-heading .game-engagement,
[data-theme="sumthing"] .game-controls { margin: 0; }
[data-theme="sumthing"] .game-controls { justify-content: center; }
[data-theme="sumthing"] .difficulty-tab[aria-pressed="true"] { background: linear-gradient(145deg, #a9e3ff, #bba8ff); color: #1c2540; }
[data-theme="sumthing"] .game-workspace { grid-template-columns: minmax(220px, 1fr) minmax(480px, 2.4fr) minmax(260px, 1fr); gap: 28px; padding: 28px 0 40px; }
[data-theme="sumthing"] .game-primary { grid-column: 2; grid-row: 1 / span 3; width: min(100%, 620px); margin-inline: auto; }
[data-theme="sumthing"] .game-sidebar { display: contents; }
[data-theme="sumthing"] .game-play-panel { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
[data-theme="sumthing"] .game-panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-theme="sumthing"] .personal-score { width: fit-content; margin: 0 auto 16px; padding: 10px 24px; border: 1px solid #8277b5; border-radius: 18px; background: linear-gradient(145deg, #363c64, #1d2b4a); }
[data-theme="sumthing"] .best-line strong { color: #d6c5ff; font-family: var(--font-numbers); }
[data-theme="sumthing"] .round-stats { gap: 14px; }
[data-theme="sumthing"] .timer-block,
[data-theme="sumthing"] .score-line { padding: 14px 18px; border: 1px solid #638cb2; border-radius: 22px; background: linear-gradient(145deg, #2b4564, #182a48); }
[data-theme="sumthing"] .timer-value { font-family: var(--font-numbers); color: #c1eaff; }
[data-theme="sumthing"] .score-line { border-color: #8277b5; text-align: center; white-space: normal; }
[data-theme="sumthing"] .score-line strong { display: block; margin: 0 0 4px; color: #dbcaff; font: 700 30px/1.2 var(--font-numbers); }
[data-theme="sumthing"] .equation-stage { min-height: 200px; border: 1px solid #687caa; border-radius: 32px; background: radial-gradient(ellipse at 50% 0, rgb(145 153 240 / 15%), transparent 75%), linear-gradient(145deg, #243e5e, #182847 65%, #2d2b50); }
[data-theme="sumthing"] .ready-prompt,
[data-theme="sumthing"] .equation { font-family: var(--font-numbers); color: #e2edff; }
[data-theme="sumthing"] .ready-best { display: none; }
[data-theme="sumthing"] .equation-blank { color: #b9ddff; border-color: #b8acfa; }
[data-theme="sumthing"] .answer-input { border-color: #728ab5; border-radius: 16px; background: #1e3453; font-family: var(--font-numbers); color: #e2edff; }
[data-theme="sumthing"] .submit-button { border-radius: 16px; background: linear-gradient(145deg, #afdfff, #b6a8f4); color: #1d2541; }
[data-theme="sumthing"] .game-actions .button,
[data-theme="sumthing"] #play-again { border-radius: 999px; min-height: 52px; border-color: #9e9bd7; background: linear-gradient(145deg, #3c476e, #302a53); color: #e3e7ff; }
[data-theme="sumthing"] .results { border: 1px solid #8277b5; border-radius: 32px; background: linear-gradient(145deg, #2e3e62, #202b49); }
[data-theme="sumthing"] .results h2,
[data-theme="sumthing"] .results-score strong { color: #c4deff; font-family: var(--font-numbers); }
[data-theme="sumthing"] #ranked-status { text-align: center; line-height: 1.6; }
[data-theme="sumthing"] .game-quick-guide,
[data-theme="sumthing"] .game-sidebar > .daily-leaderboard { border: 1px solid rgb(155 165 226 / 40%); border-radius: 42px; padding: 30px 24px; background: radial-gradient(ellipse at 40% 15%, #354365, #162943 65%, #30294e); box-shadow: 0 0 0 7px rgb(155 165 226 / 4%), 0 0 0 8px rgb(155 165 226 / 14%); }
[data-theme="sumthing"] .game-quick-guide { grid-column: 1; grid-row: 1; }
[data-theme="sumthing"] .game-quick-guide li { padding-left: 30px; }
[data-theme="sumthing"] .game-quick-guide li::before { width: 22px; height: 22px; background: #3b3e65; color: #c7e7ff; border: 1px solid #8286b8; }
[data-theme="sumthing"] .game-sidebar > .daily-leaderboard { grid-column: 3; grid-row: 1; margin-top: 0; }
[data-theme="sumthing"] .game-sidebar .leaderboard-table-wrap { max-height: none; }
body[data-game-session][data-theme="sumthing"] .game-primary { max-width: 620px; }
body[data-game-session][data-theme="sumthing"] .personal-score { margin-bottom: 12px; padding: 8px 18px; }
body[data-game-session][data-theme="sumthing"] .game-play-panel[data-phase="result"] .personal-score { display: none; }
body[data-game-session][data-theme="sumthing"] .round-stats { gap: 8px; margin-bottom: 12px; }
body[data-game-session][data-theme="sumthing"] .timer-block,
body[data-game-session][data-theme="sumthing"] .score-line { padding: 8px 12px; border-radius: 16px; }
body[data-game-session][data-theme="sumthing"] .equation-stage { min-height: clamp(110px, 22svh, 180px); margin-bottom: 12px; }
body[data-game-session][data-theme="sumthing"] .answer-row { margin-top: 0; }
body[data-game-session][data-theme="sumthing"] .game-actions:empty { display: none; }
body[data-game-session][data-theme="sumthing"] #round .game-actions:has(button[hidden]) { display: none; }
body[data-game-session][data-theme="sumthing"] .game-status:empty { display: none; }
body[data-game-session][data-theme="sumthing"] .results { border: 0; padding: 0; background: transparent; }
body[data-game-session][data-theme="sumthing"] .results-score { margin: 12px 0; }
body[data-game-session][data-theme="sumthing"] .results-details,
body[data-game-session][data-theme="sumthing"] .results-best { margin-bottom: 12px; }
body[data-game-session][data-theme="sumthing"] #change-difficulty { display: block; margin: 12px auto 0; }
body[data-game-session][data-theme="sumthing"] #ranked-status { font-size: 12px; }
@media (max-width: 1400px) {
  [data-theme="sumthing"] .page-shell { width: calc(100% - 48px); }
}
@media (max-width: 1240px) {
  [data-theme="sumthing"] .game-workspace { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  [data-theme="sumthing"] .game-primary { grid-column: 1; grid-row: 1; }
  [data-theme="sumthing"] .game-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1; grid-row: 2; gap: 26px; align-items: start; }
  [data-theme="sumthing"] .game-quick-guide { grid-column: 1; grid-row: 1; }
  [data-theme="sumthing"] .game-sidebar > .daily-leaderboard { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  [data-theme="sumthing"] .page-shell { width: calc(100% - 32px); }
  [data-theme="sumthing"] .game-workspace { padding-top: 14px; }
  [data-theme="sumthing"] .game-sidebar { grid-template-columns: minmax(0, 1fr); }
  [data-theme="sumthing"] .game-sidebar > .daily-leaderboard { grid-column: 1; grid-row: 2; }
  [data-theme="sumthing"] .game-quick-guide,
  [data-theme="sumthing"] .game-sidebar > .daily-leaderboard { border-radius: 30px; padding: 26px 22px; }
  [data-theme="sumthing"] .timer-block { gap: 8px; padding: 12px; }
  [data-theme="sumthing"] .score-line { padding: 12px; }
  [data-theme="sumthing"] .equation { font-size: 30px; gap: 6px; }
}

body[data-theme="sumthing"] { -webkit-tap-highlight-color: transparent; --sumthing-error: #b93e38; }
html[data-color-mode="dark"] body[data-theme="sumthing"] { --sumthing-error: #f08078; }
body[data-game-session][data-theme="sumthing"] .game-primary { width: min(580px, 100%, max(288px, calc(100svh - 150px))); }
body[data-game-session][data-theme="sumthing"] .game-play-panel {
  position: relative; isolation: isolate; container-type: inline-size;
  width: 100%; min-height: 0; aspect-ratio: 1;
  padding: 14%; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 42% 32%, var(--paper), var(--canvas) 76%);
  box-shadow: inset 0 0 42px color-mix(in srgb, var(--accent) 6%, transparent);
}
.sumthing-timer-ring { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: rotate(-90deg); }
.sumthing-timer-ring circle { fill: none; stroke-width: .8; }
.sumthing-timer-ring .timer-orbit { stroke: var(--line); opacity: .6; }
.sumthing-timer-ring .timer-arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 100ms linear; filter: drop-shadow(0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)); }
.sumthing-timer-ring.is-urgent .timer-arc { stroke: var(--sumthing-error); }
.sumthing-timer-ring[aria-valuenow="0"] .timer-arc { opacity: 0; }
body[data-game-session][data-theme="sumthing"] #game-session-intro { gap: 14px; }
body[data-game-session][data-theme="sumthing"] .app-heading { flex-flow: column nowrap; gap: 10px; }
body[data-game-session][data-theme="sumthing"] .app-heading .app-eyebrow { color: var(--muted); font-size: 10px; }
body[data-game-session][data-theme="sumthing"] .app-heading h1 { color: var(--ink); font-size: clamp(24px, 8cqw, 43px); text-shadow: none; }
body[data-game-session][data-theme="sumthing"] .app-heading img { width: 38px; height: 38px; }
body[data-game-session][data-theme="sumthing"] .game-title-row { gap: 8px; }
body[data-game-session][data-theme="sumthing"] .app-heading .game-description { color: var(--muted); font-size: clamp(10px, 2.8cqw, 13px); line-height: 1.4; }
[data-theme="sumthing"] .difficulty-tabs { padding: 0; border: 0; gap: 5px; background: none; }
[data-theme="sumthing"] .difficulty-tab { min-width: 0; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); }
[data-theme="sumthing"] .difficulty-tab[aria-pressed="true"] { background: var(--accent); color: var(--canvas); }
body[data-game-session][data-theme="sumthing"] .personal-score { margin: 0; padding: 0; border: 0; background: none; }
[data-theme="sumthing"] .best-line strong { color: var(--accent); }
body[data-game-session][data-theme="sumthing"] #game-session-intro .game-session-start,
[data-theme="sumthing"] #play-again { min-width: 0; min-height: 44px; border-color: var(--accent); border-radius: 999px; padding: 10px 24px; background: linear-gradient(135deg, #f8e6b9, #d5af63); color: #302315; box-shadow: 0 0 24px rgb(231 199 128 / 12%); }
body[data-game-session][data-theme="sumthing"] #game-session-intro .game-session-start:hover:not(:disabled),
[data-theme="sumthing"] #play-again:hover:not(:disabled) { background: #fae9c2; }
body[data-game-session][data-theme="sumthing"] .round-stats { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
body[data-game-session][data-theme="sumthing"] :is(.timer-block, .score-line) { display: block; padding: 0; border: 0; background: none; color: var(--muted); }
body[data-game-session][data-theme="sumthing"] :is(.timer-value, .score-line strong) { display: inline; min-width: 0; margin: 0; color: var(--accent); font: 700 clamp(20px, 6cqw, 32px)/1.2 var(--font-numbers); }
[data-theme="sumthing"] .timer-value::after { content: "s"; font-size: .55em; color: var(--muted); }
body[data-game-session][data-theme="sumthing"] .equation-stage { min-height: 80px; margin: 0 0 12px; border: 0; border-radius: 0; padding: 0; background: none; }
[data-theme="sumthing"] .equation { gap: .22em; font-size: clamp(17px, 5.2cqw, 30px); color: var(--ink); }
[data-theme="sumthing"] .equation-blank { color: var(--accent); border-color: var(--accent); }
body[data-game-session][data-theme="sumthing"] .answer-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; }
[data-theme="sumthing"] .answer-input { min-height: 44px; border-color: var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 20px; }
[data-theme="sumthing"] .submit-button { min-width: 64px; min-height: 44px; border-radius: 999px; padding: 0 12px; background: var(--accent); color: var(--canvas); }
body[data-game-session][data-theme="sumthing"] .game-status { min-height: 16px; margin-top: 8px; font-size: 11px; }
[data-theme="sumthing"] .game-status.is-correct { color: var(--accent); }
[data-theme="sumthing"] .game-status.is-wrong { color: var(--sumthing-error); }
body[data-game-session][data-theme="sumthing"] .results :is(h2, .results-score strong) { color: var(--accent); }
body[data-game-session][data-theme="sumthing"] .results h2 { font-size: clamp(24px, 7cqw, 38px); }
body[data-game-session][data-theme="sumthing"] .results-score { margin: 8px 0; font-size: 12px; }
body[data-game-session][data-theme="sumthing"] .results-score strong { font-size: clamp(32px, 11cqw, 60px); }
body[data-game-session][data-theme="sumthing"] .results-details { gap: 16px; font-size: 11px; }
body[data-game-session][data-theme="sumthing"] .results-best { font-size: 12px; margin-bottom: 10px; }
body[data-game-session][data-theme="sumthing"] #change-difficulty { min-width: 0; min-height: 36px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: none; color: var(--ink); }
[data-theme="sumthing"] .game-over-support { display: block; margin-top: 10px; font-size: 10px; }
body[data-game-session][data-theme="sumthing"] #ranked-status { margin-top: 14px; font-size: 11px; }
body[data-game-session][data-theme="sumthing"] .game-recommendations { margin-top: 64px; border: 0; background: none; box-shadow: none; }
[data-theme="sumthing"] .game-recommendations a { border: 0; background: none; box-shadow: none; }
.sumthing-backdrop { position: fixed; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
[data-theme="sumthing"] .game-play-panel[data-bouncing="true"] { animation: sumthing-finish-bounce 360ms ease-out; }
@keyframes sumthing-finish-bounce { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.035); } 70% { transform: scale(.985); } }
@media (max-width: 600px) {
  body[data-game-session][data-theme="sumthing"] .game-play-panel { padding: 13%; }
  body[data-game-session][data-theme="sumthing"] #game-session-intro { gap: 9px; }
  body[data-game-session][data-theme="sumthing"] .app-heading { gap: 7px; }
  body[data-game-session][data-theme="sumthing"] .app-heading img { width: 28px; height: 28px; }
  body[data-game-session][data-theme="sumthing"] .app-heading .game-description { max-width: 230px; }
  [data-theme="sumthing"] .difficulty-tab { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  body[data-game-session][data-theme="sumthing"] .equation-stage { min-height: 65px; }
  body[data-game-session][data-theme="sumthing"] .results-details,
  body[data-game-session][data-theme="sumthing"] .results-best { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sumthing-backdrop { display: none; }
  [data-theme="sumthing"] .game-play-panel[data-bouncing="true"] { animation: none; }
  .sumthing-timer-ring .timer-arc { transition: none; }
}
