/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0906;
  --surface:   #131109;
  --surface2:  #1c1a10;
  --border:    #2c2918;
  --text:      #ede6d4;
  --muted:     #7a7260;
  --accent:    #e8a020;
  --accent2:   #e03d4a;
  --green:     #4fd18a;
  --yellow:    #e8a020;
  --red:       #e03d4a;
  --impostor:  #e03d4a;
  --innocent:  #4fd18a;
  --radius:    5px;
  --shadow:    0 8px 48px rgba(0,0,0,.75);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232,160,32,.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(224,61,74,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Screen System ────────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  overflow: auto;
  z-index: 1;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s, transform .1s;
  letter-spacing: .04em;
}
.btn:hover  { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; filter: none; }

.btn-primary {
  background: var(--accent);
  color: #0b0906;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); filter: none; }

.btn-danger-sm {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 14px;
  font-size: .8rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .15s;
}
.btn-danger-sm:hover { background: rgba(224,61,74,.15); }

.btn-vote {
  background: var(--accent2);
  color: #fff;
  padding: 9px 20px;
  font-size: .85rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: filter .15s;
}
.btn-vote:hover { filter: brightness(1.12); }

.btn-icon {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  transition: color .15s;
}
.btn-icon:hover { color: var(--accent); }

.hidden { display: none !important; }
.red    { color: var(--red); }
.green  { color: var(--green); }

/* ─── Landing ──────────────────────────────────────────────────────────────── */
.landing-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 60px;
  width: 420px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
  text-align: center;
  position: relative;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1;
}

.logo-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto 6px;
}

.tagline {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-form input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.landing-form input::placeholder { color: var(--muted); }
.landing-form input:focus { border-color: var(--accent); }

.divider {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

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

.error-msg {
  color: var(--red);
  font-size: .82rem;
  text-align: center;
}

/* ─── Lobby ────────────────────────────────────────────────────────────────── */
.lobby-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  width: 640px;
  box-shadow: var(--shadow);
}

.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.lobby-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: .12em;
  color: var(--text);
  font-weight: 400;
}

.room-code-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .05em;
}
.room-code-display span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: .2em;
}

.lobby-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: .88rem;
  transition: border-color .2s;
}
.player-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  color: #0b0906;
  flex-shrink: 0;
}
.player-chip .host-badge {
  margin-left: auto;
  font-size: .65rem;
  background: rgba(232,160,32,.2);
  color: var(--accent);
  border: 1px solid rgba(232,160,32,.35);
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.player-chip.disconnected { opacity: .35; }

.lobby-settings h3 {
  font-size: .7rem;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.setting-row { margin-bottom: 14px; }
.setting-row label {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.btn-group { display: flex; gap: 5px; }
.btn-option {
  flex: 1;
  padding: 7px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
}
.btn-option.active, .btn-option:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,160,32,.08);
}
.btn-option.active { font-weight: 700; }

.lobby-status {
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  margin-bottom: 12px;
  min-height: 22px;
  letter-spacing: .04em;
}

/* ─── Word Reveal ──────────────────────────────────────────────────────────── */
.reveal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 72px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 360px;
}

.reveal-round-label {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.role-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 2px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.role-badge.innocent {
  background: rgba(79,209,138,.1);
  color: var(--innocent);
  border: 1px solid rgba(79,209,138,.3);
}
.role-badge.impostor {
  background: rgba(224,61,74,.12);
  color: var(--impostor);
  border: 1px solid rgba(224,61,74,.4);
}

.reveal-word-area { margin-bottom: 32px; }
.reveal-word-label {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.reveal-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: var(--text);
  letter-spacing: .12em;
  line-height: 1;
}

.reveal-impostor-msg {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.ready-info { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ready-count { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }

/* ─── Drawing Layout ───────────────────────────────────────────────────────── */
.drawing-layout {
  display: grid;
  grid-template-columns: 172px 1fr 152px;
  gap: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.sidebar-right { border-right: none; border-left: 1px solid var(--border); }
.sidebar-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.sidebar-section {}

.round-info {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .04em;
}

.turn-order-list, .score-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.turn-order-list li, .score-list li {
  font-size: .78rem;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.turn-order-list li.active-turn {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  background: rgba(232,160,32,.07);
}
.score-list li .score-val { font-weight: 700; color: var(--yellow); }
.turn-order-list li .turn-indicator { font-size: .65rem; color: var(--accent); }

.my-role-display {
  font-size: .82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.my-role-display.innocent {
  background: rgba(79,209,138,.07);
  color: var(--innocent);
  border: 1px solid rgba(79,209,138,.2);
}
.my-role-display.impostor {
  background: rgba(224,61,74,.08);
  color: var(--impostor);
  border: 1px solid rgba(224,61,74,.25);
}
.my-word { font-size: .7rem; font-weight: 400; color: var(--muted); margin-top: 6px; text-transform: none; letter-spacing: 0; }

/* Canvas area */
.canvas-area {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.drawer-info { display: flex; align-items: center; gap: 6px; }
.drawer-name { font-weight: 700; font-size: .95rem; color: var(--accent); }
.is-drawing-label { color: var(--muted); font-size: .85rem; }

.timer-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--text);
  min-width: 52px;
  text-align: center;
  letter-spacing: .05em;
  transition: color .3s;
}
.timer-display.urgent { color: var(--red); animation: pulse-red 1s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}

.canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

#drawing-canvas {
  background: #d8d8d8;
  border-radius: 3px;
  box-shadow: 0 2px 32px rgba(0,0,0,.5);
  cursor: crosshair;
  max-width: 100%;
  max-height: 100%;
  display: block;
}
#drawing-canvas.inactive { cursor: default; }

.canvas-overlay {
  position: absolute;
  inset: 16px;
  background: rgba(11,9,6,.8);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.word-display-bar {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.word-display-bar strong { color: var(--text); text-transform: none; }

.draw-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.color-palette { display: flex; gap: 4px; flex-wrap: wrap; max-width: 220px; }
.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .1s;
}
.color-swatch:hover  { transform: scale(1.18); }
.color-swatch.active { border-color: var(--accent); transform: scale(1.22); }

.size-picker { display: flex; gap: 4px; }
.btn-size {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  cursor: pointer;
  transition: all .15s;
}
.btn-size.active, .btn-size:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Voting ───────────────────────────────────────────────────────────────── */
.voting-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 56px;
  width: 560px;
  box-shadow: var(--shadow);
  text-align: center;
}
.voting-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: .12em;
  font-weight: 400;
  margin-bottom: 6px;
}
.voting-called-by { color: var(--muted); font-size: .82rem; margin-bottom: 28px; letter-spacing: .04em; }

.voting-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.vote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.vote-card:hover { border-color: var(--accent); background: rgba(232,160,32,.07); }
.vote-card.voted  { border-color: var(--accent); background: rgba(232,160,32,.1); }
.vote-card.self   { opacity: .3; cursor: not-allowed; }
.vote-card .vc-name { font-weight: 600; font-size: .9rem; }
.vote-card .vc-tally { font-size: .75rem; color: var(--yellow); font-weight: 700; letter-spacing: .04em; }
.vote-card .vc-voted-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: .7rem;
  color: var(--accent);
}

.vote-progress { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.voting-waiting { color: var(--muted); font-size: .8rem; }

/* ─── Vote Result ──────────────────────────────────────────────────────────── */
.vote-result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 72px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 380px;
  max-width: 520px;
}
.vr-title   { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: .14em; font-weight: 400; margin-bottom: 14px; }
.vr-subtitle { font-size: .85rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .06em; text-transform: uppercase; }
.vr-name    { font-size: 1.3rem; font-weight: 700; }
.vr-verdict { font-size: .9rem; margin-top: 18px; color: var(--muted); line-height: 1.6; }

/* ─── Impostor Guess ───────────────────────────────────────────────────────── */
.guess-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 60px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 380px;
}
.guess-waiting { display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--muted); }
.guess-form h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: .1em;
  font-weight: 400;
  margin-bottom: 10px;
}
.guess-form p  { color: var(--muted); margin-bottom: 24px; font-size: .9rem; }
.guess-input-row { display: flex; gap: 10px; }
.guess-input-row input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.guess-input-row input:focus { border-color: var(--accent); }

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Round Result ─────────────────────────────────────────────────────────── */
.round-result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 56px;
  width: 520px;
  box-shadow: var(--shadow);
  text-align: center;
}
.round-result-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: .12em;
  font-weight: 400;
  margin-bottom: 22px;
}

.rr-word-reveal {
  margin-bottom: 16px;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rr-word-reveal strong {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .1em;
  display: block;
  margin-top: 4px;
  text-transform: none;
}

.rr-outcome {
  margin-bottom: 24px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.7;
}
.rr-outcome.impostor-win { background: rgba(224,61,74,.08); border: 1px solid rgba(224,61,74,.3); }
.rr-outcome.innocent-win { background: rgba(79,209,138,.07); border: 1px solid rgba(79,209,138,.25); }

.rr-scores h3 {
  font-size: .65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.rr-score-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.rr-score-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: .88rem;
}
.rr-score-list li .score-pts { font-weight: 700; color: var(--yellow); }
.rr-waiting { color: var(--muted); font-size: .8rem; margin-top: 14px; letter-spacing: .04em; }

/* ─── Game Over / Podium ───────────────────────────────────────────────────── */
.game-over-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 56px;
  width: 560px;
  box-shadow: var(--shadow);
  text-align: center;
  max-height: 95vh;
  overflow-y: auto;
}

.game-over-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: .25em;
  color: var(--text);
  margin-bottom: 8px;
}
.game-over-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto 24px;
}

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
  height: 180px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.podium-name {
  font-size: .8rem;
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-score { font-size: .7rem; color: var(--yellow); font-weight: 700; }
.podium-block {
  width: 88px;
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(0,0,0,.6);
}
.podium-place.first  .podium-block { height: 130px; background: #e8a020; }
.podium-place.second .podium-block { height: 96px;  background: #8a8a8a; }
.podium-place.third  .podium-block { height: 70px;  background: #7a4e35; }

.full-leaderboard { text-align: left; margin-bottom: 24px; }
.full-leaderboard h3 {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.full-leaderboard-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.full-leaderboard-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: .88rem;
}
.full-leaderboard-list li .lb-rank { color: var(--muted); min-width: 22px; font-size: .8rem; }
.full-leaderboard-list li .lb-name { flex: 1; }
.full-leaderboard-list li .lb-pts  { font-weight: 700; color: var(--yellow); }

/* ─── Toast ────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: .85rem;
  box-shadow: var(--shadow);
  letter-spacing: .03em;
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Your Turn Banner ─────────────────────────────────────────────────────── */
.your-turn-banner {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,9,6,.7);
  backdrop-filter: blur(4px);
  animation: ytb-fade 2.2s ease forwards;
  pointer-events: none;
}
.your-turn-banner.hidden { display: none; }

@keyframes ytb-fade {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.ytb-inner {
  text-align: center;
  animation: ytb-scale 2.2s ease forwards;
}

@keyframes ytb-scale {
  0%   { transform: scale(.85); }
  15%  { transform: scale(1); }
  70%  { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.ytb-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  letter-spacing: .2em;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 60px rgba(232,160,32,.4);
}

.ytb-sub {
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─── End Game Button ──────────────────────────────────────────────────────── */
.btn-return-lobby {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 100;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-return-lobby:hover { border-color: var(--red); color: var(--red); }

/* ─── Watermark ────────────────────────────────────────────────────────────── */
.watermark {
  position: fixed;
  bottom: 10px;
  right: 14px;
  font-size: .7rem;
  color: var(--muted);
  opacity: .35;
  letter-spacing: .08em;
  pointer-events: none;
  z-index: 1;
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
