:root {
  --felt: #0b5a38;
  --gold: #e6c35c;
  --cream: #f6ead0;
  --ink: #1b140c;
  --red: #cf142b;
  --blue: #00247d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(255, 204, 0, .16), transparent 50%),
    linear-gradient(180deg, #082016, #04140d);
}
.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; gap: 10px; color: inherit; text-decoration: none; align-items: center; }
.brand strong { display: block; font-family: "Playfair Display", serif; color: var(--gold); }
.brand small { display: block; letter-spacing: .22em; text-transform: uppercase; font-size: 10px; opacity: .55; }
.flag {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: linear-gradient(#ffcc00, #00247d, #cf142b);
}
nav { display: flex; gap: 14px; align-items: center; font-size: 14px; }
nav a { color: rgba(246,234,208,.75); text-decoration: none; }
nav a:hover { color: var(--gold); }
.coins { background: rgba(230,195,92,.15); color: var(--gold); padding: 6px 12px; border-radius: 999px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 10px 20px 60px; }
.btn, button.btn {
  border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer;
  background: var(--gold); color: var(--ink); text-decoration: none; display: inline-block;
}
h1 { font-family: "Playfair Display", serif; font-size: 48px; margin: 8px 0 12px; }
.panel { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 22px; }
.grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.2fr .8fr; } }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.choice button, .choice a {
  background: rgba(255,255,255,.1); color: var(--cream); border: 0; border-radius: 16px;
  padding: 12px 14px; cursor: pointer; text-decoration: none;
}
.choice button.active { background: var(--gold); color: var(--ink); }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.1); color: var(--cream); margin-bottom: 10px;
}
form button { width: 100%; }
.error { color: #ff8a97; }
.felt {
  background: radial-gradient(ellipse at center, #149056, #0b5a38 42%, #063221);
  border: 10px solid #5c3317;
  border-radius: 28px;
  min-height: 620px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0,0,0,.35);
}
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seat.top { left: 50%; top: 16px; transform: translateX(-50%); }
.seat.bottom { left: 50%; bottom: 16px; transform: translateX(-50%); width: 100%; }
.seat.left { left: 12px; top: 50%; transform: translateY(-50%); }
.seat.right { right: 12px; top: 50%; transform: translateY(-50%); }
.hand { display: flex; gap: 8px; justify-content: center; }
.card {
  position: relative;
  width: 74px; height: 114px; padding: 0; border: 0; background: transparent;
  cursor: default; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
}
.card img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px; }
.card.playable { cursor: pointer; }
.card.playable:hover { transform: translateY(-10px); }
.card .ribbon {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  background: #cf142b; color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; white-space: nowrap;
}
.center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.table-play { display: flex; gap: 8px; min-height: 120px; min-width: 220px; background: rgba(0,0,0,.2); border-radius: 16px; padding: 10px; justify-content: center; align-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.actions button { border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.gold { background: var(--gold); color: var(--ink); }
.green { background: #147a4d; color: #fff; }
.red { background: var(--red); color: #fff; }
.mute { background: rgba(255,255,255,.12); color: var(--cream); }
.score { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stones { display: flex; gap: 4px; flex-wrap: wrap; }
.stone { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.15); }
.stone.on { background: #ffcc00; }
.stone.good { background: var(--red); }
.log { font-size: 12px; line-height: 1.5; max-height: 160px; overflow: auto; opacity: .8; }
.banner { text-align: center; color: var(--gold); }
.name-tag { background: rgba(0,0,0,.4); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.cry { background: var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
