:root {
  --ink: #14110e;
  --felt: #1c3a2e;
  --felt-deep: #10241c;
  --cream: #f3ead7;
  --paper: #efe2c6;
  --gold: #d4a24a;
  --gold-soft: #e6c27a;
  --mute: #b7a88a;
  --chess: #c9a227;
  --ludo: #d85a3a;
  --cards: #3d7ea6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a4a3c 0%, transparent 60%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0 1px,
      transparent 1px 48px
    ),
    linear-gradient(180deg, var(--felt) 0%, var(--felt-deep) 55%, var(--ink) 100%);
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mast {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin: 0 0 12px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 0.95;
}

.lede {
  margin: 16px auto 0;
  max-width: 28rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.pick {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243, 234, 215, 0.08), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(243, 234, 215, 0.14);
  cursor: pointer;
  text-align: center;
  min-height: 220px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 162, 74, 0.55);
}

.suit {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(243, 234, 215, 0.12);
}

.piece {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--chess);
}

.token {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(243, 234, 215, 0.4);
}

.t1 { top: 18px; left: 18px; background: #e24b4b; }
.t2 { top: 18px; right: 18px; background: #3d8be0; }
.t3 { bottom: 18px; left: 18px; background: #3caf6a; }
.t4 { bottom: 18px; right: 18px; background: #e0c13a; }

.tile.cards .suit {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  font-size: 1.15rem;
  padding: 14px;
}

.pip:nth-child(2) { color: #d85a3a; }
.pip:nth-child(3) { color: #d85a3a; }

.name {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.tag {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.78rem;
  color: var(--mute);
}

#pick-chess:checked ~ .tables .tile.chess,
#pick-ludo:checked ~ .tables .tile.ludo,
#pick-cards:checked ~ .tables .tile.cards {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 162, 74, 0.16), rgba(0, 0, 0, 0.22));
  box-shadow: 0 0 0 3px rgba(212, 162, 74, 0.22);
}

.go {
  margin: 36px auto 0;
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hint {
  margin: 0;
  color: var(--mute);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.92rem;
}

.play {
  display: none;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

#pick-chess:checked ~ .go .hint,
#pick-ludo:checked ~ .go .hint,
#pick-cards:checked ~ .go .hint {
  display: none;
}

#pick-chess:checked ~ .go .play.chess,
#pick-ludo:checked ~ .go .play.ludo,
#pick-cards:checked ~ .go .play.cards {
  display: inline-flex;
}

footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  color: rgba(183, 168, 138, 0.7);
  font-size: 0.82rem;
}

footer a {
  color: var(--gold);
}

@media (max-width: 760px) {
  .page {
    padding-top: 36px;
  }

  .tables {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 180px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 18px;
    padding: 18px 20px;
  }

  .tile .name,
  .tile .tag {
    display: block;
  }

  .suit {
    flex-shrink: 0;
  }
}
