/* 숫자야구 — "모노 숫자의 밤" (랜딩 타일의 정체성을 게임 화면으로).
   토큰/버튼/카드는 플랫폼 공용(tokens.css/base.css)을 쓰고 여기는 게임 고유만. */

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 460px;
  padding: 20px 18px 40px;
}

header {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
}

header h1 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--muted);
}

header h1 a { color: inherit; }

header .brand-accent { color: var(--gold); font-weight: 800; }

#btn-theme, #btn-stealth {
  position: fixed;
  z-index: 20;
  top: 14px;
}

#btn-theme { right: 14px; }
#btn-stealth { right: 60px; }

body.stealth h1 { display: none; }

.screen { display: flex; flex-direction: column; gap: 14px; }

.hidden { display: none !important; }

.mw-card h2 { font-size: 17px; margin-bottom: 8px; }

.hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.divider {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3em;
}

.status { min-height: 1.3em; text-align: center; font-size: 13px; color: var(--gold); }

.code {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-align: center;
  color: var(--accent-hi);
  margin: 6px 0 14px;
}

select.mw-input { text-align: center; letter-spacing: 0.05em; margin-bottom: 10px; }

/* 로비 좌석 */
#lobby-seats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 16px;
}

#lobby-seats .seat {
  flex: 1;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1.5px dashed var(--panel-border);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

#lobby-seats .seat.filled { border-style: solid; border-color: var(--accent); }

#lobby-seats .seat.me { border-color: var(--gold); color: var(--gold-hi); }

#lobby-seats .vs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 게임 화면 ---------- */
#game-normal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px 18px;
}

#scoreline {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}

#scoreline b { color: var(--text); font-size: 16px; }

#status-line {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  min-height: 1.4em;
}

#status-line.turn { color: var(--gold); }

#my-secret-line {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

#my-secret-line b {
  color: var(--accent-hi);
  font-size: 16px;
  letter-spacing: 0.25em;
  margin-left: 6px;
}

.input-row { display: flex; gap: 8px; }

.input-row .mw-input.num {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.35em;
}

.input-row .mw-btn { width: auto; min-width: 96px; }

/* 히스토리 2열 */
#histories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hist h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: center;
}

.hist-body {
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.hist-body .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
}

.hist-body .row:last-child { border-bottom: none; }

.hist-body .g { letter-spacing: 0.18em; }

.hist-body .s { color: var(--accent-hi); font-weight: 700; }

.hist-body .b { color: var(--gold); font-weight: 700; }

.hist-body .win { color: var(--gold-hi); }

/* 오버레이 */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.overlay .mw-card {
  width: min(380px, 92vw);
  text-align: center;
}

.overlay .mw-card h2 { margin-bottom: 10px; }

.overlay .mw-btn { margin-top: 10px; }

#round-end-body, #match-result {
  font-size: 14px;
  line-height: 1.8;
}

#round-end-body .reveal {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.25em;
  color: var(--accent-hi);
}

#match-result .big {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 6px;
}
