:root {
  --paper: #f7f1e8;
  --card: #fffdf8;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --brick: #c2562f;
  --brick-dark: #a8461f;
  --gold: #e0a03a;
  --line: #e4d8c6;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 24, 0.06);
  --shadow-lg: 0 8px 24px rgba(43,33,24,.06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brick-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--card); }
.masthead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: 0.2px; }
.topnav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--brick); text-decoration: underline; }

/* hero */
.hero { padding-top: 48px; padding-bottom: 8px; }
.hero h1 { font-size: 40px; max-width: 22ch; margin: 0 0 16px; }
.hero-lede { font-size: 18px; max-width: 70ch; margin: 0 0 32px; color: var(--ink); }

/* game player */
.player { position: relative; height: 620px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.player-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background:
  radial-gradient(1200px 400px at 50% -10%, rgba(224,160,58,.14), transparent),
  var(--card); }
.cover-card { text-align: center; max-width: 480px; }
.cover-kicker { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 12px; }
.cover-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.25; margin: 0 0 20px; }
.cover-tiers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 24px; font-size: 13px; }
.cover-tiers li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: #fffdf8; color: var(--muted); }
.cover-tiers li span { color: var(--brick); font-weight: 600; }
.cover-tiers li.is-unicorn { border-color: var(--gold); color: #9a6b1a; }
.cover-play { font: inherit; font-weight: 600; font-size: 18px; background: var(--brick); color: #fff; border: 0; border-radius: 10px; padding: 14px 28px; cursor: pointer; box-shadow: var(--shadow-sm); }
.cover-play:hover { background: var(--brick-dark); }
.cover-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.player-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--card); }
.loading-card { font-size: 15px; color: var(--muted); }
.loading-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 8px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.player-full { position: absolute; top: 10px; right: 10px; z-index: 3; border: 1px solid var(--line); background: rgba(255,253,248,.8); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 14px; color: var(--muted); }
.player-full:hover { color: var(--brick); }

/* engagement row */
.engage-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.btn-like, .btn-share { font: inherit; font-size: 14px; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.btn-like { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-like[data-gf-liked] { border-color: var(--brick); color: var(--brick); font-weight: 600; }
.btn-share { background: none; border: 1px solid var(--line); color: var(--muted); }
.btn-share:hover { color: var(--brick); }
.like-count { font-size: 14px; color: var(--muted); }

/* sections */
.sect { padding: 48px 0; }
.sect h2 { font-size: 28px; margin: 0 0 16px; }
.direct { max-width: 70ch; margin: 0 0 20px; }
.steps { max-width: 70ch; padding-left: 24px; margin: 0; }
.steps li { margin-bottom: 12px; }
.tips { max-width: 70ch; padding-left: 22px; margin: 0 0 16px; }
.tips li { margin-bottom: 10px; }
.more-link { font-size: 15px; }

/* tier table */
.tier-table { max-width: 720px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.tier-row { display: grid; grid-template-columns: 130px 1fr 70px; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.tier-row:last-child { border-bottom: 0; }
.tier-name { font-family: var(--font-head); font-weight: 700; }
.tier-desc { color: var(--muted); font-size: 14px; }
.tier-pts { text-align: right; font-weight: 600; color: var(--brick); }
.tier-row.is-unicorn { background: rgba(224,160,58,.14); }
.tier-row.is-unicorn .tier-name { color: #9a6b1a; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color 0.15s, transform 0.15s; }
.pack-card:hover { border-color: var(--brick); transform: translateY(-2px); color: var(--ink); }
.pack-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.pack-note { font-size: 14px; color: var(--muted); }

/* faq */
.faq { max-width: 720px; margin: 0; }
.faq dt { font-weight: 600; font-size: 16px; margin-top: 18px; font-family: var(--font-head); }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* comments */
.comments-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px 18px; max-width: 720px; }
.comments-box[data-gf-empty]::after { content: "No comments yet — be the first voice in the vault."; color: var(--muted); font-size: 14px; }
.comment { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.comment:last-child { border-bottom: 0; }
.comment-name { font-size: 14px; font-weight: 600; margin: 0; }
.comment-time { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 8px; }
.comment-text { font-size: 15px; margin: 4px 0 8px; }
.comment-reply { font-size: 13px; border: 0; background: none; color: var(--brick); cursor: pointer; padding: 0; text-decoration: underline; }
.replies { margin-left: 18px; }
.comment-form { display: grid; gap: 10px; max-width: 720px; margin-top: 16px; }
.comment-form input, .comment-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; color: var(--ink); }
.comment-form textarea { min-height: 90px; resize: vertical; }
.comment-form button { justify-self: start; font: inherit; font-weight: 600; background: var(--brick); color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; cursor: pointer; }
.comment-msg { font-size: 13px; color: var(--muted); margin: 0; }

/* embed shell (game iframe body) */
.embed-shell { background: var(--paper); min-height: 100vh; display: flex; align-items: flex-start; padding: 12px; }

/* prose pages */
.prose { padding: 48px 0 64px; }
.prose-narrow .wrap { }
.prose h1 { font-size: 36px; margin: 0 0 16px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { max-width: 70ch; }
.page-desc { font-size: 18px; color: var(--muted); max-width: 70ch; margin-top: 0; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.nf-code { font-family: var(--font-head); font-size: 64px; font-weight: 700; color: var(--gold); margin: 0; }
.nf-line { font-size: 18px; color: var(--muted); }
.nf-actions a { font-weight: 600; }

/* footer */
.colophon { border-top: 1px solid var(--line); background: var(--card); margin-top: 48px; }
.colophon .wrap { padding-top: 24px; padding-bottom: 24px; }
.colophon-note { font-size: 13px; color: var(--muted); max-width: 72ch; margin: 0 0 12px; }
.footnav { display: flex; gap: 18px; font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.footnav a { color: var(--ink); }
.colophon-copy { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .sect h2 { font-size: 22px; }
  .player { height: 560px; }
  .packs { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 96px 1fr 54px; gap: 10px; padding: 10px 12px; }
  .wrap { padding: 0 16px; }
  .sect { padding: 32px 0; }
  .cover-title { font-size: 22px; }
}

/* --- visual scene pass: paper table, stacked cards, ink seal, pack badges --- */
body {
  background-image:
    repeating-linear-gradient(0deg, rgba(43, 33, 24, 0.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(43, 33, 24, 0.014) 0 1px, transparent 1px 3px);
}
.sect { border-top: 1px dashed var(--line); }
.hero + .sect { border-top: 0; }
.cover-card {
  position: relative;
  z-index: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.cover-card::before,
.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
}
.cover-card::before { transform: rotate(-3deg) translate(-14px, 8px); }
.cover-card::after { transform: rotate(2.5deg) translate(12px, 10px); }
.cover-seal {
  position: absolute;
  top: -26px;
  right: -22px;
  width: 86px;
  height: 86px;
  border: 3px solid var(--gold);
  color: #9a6b1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transform: rotate(12deg);
  background: rgba(224, 160, 58, 0.14);
  box-shadow: var(--shadow-sm);
}
.cover-tiers li { border-style: dashed; }
.cover-tiers li.is-unicorn { border-style: solid; }
.pack-card { position: relative; padding-right: 56px; }
.pack-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gold);
  opacity: 0.9;
}
.pack-card[href="/pokemon"]::after {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #e0a03a 0 45%, #c2562f 46% 100%);
}
.pack-card[href="/minecraft"]::after {
  border-radius: 4px;
  background: linear-gradient(135deg, #2f7d4f 0 50%, #1d2a1f 50% 100%);
}
.pack-card[href="/roblox"]::after {
  transform: rotate(12deg);
  border-radius: 6px;
  background: #c2562f;
}
.shot { max-width: 720px; margin: 24px 0 4px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tier-row.is-unicorn { box-shadow: inset 4px 0 0 var(--gold); }
@media (max-width: 640px) {
  .cover-card { padding: 28px 20px; }
  .cover-seal { width: 70px; height: 70px; font-size: 12px; top: -18px; right: -10px; }
}
