/* ---------- Shared game chrome ---------- */
.game-shell {
  padding: 1.5rem 0 3rem;
}
.game-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.game-shell__title h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}
.game-shell__title p {
  margin: 0;
  color: var(--chalk-dim);
  font-size: 1.1rem;
}
.game-shell__back {
  color: var(--chalk-dim);
  border: 2px solid var(--chalk-dim);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
}
.game-shell__back:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.game-board {
  background:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/4px 4px,
    linear-gradient(180deg, #222a2c, #181e20);
  border: 3px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.game-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.game-status__prompt {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--chalk);
  margin: 0;
  flex: 1 1 auto;
}
.game-status__score {
  background: rgba(0,0,0,.3);
  border: 2px dashed var(--chalk-dim);
  padding: .25rem 1rem;
  border-radius: 999px;
  font-size: 1.1rem;
  color: var(--chalk-dim);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--slate-900);
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
  transition: transform .1s ease;
}
.btn:hover, .btn:focus { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.btn--ghost {
  background: transparent;
  color: var(--chalk);
  border: 2px solid var(--chalk-dim);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: var(--slate-900);
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 50;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast--bad { background: var(--accent-3); }

/* Prevent accidental selection while playing */
.game-board, .game-board * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 620px) {
  .game-shell__header { flex-direction: column; align-items: flex-start; }
  .game-board { padding: 1rem; }
}
