.orbit-container { max-width: 740px; }
.orbit-heading { text-align: center; margin: 0 0 18px; }
.orbit-heading .eyebrow { letter-spacing: 3px; font-size: 10px; }
.orbit-heading h1 { margin: 10px 0; font-size: clamp(36px, 7vw, 52px); }
.orbit-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.8; }
.orbit-arena { --mint: #9bf8cd; position: relative; isolation: isolate; overflow: hidden; padding: 16px 24px 12px; border-radius: 28px; background: radial-gradient(ellipse at 50% 38%, #164843 0, #102a30 40%, #101e28 75%); color: #edfdf8; border: 1px solid #3b625e; box-shadow: 0 24px 65px #071e2530; }
.orbit-topline { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #b8cec9; }
.orbit-live { font-size: 10px; letter-spacing: 2px; color: var(--mint); }
.orbit-topline { align-items: center; }
.orbit-sound { min-height: 44px; padding: 8px 10px; background: #ffffff0d; border: 1px solid #9bf8cd38; color: #c6f6e2; border-radius: 10px; font-size: 11px; touch-action: manipulation; }
.orbit-sound[aria-pressed="false"] { color: #b8cec9; }
.orbit-sound:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.orbit-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 8px 0 0; }
.orbit-stats > div + div { border-left: 1px solid #ffffff1c; }
.orbit-stats span { display: block; color: #adc7c1; font-size: 11px; }
.orbit-stats strong { display: block; margin-top: 3px; font-size: 22px; font-variant-numeric: tabular-nums; }
.orbit-record-board { margin-top: 10px; border: 1px solid #dfc38c55; border-radius: 14px; padding: 8px 12px; background: linear-gradient(125deg, #f2d49c12, #f2d49c03); }
.orbit-record-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; color: #e5ca92; }
.orbit-record-heading strong { font-size: 9px; letter-spacing: 2px; }
.orbit-record-heading > span { color: #b9c5ba; font-size: 10px; }
.orbit-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; gap: 12px; }
.orbit-record-grid > div + div { border-left: 1px solid #dfc38c30; padding-left: 18px; }
.orbit-record-grid span { display: block; color: #cebfa2; font-size: 11px; }
.orbit-record-grid strong { display: block; color: #ffebbb; font-size: 22px; margin-top: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.orbit-record-grid [data-new="true"] strong::after { content: 'NEW'; display: inline-block; font-size: 8px; letter-spacing: 1px; color: #163529; background: #b5f4d2; border-radius: 4px; padding: 3px 4px; margin-left: 9px; vertical-align: middle; }
.orbit-record-notice { position: absolute; top: 126px; left: 16px; right: 16px; z-index: 6; pointer-events: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f9d893; color: #392c18; box-shadow: 0 12px 35px #0c172955; animation: combo-count-pop .4s ease-out; }
.orbit-record-notice > span { font-size: 30px; }
.orbit-record-notice strong { font-size: 14px; }
.orbit-record-notice p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; }
.orbit-confetti { position: absolute; left: 0; right: 0; top: 95px; height: 420px; overflow: hidden; z-index: 5; pointer-events: none; }
.orbit-confetti i { position: absolute; left: var(--x); top: 0; width: 7px; height: 13px; background: #ffe19e; border-radius: 2px; animation: orbit-confetti 1.6s var(--delay) ease-out both; }
.orbit-confetti i:nth-child(3n) { background: #9bf8cd; }
.orbit-confetti i:nth-child(3n + 1) { background: #ffb38e; width: 5px; }
.orbit-record-notice[hidden], .orbit-confetti[hidden] { display: none; }
@keyframes orbit-confetti { 0% { transform: translateY(-15px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(390px) rotate(var(--turn)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orbit-confetti { display: none; } }
@media (max-width: 550px) { .orbit-record-board { margin-top: 8px; padding: 8px 10px; } .orbit-record-grid strong { font-size: 23px; } .orbit-record-notice { padding: 11px 12px; } .orbit-record-notice strong { font-size: 12px; } }
.orbit-combo { --combo-color: #f9d894; color: var(--combo-color); text-align: center; margin: 0; width: 100%; max-width: 310px; padding: 8px 12px; border: 1px solid #f9d89440; border-radius: 16px; background: linear-gradient(130deg, #f9d8940c, #f9d89403); }
.orbit-combo-heading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 32px; }
.orbit-combo-heading > span:first-child { font-size: 15px; font-weight: 800; letter-spacing: 2px; }
.orbit-combo-count { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff0c5; text-shadow: 0 0 18px #f9d89455; }
.orbit-combo-count > span { display: inline-block; }
.orbit-combo-spark { font-size: 23px; }
.orbit-combo-stacks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.orbit-combo-stacks span { display: grid; place-items: center; min-height: 20px; border: 1px solid #ffffff1c; background: #071c2366; color: #728c86; font-size: 10px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.orbit-combo-stacks .is-filled { background: var(--combo-color); color: #352819; border-color: #ffedba; font-weight: 800; box-shadow: 0 0 9px #f9d89430; }
.orbit-combo p { font-size: 10px; line-height: 1.5; margin: 8px 0 0; color: #cfbe99; }
.orbit-combo[data-tier="idle"] { border-color: #ffffff18; background: #ffffff03; }
.orbit-combo[data-tier="idle"] .orbit-combo-heading { opacity: .45; }
.orbit-combo[data-tier="hot"] { --combo-color: #ffb275; border-color: #ffb27588; box-shadow: 0 0 24px #ffb27512; }
.combo-count-pop { animation: combo-count-pop .42s cubic-bezier(.2,.9,.3,1.2); }
.orbit-combo-stacks .is-new { animation: combo-stack-in .5s ease-out; }
@keyframes combo-count-pop { 0% { transform: scale(.6); opacity: .4; } 45% { transform: scale(1.35); } 100% { transform: scale(1); opacity: 1; } }
@keyframes combo-stack-in { 0% { transform: translateY(-10px) scale(.7); opacity: .2; } 55% { transform: translateY(2px) scale(1.12); box-shadow: 0 0 18px #ffe8aeaa; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@media (max-width: 550px) { .orbit-combo { margin-top: 0; padding: 8px; } .orbit-combo-count { font-size: 28px; } .orbit-combo-heading { min-height: 30px; } .orbit-combo-stacks { margin-top: 7px; } }
.orbit-visual { position: relative; height: 170px; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid #99f9cd22; border-radius: 50%; width: 158px; height: 158px; }
.ring-two { width: 184px; height: 146px; transform: rotate(-32deg); border-style: dashed; }
.orbit-planet { width: 130px; height: 130px; border-radius: 50%; border: 1px solid #9bf8cd66; background: radial-gradient(circle at 35% 25%, #28554f, #122e32 75%); box-shadow: inset 0 0 35px #9bf8cd12, 0 0 42px #9bf8cd0c; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.orbit-planet > span { color: #bdd6ce; font-size: 11px; }
.orbit-planet strong { color: var(--mint); font-size: 35px; margin: 2px 0; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.orbit-planet strong span { font-size: 22px; letter-spacing: 0; }
.orbit-planet small { font-size: 10px; letter-spacing: 2px; color: #9ebfb5; }
.orbit-satellite { position: absolute; width: 9px; height: 9px; background: var(--mint); border-radius: 50%; transform: translate(70px, -37px); box-shadow: 0 0 18px #9bf8cd; }
.orbit-message { min-height: 60px; text-align: center; }
.orbit-message strong { font-size: 18px; color: var(--mint); }
.orbit-message p { color: #bed2cf; font-size: 12px; line-height: 1.5; margin: 5px 0 8px; }
.orbit-track { height: 40px; position: relative; border-radius: 12px; background: #061920; border: 1px solid #ffffff20; margin: 4px 4px 0; }
.orbit-target { position: absolute; left: 42%; width: 16%; top: 0; height: 100%; background: #9bf8cd26; border-left: 1px solid #9bf8cd44; border-right: 1px solid #9bf8cd44; }
.orbit-perfect-zone { position: absolute; left: 45%; width: 10%; height: 100%; background: #9bf8cd45; border-inline: 1px solid #9bf8cd70; }
.orbit-track[data-timing="center"] { border-color: #9bf8cd88; }
.orbit-track[data-timing="perfect"] { border-color: #e8d695; box-shadow: 0 0 15px #e8d69522; }
.orbit-track[data-timing="perfect"] .orbit-cursor { background: #fff0b5; box-shadow: 0 0 16px #f7d879; }
.orbit-track-labels [data-bonus="true"] { color: #e7e1ad; font-weight: bold; }
.orbit-center { position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 1px dashed #9bf8cd99; }
.orbit-cursor { position: absolute; left: 0; top: 5px; width: 6px; height: 28px; border-radius: 5px; background: #f0fff8; box-shadow: 0 0 12px #9bf8cd; transform: translateX(-50%); }
.orbit-track-labels { display: flex; justify-content: space-between; gap: 8px; margin: 7px 4px 12px; font-size: 10px; color: #a8c6bf; }
.orbit-track-labels span:last-child { font-size: 9px; letter-spacing: 1px; }
.orbit-action { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; background: var(--mint); color: #102f28; font-size: 18px; font-weight: 800; touch-action: manipulation; box-shadow: 0 5px 0 #64ad8a; }
.orbit-action:hover { background: #bcffdf; }
.orbit-action:active { transform: translateY(3px); box-shadow: 0 2px 0 #64ad8a; }
.orbit-action:focus-visible, .orbit-finish:focus-visible { outline: 3px solid white; outline-offset: 5px; }
.orbit-input-hint { color: #a8c6bf; font-size: 10px; text-align: center; line-height: 1.6; margin: 8px 0 0; }
.orbit-finish { display: block; margin: 0; padding: 6px 0; min-height: 44px; background: transparent; color: #d5e9e2; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.orbit-finish:disabled { opacity: .35; cursor: default; }
.orbit-history { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 0; min-height: 0; }
.orbit-history span { border: 1px solid #9bf8cd38; border-radius: 7px; padding: 5px 8px; font-size: 10px; color: #bff7df; }
.orbit-history .miss { color: #ffbcb4; border-color: #ffbcb455; }
.orbit-arena[data-result="failure"] .orbit-message strong { color: #ffbcb4; }
.orbit-guard-mark { position: absolute; left: calc(50% + 47px); top: 22px; width: 48px; height: 56px; display: grid; place-items: center; clip-path: polygon(50% 0, 95% 15%, 88% 65%, 70% 88%, 50% 100%, 30% 88%, 12% 65%, 5% 15%); background: #b4edff; color: #153d54; font-size: 26px; font-weight: 900; visibility: hidden; }
.orbit-arena[data-result="guarded"] .orbit-guard-mark { visibility: visible; animation: combo-count-pop .5s ease-out; }
.orbit-arena[data-result="guarded"] .orbit-planet { border-color: #b4edff; box-shadow: 0 0 28px #93dcff30; }
.orbit-arena[data-result="guarded"] .orbit-ring { border-color: #b4edff66; }
.orbit-arena[data-result="guarded"] .orbit-message strong { color: #b4edff; }
.orbit-history .guarded { border-color: #b4edff77; color: #b4edff; }
.orbit-explosion { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; pointer-events: none; }
.orbit-burst { position: absolute; width: min(174px, 94%); height: auto; }
.orbit-shockwave { position: absolute; width: 108px; height: 108px; border: 2px solid #ffd39b; border-radius: 50%; opacity: 0; }
.orbit-gameover { position: relative; z-index: 2; text-align: center; padding: 10px 12px; border: 1px solid #ffc49480; border-radius: 13px; background: #301d24eb; box-shadow: 0 8px 35px #130a16aa; }
.orbit-gameover small { display: block; font-size: 10px; letter-spacing: 4px; color: #ffcb99; }
.orbit-gameover strong { display: block; margin-top: 8px; color: #fff1dc; font-size: 19px; letter-spacing: -1px; }
.orbit-fragments { position: absolute; inset: 0; }
.orbit-fragments i { position: absolute; left: 50%; top: 50%; width: 7px; height: 13px; background: #ffd39b; border-radius: 2px; opacity: 0; box-shadow: 0 0 9px #ff885a88; }
.orbit-fragments i:nth-child(3n) { width: 4px; height: 6px; background: #ff8d71; }
.orbit-arena[data-result="failure"] { border-color: #b96958; background: radial-gradient(ellipse at 50% 38%, #4e2b31 0, #25232e 42%, #101e28 80%); animation: orbit-impact .32s ease-out; }
.orbit-arena[data-result="failure"] .orbit-planet,
.orbit-arena[data-result="failure"] .orbit-satellite { opacity: 0; }
.orbit-arena[data-result="failure"] .orbit-ring { border-color: #ffae7550; border-style: dashed; }
.orbit-arena[data-result="failure"] .orbit-explosion { visibility: visible; opacity: 1; }
.orbit-arena[data-result="failure"] .orbit-burst { animation: orbit-burst .85s ease-out both; }
.orbit-arena[data-result="failure"] .orbit-shockwave { animation: orbit-shockwave .75s ease-out both; }
.orbit-arena[data-result="failure"] .orbit-fragments i { animation: orbit-fragment .85s var(--delay) cubic-bezier(.15,.65,.3,1) both; }
.orbit-arena[data-result="failure"] .orbit-gameover { animation: orbit-end-label .65s ease-out both; }
.orbit-arena[data-result="failure"] .orbit-track { opacity: .45; border-color: #ffae7550; box-shadow: none; }
.orbit-arena[data-result="failure"] .orbit-action { background: #ffcdaf; color: #42251f; box-shadow: 0 5px 0 #bd8268; }
.orbit-arena[data-result="failure"] .orbit-action:hover { background: #ffdec9; }
@keyframes orbit-impact { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
@keyframes orbit-burst { 0% { transform: scale(.15) rotate(-12deg); opacity: 0; } 22% { transform: scale(1.12) rotate(3deg); opacity: 1; } 100% { transform: scale(.95); opacity: .7; } }
@keyframes orbit-shockwave { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes orbit-fragment { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--spin)); opacity: 0; } }
@keyframes orbit-end-label { 0%, 25% { opacity: 0; transform: scale(.8); } 100% { opacity: 1; transform: scale(1); } }
@media (max-width: 550px) { .orbit-burst { width: 140px; } .orbit-gameover strong { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  .orbit-arena[data-result="failure"] .orbit-burst { opacity: .7; }
  .orbit-arena[data-result="failure"] .orbit-gameover { opacity: 1; }
}
.orbit-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin: 12px 4px 20px; }
.orbit-bottom strong { color: var(--text); margin-left: 6px; }
.orbit-rules { padding: 26px; }
.orbit-rules h2 { font-size: 18px; margin: 0 0 18px; }
.orbit-rules ol { padding-left: 20px; }
.orbit-rules li, .orbit-rules p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.orbit-rules li + li { margin-top: 12px; }
.orbit-rules strong { color: var(--text); }
@media (max-width: 550px) { .orbit-container { padding-top: 14px; } .orbit-heading { margin-bottom: 14px; } .orbit-arena { padding: 12px 16px 8px; border-radius: 22px; } .orbit-visual { height: 144px; } .orbit-message strong { font-size: 18px; } .orbit-rules { padding: 22px 18px; } .orbit-topline { font-size: 11px; } }
@media (max-width: 550px) {
  .orbit-heading { margin: 0 0 12px; }
  .orbit-heading h1 { font-size: 34px; }
  .orbit-heading > p:last-child { margin: 8px 0; font-size: 12px; }
  .orbit-stats { margin-top: 4px; }
  .orbit-stats strong { font-size: 21px; }
  .orbit-visual { height: 144px; }
  .orbit-planet { width: 110px; height: 110px; }
  .orbit-planet strong { font-size: 30px; }
  .ring-one { width: 132px; height: 132px; }
  .ring-two { width: 152px; height: 116px; }
  .orbit-satellite { transform: translate(57px, -29px); }
  .orbit-message { min-height: 56px; }
  .orbit-message p { margin: 4px 0 6px; font-size: 12px; }
  .orbit-track-labels { margin-bottom: 10px; }
}

/* Compact playfield: keep touch targets full size and use horizontal space. */
.orbit-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; margin: 8px 0 4px; }
.orbit-stage > * { min-width: 0; }
.orbit-record-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.orbit-record-grid span { line-height: 1.5; }
.orbit-record-grid strong { flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }
.orbit-session-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.orbit-session-footer .orbit-history { flex: 1; justify-content: flex-end; }
.orbit-finish { flex: 0 1 165px; font-size: 11px; }
.orbit-history:empty { display: none; }
.orbit-guard-mark { left: calc(50% + 28px); top: 9px; width: 36px; height: 42px; font-size: 21px; }
@media (max-width: 550px) {
  .orbit-container .site-nav { margin-bottom: 12px; }
  .orbit-container .theme-controls { flex-wrap: nowrap; gap: 8px; margin-bottom: 10px; }
  .orbit-container .language-control { gap: 4px; font-size: 11px; }
  .orbit-container .language-control select { width: 136px; font-size: 11px; padding: 6px; }
  .orbit-container .theme-toggle { font-size: 11px; padding: 8px 10px; min-height: 44px; }
  .orbit-heading .eyebrow { display: none; }
  .orbit-heading h1 { font-size: 28px; margin: 4px 0 6px; }
  .orbit-heading > p:last-child { font-size: 11px; line-height: 1.5; margin: 4px 0; }
  .orbit-stage { gap: 10px; margin: 6px 0 2px; }
  .orbit-combo-stacks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 5px; }
  .orbit-combo-heading { gap: 7px; }
  .orbit-combo-heading > span:first-child { font-size: 12px; letter-spacing: 0; }
  .orbit-combo p { margin-top: 5px; font-size: 9px; }
  .orbit-planet > span { font-size: 10px; }
  .orbit-planet small { font-size: 9px; letter-spacing: 1px; }
  .orbit-input-hint { display: none; }
  .orbit-record-grid { gap: 8px; }
  .orbit-record-grid > div { gap: 6px; }
  .orbit-record-grid > div + div { padding-left: 10px; }
  .orbit-record-grid span { font-size: 10px; }
  .orbit-record-grid strong { font-size: 21px; }
  .orbit-gameover { padding: 9px; }
  .orbit-gameover small { font-size: 8px; letter-spacing: 2px; }
  .orbit-session-footer { gap: 8px; }
  .orbit-finish { flex-basis: 140px; }
  .orbit-history span:nth-last-child(n+6) { display: none; }
}
@media (max-width: 360px) {
  .orbit-container .language-control select { width: 120px; }
  .orbit-container .theme-toggle { font-size: 10px; padding-inline: 8px; }
}
