:root { color-scheme: dark; --mint: #73ffe0; --muted: #8fabc4; --app-height: 100vh; --game-safe-top: var(--safe-area-inset-top, 0px); --game-safe-bottom: var(--safe-area-inset-bottom, 0px); --game-safe-left: var(--safe-area-inset-left, 0px); --game-safe-right: var(--safe-area-inset-right, 0px); }
@supports (padding: env(safe-area-inset-top)) {
  :root { --game-safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); --game-safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)); --game-safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px)); --game-safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px)); }
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #070d1c; color: #eef7ff; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 1px solid #33455e; background: #16283e; border-radius: 14px; min-height: 46px; padding: 12px 16px; touch-action: manipulation; }
button:focus { outline: 2px solid #73ffe0; outline-offset: 2px; }
button:active { background: #284759; transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
#app { position: relative; width: 100%; height: 100%; height: var(--app-height, 100vh); overflow: hidden; max-width: 1200px; margin: 0 auto; padding-top: 0; padding-top: var(--game-safe-top); padding-bottom: 0; padding-bottom: var(--game-safe-bottom); padding-left: 0; padding-left: var(--game-safe-left); padding-right: 0; padding-right: var(--game-safe-right); display: flex; flex-direction: column; }
#arena { position: relative; flex: 1; min-height: 0; width: 100%; overflow: hidden; touch-action: none; }
#battle { display: block; width: 100%; height: 100%; }
#hud { position: relative; z-index: 3; flex: 0 0 auto; margin: 8px 12px 6px; pointer-events: none; padding: 7px 10px; border: 1px solid #24384d; background: #081222; border-radius: 14px; }
.hud-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.hud-time { flex: 0 0 auto; margin-right: 12px; }
.hud-time span, .hud-progress span { display: block; }
.hud-progress { flex: 1; min-width: 0; max-width: 190px; margin-right: 12px; }
#clock { font-size: 23px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
#level { color: var(--mint); font-weight: 700; }
#health, #kills { color: #bacad9; font-size: 10px; line-height: 1.3; }
.icon-button { width: 44px; min-height: 44px; padding: 6px; font-size: 21px; pointer-events: auto; }
.hud-actions { display: flex; align-items: center; }.hud-actions > * + * { margin-left: 6px; }.equipment-button { font-size: 13px; }
.bar { height: 4px; border-radius: 4px; overflow: hidden; background: #263342; margin-top: 3px; }
.bar i { display: block; height: 100%; background: #73ffe0; width: 100%; }
.xp-bar { height: 3px; margin-top: 4px; }.xp-bar i { background: #ae9eff; width: 0; }
#joystick { position: absolute; z-index: 2; width: 104px; height: 104px; transform: translate(-50%, -50%); pointer-events: none; }
.stick-ring { display: block; position: relative; width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(115, 255, 224, .45); background: rgba(16, 35, 53, .55); }
.stick-ring::before, .stick-ring::after { content: ''; position: absolute; background: #395264; }
.stick-ring::before { width: 1px; height: 88px; left: 51px; top: 7px; }.stick-ring::after { height: 1px; width: 88px; top: 51px; left: 7px; }
#stick { position: absolute; z-index: 1; left: 29px; top: 29px; width: 44px; height: 44px; border-radius: 50%; background: rgba(115, 255, 224, .85); border: 5px solid #2f827c; box-shadow: 0 0 18px #184d51; }
#overlay { position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; left: 0; background: rgba(5, 11, 25, .92); display: flex; align-items: center; justify-content: center; padding: 18px; padding-left: calc(18px + var(--game-safe-left)); padding-right: calc(18px + var(--game-safe-right)); padding-top: calc(18px + var(--game-safe-top)); padding-bottom: calc(30px + var(--game-safe-bottom)); }
.panel { width: 100%; max-width: 500px; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px; background: #101d31; border: 1px solid #2b435b; border-radius: 24px; box-shadow: 0 20px 80px #020914; }
.hero { background: radial-gradient(ellipse at 100% 0%, #173943, #101b30 60%); }
.eyebrow { color: var(--mint); font-size: 11px; letter-spacing: 2px; margin: 0 0 14px; font-weight: 700; }
h1 { font-size: 42px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -1px; } h1 em { font-style: normal; color: var(--mint); }
h2 { font-size: 26px; margin: 0 0 10px; } p { color: #a9bdcf; margin: 10px 0; } .subtle { font-size: 12px; color: var(--muted); }
.hero-art { height: 96px; position: relative; border: 1px solid #294d5d; border-radius: 16px; overflow: hidden; margin: 20px 0; background: repeating-linear-gradient(0deg, transparent, transparent 23px, #193048 24px), repeating-linear-gradient(90deg, transparent, transparent 23px, #193048 24px); }
.hero-core { position: absolute; width: 30px; height: 30px; left: 47%; top: 33px; background: var(--mint); transform: rotate(45deg); box-shadow: 0 0 40px #73ffe080; }.hero-ring { position: absolute; width: 70px; height: 70px; border: 2px solid #969dff; border-radius: 50%; left: calc(47% - 20px); top: 13px; }.hero-enemy { position: absolute; width: 15px; height: 15px; background: #ff628b; border-radius: 4px; left: 20%; top: 26px; transform: rotate(15deg); }.hero-enemy.two { left: 78%; top: 58px; background: #ffad71; }
.primary { background: var(--mint); color: #092522; border-color: var(--mint); font-weight: 800; }.primary:active { background: #a2ffeb; }
.wide { display: block; width: 100%; margin-top: 12px; }.row { display: flex; margin-top: 12px; }.row > * { flex: 1; min-width: 0; }.row > * + * { margin-left: 10px; }
.records { display: flex; margin: 18px 0; border-top: 1px solid #294055; padding-top: 14px; }.records > div { flex: 1; }.records span { display: block; color: #8fa9bd; font-size: 11px; }.records strong { display: block; font-size: 21px; }
.upgrade { display: flex; text-align: left; width: 100%; min-height: 100px; margin: 10px 0 0; border-color: #496175; background: #14293b; padding: 13px; }.upgrade .glyph { flex: 0 0 44px; height: 44px; border: 1px solid #58727c; border-radius: 12px; text-align: center; line-height: 42px; font-size: 24px; margin-right: 12px; color: var(--mint); }.upgrade strong { display: block; font-size: 16px; }.upgrade small { display: block; color: #9badc4; margin-top: 4px; font-size: 12px; }.tag { color: var(--mint); font-size: 11px; }
.setting { padding: 12px 0; border-bottom: 1px solid #2a3d51; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }.setting input[type=range] { width: 48%; }.setting input[type=checkbox] { width: 24px; height: 24px; }
.equipment { border: 1px solid #2e4359; padding: 12px; border-radius: 12px; margin-top: 10px; }.equipment b { color: var(--mint); }.equipment p { margin: 5px 0 0; font-size: 12px; }
#save-status { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 3px; bottom: calc(3px + var(--game-safe-bottom)); font-size: 10px; text-align: center; margin: 0; padding: 3px 5px; color: #7e9baf; pointer-events: none; }#save-status.error { color: #ffc285; background: #322720; border-radius: 6px; }
@media (max-height: 650px) { .panel { padding: 16px; border-radius: 18px; } h1 { font-size: 34px; }.hero-art { height: 82px; margin: 14px 0; }.records { margin: 12px 0; }.upgrade { min-height: 86px; padding: 10px; } }
@media (orientation: landscape) and (max-height: 600px) { #hud { margin-top: 4px; margin-bottom: 4px; padding-top: 4px; padding-bottom: 4px; }.panel { max-width: 600px; }.hero-art { display: none; } }
@media (min-width: 650px) and (min-height: 650px) { #hud { margin-left: 24px; margin-right: 24px; }.panel { padding: 30px; } h1 { font-size: 52px; } }
