:root { color-scheme: dark; font-family: system-ui, "Microsoft JhengHei", sans-serif; color: #f3f1e8; background: #10131c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #8ce5d1; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; color: #f3f1e8; background: #282f40; border: 1px solid #535e75; border-radius: 6px; min-height: 44px; padding: 10px 18px; }
button:disabled { opacity: .45; cursor: default; }
button:hover:not(:disabled), button[aria-pressed="true"] { border-color: #ffe071; background: #394257; }
:focus-visible { outline: 3px solid #ffe071; outline-offset: 4px; }
.game-page { width: min(1160px, calc(100% - 32px)); margin: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid #343c4d; }
.topbar a { text-decoration: none; font-weight: 750; }
.topbar span, .eyebrow { color: #8ce5d1; font-size: 12px; letter-spacing: .12em; }
.intro { padding: 30px 0 22px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; margin: 8px 0 14px; }
.intro p:last-child { color: #c2c9d5; line-height: 1.8; max-width: 760px; margin: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.toolbar strong { color: #ffe071; font-size: 14px; }
.toolbar div { display: flex; gap: 8px; }
.stage { position: relative; display: flex; flex-direction: column; height: min(76svh, 760px); min-height: 420px; overflow: hidden; background: #05080c; border: 5px solid #343e51; border-bottom-color: #06080d; border-radius: 12px; box-shadow: 0 4px 0 #343e51; }
.exit-fullscreen { position: absolute; top: 10px; right: 10px; z-index: 10; background: #151c2eeb; }
.stage:fullscreen { height: 100svh; min-height: 0; width: 100%; border: 0; border-radius: 0; }
iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #05080c; }
.standby { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; padding: 24px; background: radial-gradient(ellipse at 50% 100%, #203b3d, transparent 70%); }
.standby .slot { color: #8ce5d1; font: 800 56px monospace; }
.standby p { color: #b6c3cd; margin: 0; line-height: 1.7; }
.standby button { color: #10131c; background: #ffe071; font-weight: 800; border: 0; padding: 15px 32px; box-shadow: 0 4px 0 #967932; }
.touch-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; background: #1c2330; border-top: 1px solid #46516a; }
.touch-controls div { display: flex; gap: 6px; }
.touch-controls button { touch-action: none; user-select: none; min-width: 46px; padding: 8px 12px; font-weight: 750; }
#game-status { min-height: 1.5em; color: #a9b4c9; font-size: 13px; line-height: 1.6; }
.instructions { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 12px 0 32px; }
.instructions h2 { font-size: 18px; color: #ffe071; }
.instructions p { font-size: 14px; color: #c2c9d5; line-height: 1.9; margin: 8px 0; }
.credits { border-top: 1px solid #343c4d; padding: 22px 0 30px; font-size: 12px; color: #a9b4c9; line-height: 1.9; }
.credits p { margin: 3px 0; }
@media (max-width: 600px) { .topbar { padding: 16px 0; } .topbar span { font-size: 10px; } .intro { padding-top: 22px; } .instructions { grid-template-columns: 1fr; gap: 8px; } .touch-controls { gap: 6px; padding: 8px 4px; } .touch-controls button { min-width: 42px; padding: 8px; font-size: 14px; } }
