:root {
  color-scheme: dark;
  --background: #10191d;
  --panel: #162226;
  --line: #ffffff10;
  --text: #edf0e8;
  --muted: #81908f;
  --green: #b8e986;
  --danger: #e79891;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; background: var(--background); color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { display: block; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; outline: none; touch-action: none; }
.topbar { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 105px; padding: 0 42px; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; pointer-events: auto; }
.brand-symbol { width: 38px; height: 38px; }
.brand > span { color: var(--text); font-size: 21px; font-weight: 700; letter-spacing: 2px; }
.brand small { display: block; margin-top: 4px; color: #8e9a92; font-size: 9px; font-weight: 500; letter-spacing: 3.2px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.best-score { display: flex; align-items: center; gap: 9px; color: #a1aaa4; font-size: 12px; }
.best-score svg { width: 20px; height: 20px; color: #d4c293; }
.best-score strong { margin-left: 11px; color: #e8eada; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.topbar-divider { width: 1px; height: 22px; margin: 0 4px 0 12px; background: #ffffff13; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; padding: 6px; border: 1px solid #ffffff10; border-radius: 10px; background: #1b272a; color: #a9b2aa; transition: background 150ms; }
.icon-button svg { width: 22px; height: 22px; }
.icon-button:hover:not(:disabled) { background: #2c3c35; color: var(--green); }
.icon-button:disabled { opacity: .4; }
.game-ui { position: fixed; inset: 0; pointer-events: none; transition: opacity 180ms; }
body[data-state="menu"] .game-ui { opacity: .3; }
.session-label { position: absolute; top: 126px; left: 44px; display: flex; align-items: center; gap: 9px; color: #b6c1b4; font-size: 11px; letter-spacing: 1px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.session-label > span:last-child { color: #60716e; }
.session-separator { margin: 0 3px; color: #3b4b47; }
.score-panel { position: absolute; top: 165px; left: 42px; width: 208px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #142024eb; }
.eyebrow { color: #809285; font-size: 10px; letter-spacing: 1.8px; }
.score-panel .eyebrow { font-size: 10px; letter-spacing: 1px; }
.score-line { display: flex; align-items: baseline; gap: 9px; margin: 10px 0 20px; }
.score-line strong { color: var(--green); font-size: 43px; font-weight: 600; line-height: 1.1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.score-line strong.large-number { font-size: 34px; }
.score-line > span { color: #778982; font-size: 10px; }
.level-line { display: flex; justify-content: space-between; color: #b2bdb0; font-size: 10px; }
.level-line > span:last-child { color: #6c7c74; font-size: 9px; }
.level-track { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: #ffffff0b; }
.level-track > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 200ms; }
.session-stats { display: flex; justify-content: space-between; margin-top: 19px; padding-top: 15px; border-top: 1px solid #ffffff0a; color: #6c7c76; font-size: 10px; }
.session-stats strong { margin-left: 7px; color: #c6cfc1; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ranking-panel { position: absolute; top: 126px; right: 42px; width: 205px; padding: 19px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: #142024eb; }
.ranking-heading { display: flex; justify-content: space-between; align-items: center; }
.ranking-heading h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.ranking-heading > span { color: #62756a; font-size: 8px; letter-spacing: 2px; }
.ranking-list { margin: 16px 0 13px; padding: 0; list-style: none; }
.ranking-list li { display: grid; grid-template-columns: 15px 8px 1fr auto; align-items: center; gap: 8px; min-height: 31px; color: #98a69c; font-size: 10px; }
.ranking-list .rank-number { color: #5e7264; font-size: 9px; }
.rank-dot { width: 6px; height: 6px; border-radius: 50%; }
.rank-mass { color: #a5b39f; font-variant-numeric: tabular-nums; }
.ranking-list .is-player { margin: 0 -8px; padding: 0 8px; border-radius: 6px; background: #b8e9860a; color: var(--green); }
.ranking-list .is-player .rank-mass { color: var(--green); }
.ranking-footer { display: flex; align-items: center; gap: 6px; padding-top: 11px; border-top: 1px solid #ffffff0a; color: #60746a; font-size: 9px; white-space: nowrap; }
.ranking-footer .status-dot { width: 4px; height: 4px; background: #60746a; }
.world-note { position: absolute; left: 50%; bottom: 94px; display: flex; align-items: center; gap: 8px; color: #667d6b; font-size: 10px; letter-spacing: 2px; transform: translateX(-50%); white-space: nowrap; }
.world-note > span { width: 4px; height: 4px; border: 1px solid #80996d; border-radius: 50%; }
.desktop-controls { position: absolute; left: 43px; bottom: 91px; display: flex; flex-direction: column; gap: 11px; color: #718478; font-size: 10px; }
.desktop-controls > span { display: flex; align-items: center; gap: 7px; }
kbd { min-width: 20px; padding: 3px 5px; border: 1px solid #ffffff12; border-radius: 4px; background: #192729; color: #a8b79d; font-family: inherit; font-size: 9px; letter-spacing: 1px; text-align: center; }
.touch-controls { display: none; }
.bottom-right { position: absolute; right: 42px; bottom: 86px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.minimap-wrap { padding: 8px 8px 7px; border: 1px solid #ffffff12; border-radius: 11px; background: #142024db; }
#minimap { display: block; width: 128px; height: 92px; border-radius: 5px; background: #0e191d; }
.minimap-wrap > span { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 7px 1px 0; color: #687b6b; font-size: 8px; letter-spacing: 1px; }
.map-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.boost-button { position: relative; display: flex; align-items: center; gap: 12px; width: 146px; overflow: hidden; padding: 13px 15px; border: 1px solid #b8e98630; border-radius: 13px; background: #203025f5; text-align: left; pointer-events: auto; }
.boost-button:hover:not(:disabled) { background: #2a3b2c; }
.boost-button:disabled { border-color: #ffffff10; background: #192426ed; }
.boost-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #b8e98612; color: var(--green); }
.boost-icon svg { width: 20px; height: 20px; }
.boost-button strong { display: block; color: #d7e1c6; font-size: 12px; font-weight: 500; }
.boost-button small { display: block; margin-top: 4px; color: #839771; font-size: 8px; letter-spacing: 1.8px; }
.boost-charge { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: var(--green); transform: scaleX(1); transform-origin: left; }
.performance-bar { position: fixed; z-index: 5; right: 43px; bottom: max(25px, env(safe-area-inset-bottom)); left: 43px; display: flex; align-items: center; gap: 9px; color: #65796d; font-size: 9px; }
.local-badge { display: flex; align-items: center; gap: 6px; }
.local-badge .status-dot { width: 4px; height: 4px; background: #72906c; }
.performance-divider { color: #405146; }
#fps { font-variant-numeric: tabular-nums; }
#quality-button { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 0 5px 8px; border: 0; background: none; color: #819174; font-size: 10px; }
#quality-button svg { width: 15px; height: 15px; }
#quality-button[aria-pressed="true"] { color: var(--green); }
.overlay { position: fixed; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 20px 70px; overflow-y: auto; background: #0e161bd4; }
.modal-card { position: relative; width: 504px; max-width: 100%; flex: 0 0 auto; border: 1px solid #e3edcc13; border-radius: 26px; background: #192528; text-align: center; box-shadow: 0 24px 100px #00000026; }
.welcome-card { padding: 27px 42px 24px; }
.welcome-kicker { display: flex; align-items: center; justify-content: center; gap: 7px; color: #98a58c; font-size: 10px; letter-spacing: 2px; }
.welcome-kicker > span { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.orb-scene { position: relative; height: 182px; margin: 11px -10px 0; overflow: hidden; }
.orbit { position: absolute; top: 23px; left: 50%; width: 234px; height: 130px; border: 1px solid #b8e98612; border-radius: 50%; transform: translateX(-50%) rotate(-22deg); }
.orbit-two { top: -6px; width: 204px; height: 190px; border-color: #b8e9860a; transform: translateX(-50%) rotate(38deg); }
.hero-orb { position: absolute; top: 29px; left: 50%; width: 114px; height: 114px; border: 1px solid #ddffb670; border-radius: 50%; background: radial-gradient(circle at 30% 22%, #d7f5b0, #b8e986 51%, #8cba5f); box-shadow: 0 8px 35px #b8e9860e, inset -5px -7px 15px #5b892724; transform: translateX(-50%) rotate(-9deg); }
.orb-shine { position: absolute; top: 14px; left: 19px; width: 26px; height: 11px; border-radius: 50%; background: #efffda75; transform: rotate(-39deg); }
.hero-orb i, .little-orb i { position: absolute; top: 47px; left: 39px; width: 7px; height: 10px; border-radius: 8px; background: #31442b; }
.hero-orb i + i { left: 65px; }
.hero-orb b { position: absolute; top: 64px; left: 51px; width: 12px; height: 7px; border-right: 2px solid #31442b; border-bottom: 2px solid #31442b; border-left: 2px solid #31442b; border-radius: 0 0 9px 9px; }
.little-orb { position: absolute; width: 39px; height: 39px; border: 1px solid #ffffff25; border-radius: 50%; }
.purple-orb { top: 35px; left: 62px; background: radial-gradient(circle at 30% 25%, #c3b7e7, #9a8abf); transform: rotate(-16deg); }
.peach-orb { right: 60px; bottom: 34px; width: 48px; height: 48px; background: radial-gradient(circle at 30% 25%, #f3c4a0, #dba687); transform: rotate(12deg); }
.little-orb i { top: 16px; left: 12px; width: 3px; height: 4px; background: #493f5b; }
.little-orb i + i { left: 22px; }
.peach-orb i { top: 20px; left: 16px; background: #735039; }
.peach-orb i + i { left: 28px; }
.scene-pellet { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #b8e986; }
.pellet-one { top: 24px; right: 108px; width: 5px; height: 5px; }
.pellet-two { top: 92px; left: 44px; background: #bca6df; }
.pellet-three { right: 24px; top: 66px; width: 4px; height: 4px; background: #e4be9e; }
.pellet-four { left: 109px; bottom: 25px; width: 5px; height: 5px; background: #78b9ac; }
.scene-star { position: absolute; color: #6e8067; font-size: 16px; font-weight: 300; }
.star-one { top: 57px; right: 67px; }
.star-two { left: 103px; bottom: 52px; font-size: 12px; }
.scene-label { position: absolute; bottom: 5px; left: 50%; color: #8a9e7c; font-size: 9px; letter-spacing: 1px; transform: translateX(-50%); }
.welcome-card h1 { margin: 16px 0 13px; color: #edf1e3; font-size: 29px; line-height: 1.55; font-weight: 650; letter-spacing: 1px; }
.welcome-card h1 > span { display: block; color: var(--green); }
.welcome-description { margin: 0; color: #8b9c91; font-size: 11px; line-height: 1.9; letter-spacing: .4px; }
.mobile-break { display: none; }
.rule-chips { display: flex; align-items: center; justify-content: center; gap: 21px; margin: 24px 0; }
.rule-chips > span { display: flex; align-items: center; gap: 6px; color: #a3b09b; font-size: 10px; }
.chip-dot { display: block; width: 8px; height: 8px; border: 1px solid #c4eb9366; border-radius: 50%; background: #b8e9863d; }
.chip-dot.danger { border-color: #e79891a8; background: #e7989129; }
.rule-chips svg { width: 12px; height: 12px; color: #e2c997; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; min-height: 49px; padding: 13px 20px; border: 1px solid #d4f6aa60; border-radius: 10px; background: var(--green); color: #2a3a21; font-size: 13px; font-weight: 650; letter-spacing: 1px; transition: background 150ms, transform 150ms; }
.primary-button:hover { background: #c9f39d; transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 19px; height: 19px; }
.welcome-footnote { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 15px 0 0; color: #6a7d70; font-size: 9px; letter-spacing: .5px; }
.welcome-footnote > span { color: #4a5f50; }
.overlay-caption { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 23px; color: #5f7264; font-size: 8px; letter-spacing: 2.4px; }
.caption-line { width: 21px; height: 1px; background: #82927830; }
.compact-card { width: 434px; padding: 36px; }
.compact-card h1 { margin: 14px 0 13px; font-size: 25px; font-weight: 600; letter-spacing: 1px; }
.compact-card > p { margin: 0 0 29px; color: #90a08f; font-size: 12px; line-height: 1.8; }
.modal-symbol { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 22px; border: 1px solid #b8e98626; border-radius: 50%; background: #b8e98609; color: var(--green); font-size: 29px; }
.text-button { margin-top: 15px; padding: 5px; border: 0; background: none; color: #91a184; font-size: 11px; }
.text-button:hover { color: var(--green); }
.end-symbol { position: relative; width: 65px; height: 65px; background: #b8e986; }
.end-symbol i { position: absolute; top: 26px; left: 21px; width: 4px; height: 5px; border-radius: 50%; background: #31442b; }
.end-symbol i + i { left: 39px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-stats strong { display: block; color: var(--green); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.result-stats span { display: block; margin-top: 7px; color: #85977d; font-size: 10px; }
.help-card { width: 460px; }
.help-card h1 { margin-bottom: 27px; }
.help-rules { text-align: left; }
.help-rules > div { display: flex; align-items: flex-start; gap: 15px; margin: 21px 0; }
.help-number { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid #b8e98622; border-radius: 8px; color: var(--green); font-size: 10px; }
.help-rules p { margin: 0; }
.help-rules strong { display: block; margin: 3px 0 6px; color: #d6dfca; font-size: 12px; font-weight: 500; }
.help-rules p > span { display: block; color: #8c9d8d; font-size: 11px; line-height: 1.9; }
.help-note { margin: 25px 0; padding: 11px 14px; border-radius: 7px; background: #ffffff03; color: #70886c; font-size: 10px; line-height: 1.8; text-align: left; }
.joystick { position: fixed; z-index: 2; width: 112px; height: 112px; margin: -56px 0 0 -56px; border: 1px solid #b8e98640; border-radius: 50%; background: #b8e9860b; pointer-events: none; }
.joystick > span { position: absolute; top: 36px; left: 36px; width: 40px; height: 40px; border: 1px solid #b8e98670; border-radius: 50%; background: #b8e98635; }
.toast { position: fixed; z-index: 3; top: 105px; left: 50%; max-width: calc(100% - 40px); padding: 11px 20px; border: 1px solid #b8e98628; border-radius: 25px; background: #23332bf5; color: #c3e3a7; font-size: 12px; text-align: center; transform: translateX(-50%); pointer-events: none; }
.noscript-message { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; padding: 20px; background: #b8e986; color: #24351f; text-align: center; }

@media (min-width: 1500px) {
  .welcome-card { width: 536px; padding: 32px 48px 28px; }
  .orb-scene { height: 202px; margin-top: 15px; }
  .hero-orb { top: 39px; }
  .orbit { top: 33px; }
  .orbit-two { top: 4px; }
  .scene-label { bottom: 10px; }
  .welcome-card h1 { font-size: 31px; }
  .welcome-description { font-size: 12px; }
  .rule-chips { margin: 27px 0; }
}

@media (max-width: 900px) {
  .topbar { height: 86px; padding: 0 25px; }
  .session-label { top: 111px; left: 27px; }
  .score-panel { top: 144px; left: 25px; width: 170px; padding: 17px; }
  .score-line strong { font-size: 36px; }
  .score-line strong.large-number { font-size: 29px; }
  .ranking-panel { top: 110px; right: 25px; width: 179px; padding: 16px 13px 12px; }
  .ranking-footer { font-size: 8px; }
  .desktop-controls { left: 26px; }
  .bottom-right { right: 25px; }
  .performance-bar { left: 26px; right: 26px; }
  .world-note { display: none; }
}

@media (max-width: 600px) {
  .topbar { height: 77px; padding: 0 20px; padding-top: env(safe-area-inset-top); }
  .brand { gap: 8px; }
  .brand-symbol { width: 30px; height: 30px; }
  .brand > span { font-size: 17px; letter-spacing: 1.5px; }
  .brand small { margin-top: 3px; font-size: 7px; letter-spacing: 2px; }
  .topbar-actions { gap: 9px; }
  .topbar-divider { display: none; }
  .best-score { gap: 4px; font-size: 0; }
  .best-score svg { width: 16px; height: 16px; }
  .best-score strong { margin-left: 1px; font-size: 12px; }
  .icon-button { width: 31px; height: 31px; padding: 5px; border-radius: 8px; }
  .icon-button svg { width: 20px; height: 20px; }
  .session-label { top: 93px; left: 21px; font-size: 9px; gap: 6px; }
  .score-panel { top: 120px; left: 19px; width: 137px; padding: 14px; border-radius: 12px; }
  .score-panel .eyebrow { font-size: 8px; letter-spacing: 0; }
  .score-line { margin: 9px 0 15px; gap: 6px; }
  .score-line strong { font-size: 33px; }
  .score-line strong.large-number { font-size: 22px; letter-spacing: -1px; }
  .score-line > span { font-size: 8px; }
  .level-line { font-size: 8px; }
  .level-line > span:last-child { font-size: 7px; }
  .session-stats { margin-top: 13px; padding-top: 11px; font-size: 8px; }
  .session-stats strong { margin-left: 4px; font-size: 9px; }
  .ranking-panel { top: 93px; right: 19px; width: 139px; padding: 13px 11px 6px; border-radius: 12px; }
  .ranking-heading h2 { font-size: 10px; }
  .ranking-heading > span { font-size: 7px; letter-spacing: 1px; }
  .ranking-list { margin: 8px 0 3px; }
  .ranking-list li { grid-template-columns: 10px 5px 1fr auto; min-height: 25px; gap: 5px; font-size: 9px; }
  .rank-dot { width: 5px; height: 5px; }
  .ranking-footer { display: none; }
  .desktop-controls { display: none; }
  .touch-controls { position: absolute; bottom: 77px; left: 21px; max-width: 150px; color: #6d806d; font-size: 9px; }
  .bottom-right { right: 19px; bottom: 76px; gap: 10px; }
  .minimap-wrap { padding: 5px; border-radius: 8px; }
  #minimap { width: 90px; height: 65px; }
  .minimap-wrap > span { display: none; }
  .boost-button { width: 114px; padding: 11px; gap: 7px; border-radius: 11px; }
  .boost-icon { width: 24px; height: 26px; }
  .boost-icon svg { width: 17px; height: 17px; }
  .boost-button strong { font-size: 10px; }
  .boost-button small { font-size: 7px; }
  .performance-bar { right: 21px; left: 21px; bottom: max(21px, env(safe-area-inset-bottom)); font-size: 8px; gap: 7px; }
  #quality-button { font-size: 9px; }
  .overlay { padding: 95px 20px 65px; }
  .welcome-card { width: 366px; padding: 24px 25px 22px; border-radius: 22px; }
  .welcome-kicker { font-size: 9px; letter-spacing: 1px; }
  .orb-scene { height: 161px; margin: 8px -12px 0; }
  .hero-orb { top: 25px; width: 100px; height: 100px; }
  .hero-orb i { top: 41px; left: 32px; width: 6px; height: 9px; }
  .hero-orb i + i { left: 58px; }
  .hero-orb b { top: 57px; left: 44px; width: 11px; }
  .purple-orb { top: 31px; left: 34px; width: 35px; height: 35px; }
  .purple-orb i { top: 14px; left: 10px; }
  .purple-orb i + i { left: 20px; }
  .peach-orb { right: 29px; bottom: 27px; width: 43px; height: 43px; }
  .peach-orb i { top: 17px; left: 13px; }
  .peach-orb i + i { left: 25px; }
  .orbit { top: 23px; width: 211px; height: 113px; }
  .orbit-two { top: -2px; width: 178px; height: 160px; }
  .pellet-one { right: 68px; }
  .pellet-two { left: 16px; }
  .pellet-three { right: 9px; }
  .pellet-four { left: 78px; bottom: 16px; }
  .star-one { right: 29px; }
  .star-two { left: 66px; bottom: 34px; }
  .scene-label { bottom: 1px; font-size: 8px; }
  .welcome-card h1 { margin: 14px 0 12px; font-size: 25px; letter-spacing: .4px; line-height: 1.5; }
  .welcome-description { font-size: 10px; }
  .mobile-break { display: initial; }
  .rule-chips { margin: 20px 0; gap: 16px; }
  .rule-chips > span { font-size: 9px; }
  .primary-button { min-height: 47px; font-size: 12px; }
  .welcome-footnote { margin-top: 14px; gap: 8px; font-size: 8px; }
  .overlay-caption { margin-top: 20px; font-size: 7px; letter-spacing: 1.6px; }
  .compact-card { padding: 27px; border-radius: 20px; }
  .compact-card h1 { font-size: 22px; }
  .compact-card > p { font-size: 11px; }
  .help-rules > div { gap: 11px; margin: 18px 0; }
  .help-note { margin: 20px 0; }
  .toast { top: 78px; padding: 9px 16px; font-size: 10px; }
}

@media (pointer: coarse) {
  .touch-controls { display: block; }
  .desktop-controls { display: none; }
  .primary-button:hover { transform: none; }
}

@media (max-height: 730px) and (min-width: 601px) {
  .overlay { padding-top: 88px; padding-bottom: 48px; }
  .welcome-card { padding-top: 20px; padding-bottom: 19px; }
  .orb-scene { height: 144px; margin-top: 5px; }
  .hero-orb { top: 16px; width: 100px; height: 100px; }
  .hero-orb i { top: 41px; left: 33px; }
  .hero-orb i + i { left: 59px; }
  .hero-orb b { top: 58px; left: 46px; }
  .orbit { top: 12px; height: 116px; }
  .orbit-two { top: -23px; }
  .scene-label { bottom: 0; }
  .welcome-card h1 { margin-top: 12px; font-size: 25px; }
  .rule-chips { margin: 18px 0; }
  .overlay-caption { margin-top: 15px; }
}

@media (max-height: 620px) {
  .overlay { justify-content: flex-start; padding-top: 88px; padding-bottom: 65px; }
  .ranking-panel { display: none; }
  .minimap-wrap { display: none; }
  .score-panel { top: 103px; }
  .session-label { display: none; }
  .desktop-controls { gap: 7px; bottom: 64px; }
  .bottom-right { bottom: 60px; }
  .performance-bar { bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
