.site-arcade [hidden] { display: none !important; }
.arcade-launcher { position: fixed; z-index: 800; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #ffffff50; border-radius: 17px; background: #102438; color: #d9f885; box-shadow: 0 8px 30px #10243830; cursor: pointer; transition: transform .2s, background .2s; }
.arcade-launcher:hover { transform: translateY(-3px) rotate(-5deg); background: #1b3b57; }
.arcade-launcher-tip { position: absolute; right: 64px; width: 165px; padding: 12px; color: white; background: #102438; border-radius: 10px; font: 650 12px/1.5 Manrope, sans-serif; text-align: left; pointer-events: none; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.arcade-launcher-tip > span { display: block; color: #d9f885; font-size: 10px; font-weight: 400; }
.arcade-launcher:hover .arcade-launcher-tip, .arcade-launcher:focus-visible .arcade-launcher-tip { opacity: 1; transform: translateX(0); }
.arcade-open, .arcade-open body { overflow: hidden; }
.arcade-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #071524c7; color: #f4f8fb; overflow: hidden; font-family: Manrope, sans-serif; }
.arcade-dialog::backdrop { background: #06122130; }
.arcade-dialog button, .arcade-dialog a, .arcade-dialog input { font-family: inherit; }
.arcade-dialog button { cursor: pointer; }
.arcade-dialog button:disabled { opacity: .45; cursor: wait; }
.arcade-dialog :is(button, a, canvas, input):focus-visible { outline: 3px solid #d9f885; outline-offset: 4px; }
.arcade-hud { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: max(17px, env(safe-area-inset-top)) 25px 17px; border-bottom: 1px solid #ffffff1c; background: #0c1c2ee8; }
.arcade-brand { display: flex; align-items: center; gap: 12px; }
.arcade-brand h2 { margin: 0; font-size: 14px; line-height: 1.3; letter-spacing: .08em; color: white; }
.arcade-brand div > span { display: block; color: #91a7bb; font-size: 8px; letter-spacing: .17em; margin-top: 4px; }
.arcade-live-dot { width: 9px; height: 9px; background: #d9f885; border-radius: 50%; box-shadow: 0 0 18px #d9f88560; }
.arcade-hud-stats { display: flex; gap: 34px; }
.arcade-hud-stats div > span { display: block; color: #9cafc1; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.arcade-hud-stats strong { display: block; margin-top: 3px; font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
[data-game-health] { color: #d9f885; }
.arcade-hud-actions { display: flex; gap: 8px; }
.arcade-hud-actions button { min-height: 40px; padding: 8px 13px; border: 1px solid #ffffff30; border-radius: 7px; color: white; background: #ffffff08; font-size: 12px; }
.arcade-hud-actions button:hover { background: #ffffff20; }
.arcade-stage { position: absolute; inset: 82px 0 48px; }
.arcade-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.arcade-world-label { position: absolute; right: 25px; top: 100px; font-size: 9px; letter-spacing: .2em; color: #c7d5e844; }
.arcade-bottom { position: absolute; left: 24px; right: 24px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 20px; color: #9cafc1; font-size: 10px; }
.arcade-bottom p { margin: 0; }
.arcade-bottom p > span { margin-left: 15px; }
.arcade-bottom > span { color: #d9f885; }
.arcade-bottom kbd { display: inline-block; min-width: 18px; padding: 1px 4px; margin-right: 3px; border: 1px solid #ffffff30; border-radius: 3px; color: #cbd9e5; font: inherit; text-align: center; }
.arcade-wave { position: absolute; left: 50%; top: 105px; transform: translateX(-50%); text-align: center; color: #d9f885; font-size: 13px; letter-spacing: .08em; pointer-events: none; text-shadow: 0 2px 10px #071524; }
.arcade-screen { position: absolute; z-index: 4; inset: 82px 0 0; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); background: #07152455; }
.arcade-panel { margin-block: auto; width: min(100%, 610px); padding: clamp(22px, 4vw, 40px); border: 1px solid #ffffff26; border-radius: 20px; background: linear-gradient(135deg, #142c43, #0c1d30); box-shadow: 0 30px 100px #00000045; text-align: center; }
.arcade-panel-small { max-width: 430px; }
.arcade-eyebrow { margin: 0 0 14px; color: #d9f885; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.7; }
.arcade-panel h3 { color: white; font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; margin: 0 0 16px; }
.arcade-panel > p:not(.arcade-eyebrow) { color: #c2d0de; font-size: 13px; line-height: 1.8; }
.arcade-intro-mark { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 65px; margin: 12px 0 26px; }
.arcade-intro-mark i { width: 22px; height: 22px; border-radius: 50%; background: #d9f885; align-self: flex-start; transform: translate(23px, 1px); }
.arcade-intro-mark b { width: 24px; height: 39px; background: #d9f885; border-radius: 7px 7px 2px 2px; }
.arcade-intro-mark span { align-self: center; margin: 0 25px 0 42px; font-size: 11px; color: #7e95ad; letter-spacing: .15em; }
.arcade-intro-mark span ~ i, .arcade-intro-mark span ~ b { background: #ff806e; }
.arcade-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; font-size: 10px; line-height: 1.7; color: #c2d0de; }
.arcade-rules strong { display: block; color: #d9f885; font-size: 13px; font-weight: 500; }
.arcade-prize { display: flex; gap: 14px; padding: 18px; border: 1px solid #d9f88535; border-radius: 10px; background: #d9f88508; text-align: left; margin-bottom: 24px; }
.arcade-prize > span { color: #d9f885; font-size: 28px; }
.arcade-prize p { margin: 0; font-size: 12px; line-height: 1.7; }
.arcade-prize p > span { display: block; color: #a6bacb; font-size: 10px; margin-top: 5px; }
.arcade-primary, .arcade-secondary { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.arcade-primary { color: #102438; background: #d9f885; }
.arcade-primary:hover { background: #e6ffa9; }
.arcade-secondary { color: #c2d0de; border-color: #ffffff25; background: transparent; }
.arcade-secondary:hover { color: white; background: #ffffff10; }
.arcade-panel-small > button { display: flex; width: 100%; margin-top: 12px; }
.arcade-panel .arcade-panel-note { font-size: 10px !important; margin: 16px 0 0; }
.arcade-message { color: #ffc7be !important; font-size: 12px; }
.arcade-message:empty { display: none; }
.arcade-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; margin: 20px 0; border-block: 1px solid #ffffff20; }
.arcade-results-grid span { color: #96acc0; font-size: 9px; display: block; }
.arcade-results-grid strong { color: white; display: block; font-size: 26px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.arcade-reward { border: 1px solid #d9f88540; border-radius: 12px; padding: 23px; background: #d9f88508; margin-bottom: 24px; }
.arcade-reward h4 { margin: 0; font-size: 21px; color: #d9f885; letter-spacing: -.025em; }
.arcade-reward > p:not(.arcade-eyebrow) { font-size: 11px; line-height: 1.7; color: #c2d0de; }
.arcade-reward label { display: block; font-size: 10px; text-align: left; color: #c2d0de; margin-bottom: 7px; }
.arcade-code-row { display: flex; gap: 8px; margin-bottom: 16px; }
.arcade-code-row input { flex: 1; min-width: 0; color: #d9f885; background: #071524; border: 1px solid #ffffff30; border-radius: 6px; padding: 12px 8px; font-size: 11px; }
.arcade-code-row button { color: white; border: 1px solid #ffffff30; background: #ffffff12; border-radius: 6px; padding: 10px; font-size: 11px; }
.arcade-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.arcade-touch { display: none; }
@media (pointer: coarse), (max-width: 760px) {
  .arcade-stage { inset: 110px 0 112px; }
  .arcade-touch { position: absolute; z-index: 3; bottom: max(30px, env(safe-area-inset-bottom)); left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 16px; }
  .arcade-touch > div { display: flex; gap: 8px; }
  .arcade-touch button { display: grid; place-items: center; width: 55px; height: 54px; border: 1px solid #ffffff35; border-radius: 13px; background: #18344be6; color: white; font-size: 22px; touch-action: none; user-select: none; -webkit-user-select: none; }
  .arcade-touch button.is-held { background: #d9f885; color: #102438; }
  .arcade-touch .arcade-touch-jump { width: 82px; font-size: 13px; font-weight: 700; background: #d9f885; color: #102438; }
  .arcade-bottom { bottom: max(6px, env(safe-area-inset-bottom)); justify-content: center; font-size: 9px; }
  .arcade-bottom p { display: none; }
  .arcade-hud { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .arcade-brand h2 { font-size: 11px; }
  .arcade-brand div > span { font-size: 7px; }
  .arcade-live-dot { display: none; }
  .arcade-hud-actions { margin-left: auto; }
  .arcade-hud-actions button { min-height: 36px; font-size: 11px; }
  .arcade-hud-stats { order: 3; width: 100%; justify-content: space-between; gap: 16px; }
  .arcade-hud-stats > div { display: flex; align-items: center; gap: 10px; }
  .arcade-hud-stats strong { font-size: 16px; margin: 0; }
  .arcade-hud-stats div > span { font-size: 8px; }
  .arcade-screen { inset: 108px 0 0; padding: 15px 12px; }
  .arcade-wave { top: 120px; font-size: 10px; width: 90%; }
  .arcade-world-label { display: none; }
  .arcade-results-grid { grid-template-columns: repeat(2, 1fr); }
  .arcade-launcher { bottom: max(14px, env(safe-area-inset-bottom)); right: 14px; width: 46px; height: 46px; }
}
@media (max-height: 500px) and (pointer: coarse) {
  .arcade-hud { padding: 8px 12px; flex-wrap: nowrap; }
  .arcade-brand div > span { display: none; }
  .arcade-hud-stats { order: 0; width: auto; }
  .arcade-score-stat { display: none !important; }
  .arcade-stage { inset: 55px 0 65px; }
  .arcade-screen { top: 55px; }
  .arcade-touch { bottom: 12px; }
  .arcade-touch button { height: 44px; }
  .arcade-bottom { display: none; }
  .arcade-wave { top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .arcade-launcher, .arcade-launcher-tip { transition: none; } .arcade-launcher:hover { transform: none; } }
