:root {
  --bg: #14110f;
  --card: #1f1a16;
  --line: #3a322b;
  --text: #f0e9df;
  --muted: #b3a796;
  --grass: #6cc24a;
  --gold: #f2c14e;
  --dia: #4fd1c5;
  --r: 10px;
  --head: "Pixelify Sans", Rubik, system-ui, sans-serif;
  --body: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #f6cf6e; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 8px; z-index: 10; }

.bar { border-bottom: 1px solid var(--line); background: #181411; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-block { width: 24px; height: 24px; display: inline-block; border-radius: 4px; background: linear-gradient(var(--grass) 0 30%, #7a5534 30% 100%); box-shadow: inset 0 0 0 2px #14110f; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--text); background: var(--card); }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; }
h1 { font-size: 48px; margin: 0; }
h2 { font-size: 28px; margin: 48px 0 16px; }
h3 { font-size: 22px; margin: 32px 0 12px; }
.lede { color: var(--muted); font-size: 18px; margin: 8px 0 0; max-width: 70ch; }
.crumb { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }

.stage-wrap { padding: 32px 0 16px; }
.stage-head { margin-bottom: 24px; }
.player { position: relative; width: 100%; height: clamp(600px, 78vh, 760px); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #0f0d0b; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-cover { position: absolute; inset: 0; display: grid; place-items: center; background: #0f0d0b; }
.cover-strata { position: absolute; inset: 0; display: flex; flex-direction: column; }
.cover-strata i { display: block; }
.cover-strata i:nth-child(1) { flex: 0 0 6%; background: var(--grass); }
.cover-strata i:nth-child(2) { flex: 0 0 12%; background: #7a5534; }
.cover-strata i:nth-child(3) { flex: 1; background: repeating-linear-gradient(0deg, #5f5f5f 0 24px, #565656 24px 48px); }
.cover-strata i:nth-child(4) { flex: 0 0 30%; background: repeating-linear-gradient(0deg, #34343b 0 24px, #2d2d33 24px 48px); }
.cover-box { position: relative; text-align: center; background: #14110f; border: 2px solid var(--line); border-radius: 14px; padding: 32px; max-width: 460px; margin: 16px; }
.cover-kick { margin: 0; color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.cover-line { margin: 8px 0 16px; font-family: var(--head); font-size: 28px; line-height: 1.2; }
.cover-pair { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.cover-pair span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.cover-pair b { color: var(--gold); }
.cover-btn { min-height: 56px; padding: 0 32px; border: 0; border-radius: 10px; background: var(--grass); color: var(--bg); font: 700 20px var(--body); cursor: pointer; }
.cover-btn:hover { background: #7fd65c; }
.cover-small { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.player-load { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 16px; background: #0f0d0b; color: var(--muted); }
.player[data-gf-state="loading"] .player-load { display: grid; }
.load-pick { width: 40px; height: 40px; border-radius: 6px; background: var(--gold); animation: dig 0.9s ease-in-out infinite; }
@keyframes dig { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(12px) rotate(25deg); } }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tool-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: 600 16px var(--body); cursor: pointer; }
.tool-btn:hover { border-color: var(--grass); }
.tool-btn[aria-pressed="true"], .tool-btn[data-gf-liked] { border-color: var(--grass); color: var(--grass); }
.tool-full { margin-left: auto; }
.tool-count, .tool-msg { color: var(--muted); font-size: 14px; }

.more-games { margin: 32px 0 0; }
.game-card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); }
.game-card:hover { border-color: var(--grass); color: var(--text); }
.game-card img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.game-card-txt { display: flex; flex-direction: column; gap: 4px; }
.game-card-txt strong { font-family: var(--head); font-size: 22px; }
.game-card-txt span { color: var(--muted); }

.page-head { padding: 48px 0 8px; }
.prose { max-width: 760px; }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 24px 0 8px; }
.prose em { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); font-weight: 600; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--grass); background: var(--card); border-radius: 0 8px 8px 0; }
.prose code { background: var(--card); padding: 2px 6px; border-radius: 4px; font-size: 15px; }
.legal h2 { font-size: 22px; margin-top: 32px; }

.faq { max-width: 760px; margin-top: 16px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin: 8px 0; }
.faq-item summary { cursor: pointer; padding: 16px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.vault { margin: 24px 0 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; max-width: 900px; }
.vault-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vault-top h2 { margin: 0; }
.vault-days { display: flex; gap: 8px; }
.vault-date { color: var(--muted); font-size: 14px; }
.vault-list { margin: 0; padding-left: 24px; }
.vault-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.vault-q { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.vault-a p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.vault-a strong { color: var(--text); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0; }
.cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 10px; background: var(--grass); color: var(--bg); font-weight: 700; text-decoration: none; }
.cta:hover { background: #7fd65c; color: var(--bg); }
.cta-alt { background: transparent; color: var(--text); border: 2px solid var(--line); }
.cta-alt:hover { background: var(--card); color: var(--text); }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--gold); font: 600 15px var(--body); cursor: pointer; text-decoration: underline; }

.talk { max-width: 760px; margin: 48px 0 64px; }
.talk-form { display: grid; gap: 8px; }
.talk-form input, .talk-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: 16px var(--body); }
.talk-form button { justify-self: start; }
.talk-replying { display: none; margin: 0; color: var(--muted); font-size: 14px; }
.talk-form[data-gf-replying] .talk-replying { display: block; }
.talk-msg { margin: 0; color: var(--muted); font-size: 14px; }
.talk-list { margin-top: 24px; }
.talk-list[data-gf-empty]::before { content: "No notes yet. Post your depth or the strangest answer the vault took."; color: var(--muted); }
.note { padding: 12px 0; border-top: 1px solid var(--line); }
.note[data-gf-owner] { border-left: 4px solid var(--gold); padding-left: 12px; }
.note-head { margin: 0; font-size: 15px; }
.note-own { display: none; color: var(--gold); font-size: 14px; }
.note[data-gf-owner] .note-own { display: inline; }
.note-time { color: var(--muted); font-size: 14px; }
.note-text { margin: 4px 0; }
.note-to { color: var(--gold); }
.note-replies { margin-left: 24px; }

.foot { border-top: 1px solid var(--line); background: #181411; margin-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 22px; margin: 0 0 8px; }
.foot-note { color: var(--muted); font-size: 14px; margin: 0; max-width: 60ch; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-base a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .player { height: 640px; border-radius: 10px; }
  .cover-box { padding: 24px 16px; }
  .cover-line { font-size: 22px; }
  .cover-btn { width: 100%; }
  .game-card { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .tool-full { margin-left: 0; }
  .nav a { padding: 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .load-pick { animation: none; } }
