:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #11151d;
  --line: #252b37;
  --text: #f1f5fb;
  --muted: #8993a4;
  --blue: #55a7ff;
  --orange: #ff9b54;
  --acid: #d7ff45;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(85,167,255,.09), transparent 32rem),
    radial-gradient(circle at 90% 80%, rgba(215,255,69,.06), transparent 28rem),
    var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.shell { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 36px; }
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 34px; }
.brand h1 { font-size: 16px; letter-spacing: .17em; margin: 0; }
.brand p { color: var(--muted); font-size: 11px; letter-spacing: .3em; margin: 3px 0 0; }
.logo-mark { width: 38px; height: 38px; border: 2px solid var(--acid); transform: rotate(12deg); display: grid; place-items: center; }
.logo-mark span { width: 11px; height: 11px; background: var(--acid); }
.sound-toggle { margin-left: 8px; min-height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 7px; background: rgba(16,21,29,.8); color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.sound-toggle span { width: 18px; font-size: 15px; filter: grayscale(.15); }
.sound-toggle b { font-weight: 700; }
.sound-toggle.muted { opacity: .65; }
.account-area { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.leaderboard-trigger { min-height: 36px; padding: 0 12px; color: #c9d2df; background: rgba(16,21,29,.8); font-size: 11px; letter-spacing: .07em; }
.leaderboard-trigger span { color: var(--acid); margin-right: 5px; }
.account-profile { display: flex; align-items: center; gap: 9px; min-height: 36px; padding-left: 12px; border: 1px solid var(--line); background: rgba(16,21,29,.8); }
.account-profile strong { font-size: 12px; }.account-profile span { color: var(--acid); font: 700 11px/1 monospace; }
.account-profile button, #loginButton { min-height: 34px; padding: 0 11px; font-size: 10px; background: transparent; }

.panel { border: 1px solid var(--line); background: rgba(14,17,24,.86); box-shadow: 0 25px 80px rgba(0,0,0,.32); }
.lobby-panel { min-height: 620px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; padding: clamp(38px, 7vw, 100px); position: relative; overflow: hidden; }
.lobby-panel::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid #262c36; transform: rotate(32deg); left: -120px; bottom: -180px; }
.eyebrow { color: var(--acid); font-weight: 750; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.lobby-panel h2 { font-size: clamp(44px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; margin: 22px 0; }
.lobby-panel h2 em { color: transparent; -webkit-text-stroke: 1px #cbd2df; font-style: normal; }
.intro { max-width: 570px; color: #a7b0c0; line-height: 1.8; }
.controls-card { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.controls-card div { border: 1px solid var(--line); background: #0c0f15; padding: 10px 13px; display: flex; align-items: center; gap: 9px; }
kbd { font: 700 11px/1 monospace; color: var(--text); border: 1px solid #3a4250; padding: 6px 7px; background: #171c25; }
.controls-card span { font-size: 12px; color: var(--muted); }

.join-card { background: #161b24; border: 1px solid #2a313e; padding: 30px; box-shadow: 10px 10px 0 #0b0d12; }
label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; }
input { width: 100%; height: 48px; color: var(--text); background: #0c1017; border: 1px solid #303846; padding: 0 14px; outline: none; text-transform: uppercase; letter-spacing: .12em; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85,167,255,.09); }
button { min-height: 44px; color: var(--text); background: #202632; border: 1px solid #353e4d; padding: 0 18px; font-weight: 700; }
button:hover { filter: brightness(1.12); }
button:disabled { opacity: .48; cursor: default; }
button.primary { background: var(--acid); border-color: var(--acid); color: #10130a; }
.control-picker { border: 0; padding: 0; margin: 18px 0 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.control-picker legend { color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; padding: 0; }
.control-option { height: 57px; padding: 7px 10px; text-align: left; background: #10151d; }
.control-option strong, .control-option span { display: block; }
.control-option strong { font-size: 12px; }
.control-option span { color: var(--muted); font-size: 10px; margin-top: 4px; font-weight: 500; }
.control-option.active { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.control-option.active strong { color: var(--acid); }
#createButton { width: 100%; margin-top: 12px; height: 50px; }
.ranked-button { width: 100%; height: 54px; margin-top: 12px; color: #0a0d12; border-color: var(--acid); background: linear-gradient(110deg, var(--acid), #9beeff); }
.ranked-button span { font-size: 10px; letter-spacing: .14em; margin-left: 7px; }
#rankedButton + #createButton { margin-top: 9px; }
.bot-button { width: 100%; margin-top: 9px; background: #202938; border-color: #3b4c64; }
.bot-button span { color: var(--blue); font-size: 10px; letter-spacing: .13em; margin-left: 6px; }
.watch-button { width: 100%; margin-top: 9px; background: #171d28; border-color: #526174; }
.watch-button span { color: #9beeff; font-size: 10px; letter-spacing: .13em; margin-left: 6px; }
.divider { display: flex; align-items: center; gap: 12px; color: #606979; font-size: 11px; margin: 23px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: #2b313c; flex: 1; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.error { min-height: 20px; margin: 13px 0 -8px; color: #ff7d77; font-size: 12px; }

.leaderboard-page { position: fixed; inset: 0; z-index: 40; overflow: auto; padding: clamp(18px, 4vw, 56px); background: rgba(5,7,11,.97); }
.leaderboard-shell { width: min(1120px, 100%); min-height: calc(100dvh - clamp(36px, 8vw, 112px)); margin: 0 auto; }
.leaderboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.leaderboard-head .eyebrow { margin: 0 0 8px; }
.leaderboard-head h2 { margin: 0; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.055em; }
.leaderboard-head p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.leaderboard-actions { display: flex; gap: 8px; }
.leaderboard-actions button { min-height: 40px; }
.leaderboard-close { width: 42px; padding: 0; background: transparent; font-size: 25px; }
.leaderboard-status { min-height: 280px; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.leaderboard-status.error { color: #ff7d77; margin: 0; }
.leaderboard-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin: 40px auto 30px; max-width: 850px; }
.podium-card { min-height: 142px; padding: 23px; border: 1px solid #303947; background: #10151d; position: relative; overflow: hidden; }
.podium-card::after { content: attr(data-rank); position: absolute; right: 12px; bottom: -22px; color: rgba(255,255,255,.035); font: 900 100px/1 monospace; }
.podium-card[data-rank="1"] { min-height: 175px; border-color: var(--acid); background: linear-gradient(145deg, rgba(215,255,69,.11), #10151d 58%); }
.podium-rank { color: var(--muted); font: 800 11px/1 monospace; letter-spacing: .15em; }
.podium-card[data-rank="1"] .podium-rank { color: var(--acid); }
.podium-card strong, .podium-card small { display: block; position: relative; z-index: 1; }
.podium-card strong { margin-top: 15px; overflow: hidden; color: var(--text); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.podium-card small { margin-top: 8px; color: var(--muted); font: 700 12px/1.3 monospace; }
.leaderboard-table { border: 1px solid #29313d; background: rgba(12,16,23,.78); }
.leaderboard-row { min-height: 58px; display: grid; grid-template-columns: 72px minmax(150px, 1fr) 110px 100px 120px 80px; align-items: center; padding: 0 18px; border-top: 1px solid #222a35; }
.leaderboard-row:first-child { border-top: 0; }
.leaderboard-columns { min-height: 42px; color: #687486; background: #0a0e14; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.leaderboard-entry { color: #aeb8c7; font-size: 12px; }
.leaderboard-entry.current { background: rgba(215,255,69,.07); box-shadow: inset 3px 0 0 var(--acid); }
.leaderboard-entry .rank-number { color: #8d99aa; font: 800 13px/1 monospace; }
.leaderboard-entry:nth-child(-n+3) .rank-number { color: var(--acid); }
.leaderboard-entry .player-name { overflow: hidden; color: var(--text); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-entry.current .player-name::after { content: "你"; margin-left: 8px; padding: 2px 5px; color: #10130a; background: var(--acid); font-size: 8px; vertical-align: 1px; }
.leaderboard-tier { color: #9beeff; font: 800 12px/1 monospace; }
.leaderboard-score { color: var(--acid); font: 800 13px/1 monospace; }
.leaderboard-record, .leaderboard-winrate { font-family: monospace; }

.orientation-gate { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; background: #080a0f; text-align: center; }
.orientation-gate h2 { margin: 7px 0 8px; font-size: clamp(30px, 9vw, 48px); letter-spacing: -.045em; }
.orientation-gate > p:not(.eyebrow) { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.orientation-gate button { margin-top: 23px; }
.orientation-phone { width: 54px; height: 88px; margin-bottom: 20px; border: 3px solid var(--acid); display: grid; place-items: center; animation: phone-landscape 1.8s ease-in-out infinite; }
.orientation-phone span { width: 7px; height: 7px; background: var(--acid); }
@keyframes phone-landscape { 0%, 25% { transform: rotate(0); } 70%, 100% { transform: rotate(90deg); } }

.settings-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(4,6,10,.82); backdrop-filter: blur(8px); }
.settings-dialog { width: min(760px, 100%); max-height: calc(100dvh - 36px); overflow: auto; background: #111720; border: 1px solid #313b49; padding: clamp(22px, 4vw, 38px); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; }
.settings-head .eyebrow { margin: 0 0 6px; }
.settings-head h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.settings-close { width: 38px; min-height: 38px; padding: 0; background: transparent; font-size: 24px; }
.settings-intro { color: var(--muted); font-size: 13px; margin: 12px 0 22px; }
.settings-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.player-count-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 15px; border: 1px solid #3b4655; background: #0c1118; }
.player-count-setting strong, .player-count-setting small { display: block; }
.player-count-setting strong { color: var(--text); font-size: 14px; }
.player-count-setting small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.player-count-setting select { width: 112px; height: 42px; flex: 0 0 112px; padding: 0 12px; color: var(--acid); background: #101720; border: 1px solid #536174; font-weight: 800; outline: none; }
.rule-option { min-height: 88px; border: 1px solid #2b3441; background: #0c1118; padding: 15px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; }
.rule-option.rule-disabled { opacity: .42; cursor: default; }
.rule-option:has(input:checked) { border-color: var(--acid); background: rgba(215,255,69,.045); }
.rule-option input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.rule-check { width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid #586476; display: grid; place-items: center; }
input:checked + .rule-check { background: var(--acid); border-color: var(--acid); }
input:checked + .rule-check::after { content: "✓"; color: #10130a; font-size: 13px; font-weight: 900; }
.rule-option strong, .rule-option small { display: block; }
.rule-option strong { color: var(--text); font-size: 13px; }
.rule-option small { color: var(--muted); line-height: 1.45; margin-top: 5px; font-size: 11px; }
.rule-with-value { display: block; }
.rule-with-value > label { display: flex; gap: 12px; cursor: pointer; margin: 0; }
.rule-value { display: flex; align-items: center; gap: 7px; padding: 10px 0 0 31px; }
.rule-value input { width: 94px; height: 34px; text-transform: none; letter-spacing: 0; }
.rule-value span { color: var(--muted); font-size: 11px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.settings-actions button { min-width: 120px; }
.auth-dialog { width: min(500px, 100%); }
.auth-dialog label { margin-top: 15px; }
.auth-dialog input { text-transform: none; letter-spacing: .04em; }
.queue-dialog { width: min(430px, 100%); padding: 42px; text-align: center; background: #111720; border: 1px solid #313b49; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.queue-dialog h2 { margin: 17px 0 8px; }.queue-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.queue-dialog button { margin-top: 18px; }
.queue-spinner { width: 52px; height: 52px; margin: 24px auto 4px; border: 3px solid #2b3543; border-top-color: var(--acid); border-radius: 50%; animation: queue-spin .8s linear infinite; }
@keyframes queue-spin { to { transform: rotate(360deg); } }
.watch-dialog { width: min(620px, 100%); }
.watch-section { border: 1px solid #293340; background: #0d1219; padding: 17px; }
.watch-section small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 9px; }
.spectator-badge { color: #0b1217; background: #9beeff; padding: 5px 9px; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.spectator-mode .touch-controls, .spectator-mode .game-hints, .spectator-mode .ammo-status { display: none !important; }

.game-topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.room-label button { background: transparent; min-height: 0; border: 0; padding: 5px 7px; color: var(--text); }
.room-label strong { color: var(--acid); letter-spacing: .2em; }
.room-label span { color: var(--muted); margin-left: 7px; font-size: 11px; }
.connection::before { content: ""; width: 7px; height: 7px; background: #57d896; border-radius: 50%; display: inline-block; margin-right: 7px; box-shadow: 0 0 8px #57d896; }
.ammo-status { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.ammo-status strong { color: var(--orange); font-size: 14px; margin-left: 6px; }
.room-rules { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 8px; }
.room-rules span { color: #aeb8c7; border: 1px solid #323c49; background: #111721; padding: 4px 7px; font-size: 9px; letter-spacing: .06em; }
.connection.offline::before { background: #ff7068; box-shadow: 0 0 8px #ff7068; }
button.ghost { background: transparent; min-height: 32px; font-size: 11px; }
.arena-frame { position: relative; width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 160px); background: #0d1118; border: 1px solid #2d3542; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
#arena { display: block; width: 100%; height: 100%; cursor: crosshair; }
.center-message { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; font-size: clamp(36px, 8vw, 110px); font-weight: 900; letter-spacing: -.05em; text-shadow: 0 6px 25px #000; }
.center-message small { display: block; font-size: 15px; font-weight: 600; text-align: center; color: var(--muted); letter-spacing: .08em; margin-top: 10px; }
.result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(6,8,12,.76); backdrop-filter: blur(5px); }
.result h2 { font-size: clamp(52px, 8vw, 100px); margin: 3px 0; letter-spacing: -.06em; }
.result > p:not(.eyebrow) { color: #a5afbd; }
.result .ranked-change { color: var(--text); font: 750 17px/1.5 monospace; text-align: center; white-space: pre-line; margin: 5px 0 0; }
.result-actions { display: flex; gap: 9px; margin-top: 22px; }
.game-hints { display: flex; justify-content: center; gap: 28px; color: var(--muted); font-size: 11px; padding-top: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.arrow-dot { background: var(--orange); }.laser-dot { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 15px); background: #eaf0fa; color: #10141b; padding: 10px 17px; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.touch-controls { position: absolute; inset: 0; z-index: 4; pointer-events: none; user-select: none; touch-action: none; }
.touch-stick, .laser-stick, .arrow-button { pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.touch-stick { position: absolute; width: clamp(108px, 16vw, 154px); aspect-ratio: 1; bottom: clamp(18px, 4vh, 48px); border-radius: 50%; background: rgba(15,21,30,.48); border: 1px solid rgba(220,232,248,.22); backdrop-filter: blur(4px); }
.move-stick { left: clamp(18px, 4vw, 54px); }
.aim-stick { right: clamp(18px, 4vw, 54px); }
.stick-ring { position: absolute; inset: 22%; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.stick-knob { position: absolute; width: 38%; aspect-ratio: 1; left: 31%; top: 31%; border-radius: 50%; background: rgba(241,245,251,.78); box-shadow: 0 4px 18px rgba(0,0,0,.45); transform: translate(0,0); }
.aim-stick .stick-knob { background: rgba(255,155,84,.9); }
.touch-stick > span { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); color: rgba(220,229,241,.7); font-size: 9px; white-space: nowrap; letter-spacing: .08em; }
.laser-stick { position: absolute; right: clamp(142px, 19vw, 205px); bottom: clamp(32px, 7vh, 80px); width: clamp(72px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(85,167,255,.55); background: rgba(21,50,78,.72); display: grid; place-items: center; box-shadow: 0 0 18px rgba(85,167,255,.18); }
.laser-core { font-size: 11px; font-weight: 800; color: #cdeaff; pointer-events: none; }
.laser-stick.charging { border-color: var(--acid); box-shadow: 0 0 28px rgba(215,255,69,.38); }
.laser-stick.charging .laser-core { color: var(--acid); }
.arrow-button { display: none; position: absolute; right: clamp(18px, 4vw, 54px); bottom: clamp(32px, 7vh, 80px); width: clamp(72px, 9vw, 96px); min-height: 0; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 1px solid rgba(255,155,84,.65); background: rgba(90,47,21,.78); color: #ffe2cc; font-size: 11px; box-shadow: 0 0 18px rgba(255,155,84,.2); }
.arrow-button.firing { border-color: #fff; background: var(--orange); color: #1a0d05; transform: scale(.94); }
.single-stick-mode .aim-stick { display: none; }
.single-stick-mode .arrow-button { display: grid; place-items: center; }
.single-stick-mode .laser-stick { right: clamp(105px, 15vw, 166px); }
.joystick-mode #arena { cursor: default; touch-action: none; }
.joystick-mode .result { z-index: 8; }

@media (max-width: 850px) {
  .lobby-panel { grid-template-columns: 1fr; gap: 45px; padding: 40px 26px; }
  .lobby-panel h2 { font-size: 48px; }
  .shell { width: min(100% - 20px, 1480px); padding-top: 18px; }
  .brand { margin-bottom: 16px; }
  .sound-toggle b { display: none; }
  .sound-toggle { padding: 0 9px; }
  .account-profile { padding-left: 8px; gap: 5px; }.account-profile button { display: none; }
  .leaderboard-trigger { width: 38px; padding: 0; font-size: 0; }
  .leaderboard-trigger span { margin: 0; font-size: 15px; }
  #accountRank { display: none; }
  .game-topbar { min-height: 42px; }
  .game-topbar .room-label span { display: none; }
  .game-hints { font-size: 10px; padding-top: 8px; }
  .settings-list { grid-template-columns: 1fr; }
  .settings-dialog { padding: 22px 16px; }
  .rule-option { min-height: 76px; }
  .game-topbar { gap: 8px; }
  .ammo-status { margin-left: auto; }
  .leaderboard-page { padding: 16px 10px 30px; }
  .leaderboard-head { gap: 12px; }
  .leaderboard-head h2 { font-size: 40px; }
  .leaderboard-head p:last-child { display: none; }
  .leaderboard-actions button:first-child { display: none; }
  .leaderboard-podium { grid-template-columns: 1fr; margin-top: 24px; }
  .podium-card, .podium-card[data-rank="1"] { min-height: 105px; }
  .podium-card[data-rank="1"] { order: -1; }
  .leaderboard-table { overflow-x: auto; }
  .leaderboard-row { min-width: 660px; }
}

@media (max-width: 850px) and (orientation: portrait) {
  .game-wrap { padding-top: 0; }
  .arena-frame { max-height: none; }
  .touch-stick { width: 104px; bottom: 12px; }
  .move-stick { left: 10px; }.aim-stick { right: 10px; }
  .laser-stick { width: 68px; right: 124px; bottom: 28px; }
  .arrow-button { width: 68px; right: 10px; bottom: 28px; }
  .single-stick-mode .laser-stick { right: 88px; }
}

@media (pointer: coarse) and (orientation: landscape) {
  body.in-game { overflow: hidden; }
  body.in-game .shell { width: 100%; padding: 0 8px 6px; }
  body.in-game .brand { display: none; }
  body.in-game .game-topbar { min-height: 36px; }
  body.in-game .game-wrap { height: 100dvh; padding: 0; }
  body.in-game .arena-frame { width: min(100%, calc(177.78dvh - 76px)); max-height: none; margin: 0 auto; }
  body.in-game .game-hints { display: none; }
  body.in-game .touch-stick { width: clamp(92px, 27dvh, 128px); bottom: 12px; }
  body.in-game .move-stick { left: 12px; }
  body.in-game .aim-stick { right: 12px; }
  body.in-game .laser-stick { width: clamp(62px, 18dvh, 82px); right: clamp(112px, 31dvh, 154px); bottom: 24px; }
  body.in-game .arrow-button { width: clamp(62px, 18dvh, 82px); right: 12px; bottom: 24px; }
  body.in-game .single-stick-mode .laser-stick { right: clamp(84px, 24dvh, 104px); }
  body.in-game .room-rules { position: absolute; z-index: 5; top: 39px; left: 12px; max-width: 50%; }
}

body.forced-landscape { overflow: hidden; }
body.forced-landscape .shell { position: fixed; top: 0; left: 0; width: 100dvh; height: 100dvw; padding: 0 8px 6px; transform: rotate(90deg) translateY(-100%); transform-origin: top left; overflow: hidden; }
body.forced-landscape .brand { display: none; }
body.forced-landscape .game-topbar { min-height: 36px; }
body.forced-landscape .game-wrap { height: 100dvw; padding: 0; }
body.forced-landscape .arena-frame { width: min(100%, calc(177.78dvw - 76px)); max-height: none; margin: 0 auto; }
body.forced-landscape .game-hints { display: none; }
body.forced-landscape .touch-stick { width: clamp(92px, 27dvw, 128px); bottom: 12px; }
body.forced-landscape .move-stick { left: 12px; }
body.forced-landscape .aim-stick { right: 12px; }
body.forced-landscape .laser-stick { width: clamp(62px, 18dvw, 82px); right: clamp(112px, 31dvw, 154px); bottom: 24px; }
body.forced-landscape .arrow-button { width: clamp(62px, 18dvw, 82px); right: 12px; bottom: 24px; }
body.forced-landscape .single-stick-mode .laser-stick { right: clamp(84px, 24dvw, 104px); }
body.forced-landscape .room-rules { position: absolute; z-index: 5; top: 39px; left: 12px; max-width: 50%; }
