.rotsi-page {
  color-scheme: dark;
  --page: #100d14;
  --panel: #1a141f;
  --line: #392c3b;
  --text: #f7ede4;
  --muted: #bcacba;
  --accent: #ff9a67;
  --accent-light: #ffc088;
  --yellow: #ffd58a;
  --lime: #c3f35b;
  --display: 'Arial Black', 'Segoe UI', Arial, sans-serif;
  --body: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.rotsi-page, :where(.rotsi-page) *, :where(.rotsi-page) *::before, :where(.rotsi-page) *::after { box-sizing: border-box; }
:where(.rotsi-page) [hidden] { display: none !important; }
.rotsi-page {
  display: flow-root;
  min-width: 0;
  color: var(--text);
  font: 1rem/1.5 var(--body);
  background: radial-gradient(ellipse at 86% 4%, #381e2b 0, transparent 46rem), var(--page);
  background-repeat: no-repeat;
}
:where(.rotsi-page) p, :where(.rotsi-page) h1, :where(.rotsi-page) h2, :where(.rotsi-page) h3 { margin: 0; }
:where(.rotsi-page) p + p { margin-top: 0; }
:where(.rotsi-page) button, :where(.rotsi-page) input, :where(.rotsi-page) textarea { font: inherit; }
:where(.rotsi-page) button { cursor: pointer; }
:where(.rotsi-page) button:disabled { cursor: default; opacity: .7; }
:where(.rotsi-page) a { color: inherit; text-decoration: none; }
:where(.rotsi-page) :focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
:where(.rotsi-page) .shell { width: min(1240px, 100%); margin-inline: auto; padding-inline: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left)) max(clamp(16px, 4vw, 48px), env(safe-area-inset-right)); }
:where(.rotsi-page) .sound-toggle { display: inline-flex; gap: 6px; align-items: center; min-height: 46px; padding: 4px 10px; border: 1px solid #6c4a60; border-radius: 99px; background: #211624; color: var(--text); font-size: .8rem; font-weight: 750; pointer-events: auto; }
:where(.rotsi-page) .sound-toggle::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
:where(.rotsi-page) .sound-toggle[aria-pressed="true"] { color: var(--accent-light); }
:where(.rotsi-page) .sound-toggle[aria-pressed="true"]::before { background: currentColor; }
:where(.rotsi-page) .sound-toggle:hover:enabled { background: #352338; }
:where(.rotsi-page) .masthead { margin-block: clamp(24px, 4.1vw, 54px) clamp(20px, 3vw, 33px); }
:where(.rotsi-page) .masthead h1 { font-family: var(--display); font-weight: 950; font-size: clamp(1.8rem, 4.5vw, 3.25rem); letter-spacing: -.065em; line-height: 1.02; }
:where(.rotsi-page) .masthead .subtitle { display: block; margin-top: .75rem; color: var(--text); font: 700 clamp(1.02rem, 2.45vw, 1.75rem)/1.2 var(--body); letter-spacing: -.045em; }
:where(.rotsi-page) .game-intro { color: var(--muted); font-size: .93rem; margin-top: 1rem; }
:where(.rotsi-page) .game-intro h2 { color: var(--text); font-size: 1rem; }
:where(.rotsi-page) .game-intro [data-rotsi-text="idea-heading"] { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
:where(.rotsi-page) .game-intro [data-rotsi-text="idea"] { margin-top: .25rem; color: var(--text); font-size: clamp(1.1rem, 1.8vw, 1.25rem); }
:where(.rotsi-page) .game-intro p + h2 { margin-top: .75rem; }
:where(.rotsi-page) .play-tips { display: grid; gap: .65rem; margin-block: .75rem 0; padding-inline-start: 1.15rem; }
:where(.rotsi-page) .play-tips li::marker { color: var(--accent-light); }
:where(.rotsi-page) .play-tips strong { display: block; color: var(--text); }
:where(.rotsi-page) #play-status, :where(.rotsi-page) .rank-login { color: var(--accent-light); font-size: .8rem; }
:where(.rotsi-page) .rank-login { display: inline-block; padding-block: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: .17em; }
:where(.rotsi-page) .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 302px); gap: 16px; align-items: start; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
:where(.rotsi-page) .game { min-width: 0; }
:where(.rotsi-page) .stage { --stage-height: clamp(360px, 42vw, 520px); position: relative; isolation: isolate; height: var(--stage-height); overflow: hidden; border: 1px solid #554052; border-radius: 20px; background: #231826; }
:where(.rotsi-page) .stage[data-mode="playing"] { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair; }
:where(.rotsi-page) .stage:focus-visible { outline-offset: -5px; }
:where(.rotsi-page) .stage::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg, #130b18b5, transparent 28%, transparent 58%, #130b1899 91%, #130b18cc); }
:where(.rotsi-page) .stage[data-mode="over"]::after { background: radial-gradient(ellipse at 50% 44%, #140c19a6, transparent 66%), linear-gradient(180deg, #10091696, #1009165c 25%, #120b18c9 62%, #0e0912f2); }
:where(.rotsi-page) canvas { display: block; width: 100%; height: 100%; }
:where(.rotsi-page) .intro-reveal { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 18px; pointer-events: none; text-align: center; background: radial-gradient(ellipse at 50% 62%, #b5524059, transparent 56%), linear-gradient(170deg, #180f1af5, #281625db 62%, #150e19ee); }
:where(.rotsi-page) .intro-lockup { position: relative; }
:where(.rotsi-page) .intro-lockup::after { content: ''; display: block; width: 48px; height: 1px; margin: .92rem auto 0; background: linear-gradient(90deg, transparent, var(--accent-light), transparent); }
:where(.rotsi-page) .intro-name { display: block; font: 950 clamp(1.75rem, 5.3vw, 3.6rem)/1.04 var(--display); letter-spacing: -.065em; text-shadow: 0 3px 22px #100a13; text-wrap: balance; }
:where(.rotsi-page) .intro-credit { display: block; margin-top: .55rem; color: #ffe2cc; font-size: clamp(.85rem, 2.4vw, 1.05rem); font-weight: 650; letter-spacing: .035em; }
@media (prefers-reduced-motion: no-preference) {
  :where(.rotsi-page) .intro-reveal { animation: rotsi-intro-out 3800ms ease-in both; }
  :where(.rotsi-page) .intro-reveal::before {
    content: '';
    position: absolute;
    inset: -35%;
    background: linear-gradient(112deg, transparent 38%, #a34a382e 46%, #ffb47c66 50%, #be5e481a 54%, transparent 64%);
    animation: rotsi-intro-light 1650ms .06s ease-in-out both;
  }
  :where(.rotsi-page) .intro-name { animation: rotsi-intro-in 650ms .2s cubic-bezier(.22, 1, .36, 1) both; }
  :where(.rotsi-page) .intro-credit, :where(.rotsi-page) .intro-lockup::after { animation: rotsi-intro-in 470ms .63s ease-out both; }
}
@keyframes rotsi-intro-in {
  from { opacity: 0; transform: translateY(9px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes rotsi-intro-out {
  0%, 86% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes rotsi-intro-light {
  0% { opacity: 0; transform: translateX(-36%); }
  38% { opacity: .8; }
  100% { opacity: 0; transform: translateX(36%); }
}
@media (prefers-reduced-motion: no-preference) {
  :where(.rotsi-page) .stage[data-mode="over"]::after { animation: rotsi-ending-dim 1500ms ease-out both; }
  :where(.rotsi-page) .ending-roll { animation: rotsi-ending-roll 4s cubic-bezier(.35, .29, .4, 1) both; }
}
@keyframes rotsi-ending-dim {
  from { opacity: .38; }
  to { opacity: 1; }
}
@keyframes rotsi-ending-roll {
  0% { opacity: 0; transform: translateY(57%); }
  22%, 79% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-38%); }
}
:where(.rotsi-page) .hud { z-index: 1; position: absolute; inset: 13px 15px auto; display: flex; align-items: start; justify-content: space-between; gap: 8px; pointer-events: none; }
:where(.rotsi-page) .hud-actions { display: flex; flex: none; gap: 6px; margin-inline-start: auto; }
:where(.rotsi-page) .stats { display: flex; gap: .75rem 1rem; align-items: center; padding: 8px 13px; border: 1px solid #675064; border-radius: 12px; background: #1a1220f2; font-family: var(--mono); }
:where(.rotsi-page) .stats > div { min-width: 4.1ch; }
:where(.rotsi-page) .stats > div + div { border-left: 1px solid #544151; padding-left: 1rem; }
:where(.rotsi-page) .label { display: block; color: #d3beca; font-size: .66rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .075em; }
:where(.rotsi-page) .stats strong { display: block; width: max-content; color: var(--text); font-size: clamp(.94rem, 2.4vw, 1.36rem); line-height: 1.2; margin-top: 2px; }
:where(.rotsi-page) .stats #multiplier { color: var(--accent-light); }
:where(.rotsi-page) .pause { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid #675064; border-radius: 12px; background: #1a1220f2; color: var(--text); pointer-events: auto; }
:where(.rotsi-page) .pause span { width: 13px; height: 14px; border-inline: 4px solid currentColor; }
:where(.rotsi-page) .pause:hover { background: #3a253c; }
:where(.rotsi-page) .signal { z-index: 2; position: absolute; top: 81px; left: 50%; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 6px 12px; border: 1px solid #8a627c; border-radius: 999px; background: #27192a; color: var(--text); text-align: center; font-size: .78rem; font-weight: 750; pointer-events: none; }
:where(.rotsi-page) .signal[data-tone="boss"] { background: #421d31; border-color: #fa786f; color: #ffe6dd; }
:where(.rotsi-page) .signal[data-tone="power"] { background: #382550; border-color: #e098f4; color: #ffe0ff; }
:where(.rotsi-page) .game-prompt { z-index: 2; position: absolute; inset: auto 15px 15px auto; display: grid; justify-items: end; gap: 9px; max-width: min(310px, calc(100% - 30px)); text-align: right; }
:where(.rotsi-page) .game-prompt h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.42rem, 4vw, 2.7rem); line-height: .99; letter-spacing: -.075em; text-shadow: 0 2px 10px #150c17; }
:where(.rotsi-page) .game-prompt h2:focus { outline: none; }
:where(.rotsi-page) .game-prompt p { color: #fae7dd; font-size: .86rem; font-weight: 650; text-shadow: 0 1px 6px #150c17; }
:where(.rotsi-page) .ending-roll {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px 14px;
  color: #fae7dd;
  text-shadow: 0 2px 10px #150c17;
  text-align: center;
  pointer-events: none;
}
:where(.rotsi-page) .final-game-over {
  position: relative;
  z-index: 2;
  min-height: calc(var(--stage-height) - 2px);
  display: grid;
  grid-template-rows: minmax(50px, 1fr) auto minmax(min-content, 1fr);
  justify-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #fae7dd;
  text-align: center;
  text-shadow: 0 2px 10px #150c17;
  pointer-events: none;
}
:where(.rotsi-page) .stage:has(.final-game-over:not([hidden])) { height: auto; }
:where(.rotsi-page) .stage:has(.final-game-over:not([hidden])) #scene { position: absolute; inset: 0; }
:where(.rotsi-page) .final-result { grid-row: 2; display: grid; justify-items: center; gap: 5px; width: min(100%, 520px); }
:where(.rotsi-page) .round-result :is(button, input, label, textarea), :where(.rotsi-page) .round-credits a { pointer-events: auto; }
:where(.rotsi-page) .ending-title, :where(.rotsi-page) .final-result h2 { color: var(--accent-light); font: 900 clamp(1.65rem, 5vw, 2.85rem)/1 var(--display); letter-spacing: -.075em; }
:where(.rotsi-page) .final-result h2 { outline: none; }
:where(.rotsi-page) #ending-note, :where(.rotsi-page) #round-note { font-size: 1.04rem; font-weight: 800; }
:where(.rotsi-page) #ending-reaction { max-width: 38ch; line-height: 1.32; overflow-wrap: anywhere; }
:where(.rotsi-page) .round-result {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  text-align: center;
}
:where(.rotsi-page) .stage[data-mode="over"] .hud { z-index: 3; }
:where(.rotsi-page) .stage[data-mode="over"] .stats { display: none; }
:where(.rotsi-page) .board-column { min-width: 0; }
:where(.rotsi-page) .game-facts { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
:where(.rotsi-page) .game-facts h2 { color: var(--accent-light); font-size: 1.05rem; }
:where(.rotsi-page) .game-facts :is(.facts-period, .facts-unavailable) { margin-top: 4px; color: var(--muted); font-size: .78rem; }
:where(.rotsi-page) .facts-list { margin: 8px 0 0; }
:where(.rotsi-page) .facts-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding-block: 7px; border-top: 1px solid var(--line); }
:where(.rotsi-page) .facts-list dt { min-width: 0; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
:where(.rotsi-page) .facts-list dd { margin: 0; color: var(--text); font: 800 1rem/1.15 var(--mono); text-align: end; white-space: nowrap; }
:where(.rotsi-page) #round-stats { max-width: 40ch; color: #dec8ce; font-size: .78rem; line-height: 1.25; white-space: pre-line; overflow-wrap: anywhere; }
:where(.rotsi-page) .score-guide { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .81rem; }
:where(.rotsi-page) .score-guide :is(th, td) { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
:where(.rotsi-page) .score-guide th { text-align: start; font-weight: 650; }
:where(.rotsi-page) .score-guide th[scope="row"] { padding-inline-end: 8px; }
:where(.rotsi-page) .score-guide :is(th:last-child, td) { text-align: end; }
:where(.rotsi-page) .score-guide td { font-family: var(--mono); white-space: nowrap; }
:where(.rotsi-page) .score-guide small { display: block; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 400; }
:where(.rotsi-page) .score-guide-note { margin-top: 8px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
:where(.rotsi-page) .round-result .board-message,
:where(.rotsi-page) #replay-notice,
:where(.rotsi-page) #copy-feedback { max-width: 44ch; color: var(--text); font-size: .78rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
:where(.rotsi-page) .round-result .board-message[data-tone="success"] { color: var(--lime); }
:where(.rotsi-page) .replay-choice { display: grid; justify-items: center; gap: 4px; }
:where(.rotsi-page) .round-credits { grid-row: 3; align-self: end; display: grid; gap: 2px; min-width: 0; letter-spacing: .018em; }
:where(.rotsi-page) .round-credits p { color: #dec8ce; font-size: .7rem; font-weight: 550; line-height: 1.25; }
:where(.rotsi-page) .round-credits a { text-decoration: underline; text-underline-offset: .15em; }
:where(.rotsi-page) .game-control { position: absolute; z-index: 2; right: 12px; bottom: 13px; max-width: 48%; min-width: 46px; min-height: 46px; padding: 6px 12px; border: 1px solid var(--accent-light); border-radius: 9px; background: #291a2b; color: var(--text); font-size: .82rem; font-weight: 800; overflow-wrap: break-word; touch-action: none; }
:where(.rotsi-page) .stage[data-input="press"] .game-control { background: #563547; }
:where(.rotsi-page) .stage[data-input="focus"] .game-control { border-color: #efcaff; background: #493256; }
:where(.rotsi-page) .round-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; }
:where(.rotsi-page) #copy-feedback:empty { position: absolute; }
:where(.rotsi-page) .copy-fallback { width: 100%; max-width: 32ch; color: var(--muted); font-size: .8rem; text-align: left; }
:where(.rotsi-page) .copy-fallback textarea { display: block; width: 100%; min-height: 44px; margin-top: 2px; padding: 3px 6px; border: 1px solid #6c4a60; border-radius: 6px; color: var(--text); background: var(--page); resize: none; }
:where(.rotsi-page) .bonus-dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid #9a6e64;
  border-radius: 20px;
  color: var(--text);
  background: #251727;
  box-shadow: 0 20px 70px #080511c9;
  overscroll-behavior: contain;
}
:where(.rotsi-page) .bonus-dialog::backdrop { overflow: hidden; overscroll-behavior: contain; background: #100814d9; }
:where(.rotsi-page) .bonus-portrait { height: clamp(138px, 42vh, 214px); height: clamp(138px, 42dvh, 214px); object-fit: cover; object-position: center; background: #2f1e32; }
:where(.rotsi-page) .bonus-content { padding: clamp(14px, 4vw, 23px); text-align: center; }
:where(.rotsi-page) .bonus-content h2 { color: var(--accent-light); font: 950 clamp(1.7rem, 7vw, 3rem)/1 var(--display); letter-spacing: -.075em; }
:where(.rotsi-page) .bonus-choices, :where(.rotsi-page) .bonus-reveal { display: grid; justify-items: center; gap: 12px; margin-top: 10px; }
:where(.rotsi-page) .bonus-choices p, :where(.rotsi-page) .bonus-reveal p { max-width: 34ch; color: #fae7dd; font-size: .9rem; line-height: 1.4; }
:where(.rotsi-page) .bonus-reveal h3 { max-width: 22ch; color: var(--accent-light); font-size: 1.3rem; line-height: 1.15; }
:where(.rotsi-page) .bonus-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
:where(.rotsi-page) .bonus-dialog .primary, :where(.rotsi-page) .bonus-surprise { min-height: 44px; margin-bottom: 5px; }
:where(.rotsi-page) .bonus-surprise { padding: 7px 12px; border: 1px solid #b287a7; border-radius: 9px; color: var(--text); background: #3d2944; font-weight: 750; }
:where(.rotsi-page) .bonus-surprise:hover { border-color: var(--accent-light); }
@media (orientation: landscape) and (max-height: 500px) {
  :where(.rotsi-page) .bonus-dialog[open] { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; }
  :where(.rotsi-page) .bonus-portrait { height: 100%; min-height: 150px; }
}
@media (prefers-reduced-motion: no-preference) {
  :where(.rotsi-page) .bonus-dialog[open] { animation: rotsi-bonus-in 330ms cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes rotsi-bonus-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
:where(.rotsi-page) .primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 50px; border: 1px solid var(--accent-light); border-radius: 9px; padding: 7px 10px 7px 16px; color: #20101a; background: var(--accent); font-weight: 850; box-shadow: 0 5px 0 #773940; }
:where(.rotsi-page) .primary:hover:enabled { background: var(--accent-light); }
:where(.rotsi-page) .primary:active:enabled { transform: translateY(3px); box-shadow: 0 2px 0 #773940; }
:where(.rotsi-page) .button-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: #3d203228; font-size: 1.15rem; }
:where(.rotsi-page) .controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #1b1520; }
:where(.rotsi-page) .controls > div { display: flex; align-items: center; gap: 8px; }
:where(.rotsi-page) .controls p { display: grid; line-height: 1.35; }
:where(.rotsi-page) .controls strong { color: var(--text); font-size: .82rem; }
:where(.rotsi-page) .controls p span { color: var(--muted); font-size: .72rem; }
:where(.rotsi-page) .control-icon, :where(.rotsi-page) kbd { display: grid; place-items: center; padding-inline: 5px; font-family: var(--mono); flex: none; min-height: 30px; border: 1px solid #5b404e; border-radius: 6px; background: #2e202e; color: var(--accent-light); }
:where(.rotsi-page) .control-icon { min-width: 30px; font-size: 1rem; }
:where(.rotsi-page) .control-hold { color: #ebc4fa; }
:where(.rotsi-page) kbd { color: var(--text); font-size: .72rem; }

:where(.rotsi-page) .leaderboard { min-width: 0; padding: 17px; border: 1px solid #473447; border-radius: 18px; background: linear-gradient(155deg, #261a29, var(--panel) 70%); }
:where(.rotsi-page) .board-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
:where(.rotsi-page) .board-heading h2 { font-family: var(--display); font-size: 1.8rem; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: -.075em; }
:where(.rotsi-page) .board-source { border: 1px solid #6c4a60; border-radius: 99px; padding: 3px 8px; color: #ecd3df; font: 650 .7rem/1.3 var(--mono); white-space: nowrap; }
:where(.rotsi-page) .board-empty { color: var(--muted); font-size: .85rem; padding: 20px 0 5px; margin-top: 13px; border-top: 1px solid #4a354a; }
:where(.rotsi-page) .board-columns { display: flex; justify-content: space-between; gap: 8px; padding: 17px 0 6px; color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
:where(.rotsi-page) .board-entries { padding: 0; margin: 0; list-style: none; counter-reset: score-rank; }
:where(.rotsi-page) .board-entries li { counter-increment: score-rank; display: grid; grid-template-columns: 2ch minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding-block: 8px; border-top: 1px solid #4a354a; font-size: .87rem; }
:where(.rotsi-page) .board-entries li::before { content: counter(score-rank, decimal-leading-zero); color: var(--muted); font: .67rem var(--mono); }
:where(.rotsi-page) .board-entries li:first-child::before, :where(.rotsi-page) .board-entries li:first-child strong { color: var(--accent-light); }
:where(.rotsi-page) .board-entries span { overflow-wrap: anywhere; min-width: 0; }
:where(.rotsi-page) .board-entries strong { font-family: var(--mono); }
:where(.rotsi-page) .score-form { display: grid; gap: 4px; width: min(100%, 320px); }
:where(.rotsi-page) .score-form label { font-size: .82rem; font-weight: 750; }
:where(.rotsi-page) .form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
:where(.rotsi-page) .score-form input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 9px; border: 1px solid #785b72; border-radius: 7px; background: #150f19; color: var(--text); }
:where(.rotsi-page) .score-form input::placeholder { color: var(--muted); }
:where(.rotsi-page) .score-form button { min-height: 44px; padding-inline: 7px; border: 1px solid var(--accent); border-radius: 7px; color: var(--accent-light); background: #30202c; font-size: .82rem; font-weight: 750; }
:where(.rotsi-page) .score-form button:hover:enabled { background: #513044; }
:where(.rotsi-page) .board-action { display: block; min-height: 38px; margin-top: 8px; padding: 4px 9px; border: 1px solid #785b72; border-radius: 7px; background: #30202c; color: var(--accent-light); font-size: .8rem; font-weight: 750; }
:where(.rotsi-page) .board-action:hover:enabled { background: #513044; }
:where(.rotsi-page) .round-result :is(.primary, .board-action) { min-height: 44px; min-width: 44px; margin: 0; padding: 3px 8px; font-size: .8rem; line-height: 1.2; }
:where(.rotsi-page) .round-result .primary { box-shadow: none; }
:where(.rotsi-page) .round-result :is(#copy-result, #result-back, #show-shared-board) { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: .17em; }
:where(.rotsi-page) .round-result :is(#copy-result, #result-back, #show-shared-board):hover:enabled { color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  :where(.rotsi-page) .round-result :is(.primary, .board-action, #save-score) { min-height: 34px; }
  :where(.rotsi-page) .round-result #save-score { align-self: center; }
}

@media (max-width: 820px) {
  :where(.rotsi-page) .layout { grid-template-columns: minmax(0, 1fr); }
  :where(.rotsi-page) .stage { --stage-height: clamp(330px, 61vw, 500px); }
}
@media (max-width: 540px) {
  :where(.rotsi-page) .masthead { margin-block: 23px 17px; }
  :where(.rotsi-page) .masthead .subtitle { margin-top: .52rem; }
  :where(.rotsi-page) .stage { --stage-height: clamp(320px, 53vh, 445px); }
  @supports (height: 1dvh) {
    :where(.rotsi-page) .stage { --stage-height: clamp(320px, 53dvh, 445px); }
  }
  :where(.rotsi-page) .hud { inset: 10px 10px auto; }
  :where(.rotsi-page) .stats { gap: .6rem; padding: 7px 9px; }
  :where(.rotsi-page) .stats > div + div { padding-left: .6rem; }
  :where(.rotsi-page) .game-prompt { inset: auto 11px 12px; justify-items: end; max-width: none; }
  :where(.rotsi-page) .primary { gap: 11px; padding-left: 12px; }
  :where(.rotsi-page) .controls { gap: 10px 13px; padding: 9px; }
  :where(.rotsi-page) .controls p span { font-size: .69rem; }
  @media (pointer: coarse) { :where(.rotsi-page) .controls .keyboard { display: none; } }
}
@media (orientation: landscape) and (max-height: 550px) {
  :where(.rotsi-page) .masthead { margin-block: 11px 13px; }
  :where(.rotsi-page) .masthead .subtitle { margin-top: .35rem; }
  :where(.rotsi-page) .stage { --stage-height: clamp(240px, 62vh, 350px); }
  @supports (height: 1dvh) {
    :where(.rotsi-page) .stage { --stage-height: clamp(240px, 62dvh, 350px); }
  }
  :where(.rotsi-page) .signal { top: 63px; }
}
@media (max-width: 420px) {
  :where(.rotsi-page) .hud { flex-direction: column; gap: 5px; }
  :where(.rotsi-page) .stage[data-mode="over"] .hud { flex-direction: row; align-items: center; }
  :where(.rotsi-page) .stage[data-mode="over"] .sound-toggle { padding-inline: 7px; }
  :where(.rotsi-page) .signal { top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.rotsi-page) .primary:active:enabled { transform: none; }
}
