:root { --bg: #0e1016; --panel: #1b1d24; --panel2: #262935; --text: #eef0f5; --dim: #9aa0b4; --accent: #ffd427; --danger: #c62d3a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#game { width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16)); background: #000; image-rendering: auto; display: block; }
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 10, 16, 0.92); padding: 16px; overflow: auto; }
.card { background: var(--panel); border: 2px solid #33384a; border-radius: 12px; padding: 22px 26px; width: min(720px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
h1 { font-family: "Oswald", Impact, "Arial Narrow", sans-serif; font-size: clamp(34px, 7vw, 64px); letter-spacing: 2px; margin: 0; text-align: center; color: var(--accent); text-shadow: 3px 3px 0 #7a2a1a; }
h1 small { display: block; font-size: 15px; letter-spacing: 4px; color: var(--dim); text-shadow: none; font-family: system-ui, sans-serif; }
h2 { margin: 0 0 12px; font-size: 22px; }
h3 { margin: 16px 0 6px; font-size: 15px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
p { line-height: 1.45; }
.menu { display: grid; gap: 10px; margin-top: 22px; }
button { font: inherit; font-weight: 600; background: var(--panel2); color: var(--text); border: 2px solid #3d4256; border-radius: 8px; padding: 12px 16px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--accent); color: #1a1400; border-color: #d9b21c; }
button.small { padding: 6px 10px; font-size: 13px; }
button.danger { color: #ff8b95; }
input, select { font: inherit; background: #10121a; color: var(--text); border: 2px solid #3d4256; border-radius: 6px; padding: 8px 10px; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.player-row { display: grid; grid-template-columns: 18px 1fr 1.4fr 110px 36px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #2c3040; }
.player-row .name { min-width: 0; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.5); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; }
.options label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.note { color: var(--dim); font-size: 14px; }
.error { color: #ff8b95; }
#room-box { background: #10121a; border: 2px dashed #4a5066; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
#room-code { font-family: "Oswald", Impact, monospace; font-size: 42px; letter-spacing: 8px; color: var(--accent); }
#room-link { width: 100%; font-size: 13px; }
.guest-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #2c3040; }
.guest-row.you { color: var(--accent); }
.dim { color: var(--dim); margin-left: auto; font-size: 13px; }
#hud { position: fixed; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 5; }
#hud button { padding: 6px 10px; font-size: 14px; opacity: 0.75; }
#touch { position: fixed; bottom: 12px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; z-index: 5; pointer-events: none; }
#touch .pad { display: grid; grid-template-columns: 64px 64px 64px; grid-template-rows: 64px 64px; gap: 6px; pointer-events: auto; }
#touch button { font-size: 26px; padding: 0; opacity: 0.6; border-radius: 12px; touch-action: none; user-select: none; }
#touch button.on { opacity: 1; background: var(--accent); color: #000; }
#touch .fire { width: 110px; height: 110px; border-radius: 50%; font-size: 20px; align-self: end; }
kbd { background: #2c3040; border: 1px solid #4a5066; border-radius: 4px; padding: 1px 6px; font-family: ui-monospace, monospace; font-size: 13px; }
ul.rules { padding-left: 18px; }
ul.rules li { margin: 6px 0; line-height: 1.4; }
@media (max-width: 600px) { .player-row { grid-template-columns: 18px 1fr 1fr; } .player-row .team, .player-row button { grid-column: span 1; } }
.title-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
#mascot { width: 120px; height: 120px; flex: 0 0 auto; }
@media (max-width: 600px) { #mascot { width: 80px; height: 80px; } }
/* title splash, after the original's title card: flat blue sky, cartoon clouds, red blocky logo */
.screen.title { background: #4552ff; overflow: hidden; cursor: pointer; }
.title-card { text-align: center; position: relative; z-index: 2; user-select: none; }
.title .logo { font-family: "Oswald", Impact, "Arial Narrow", sans-serif; font-weight: 700; font-size: clamp(56px, 12vw, 128px); line-height: 0.95; letter-spacing: 3px; color: #e3231c; text-shadow: 4px 4px 0 #6e0d0a, -2px -2px 0 #ff7a70; transform: skewX(-6deg); }
.title .tagline { margin-top: 26px; color: #fff; font-weight: 800; font-size: clamp(14px, 2.4vw, 24px); letter-spacing: 2px; text-shadow: 2px 2px 0 #1b2270; line-height: 1.5; }
.title .press { margin-top: 44px; color: #ffd427; font-weight: 800; font-size: clamp(14px, 2.2vw, 22px); letter-spacing: 3px; text-shadow: 2px 2px 0 #1b2270; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.cloud { position: absolute; background: #fff; border-radius: 50%; width: 140px; height: 90px; box-shadow: 70px 20px 0 10px #fff, -70px 25px 0 0 #fff, 20px 40px 0 10px #fff, -30px 45px 0 5px #fff; opacity: 0.95; animation: drift linear infinite; }
.cloud.c1 { top: 8%; left: -10%; animation-duration: 70s; }
.cloud.c2 { top: 22%; left: 60%; transform: scale(1.4); animation-duration: 95s; }
.cloud.c3 { top: 66%; left: 15%; transform: scale(0.8); animation-duration: 80s; }
.cloud.c4 { top: 78%; left: 70%; transform: scale(1.1); animation-duration: 110s; }
@keyframes drift { from { margin-left: 0; } to { margin-left: 120vw; } }
#title-tarino { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
