:root {
  --felt-0: #2e7a46;
  --felt-1: #1b5c34;
  --felt-2: #0e3a22;
  --wood: #6b3f22;
  --wood-dark: #3e2716;
  --gold: #e0a526;
  --gold-deep: #8c6410;
  --ivory: #f6eedb;
  --ivory-2: #efe2c4;
  --ink: #1e1a16;
  --ink-soft: #3c342c;
  --line: rgba(224, 165, 38, 0.45);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", "Liberation Serif", Georgia, serif;
  --sans: "Segoe UI", "Source Sans 3", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--felt-2);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: var(--felt-2);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(246, 238, 219, 0.08), transparent 42%),
    radial-gradient(circle at 12% 18%, rgba(246, 238, 219, 0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 30%, rgba(246, 238, 219, 0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 72%, rgba(0, 0, 0, 0.15) 0 2px, transparent 3px),
    radial-gradient(ellipse at 50% 18%, var(--felt-0), var(--felt-1) 46%, var(--felt-2));
  background-repeat: no-repeat;
  background-attachment: scroll;
}

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

a:hover { color: var(--ivory); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--ivory);
  color: var(--ink);
  z-index: 5;
}

.table {
  width: min(880px, calc(100% - 20px));
  margin: 16px auto 28px;
  padding: 14px;
  border: 10px solid var(--wood);
  border-radius: 22px;
  overflow: visible;
  box-shadow:
    inset 0 0 0 3px var(--gold),
    inset 0 0 0 7px var(--wood-dark),
    var(--shadow);
  background-color: var(--felt-2);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(46, 122, 70, 0.28), transparent 220px);
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 12px;
}

.brand {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.langs a {
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.langs a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.hero { text-align: center; padding: 8px 8px 4px; }

.fan {
  position: relative;
  height: 168px;
  margin: 8px auto 4px;
  max-width: 320px;
}

.playing {
  position: absolute;
  top: 12px;
  width: 92px;
  height: 132px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--ivory), var(--ivory-2));
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
}

.playing .rank { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.playing .coin {
  width: 36px;
  height: 36px;
  margin-top: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3d78a, var(--gold) 45%, var(--gold-deep));
  box-shadow: inset 0 0 0 2px rgba(30, 26, 22, 0.25);
}
.playing .pip {
  margin-top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 10px 0 0 var(--ink), -10px 0 0 var(--ink);
}
.playing.left { left: 28px; transform: rotate(-14deg); }
.playing.mid { left: 114px; top: 0; z-index: 2; width: 104px; height: 148px; }
.playing.right { right: 28px; transform: rotate(14deg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

h1 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  color: var(--ivory);
}

.lead {
  margin: 12px auto 0;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--ivory);
}

.soon {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 22px auto 8px;
  max-width: 440px;
  text-align: left;
}

.actions a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--ivory);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.actions a span { color: var(--gold-deep); font-size: 0.85rem; font-weight: 700; }
.actions a strong { font-family: var(--serif); font-size: 1.08rem; }

.sheet {
  position: relative;
  z-index: 1;
  margin: 8px 4px 4px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.sheet a { color: #8a4b12; }
.sheet a:hover { color: var(--ink); }

.kicker {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet h1 { color: var(--ink); font-size: clamp(2rem, 7vw, 3rem); margin-top: 6px; }
.sheet h2 { margin: 1.6em 0 0.4em; font-size: 1.45rem; }
.sheet h3 { margin: 1.2em 0 0.3em; font-size: 1.15rem; }
.sheet p, .sheet li { color: var(--ink-soft); }
.sheet ul, .sheet ol { padding-left: 1.2rem; }
.sheet li + li { margin-top: 0.35rem; }

.updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.note {
  margin-top: 1rem;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(224, 165, 38, 0.15);
  border-radius: 0 10px 10px 0;
}

.en-block {
  margin-top: 2.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(30, 26, 22, 0.15);
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 12px 12px 8px;
  text-align: center;
  color: var(--ivory);
  font-size: 0.9rem;
  background-color: var(--felt-2);
  border-radius: 12px;
}

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

footer .colophon {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .table { width: calc(100% - 12px); padding: 10px; border-width: 8px; }
  .fan { height: 148px; max-width: 250px; }
  .playing { width: 74px; height: 108px; }
  .playing.left { left: 6px; }
  .playing.mid { left: 82px; width: 84px; height: 122px; }
  .playing.right { right: 6px; }
  h1 { font-size: 2.15rem; }
}

@media (min-width: 720px) {
  .table { margin-top: 28px; padding: 18px; }
  .actions { grid-template-columns: 1fr 1fr; max-width: 640px; }
}
