html, body { margin: 0; padding: 0; height: 100%; background: #0f1418; color: #e8eef2; font: 18px/1.45 system-ui, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { overflow: hidden; touch-action: manipulation; }
#app { width: 100%; height: 100dvh; overflow: hidden; display: flex; justify-content: center; align-items: center; }
#game-container { width: 100%; height: 100%; }

/* Guide panel (?host) */
body.host { overflow: auto; }
body.host #app { display: block; height: auto; min-height: 100dvh; overflow: visible; }
.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.host header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #2b3943; }
.host h1 { font-size: 26px; margin: 0; flex: 1; color: #29c4a9; }
.host h2 { font-size: 20px; margin: 22px 0 10px; }
.host button { font: inherit; color: inherit; background: #22303a; border: 2px solid #2b3943; border-radius: 12px; min-height: 56px; padding: 8px 18px; cursor: pointer; }
.host button.primary { background: #29c4a9; border-color: #29c4a9; color: #05201b; font-weight: 700; }
.host button.danger { background: #ef5d52; border-color: #ef5d52; color: #2a0906; font-weight: 700; }
.host button:disabled { opacity: 0.35; cursor: default; }
.host .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.host .row button { flex: 1 1 200px; }
.chip { font: 600 15px ui-monospace, monospace; background: #182129; border: 2px solid #2b3943; border-radius: 10px; padding: 8px 12px; }
.chip.lobby { border-color: #f2b53a; color: #f2b53a; }
.chip.running { border-color: #3ecf6e; color: #3ecf6e; }
.chip.ended { border-color: #ef5d52; color: #ef5d52; }
.winner { margin-top: 18px; padding: 16px; border: 2px solid #f2b53a; border-radius: 14px; background: #2a2412; color: #f2b53a; font-size: 26px; font-weight: 800; text-align: center; }
.host table { border-collapse: collapse; width: 100%; background: #182129; border-radius: 14px; overflow: hidden; }
.host th, .host td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #2b3943; }
.host th { color: #8fa1ad; font-size: 15px; }
.host td.score { font-weight: 800; color: #29c4a9; font-size: 22px; }
.host td.dots { letter-spacing: 2px; color: #29c4a9; white-space: nowrap; }
.host tr.first td { background: #2a2412; }
.muted, .muted a { color: #8fa1ad; }
.card.login { max-width: 420px; margin: 12vh auto 0; padding: 24px; background: #182129; border: 1px solid #2b3943; border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.card.login input { font: inherit; color: inherit; background: #0f1418; border: 2px solid #2b3943; border-radius: 12px; min-height: 56px; padding: 0 14px; }
.card.login input:focus { border-color: #29c4a9; outline: none; }
.err { color: #ef5d52; min-height: 1.4em; margin: 0; }
