/*
Theme Name: Party Game Book
Theme URI: https://partygamebook.com/
Description: Custom theme for Party Game Book — free party games to print or play.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: partygamebook
*/

/* ---------- fonts (self-hosted, latin subset) */
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: optional; src: url('assets/fonts/dm-mono-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/figtree-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/figtree-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/figtree-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/figtree-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: optional; src: url('assets/fonts/young-serif-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens */
:root {
	--paper: #fbf8fc;
	--paper-2: #f4eef6;
	--card: #ffffff;
	--ink: #2b2140;
	--ink-2: #4a4060;
	--muted: #6e6583;
	--line: #e7dfec;
	--line-2: #d9cfe0;
	--coral: #c93349;
	--coral-dk: #a8283d;
	--coral-lt: #fde9ec;
	--teal: #1c7f7a;
	--teal-dk: #135f5b;
	--teal-lt: #e1f2f0;
	--sun: #e9a62b;
	--sun-lt: #fcf1d9;
	--lilac: #8e7cc3;
	--lilac-lt: #efeaf8;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(43, 33, 64, .06), 0 10px 30px -12px rgba(43, 33, 64, .18);
	--shadow-lift: 0 2px 4px rgba(43, 33, 64, .08), 0 18px 40px -14px rgba(43, 33, 64, .28);
	--display: "Young Serif", Georgia, "Times New Roman", serif;
	--body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1200px;
	--read: 700px;
	--gutter: 20px;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dk); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: .15em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 2px dashed var(--line-2); margin: 44px 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.read { max-width: var(--read); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--card); padding: 10px 14px; width: auto; height: auto; clip: auto; }
.eyebrow { font: 500 .74rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
kbd { font: 500 .85em var(--mono); background: var(--paper-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font: 700 .98rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px -8px rgba(201, 51, 73, .7); }
.btn-primary:hover { background: var(--coral-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- the game-card motif: punched ticket edge + tear line */
.ticket { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--paper); }
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.tear { border: 0; border-top: 2px dashed var(--line-2); margin: 0; }

/* ---------- header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(251, 248, 252, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font: 400 1.35rem/1 var(--display); letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--coral); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-2); text-decoration: none; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 0 16px; font-size: .92rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn:hover { background: var(--coral-dk); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 46px; height: 46px; border-radius: 12px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.nav.open { display: flex; }
	.nav a { padding: 12px 12px; font-size: 1.05rem; }
	.nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- hero (home) */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero-confetti { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); margin: .2em 0 .35em; }
.hero h1 .swash { color: var(--coral); }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.promise-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-2); }
.promise-list li { margin: 0; display: flex; align-items: center; gap: 7px; }
.promise-list svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 30px; } .hero { padding-top: 34px; } }

/* hero game-card stack: bingo card in front, two question cards to its right (text never covered) */
.card-stack { position: relative; min-height: 440px; }
.card-stack .ticket { position: absolute; padding: 20px 22px; }
.card-stack .c3 { left: 0; top: 24px; width: 60%; transform: rotate(-2deg); z-index: 1; }
.card-stack .c1 { left: 62%; top: 0; width: 38%; transform: rotate(4deg); background: var(--sun-lt); z-index: 2; }
.card-stack .c2 { left: 61%; top: 214px; width: 39%; transform: rotate(-3deg); background: var(--teal-lt); z-index: 2; }
.card-stack .ticket::before, .card-stack .ticket::after { background: var(--paper); }
.mini-bingo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 12px; }
.mini-bingo span { aspect-ratio: 1; display: grid; place-items: center; text-align: center; font: 600 .6rem/1.15 var(--body); color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 2px; overflow: hidden; }
.mini-bingo .free { background: var(--coral); color: #fff; font: 400 .78rem var(--display); border-color: var(--coral); }
.mini-bingo .hit { background: var(--coral-lt); border-color: #f5b8c1; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ticket-head b { font: 400 1.15rem/1.15 var(--display); }
.ticket-meta { font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-stack .c1 p, .card-stack .c2 p { font: 400 1rem/1.35 var(--display); margin: 8px 0 0; }
.play-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: 700 .8rem var(--body); color: var(--teal-dk); }
.play-pill svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .card-stack { max-width: 560px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) { .card-stack { min-height: 0; } .card-stack .c1, .card-stack .c2 { display: none; } .card-stack .c3 { position: relative; top: 0; width: 100%; transform: none; } }

/* ---------- occasion picker */
.occasions { padding: 12px 0 8px; }
.occ-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 1000px) { .occ-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .occ-row { grid-template-columns: repeat(2, 1fr); } }
.occ { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.occ:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.occ-art { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; }
.occ-art svg { width: 100%; height: 100%; }
.occ b { font: 400 1.05rem/1.2 var(--display); }
.occ small { font-size: .82rem; color: var(--muted); margin-top: -6px; }

/* ---------- sections */
.band { padding: 60px 0; }
.band-alt { background: var(--paper-2); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.band-head h2 { margin: .15em 0 0; }
.band-head a { font-weight: 700; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-4 > .card:first-child { grid-column: span 2; }
.grid-4 .card-img { aspect-ratio: auto; height: 190px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .grid-4 > .card:first-child { grid-column: auto; } }

/* post card */
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.card-img { aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 100%; height: 100%; }
.card-body { position: relative; padding: 18px 20px 20px; border-top: 2px dashed var(--line); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body::before, .card-body::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.band-alt .card-body::before, .band-alt .card-body::after { background: var(--paper-2); }
.card-body::before { left: -10px; }
.card-body::after { right: -10px; }
.card-cat { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-dk); }
.card h3 { font-size: 1.22rem; margin: 0; line-height: 1.22; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tag { font: 600 .74rem var(--body); padding: 3px 9px; border-radius: 999px; background: var(--teal-lt); color: var(--teal-dk); }
.tag.print { background: var(--sun-lt); color: #8a5a00; }

/* ---------- how-it-works strip */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how div { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.how svg { width: 34px; height: 34px; color: var(--coral); margin-bottom: 10px; }
.how b { display: block; font: 400 1.15rem/1.25 var(--display); margin-bottom: 4px; }
.how p { font-size: .94rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* audience callouts */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud a { display: block; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.aud a:nth-child(1) { background: var(--lilac-lt); }
.aud a:nth-child(2) { background: var(--teal-lt); }
.aud a:nth-child(3) { background: var(--sun-lt); }
.aud b { font: 400 1.25rem var(--display); display: block; margin-bottom: 6px; }
.aud p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.aud span { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--coral-dk); }
@media (max-width: 820px) { .aud { grid-template-columns: 1fr; } }

/* ---------- archive / hub */
.hub-hero { padding: 40px 0 34px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.hub-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.hub-hero h1 { margin: .2em 0 .3em; }
.hub-intro { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.hub-intro p:last-child { margin: 0; }
.hub-art { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.hub-art svg, .hub-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hub-hero .wrap { grid-template-columns: 1fr; } .hub-art { display: none; } }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.subnav a { font: 600 .88rem var(--body); padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.subnav a:hover, .subnav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.start-here { margin: 36px 0 8px; }
.start-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.start-list li { margin: 0; counter-increment: s; }
.start-list a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.3; }
.start-list a::before { content: counter(s); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 400 1rem var(--display); background: var(--coral-lt); color: var(--coral-dk); }
.start-list a:hover { border-color: var(--coral); }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 44px 0 0; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- single */
.crumbs { font-size: .88rem; color: var(--muted); margin: 28px 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--coral-dk); }
.crumbs .aioseo-breadcrumbs { display: inline; }
.post-head { padding-bottom: 8px; }
.dek { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 15px; height: 15px; }
.post-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; max-width: 1140px; margin: 0 auto; padding-bottom: 8px; }
.post-top.no-img { grid-template-columns: minmax(0, 1fr); max-width: var(--read); }
.post-top h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.h1-sub { display: block; margin-top: .3em; font-family: var(--body); font-weight: 600; font-size: .42em; letter-spacing: .01em; color: var(--coral-dk); }
.jump-game { margin-top: 20px; }
.post-hero { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--paper-2); transform: rotate(1.2deg); }
@media (max-width: 900px) { .post-top { grid-template-columns: 1fr; gap: 22px; } .post-hero { transform: none; } }
.single .crumbs { max-width: 1140px; margin-inline: auto; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 260px; gap: 56px; justify-content: center; margin-top: 30px; }
.post-layout.no-toc { grid-template-columns: minmax(0, var(--read)); }
@media (max-width: 1080px) { .post-layout { grid-template-columns: minmax(0, var(--read)); } .toc-side { display: none; } }
.toc-side { position: relative; }
.toc { position: sticky; top: 96px; font-size: .92rem; }
.toc b { display: block; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--coral-dk); border-left-color: var(--coral); }
.toc-inline { margin: 0 0 28px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.toc-inline summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "+"; font: 400 1.4rem/1 var(--display); color: var(--coral); }
.toc-inline[open] summary::after { content: "–"; }
.toc-inline ol { margin: 0 0 14px; padding-left: 1.2em; font-size: .95rem; }
@media (min-width: 1081px) { .toc-inline { display: none; } }

.entry { font-size: 1.1rem; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { padding-top: 10px; }
.entry img { border-radius: 14px; }
.entry table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1.2em 0 1.6em; display: block; overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--sun); font-family: var(--display); font-size: 1.25rem; line-height: 1.45; }
.entry ol.steps { list-style: none; padding: 0; counter-reset: st; }
.entry ol.steps > li { counter-increment: st; position: relative; padding: 2px 0 12px 54px; margin: 0; }
.entry ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font: 400 1.1rem var(--display); }
.entry ul.qlist, .entry ol.qlist { padding-left: 0; list-style: none; counter-reset: q; }
.entry ol.qlist > li { counter-increment: q; }
.entry .qlist > li { padding: 10px 0 10px 44px; margin: 0; border-bottom: 1px dashed var(--line); position: relative; }
.entry .qlist > li::before { position: absolute; left: 0; top: 10px; font: 500 .82rem/1.9 var(--mono); color: var(--coral-dk); }
.entry ol.qlist > li::before { content: counter(q, decimal-leading-zero); }
.entry ul.qlist > li::before { content: "?"; font: 400 1.1rem/1.5 var(--display); width: 26px; text-align: center; }
.entry .answer { display: block; font-size: .95rem; color: var(--teal-dk); margin-top: 2px; }

/* quick answer */
.quick { position: relative; margin: 0 0 30px; padding: 22px 24px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--coral); }
.quick-label { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-dk); margin-bottom: 6px; display: block; }
.quick p:last-child { margin-bottom: 0; }

/* callouts */
.callout { display: flex; gap: 14px; margin: 1.4em 0; padding: 16px 18px; border-radius: 12px; font-size: 1rem; }
.callout svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout-tip { background: var(--teal-lt); } .callout-tip svg { color: var(--teal); }
.callout-note { background: var(--lilac-lt); } .callout-note svg { color: var(--lilac); }
.callout-warn { background: var(--sun-lt); } .callout-warn svg { color: #b37a00; }
.supplies { margin: 1.4em 0; padding: 18px 20px; border: 2px dashed var(--line-2); border-radius: 14px; }
.supplies b { font: 400 1.15rem var(--display); display: block; margin-bottom: 6px; }
.supplies ul { margin: 0; }

/* game embed (server-rendered shell; gm.js enhances it) */
.pgb-game { margin: 2em 0; }
.gm-shell { position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lift); overflow: hidden; }
.gm-shell-head { padding: 22px 24px 18px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, var(--coral-lt), var(--sun-lt)); }
.gm-shell-head h3 { margin: 0; font-size: 1.45rem; }
.gm-shell-head .ticket-meta { margin-top: 6px; }
.gm-shell-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gm-shell-body { padding: 20px 24px 24px; border-top: 2px dashed var(--line); position: relative; }
.gm-shell-body::before, .gm-shell-body::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.gm-shell-body::before { left: -11px; } .gm-shell-body::after { right: -11px; }
.gm-preview-list { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 28px; font-size: .98rem; }
.gm-preview-list li { break-inside: avoid; }
.gm-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 34px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 6px; font: 400 1.5rem var(--display); color: var(--coral); }
.faq details[open] summary::after { content: "–"; }

/* related + next */
.related { margin-top: 64px; }
.post-foot { margin: 38px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

/* ---------- page */
.page-head { padding: 34px 0 6px; }

/* ---------- search / 404 */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line-2); font: 500 1rem var(--body); background: var(--card); color: var(--ink); }
.search-form input:focus { border-color: var(--teal); outline: none; }
.lost { padding: 80px 0; text-align: left; }
.lost .big { font: 400 clamp(4rem, 14vw, 9rem)/1 var(--display); color: var(--coral); }

/* ---------- footer */
.site-footer { margin-top: 80px; background: var(--ink); color: #e8e2f0; padding: 54px 0 34px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid .foot-h { color: #fff; font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.foot-grid li + li { margin-top: 8px; }
.foot-brand p { font-size: .95rem; color: #c9c0d6; max-width: 34ch; margin-top: 12px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-name em { color: #ff9aa9; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, .2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #b5abc4; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .toc-side, .related, .gm-shell-actions { display: none !important; } body { background: #fff; } }
