:root {
  --paper: #f7f1e8;
  --paper-deep: #ede4d5;
  --surface: #fffaf2;
  --surface-pure: #ffffff;
  --ink: #231b14;
  --muted: #5c4e40;
  --rule: #d8cab6;
  --rule-strong: #bfa98e;
  --accent: #a83c1f;
  --accent-hover: #872e16;
  --accent-soft: #f5e2da;
  --emerald: #266b43;
  --emerald-soft: #e4f2ea;
  --gold: #8f5c04;
  --gold-soft: #faf0d7;
  --slate: #625a52;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(35, 27, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 27, 20, 0.08);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.embed-body {
  background: var(--surface);
  height: 100vh;
  overflow: auto;
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: 44px; letter-spacing: -0.025em; }
h2 { font-size: 28px; letter-spacing: -0.02em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
a { color: var(--accent); text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

/* Masthead */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mast-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-tiles {
  display: inline-flex;
  gap: 4px;
}
.bt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 36px;
  border-radius: 8px;
  font: 700 18px/1 var(--display);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 3px;
  box-shadow: var(--shadow-sm);
}
.bt-1 { background: var(--accent); border-color: var(--accent-hover); color: var(--surface); }
.bt-2 { background: var(--paper); border-color: var(--rule-strong); color: var(--ink); }
.bt sub {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font: 700 12px/1 var(--body);
  opacity: 0.85;
  transform: scale(0.75);
  transform-origin: bottom right;
}
.brand-text {
  font: 700 22px/1.1 var(--display);
  letter-spacing: -0.02em;
}
.mast-nav { display: flex; align-items: center; gap: 24px; }
.mast-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.mast-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Breadcrumbs */
.breadcrumbs { margin-top: 20px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--rule-strong);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Buttons & Badges */
.btn-primary, .btn-secondary, .btn-outline, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--surface-pure);
  border-bottom: 3px solid var(--accent-hover);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: 10px 22px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-secondary[data-gf-liked], .btn-secondary[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--accent-hover); background: var(--paper-deep); }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tile-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
}
.tile-badge-green { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald); }
.tile-badge-gold { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* Hero & Game Stage */
.hero-stage-section { margin-top: 24px; }
.hero-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.hero-title-group { min-width: 0; }
.hero-sub { margin-top: 4px; color: var(--muted); font-size: 16px; max-width: 62ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.stage {
  position: relative;
  height: 640px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.stage[data-gf-state="playing"], .stage:fullscreen { background: var(--surface); }

.game-cover, .game-loading {
  position: absolute;
  inset: 0;
}
.game-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
}
.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 36px 36px 48px;
}
.cover-heading {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 14px;
}
.cover-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
  margin-bottom: 24px;
}
.cover-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.cover-cta-row .preview-external-play { display: none; }
.is-signed-preview .cover-cta-row:has(.preview-external-play) [data-gf-play] { display: none; }
.is-signed-preview .cover-cta-row .preview-external-play { display: inline-flex; }
.cover-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.cover-specs strong { color: var(--ink); font-weight: 600; }

.cover-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--paper-deep);
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.cover-visual img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.game-loading {
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: var(--surface);
  color: var(--muted);
}
.loading-tiles {
  display: flex;
  gap: 8px;
}
.loading-tiles span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 3px;
  background: var(--paper);
  color: var(--ink);
  font: 700 22px/1 var(--display);
  animation: tileHop 1.35s ease-in-out infinite;
}
.loading-tiles span:nth-child(2) { animation-delay: 0.1s; }
.loading-tiles span:nth-child(3) { animation-delay: 0.2s; }
.loading-tiles span:nth-child(4) { animation-delay: 0.3s; }
.loading-tiles span:nth-child(5) { animation-delay: 0.4s; }
@keyframes tileHop {
  0%, 65%, 100% { transform: translateY(0); background: var(--paper); color: var(--ink); }
  28% { transform: translateY(-7px); background: var(--emerald); color: var(--surface-pure); border-color: var(--emerald); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-tiles span { animation: none; }
}
.loading-label { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Action Bar below stage */
.play-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.play-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.action-msg { font-size: 14px; color: var(--emerald); font-weight: 500; }
.action-msg:empty { display: none; }
.play-tools .action-msg { flex-basis: 100%; text-align: end; }

/* Game Hub & Cards */
.hub-section, .related-section { margin-top: 48px; }
.hub-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.text-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.filter-chip:hover { border-color: var(--accent); color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.game-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-bottom: 3px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card-thumb {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.card-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.card-time { color: var(--muted); font-weight: 500; }
.card-body h3, .card-body h2 {
  font-size: 19px;
  line-height: 1.25;
}
.card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Pillars 2x2 Section (varied layout) */
.pillars-section {
  margin-top: 56px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.pillars-section h2 { margin-bottom: 24px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}
.pillar-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
}
.pillar-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  font: 700 15px/1 var(--display);
  color: var(--accent);
}
.pillar-item h3 { font-size: 18px; }
.pillar-item p { font-size: 15px; color: var(--muted); }

/* Editorial Reading, FAQ & Comments */
.reading, .questions, .discussion {
  margin: 56px 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.65fr);
  gap: 24px 48px;
}
.section-aside p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 30ch; }
.reading-copy, .prose-block { max-width: 68ch; overflow-wrap: anywhere; }
.reading-copy h3, .prose-block h2 { margin: 28px 0 10px; }
.reading-copy h3:first-child, .prose-block h2:first-child { margin-top: 0; }
.reading-copy p + p, .prose-block p + p { margin-top: 14px; }
.reading-copy ul, .reading-copy ol, .prose-block ul, .prose-block ol {
  padding-inline-start: 22px;
  margin-top: 12px;
}
.reading-copy li + li, .prose-block li + li { margin-top: 8px; }
.reading-copy figure { margin: 24px 0; }
.reading-copy figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 4px;
  font-size: 16px;
}
.faq-list details p {
  max-width: 64ch;
  margin-bottom: 16px;
  padding-inline: 4px;
  color: var(--muted);
}

.count-pill {
  display: inline-block;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.discussion-content { min-width: 0; }
.comment-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.field-row { display: grid; gap: 6px; }
.comment-form label { font-size: 14px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--surface-pure);
  color: var(--ink);
}
.comment-form input { min-height: 44px; }
.comment-form textarea { resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reply-context { display: none; }
[data-gf-replying] .reply-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 14px;
}
.comment-list[data-gf-empty]::before {
  display: block;
  margin-top: 16px;
  content: "No notes yet — share your opening word or guess count to kick off the thread.";
  color: var(--muted);
  font-size: 14px;
}
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-head time { color: var(--muted); font-size: 13px; }
.owner-badge { color: var(--accent); font-size: 13px; font-weight: 700; }
.comment-body { margin: 8px 0; }
.comment-replies { margin-left: 24px; }

/* Index & Legal & 404 */
.index-page { padding: 24px 0 64px; }
.page-head { margin-bottom: 32px; }
.page-lead { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 64ch; }
.index-page .prose-block { margin-top: 36px; }
.legal-page { padding: 36px 0 64px; }
.legal-page h1 { margin-bottom: 24px; }
.not-found {
  padding: 72px 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}
.not-found p { color: var(--muted); max-width: 44ch; }

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 24px 0 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.footer-logo { font: 700 18px/1 var(--display); color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-copy { padding: 28px; }
}
@media (max-width: 760px) {
  .reading, .questions, .discussion {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pillars-grid { grid-template-columns: 1fr; }
  .game-cover { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .cover-visual { border-left: 0; border-top: 1px solid var(--rule); padding: 16px; }
  .cover-visual img { max-height: 210px; width: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .masthead-inner { min-height: 60px; flex-wrap: wrap; padding: 8px 0; }
  .mast-nav { gap: 14px; }
  .brand-text { font-size: 19px; }
  .stage { height: 610px; }
  .cover-copy { padding: 20px; }
  .cover-heading { font-size: 28px; }
  .cover-lead { font-size: 15px; margin-bottom: 16px; }
  .cover-cta-row { flex-direction: column; }
  .cover-cta-row > * { width: 100%; }
  .game-grid, .game-grid-4 { grid-template-columns: 1fr; }
  .pillars-section { padding: 20px; }
  .tool-actions { width: 100%; }
  .tool-actions > button { flex: 1 1 auto; padding-inline: 8px; }
  .play-tools .action-msg { text-align: start; }
  .comment-form .btn-primary { width: 100%; }
}
