:root {
  --ink: #1c1a17;
  --ink-soft: #4a4540;
  --paper: #f7f5f0;
  --paper-2: #efede6;
  --white: #fbfaf7;
  --gold: #b8955a;
  --gold-deep: #8d7040;
  --gold-line: rgba(184, 149, 90, 0.45);
  --charcoal: #2b2926;
  --felt: #1f4a38;
  --felt-deep: #163528;
  --wood: #6b3a22;
  --wood-light: #8b5340;
  --white-chk: #f7f1e4;
  --black-chk: #2a1b14;
  --shadow: 0 12px 40px rgba(28, 26, 23, 0.08);
  --radius: 2px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Libre Franklin", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, .logo, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 40; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 1.2rem;
  white-space: nowrap;
}
.pip {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 11px 0 0 var(--charcoal);
  margin-right: 12px; flex-shrink: 0;
}
nav { display: flex; flex-wrap: wrap; gap: 2px 0; align-items: center; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 11px;
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--gold-line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; color: var(--gold-deep); font-weight: 600; margin: 0 0 14px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 10px; }
.fine { color: var(--ink-soft); font-size: 0.9rem; }
.hero-aside {
  border-left: 1px solid var(--gold-line);
  padding: 8px 0 8px 28px;
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.35;
}

.band { padding: 56px 0; }
.band + .band { border-top: 1px solid var(--gold-line); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 8px; }
.section-lead { color: var(--ink-soft); max-width: 40rem; margin: 0 0 28px; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 0;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: inherit; text-decoration: none; display: inline-block;
}
.btn.primary { background: var(--charcoal); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold-line); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.panel {
  background: var(--white);
  padding: 22px;
  border: 1px solid var(--gold-line);
}
.tour-layout, .play-layout { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 28px; align-items: start; }
.step-kicker, .kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.68rem; color: var(--gold-deep); font-weight: 600; margin: 0;
}
.tour-nav { display: flex; gap: 10px; margin: 16px 0; }
.step-dots { display: flex; gap: 8px; list-style: none; padding: 0; }
.step-dots li button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: #d8d2c6; cursor: pointer;
}
.step-dots li button.on { background: var(--gold); }

.play-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.mode { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
select, input, textarea {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--gold-line); background: #fff; color: var(--ink);
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.status-card, .tip-card {
  background: var(--paper);
  padding: 16px 18px; margin-bottom: 14px;
  border: 1px solid var(--gold-line);
}
.big { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; margin: 6px 0 10px; }
.dice-row { display: flex; gap: 8px; min-height: 48px; }
.die {
  width: 44px; height: 44px;
  background: var(--white-chk); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
  border: 1px solid var(--gold-line);
}
.die.used { opacity: 0.35; }
.die.blackish { background: var(--black-chk); color: var(--paper); }

.roll-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.roll-chip {
  border: 1px solid var(--gold-line); background: #fff;
  padding: 8px 6px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.roll-chip:hover, .roll-chip.on { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.gloss-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gloss-grid article { background: var(--white); padding: 20px 22px; border: 1px solid var(--gold-line); }
.gloss-grid h3 { margin: 0 0 8px; color: var(--gold-deep); }

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--gold-line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feed-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
.feed-stack { display: flex; flex-direction: column; gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  padding: 20px 22px;
}
.card h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.card a { color: var(--ink); }
.card a:hover { color: var(--gold-deep); }
.thought { font-size: 1.05rem; color: var(--ink-soft); }

.cal-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 22px; }
.cal-toolbar label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dow, .day {
  min-height: 72px; padding: 8px; border: 1px solid var(--gold-line);
  background: var(--white); font-size: 0.82rem;
}
.dow { min-height: auto; background: transparent; border: 0; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.day.empty { background: transparent; border-color: transparent; }
.day .n { font-weight: 600; }
.day ul { margin: 6px 0 0; padding: 0; list-style: none; }
.day li { font-size: 0.72rem; line-height: 1.3; margin-bottom: 4px; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: 16px 0; border-bottom: 1px solid var(--gold-line); }
.muted { color: var(--ink-soft); }
.none-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; font-size: 0.92rem; color: var(--ink-soft); }

.thread-list { list-style: none; padding: 0; margin: 0; }
.thread-list li { border-bottom: 1px solid var(--gold-line); }
.thread-list button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 16px 0; cursor: pointer; font: inherit; color: inherit;
}
.reply { padding: 14px 0 14px 16px; border-left: 1px solid var(--gold-line); margin: 8px 0; }
.form-row { display: grid; gap: 10px; margin: 10px 0; }
.disclaimer { font-size: 0.8rem; color: var(--ink-soft); }

.score-big { font-family: "Cormorant Garamond", serif; font-size: 4rem; line-height: 1; margin: 0; }

.board-host { width: 100%; }
.bg-board {
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  border-radius: 4px;
  padding: 10px;
  user-select: none;
}
.bg-inner {
  background: var(--felt);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr 42px 1fr 46px;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  min-height: 360px;
}
.quad { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.quad.top { align-content: start; }
.quad.bot { align-content: end; }
.point { position: relative; min-height: 168px; cursor: default; }
.point .tri { position: absolute; inset: 0; clip-path: polygon(50% 100%, 0 0, 100% 0); }
.quad.bot .point .tri { clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.point.odd .tri { background: #e8c48a; }
.point.even .tri { background: #9a3b28; }
.point.legal { outline: 2px solid #f2d27a; outline-offset: -2px; cursor: pointer; }
.point.legal .tri { filter: brightness(1.18); }
.checkers {
  position: absolute; inset: 8px 18%;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none;
}
.quad.bot .checkers { flex-direction: column-reverse; }
.chk {
  width: min(34px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18), 0 2px 4px rgba(0,0,0,0.25);
  transition: transform 0.28s ease;
}
.chk.W { background: radial-gradient(circle at 35% 30%, #fff, var(--white-chk) 55%, #d9cbb0); }
.chk.B { background: radial-gradient(circle at 35% 30%, #5a4034, var(--black-chk) 60%); }
.chk.sel { transform: scale(1.12); box-shadow: 0 0 0 3px #f2d27a, 0 4px 8px rgba(0,0,0,0.3); }
.chk.nudge { animation: nudge 0.45s ease; }
@keyframes nudge { 50% { transform: translateY(-6px); } }

.bg-board .bar {
  background: linear-gradient(180deg, #5a2f1c, #3d1d12);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 10px 4px; color: #f3ead6; font-size: 0.7rem; font-weight: 700;
}
.tray {
  background: #4a2818;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 8px 4px; color: #f3ead6; font-size: 0.7rem;
}
.bg-board .stack { display: flex; flex-direction: column; gap: 2px; min-height: 40px; }
.bar.legal, .tray.legal { box-shadow: inset 0 0 0 2px #f2d27a; cursor: pointer; }
.pt-label {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 0.62rem; color: rgba(243,234,214,0.7); pointer-events: none;
}
.quad.top .pt-label { bottom: -2px; }
.quad.bot .pt-label { top: -2px; }

@media (max-width: 900px) {
  .hero-grid, .tour-layout, .play-layout, .gloss-grid, .feed-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--gold-line); padding: 22px 0 0; }
  .nav-toggle { display: inline-block; }
  nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  nav.open { display: flex; }
  .bar { flex-wrap: wrap; }
  .bg-inner { min-height: 300px; grid-template-columns: 1fr 28px 1fr 34px; }
  .point { min-height: 132px; }
  .roll-grid { grid-template-columns: repeat(4, 1fr); }
  .month-grid { overflow-x: auto; }
  .none-grid { grid-template-columns: 1fr 1fr; }
}
