/*
Theme Name: The Glow of the Game
Theme URI: https://example.com/
Description: A neon, blacklight-glow theme for The Glow of the Game books by Gordon Stevenson. Includes a Books section, an Order page that takes Shopify Buy Buttons, a "tell me when it's out" sign-up for books not yet on sale, and a contact form. Pages are set up automatically when the theme is activated.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glow-of-the-game
Tags: dark, one-column, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ---------- Fonts (bundled, SIL Open Font Licence) ---------- */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("assets/fonts/plex-sans.woff") format("woff"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("assets/fonts/plex-sans-italic.woff") format("woff"); font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "VT323"; src: url("assets/fonts/vt323.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--bg: #0a0612;
	--bg-2: #100a1b;
	--panel: #160e25;
	--line: #2e2147;
	--ink: #f5effc;
	--ink-2: #c9bedb;
	--muted: #9488a8;
	--vfd: #3cf7d4;
	--vfd-dim: #1b6d63;
	--neon: #ff2bd6;
	--neon-2: #b44dff;
	--uv: #7b3dff;
	--amber: #ffb43a;
	--orange: #ff7a1a;
	--amber-ink: #1d1404;
	--led: #ff3b5c;
	--glow: 0 0 6px rgba(60, 247, 212, .7), 0 0 22px rgba(60, 247, 212, .3);
	--glow-amber: 0 0 6px rgba(255, 180, 58, .7), 0 0 20px rgba(255, 180, 58, .3);
	--glow-neon: 0 0 8px rgba(255, 43, 214, .75), 0 0 26px rgba(255, 43, 214, .35);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Plex", "Helvetica Neue", Arial, sans-serif;
	--pixel: "VT323", "Courier New", monospace;
	--wrap: 1200px;
	--radius: 8px;
	--gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--vfd); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-shadow: var(--glow); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1.1em; }
::selection { background: var(--vfd); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; z-index: 1000; top: 8px; left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
	font-family: var(--pixel);
	font-size: 1.35rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vfd);
	text-shadow: var(--glow);
	margin: 0 0 .6em;
	display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.glow { color: var(--vfd); text-shadow: var(--glow); }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
	padding: 15px 24px; border-radius: var(--radius);
	background: var(--amber); color: var(--amber-ink); border: 1px solid var(--amber);
	text-decoration: none; cursor: pointer; transition: box-shadow .2s, transform .2s, background .2s;
}
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { box-shadow: var(--glow-amber); text-shadow: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--vfd); color: var(--vfd); box-shadow: var(--glow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,13,16,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-shadow: none; }
.brand img { max-height: 44px; width: auto; }
.brand__mark { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--vfd-dim); display: grid; place-items: center; font-family: var(--pixel); font-size: 1.4rem; color: var(--vfd); text-shadow: var(--glow); background: #0d1513; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand__name em { font-style: italic; color: var(--vfd); text-shadow: var(--glow); font-weight: 500; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 9px 12px; font: 600 .95rem var(--sans); cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.primary-nav a { display: block; padding: 9px 13px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; border-radius: var(--radius); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--ink); text-shadow: none; background: var(--panel); }
.primary-nav .menu-order > a { background: var(--amber); color: var(--amber-ink); margin-left: 6px; }
.primary-nav .menu-order > a:hover { box-shadow: var(--glow-amber); background: var(--amber); color: var(--amber-ink); }
.primary-nav .sub-menu { display: none; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; gap: 2px; }
	.primary-nav a { padding: 13px 10px; font-size: 1.05rem; }
	.primary-nav .menu-order > a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--line); }
.hero::before { /* LED dot-matrix */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(circle, rgba(94,242,207,.13) 1.2px, transparent 1.6px);
	background-size: 18px 18px;
	mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .glow-word { font-style: italic; font-weight: 500; color: var(--vfd); text-shadow: var(--glow); }
.hero .lede { margin-bottom: 1.8em; }
.hero__note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

.display {
	position: relative; border-radius: 14px; padding: 18px;
	background: linear-gradient(160deg, #2a2f35, #15191d 60%);
	border: 1px solid #3a434b;
	box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07);
}
.display__screen {
	border-radius: 8px; background: #050807; border: 1px solid #000;
	box-shadow: inset 0 0 40px rgba(0,0,0,.9);
	padding: 22px 20px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
	font-family: var(--pixel); color: var(--vfd); text-shadow: var(--glow); overflow: hidden;
}
.display__row { display: flex; justify-content: space-between; font-size: 1.3rem; letter-spacing: .06em; opacity: .9; }
.display__big { font-size: clamp(4.5rem, 11vw, 7.5rem); line-height: .9; letter-spacing: .04em; }
.display__big .ghost { color: var(--vfd-dim); text-shadow: none; opacity: .35; }
.display__name { font-size: 1.7rem; letter-spacing: .05em; min-height: 1.2em; }
.display__controls { display: flex; justify-content: space-between; align-items: center; padding: 16px 6px 2px; }
.display__btn { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a6e, var(--led) 55%, #8f1d14); box-shadow: 0 4px 0 #5a120c, 0 0 14px rgba(255,74,61,.4); }
.display__btn--y { background: radial-gradient(circle at 35% 30%, #ffd58a, var(--amber) 55%, #8a5a0a); box-shadow: 0 4px 0 #5a3a05, 0 0 14px rgba(255,180,58,.35); }
.display__label { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #8b949b; }
@media (prefers-reduced-motion: no-preference) {
	.display__screen.is-live .display__big .num { animation: flick 6s infinite; }
}
@keyframes flick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .55; } 98% { opacity: 1; } 99% { opacity: .7; } }

@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.display { max-width: 460px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.stat { background: var(--bg); padding: 28px 26px; }
.stat__num { font-family: var(--pixel); font-size: 3.2rem; line-height: 1; color: var(--amber); text-shadow: var(--glow-amber); margin-bottom: 10px; }
.stat__label { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Entry tiles (From the book) ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tile:hover { border-color: var(--vfd-dim); transform: translateY(-2px); text-shadow: none; box-shadow: 0 18px 40px -24px rgba(94,242,207,.35); }
.tile__media { aspect-ratio: 4 / 3; background: #060908; position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media--pixel { background-image: radial-gradient(circle, rgba(94,242,207,.10) 1px, transparent 1.4px); background-size: 12px 12px; background-color: #060908; }
.tile__num { font-family: var(--pixel); font-size: 5rem; line-height: 1; color: var(--vfd); text-shadow: var(--glow); letter-spacing: .05em; }
.tile__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile__meta { font-family: var(--pixel); font-size: 1.15rem; color: var(--amber); letter-spacing: .06em; text-transform: uppercase; }
.tile__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin: 0; }
.tile__excerpt { color: var(--ink-2); font-size: .96rem; margin: 4px 0 0; }

/* ---------- Book cards ---------- */
.books { display: grid; gap: 28px; }
.book { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 34px); align-items: start; }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } .book__cover { max-width: 240px; } }
.book__cover { display: block; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 18px; background: linear-gradient(170deg, #12201d, #070a09 70%); border-left: 6px solid #050706; }
.cover-placeholder__vol { font-family: var(--pixel); color: var(--amber); text-shadow: var(--glow-amber); font-size: 1.3rem; letter-spacing: .08em; }
.cover-placeholder__title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; color: var(--ink); font-weight: 600; }
.cover-placeholder__title em { display: block; color: var(--vfd); text-shadow: var(--glow); font-weight: 500; }
.cover-placeholder__foot { font-family: var(--pixel); color: var(--vfd); opacity: .8; font-size: 1.1rem; }
.book__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.book__title a { color: var(--ink); text-decoration: none; }
.book__subtitle { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.15rem; margin-bottom: 1em; }
.book__desc { color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0; }
.specs div { background: var(--bg-2); padding: 12px 14px; }
.specs dt { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.specs dd { margin: 0; font-weight: 500; }

.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px 3px; border-radius: 99px; border: 1px solid var(--line); margin-bottom: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status--soon { color: var(--amber); } .status--soon::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.status--available { color: var(--vfd); } .status--available::before { background: var(--vfd); box-shadow: 0 0 8px var(--vfd); }
.status--preorder { color: var(--led); } .status--preorder::before { background: var(--led); box-shadow: 0 0 8px var(--led); }

/* ---------- Buy box ---------- */
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.buybox__price { font-family: var(--pixel); font-size: 2.6rem; line-height: 1; color: var(--amber); text-shadow: var(--glow-amber); margin-bottom: 12px; }
.buybox__note { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.buybox .gotg-shopify { min-height: 54px; }
.buybox__other { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 720px) { .form--inline { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form textarea, .form select {
	width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--line);
	background: #0a0e11; color: var(--ink); font: 400 1rem var(--sans);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--vfd); box-shadow: 0 0 0 3px rgba(94,242,207,.15); }
.form .hp { position: absolute; left: -9999px; }
.form__small { font-size: .85rem; color: var(--muted); margin: 0; }
.notice { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; border: 1px solid; }
.notice--ok { border-color: var(--vfd-dim); background: rgba(94,242,207,.07); color: var(--vfd); }
.notice--err { border-color: #6a2620; background: rgba(255,74,61,.08); color: #ff9a90; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #10201c, #0b0d10 70%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Author ---------- */
.author { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.author__photo { width: 220px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.author__initials { width: 220px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-family: var(--pixel); font-size: 4rem; color: var(--vfd); text-shadow: var(--glow); }
@media (max-width: 720px) { .author { grid-template-columns: 1fr; } .author__photo, .author__initials { width: 160px; } }

/* ---------- Page / post content ---------- */
.page-hero { padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 5vw, 50px); border-bottom: 1px solid var(--line); background-image: radial-gradient(circle, rgba(94,242,207,.08) 1px, transparent 1.4px); background-size: 18px 18px; }
.page-hero h1 { margin: 0; }
.page-hero .lede { margin: .6em 0 0; }
.content { padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 100px); }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--vfd); font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--vfd); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-element-caption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content .gotg-wide { max-width: var(--wrap); }
.post-meta { font-family: var(--pixel); font-size: 1.25rem; color: var(--amber); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.pagination .current { border-color: var(--vfd); color: var(--vfd); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-family: var(--pixel); font-weight: 400; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vfd); text-shadow: var(--glow); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--vfd); }
.site-footer__base { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Block editor bits ---------- */
.has-text-align-center { text-align: center; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.sticky, .gallery-caption, .bypostauthor { }
.wp-block-separator { border-color: var(--line); }

/* Fixes */
a.book__cover, a.book__cover * { text-decoration: none; }
a.book__cover:hover { text-shadow: none; }
.book__body .status { margin-right: 10px; }
.book__body .eyebrow { margin-bottom: .2em; vertical-align: middle; }
.book__body .status + .eyebrow + .book__title, .book__body .status + .book__title { margin-top: .4em; }


/* =========================================================
   v2: neon blacklight
   ========================================================= */
body { background: var(--bg); }
.btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	background: linear-gradient(135deg, var(--neon), var(--neon-2));
	color: #fff; border: 0;
	box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 6px 24px -6px rgba(255,43,214,.6);
}
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { box-shadow: var(--glow-neon); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--vfd); color: var(--vfd); box-shadow: var(--glow); }
a { color: var(--vfd); }
.eyebrow::before { background: var(--neon); box-shadow: 0 0 10px var(--neon); }

.site-header { background: rgba(10,6,18,.86); border-bottom: 1px solid rgba(255,43,214,.55); box-shadow: 0 1px 18px rgba(255,43,214,.28); }
.brand__mark { border-color: rgba(255,43,214,.6); color: var(--neon); text-shadow: var(--glow-neon); background: #1a0b1f; }
.brand__name em { color: var(--neon); text-shadow: var(--glow-neon); }
.primary-nav .menu-order > a, .primary-nav .menu-order > a:hover { background: linear-gradient(135deg, var(--neon), var(--neon-2)); color: #fff; box-shadow: 0 0 18px rgba(255,43,214,.45); }

/* Hero */
.hero { border-bottom: 0; padding-bottom: clamp(50px, 7vw, 90px); }
.hero::before { background-image: radial-gradient(circle, rgba(255,43,214,.16) 1.2px, transparent 1.6px); }
.hero__neon { position: absolute; inset: -10% -5%; pointer-events: none; filter: blur(30px); opacity: .9;
	background:
		radial-gradient(38% 45% at 78% 35%, rgba(255,43,214,.42), transparent 70%),
		radial-gradient(30% 40% at 62% 85%, rgba(123,61,255,.45), transparent 70%),
		radial-gradient(22% 30% at 96% 72%, rgba(60,247,212,.28), transparent 70%),
		radial-gradient(30% 40% at 8% 105%, rgba(255,122,26,.22), transparent 70%);
}
.hero h1 .glow-word { color: var(--neon); text-shadow: var(--glow-neon); }
.hero__note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-2); }
.hero__books { position: relative; min-height: 470px; display: flex; justify-content: center; align-items: center; }
.hero__cover { position: absolute; width: min(300px, 48%); aspect-ratio: 2 / 2.83; border-radius: 4px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__cover--1 { left: 6%; top: 20px; transform: rotate(-7deg); box-shadow: 0 30px 60px -20px #000, 0 0 40px rgba(255,43,214,.45); z-index: 1; }
.hero__cover--2 { right: 6%; top: 60px; transform: rotate(6deg); box-shadow: 0 30px 60px -20px #000, 0 0 40px rgba(123,61,255,.55); z-index: 2; }
.hero__cover:hover { transform: rotate(0) translateY(-6px) scale(1.03); z-index: 3; box-shadow: 0 30px 60px -20px #000, var(--glow-neon); text-shadow: none; }
@media (max-width: 860px) { .hero__books { min-height: 380px; } .hero__cover { width: 46%; } }
@media (max-width: 480px) { .hero__books { min-height: 300px; } }

/* Retro stripe from the covers */
.stripe { height: 16px; background: linear-gradient(to bottom, var(--bg) 0 2px, #e8411f 2px 5px, var(--bg) 5px 7px, var(--orange) 7px 10px, var(--bg) 10px 12px, #ffc21a 12px 15px, var(--bg) 15px); }

/* Stats */
.stat__num { color: var(--neon); text-shadow: var(--glow-neon); }

/* Save badge */
.save-badge { display: inline-flex; align-items: center; font: 600 .82rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--neon), var(--neon-2)); padding: 5px 11px; border-radius: 99px; box-shadow: 0 0 14px rgba(255,43,214,.5); margin: 0 8px 14px 0; vertical-align: middle; }
.hero__note .save-badge { margin: 0; }

/* Books */
.book { background: var(--panel); border-color: var(--line); }
.book__cover { aspect-ratio: 2 / 2.83; }
.book--bundle { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--neon), var(--uv) 50%, var(--vfd)) border-box; box-shadow: 0 0 40px -10px rgba(255,43,214,.45); }
.book__cover--pair { position: relative; aspect-ratio: 1 / 1; overflow: visible; box-shadow: none; }
.book__cover--pair img { position: absolute; width: 68%; height: auto; aspect-ratio: 2 / 2.83; object-fit: cover; border-radius: 3px; box-shadow: 0 20px 40px -14px #000, 0 0 24px rgba(255,43,214,.35); }
.book__cover--pair img:first-child { left: 0; top: 0; transform: rotate(-5deg); }
.book__cover--pair img:last-child { right: 0; bottom: 0; transform: rotate(4deg); }
.book--page { background: none; border: 0; padding: 0; grid-template-columns: minmax(240px, 380px) 1fr; }
.book--page.book--bundle { box-shadow: none; }
.book-hero { padding-bottom: 20px; }
.buybox { background: rgba(10,6,18,.7); border-color: var(--line); }
.buybox__price s { color: var(--muted); font-size: .6em; text-shadow: none; margin-left: 6px; }
.status { background: rgba(10,6,18,.5); }

.bundle-band { margin-top: 28px; display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 12px; border: 1px solid transparent; background: linear-gradient(120deg, #1d0d2a, #120a1f) padding-box, linear-gradient(135deg, var(--neon), var(--uv) 50%, var(--vfd)) border-box; box-shadow: 0 0 50px -12px rgba(255,43,214,.5); }
.bundle-band h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 10px; }
.bundle-band p { color: var(--ink-2); }
@media (max-width: 760px) { .bundle-band { grid-template-columns: 1fr; } .bundle-band__covers { max-width: 260px; } }

/* Spreads */
.spreads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.entry-content .spreads, .entry-content .games, .entry-content .tiles, .entry-content .author--page { max-width: var(--wrap); }
@media (max-width: 760px) { .spreads { grid-template-columns: 1fr; } }
.spread { margin: 0; }
.spread a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px #000; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; }
.spread a::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 40px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0,0,0,.28), transparent); pointer-events: none; }
.spread a:hover { border-color: var(--neon); box-shadow: var(--glow-neon); transform: translateY(-2px); }
.spread img { display: block; width: 100%; height: auto; }
.spread figcaption { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.spread__vol { font-family: var(--pixel); color: var(--vfd); text-shadow: var(--glow); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; margin-right: 6px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5,2,10,.92); }
.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; box-shadow: var(--glow-neon); }
.lightbox__cap { color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.lightbox__close { position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--neon); color: #fff; font-size: 18px; cursor: pointer; box-shadow: var(--glow-neon); }

/* Tiles with photos (book pages are A4 portrait) */
.tile { background: var(--panel); border-color: var(--line); }
.tile:hover { border-color: var(--neon); box-shadow: 0 18px 40px -20px rgba(255,43,214,.55); }
.tile--photo .tile__media { aspect-ratio: 210 / 230; background: #000; }
.tile--photo .tile__media img { object-position: top center; }
.tile__vol { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--neon); }
.tile__meta { color: var(--vfd); text-shadow: none; }

/* Entry page laid out like a spread */
.entry-spread { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.entry-spread--text { grid-template-columns: 1fr; max-width: 820px; }
.entry-spread__photo { margin: 0; position: sticky; top: 96px; }
.entry-spread__photo a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -24px #000, 0 0 40px -10px rgba(255,43,214,.45); }
.entry-spread__photo img { display: block; width: 100%; height: auto; }
.entry-spread__text h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.entry-spread__text .entry-content > * { max-width: 68ch; }
.entry-spread .post-meta { color: var(--vfd); }
@media (max-width: 860px) { .entry-spread { grid-template-columns: 1fr; } .entry-spread__photo { position: static; max-width: 460px; } }

/* Game lists */
.games__search { position: sticky; top: 72px; z-index: 5; background: rgba(10,6,18,.92); backdrop-filter: blur(6px); padding: 14px 0; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; border-bottom: 1px solid var(--line); }
.games__search label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.games__search input { flex: 1 1 260px; max-width: 420px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #0c0716; color: var(--ink); font: 400 1rem var(--sans); }
.games__search input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255,43,214,.18); }
.games__count { margin: 0; color: var(--muted); font-size: .9rem; }
.games__vol + .games__vol { margin-top: 50px; }
.games__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 18px; }
.games__title .eyebrow { margin: 0; font-size: 1.4rem; }
.games__title small { font: 500 .95rem var(--sans); color: var(--muted); }
.games__cols { columns: 3 280px; column-gap: 36px; }
.games__group { break-inside: avoid; margin-bottom: 26px; }
.games__group h3 { font-family: var(--pixel); font-weight: 400; font-size: 1.9rem; color: var(--neon); text-shadow: var(--glow-neon); margin: 0 0 6px; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.games__group h3 small { font: 500 .85rem var(--sans); color: var(--muted); text-shadow: none; letter-spacing: 0; }
.games__group ul { list-style: none; margin: 0; padding: 0; }
.games__group li { padding: 5px 0; border-bottom: 1px dashed rgba(46,33,71,.8); display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.games__name { font-weight: 600; }
.games__maker { color: var(--muted); font-size: .9rem; text-align: right; }
.games__group li.is-hidden, .games__group.is-hidden, .games__vol.is-hidden { display: none; }

/* Wall of names on the home page */
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .wall { grid-template-columns: 1fr; } }
.wall h3 { font-size: 1.3rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.wall h3 .eyebrow { margin: 0; }
.wall p { max-height: 250px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); line-height: 2; margin: 0; }
.wall span { color: var(--ink-2); margin-right: 4px; white-space: nowrap; }
.wall span::after { content: " ·"; color: var(--neon); }
.wall span:nth-child(7n+1) { color: var(--vfd); text-shadow: var(--glow); }
.wall span:nth-child(11n+4) { color: var(--neon); text-shadow: var(--glow-neon); }

/* Author */
.author { grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px); }
.author__photo { width: 300px; aspect-ratio: 3 / 4; border-radius: 10px; object-fit: cover; object-position: 50% 45%; border: 2px solid var(--neon); box-shadow: var(--glow-neon), 0 0 60px -10px rgba(123,61,255,.6); }
@media (max-width: 720px) { .author { grid-template-columns: 1fr; } .author__photo { width: 220px; } }
.author--page { margin-bottom: 30px; }
.author--page h2 { margin-top: 0; }

/* Bands and page heads */
.cta-band { background: linear-gradient(120deg, #2a0b31, #0a0612 60%, #0f1530); }
.page-hero { background-image: radial-gradient(circle, rgba(255,43,214,.10) 1px, transparent 1.4px); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--neon), var(--uv), var(--vfd), transparent); box-shadow: 0 0 14px rgba(255,43,214,.6); }
.section--alt { background: var(--bg-2); }
.site-footer h4 { color: var(--neon); text-shadow: var(--glow-neon); }
.display { background: linear-gradient(160deg, #2b2534, #15111c 60%); border-color: #3b3348; }
@media (max-width: 720px) {
	.book--page { grid-template-columns: 1fr; }
	.book--page .book__cover { max-width: 260px; }
	.specs { grid-template-columns: 1fr 1fr; }
}
.hero__cover { width: min(330px, 50%); }
.hero__books { min-height: 520px; }
@media (max-width: 860px) { .hero__books { min-height: 400px; } }
@media (max-width: 480px) { .hero__books { min-height: 310px; } }
.min-w0, .book__body { min-width: 0; }
.games__note { color: var(--muted); font-size: .95rem; margin: -6px 0 18px; max-width: 70ch; }
