: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; }
.bar nav { margin-left: auto; }
.site-header .cart-toggle { flex-shrink: 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); }
.paywall-note {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold-line);
  padding: 2px 7px;
}

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; }


/* Merch */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.merch-card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.merch-media {
  position: relative;
  background: var(--paper-2);
  aspect-ratio: 1;
  overflow: hidden;
}
.merch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.merch-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.merch-type {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.merch-body h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.2;
}
.merch-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.merch-body > p:not(.merch-type):not(.merch-price):not(.merch-note) {
  flex: 1;
}
.merch-price {
  margin-top: 10px !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem !important;
  font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: 0.02em;
}
.merch-note {
  font-size: 0.82rem !important;
  color: var(--ink-soft);
  margin-top: 4px !important;
}
.merch-size-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.merch-size {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gold-line);
  padding: 6px 10px;
  min-width: 4.5rem;
}
.merch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.merch-actions .btn {
  flex: 1;
  text-align: center;
  min-width: 7rem;
  padding: 10px 12px;
}
.merch-footnote { margin-top: 36px; max-width: 40rem; }

/* Cart toggle in header */
.cart-toggle {
  appearance: none;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cart-toggle:hover { color: var(--gold-deep); border-color: var(--gold); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0;
}

/* Cart drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.35);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cart-backdrop.open { opacity: 1; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  z-index: 50;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-drawer-panel {
  height: 100%;
  background: var(--white);
  border-left: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--gold-line);
}
.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.5rem;
}
.cart-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}
.cart-close:hover { color: var(--ink); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}
.cart-empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 12px 0;
}
.cart-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-line);
}
.cart-line-info strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.cart-line-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.cart-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-qty-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-qty {
  width: 3.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: 1px solid var(--gold-line);
  background: var(--paper);
  padding: 5px 6px;
}
.cart-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-subtotal {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.cart-subtotal strong {
  color: var(--ink);
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.cart-checkout { width: 100%; text-align: center; }

body.cart-open,
body.modal-open { overflow: hidden; }

/* Coming-soon / not-for-sale modal */
.merch-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 26, 23, 0.45);
}
.merch-modal[hidden] { display: none !important; }
.merch-modal-panel {
  width: min(440px, 100%);
  background: var(--white);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}
.merch-modal-panel h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}
.merch-modal-panel > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.merch-notify {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-line);
}
.merch-notify-prompt {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}
.merch-notify-label {
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.merch-notify-label input {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
}
.merch-notify-error {
  margin: 0 0 10px;
  color: #9a3b28;
  font-size: 0.88rem;
}
.merch-notify-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.merch-notify-thanks {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-line);
}
.merch-notify-thanks-msg {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
}
.merch-modal-panel .btn { width: 100%; text-align: center; }

@media (max-width: 900px) {
  .hero-grid, .tour-layout, .play-layout, .gloss-grid, .feed-grid, .merch-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; }
  .cart-toggle { margin-left: auto; }
  .bar .nav-toggle { order: 2; }
  .bar .cart-toggle { order: 3; }
  .bar nav { order: 4; }

  .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; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
}
