/*
Theme Name: Blinkcade
Theme URI: https://blinkcade.com
Author: Blinkcade
Description: The official theme for Blinkcade, an independent game studio. Arcade-in-daylight look: warm paper, thick ink outlines, chunky shadows, and one loud accent color. Includes a Games post type, a devlog-ready blog, and Customizer settings for the hero, accent color, and community links.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
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: blinkcade
*/

/* ---------- tokens ---------- */
:root {
  --paper: #F4EEE3;
  --paper-2: #EAE1D0;
  --card: #FFFCF6;
  --ink: #17131F;
  --ink-2: #3A3342;
  --muted: #5B5363;
  --rule: #D9CDB8;
  --screen: #221B2E;
  --night: #120E1C;
  --neon-pink: #FF3E9A;
  --neon-pink-soft: #FF6FB5;
  --neon-cyan: #3DF0FF;
  --moss: #2F6B2A;
  --accent: #FF4D2E;
  --radius-lg: 30px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --pad-x: clamp(20px, 4.5vw, 64px);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #2F4BFF; }
:focus-visible { outline: 3px solid #2F4BFF; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.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; left: 16px; top: 16px; z-index: 100; clip: auto; width: auto; height: auto;
  background: var(--accent); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 700;
}

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.label {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.section { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 800; }
.section-head p { font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.section-head--row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band { background: var(--paper-2); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  border: 3px solid var(--ink); font-family: var(--body); font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--accent:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: rgba(23,19,31,.06); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--paper); transform: translateY(-2px); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { color: var(--ink); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline-light:hover { color: var(--paper); background: rgba(244,238,227,.08); }
.btn--neon { background: var(--neon-pink); color: var(--night); border-color: var(--neon-pink); }
.btn--neon:hover { color: var(--night); transform: translateY(-2px); }
.btn--outline-cyan { background: transparent; color: var(--neon-cyan); border-color: var(--neon-cyan); }
.btn--outline-cyan:hover { color: var(--neon-cyan); background: rgba(61,240,255,.08); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.text-link {
  font-weight: 700; font-size: 18px;
  text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 6px; text-decoration-color: var(--link-line, var(--accent));
}

/* ---------- logo ---------- */
.logo-mark .eye { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .logo-mark .eye { animation: bc-blink 4.2s ease-in-out infinite; }
  @keyframes bc-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper); border-bottom: 4px solid var(--ink);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; gap: 48px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 44px; height: 44px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.custom-logo { max-height: 48px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.main-nav a { font-weight: 600; font-size: 17px; text-decoration: none; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 8px; text-decoration-color: var(--accent);
}
.header-cta { margin-left: auto; min-height: 50px; padding: 0 24px; font-size: 16px; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--paper);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .site-header .wrap { min-height: 72px; gap: 16px; }
  .brand .logo-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 18px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 4px solid var(--ink);
    padding: 8px var(--pad-x) 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 2px solid var(--rule); }
  .main-nav .mobile-cta { display: block; margin-top: 16px; }
}
.main-nav .mobile-cta { display: none; }

/* ---------- hero ---------- */
.hero .wrap {
  padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(52px, 7vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4.5vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(42px, 5.4vw, 84px); line-height: 1.12; font-weight: 900; letter-spacing: -0.015em; }
.hero-title .hl {
  padding: 0 .14em; margin: 0 -.04em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% .98em;
  background-position: 0 58%;
  border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34ch; color: var(--ink-2); }

.cabinet {
  width: 100%; max-width: 560px; justify-self: center;
  padding: 22px; background: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 14px 14px 0 var(--accent);
}
.cabinet-screen {
  aspect-ratio: 516 / 380; border-radius: var(--radius-sm); padding: 24px 26px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  background-color: var(--screen);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0, rgba(255,255,255,.045) 2px, transparent 2px, transparent 5px);
  color: var(--paper); font-family: var(--mono); font-weight: 700; letter-spacing: .1em;
}
.cabinet-top { align-self: stretch; display: flex; justify-content: space-between; font-size: 14px; }
.cabinet-top .hi { color: var(--neon-cyan); }
.cabinet-center { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cabinet-center .logo-mark { width: 132px; height: 132px; }
.cabinet-center .insert { font-size: clamp(14px, 1.5vw, 20px); letter-spacing: .12em; }
.cursor { color: var(--accent); margin-left: 6px; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: bc-flash 1.1s steps(1) infinite; }
  @keyframes bc-flash { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
}
.cabinet-chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 13px; letter-spacing: .08em; }
.cabinet-chips span { padding: 8px 14px; border: 2px solid currentColor; border-radius: 999px; }
.chip-green { color: #9BE08A; }
.chip-pink { color: var(--neon-pink-soft); }
.cabinet-controls { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 4px; }
.stick { width: 18px; height: 70px; background: #3A3342; border-radius: 9px; display: flex; justify-content: center; }
.stick::before { content: ""; width: 38px; height: 38px; margin-top: -18px; flex: none; background: var(--accent); border-radius: 50%; border: 3px solid #0E0B14; }
.buttons { display: flex; gap: 16px; }
.buttons span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #0E0B14; }
.buttons span:nth-child(1) { background: #2F4BFF; }
.buttons span:nth-child(2) { background: var(--accent); }
.buttons span:nth-child(3) { background: var(--paper); }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; height: 64px; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; }
.ticker-track ul { list-style: none; margin: 0; padding: 0 0 0 48px; display: flex; gap: 48px; white-space: nowrap; font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ticker-track li { display: flex; align-items: center; gap: 48px; }
.ticker-track li::after { content: "■"; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: bc-slide 28s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes bc-slide { to { transform: translateX(-50%); } }
}

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.game-card {
  border: 4px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); display: flex; flex-direction: column;
}
.game-card-art { display: block; aspect-ratio: 640 / 340; overflow: hidden; background: var(--ink); border-bottom: 4px solid var(--ink); }
.game-card-art img { width: 100%; height: 100%; object-fit: cover; }
.game-card-body { padding: 34px 36px 38px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.game-card-body h3 { font-size: clamp(32px, 3vw, 44px); font-weight: 800; }
.game-card-body h3 a { text-decoration: none; }
.game-card-excerpt { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.game-card-meta { font-size: 15px; font-weight: 600; color: var(--muted); }
.game-card .text-link { margin-top: auto; align-self: flex-start; }
.pill {
  align-self: flex-start; padding: 7px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--pill-bg, var(--ink)); color: var(--pill-fg, var(--paper));
}

/* ---------- rules ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rule-card {
  padding: 34px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 14px;
}
.rule-icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--accent); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.rule-icon svg { width: 28px; height: 28px; }
.rule-card h3 { font-size: 26px; font-weight: 700; }
.rule-card p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- post cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card-thumb {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10;
  border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--accent);
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--ink); text-decoration: none;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.post-card h3 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.post-card h3 a { text-decoration: none; }
.post-card-excerpt { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.post-card-date { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- community ---------- */
.community { padding-bottom: clamp(64px, 8vw, 112px); }
.community-box {
  background: var(--ink); color: var(--paper); border-radius: 34px; padding: clamp(28px, 4.5vw, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 64px); align-items: center;
}
.community-copy { display: flex; flex-direction: column; gap: 18px; }
.community-copy .label { color: var(--accent); }
.community-copy h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; }
.community-copy p { font-size: 19px; line-height: 1.55; color: #D9D0E0; }
.newsletter { padding: 36px; background: var(--screen); border-radius: 26px; display: flex; flex-direction: column; gap: 16px; }
.newsletter h3, .newsletter label.nl-title { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--paper); }
.newsletter .nl-note { font-size: 15px; color: #BDB3C6; }
.newsletter input[type="email"], .newsletter input[type="text"] {
  width: 100%; min-height: 56px; padding: 0 20px; border: 3px solid var(--paper); border-radius: 999px;
  background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px;
}
.newsletter button, .newsletter input[type="submit"] {
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 17px; cursor: pointer;
}
.coming-soon {
  align-self: flex-start; padding: 12px 24px; border: 3px dashed var(--accent); border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--accent); transform: rotate(-3deg);
}

/* ---------- footer ---------- */
.site-footer { border-top: 4px solid var(--ink); background: var(--paper); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand .brand .logo-mark { width: 40px; height: 40px; }
.footer-brand .brand-name { font-size: 20px; }
.footer-brand p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 88px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col .label { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 2px solid var(--rule); font-size: 14px; color: var(--muted); }

/* ---------- single game ---------- */
.game-hero { border-bottom: 4px solid var(--ink); }
.game-hero .wrap {
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 64px); align-items: center;
}
.game-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.game-hero .back { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.game-hero h1 { font-size: clamp(52px, 7vw, 104px); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; }
.game-hero .tagline { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; font-weight: 600; max-width: 30ch; }
.game-hero-media {
  aspect-ratio: 4 / 3; border: 4px solid var(--ink); border-radius: 26px; overflow: hidden;
  box-shadow: 12px 12px 0 var(--accent); background: var(--screen);
}
.game-hero-media img, .game-hero-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

.game-hero--light { background: var(--paper); }
.game-hero--light .back { color: var(--muted); }
.game-hero--light .pill { --pill-bg: var(--game-color, var(--ink)); --pill-fg: var(--card); }

.game-hero--neon {
  color: var(--paper);
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(61,240,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,240,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.game-hero--neon .back { color: var(--neon-cyan); }
.game-hero--neon .pill { --pill-bg: transparent; --pill-fg: var(--neon-cyan); border: 2px solid var(--neon-cyan); }
.game-hero--neon h1 { color: var(--neon-pink); text-shadow: 0 0 28px rgba(255,62,154,.55); }
.game-hero--neon .game-hero-media { border-color: var(--neon-pink); box-shadow: 0 0 40px rgba(255,62,154,.35), 12px 12px 0 var(--neon-cyan); }
@media (prefers-reduced-motion: no-preference) {
  .game-hero--neon h1 { animation: bc-neon 6s steps(1) infinite; }
  @keyframes bc-neon { 0%, 100% { opacity: 1; } 63% { opacity: .55; } 64% { opacity: 1; } 66% { opacity: .75; } 67% { opacity: 1; } }
}

.fact-strip { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 4px solid var(--ink); }
.fact-strip div { padding: 28px 36px; border-right: 3px solid var(--rule); }
.fact-strip div:last-child { border-right: 0; }
.fact-strip dt { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact-strip dd { margin: 6px 0 0; font-family: var(--display); font-size: 20px; font-weight: 700; }

.game-cta-box {
  background: var(--ink); color: var(--paper); border-radius: 34px; padding: clamp(28px, 4.5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.game-cta-box h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; color: var(--accent); }
.game-cta-box p { margin-top: 12px; font-size: 19px; color: #D9D0E0; max-width: 44ch; }
.game-cta-box--neon { background: var(--night); }
.game-cta-box--neon h2 { color: var(--neon-pink); }

/* ---------- editor content ---------- */
.entry-content { font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--ink); margin-top: 1.6em; }
.entry-content h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.entry-content a { text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.entry-content blockquote { border: 3px solid var(--ink); border-radius: var(--radius-md); padding: 24px 28px; background: var(--card); font-weight: 600; color: var(--ink); }
.entry-content img, .entry-content .wp-block-image img { border: 3px solid var(--ink); border-radius: var(--radius-sm); }
.entry-content .wp-block-gallery img { border-radius: var(--radius-sm); }
.entry-content code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.entry-content .wp-block-button__link { background: var(--accent); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }

.page-head { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 900; line-height: 1.06; }
.page-head p { margin-top: 16px; font-size: 20px; color: var(--ink-2); max-width: 56ch; }
.post-meta { margin-top: 16px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.post-hero-img { max-width: 1120px; margin: 0 auto clamp(32px, 4vw, 56px); padding: 0 var(--pad-x); }
.post-hero-img img { width: 100%; border: 4px solid var(--ink); border-radius: var(--radius-lg); }
.single-body { padding-bottom: clamp(64px, 8vw, 112px); }

.pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.pagination .page-numbers { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 3px solid var(--ink); border-radius: 999px; font-weight: 700; text-decoration: none; }
.pagination .current { background: var(--accent); }

.empty-state { border: 3px dashed var(--ink); border-radius: var(--radius-md); padding: 40px; text-align: center; font-size: 18px; color: var(--ink-2); }

/* 404 */
.not-found .wrap { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.not-found h1 { font-size: clamp(80px, 16vw, 200px); font-weight: 900; line-height: .9; }
.not-found p { font-size: 22px; max-width: 36ch; color: var(--ink-2); }

/* comments */
.comments-area { max-width: 760px; margin: 64px auto 0; }
.comments-area h2 { font-size: 28px; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border: 3px solid var(--ink); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 16px; background: var(--card); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 14px 16px; border: 3px solid var(--ink); border-radius: 14px; font: inherit; background: var(--card);
}
.comment-form .submit { min-height: 52px; padding: 0 26px; border: 3px solid var(--ink); border-radius: 999px; background: var(--accent); font-weight: 700; font-family: var(--body); font-size: 17px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rules-grid, .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero .wrap, .game-hero .wrap, .community-box { grid-template-columns: minmax(0, 1fr); }
  .games-grid, .rules-grid, .posts-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy .btn-row .btn { flex: 1 1 100%; }
  .cabinet { box-shadow: 8px 8px 0 var(--accent); padding: 14px; }
  .cabinet-controls { display: none; }
  .cabinet-center .logo-mark { width: 72px; height: 72px; }
  .game-card-body { padding: 24px 22px 26px; }
  .fact-strip div { border-right: 0; border-bottom: 3px solid var(--rule); }
  .newsletter { padding: 24px; }
  .ticker { height: 52px; }
}

/* =========================================================
   Game landing page (v1.1)
   ========================================================= */
.btn--paper { background: var(--card); color: var(--ink); }
.btn--paper:hover { color: var(--ink); transform: translateY(-2px); }

/* hero */
.gp-hero { position: relative; min-height: clamp(520px, 48vw, 680px); display: flex; align-items: center; border-bottom: 4px solid var(--ink); overflow: hidden; background: var(--ink); }
.gp-hero-art { position: absolute; inset: 0; }
.gp-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.gp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.gp-hero--light::after { background: linear-gradient(90deg, rgba(244,238,227,.92) 0%, rgba(244,238,227,.78) 30%, rgba(244,238,227,0) 50%); }
.gp-hero--neon::after { background: linear-gradient(90deg, rgba(18,14,28,.92) 0%, rgba(18,14,28,.78) 32%, rgba(18,14,28,0) 54%); }
.gp-hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.gp-hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.gp-hero .back { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.gp-hero h1 { font-size: clamp(52px, 7.2vw, 108px); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; }
.gp-hero .tagline { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; font-weight: 600; max-width: 30ch; }
.gp-hero--light { color: var(--ink); }
.gp-hero--light .back { color: var(--muted); }
.gp-hero--light .gp-pill { --pill-bg: var(--game-color); --pill-fg: var(--card); border: 3px solid var(--ink); }
.gp-hero--neon { color: var(--paper); }
.gp-hero--neon .back { color: var(--neon-cyan); }
.gp-hero--neon .gp-pill { --pill-bg: transparent; --pill-fg: var(--neon-cyan); border: 2px solid var(--neon-cyan); }
.gp-hero--neon h1 { color: var(--neon-pink); text-shadow: 0 0 28px rgba(255,62,154,.55); }
@media (prefers-reduced-motion: no-preference) {
  .gp-hero--neon h1 { animation: bc-neon 6s steps(1) infinite; }
}

/* player band */
.gp-play { padding-top: clamp(48px, 6vw, 88px); }
.gp-play .bca-player { margin-bottom: 0; }
.gp-facts { margin-top: clamp(48px, 6vw, 88px); border-top: 4px solid var(--ink); background: var(--card); }
.game-page--neon .gp-facts { background: var(--paper); }

/* shared bits */
.gp-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.gp-split-side, .gp-split-main { display: flex; flex-direction: column; gap: 18px; }
.gp-split-side h2, .gp-world-head h2 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; margin-top: 12px; }
.gp-lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.gp-card { padding: 28px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-md); }
.gp-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.gp-h2-sm { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin: 12px 0 22px; }

/* how to play */
.gp-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.gp-tablist { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gp-tab { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); font: 700 16px var(--body); cursor: pointer; }
.gp-tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gp-tabs:not(.is-enhanced) .gp-controls + .gp-controls { margin-top: 16px; }
.gp-tabs.is-enhanced .gp-controls-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.gp-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.gp-keys li { display: flex; align-items: center; gap: 14px; }
.gp-caps { display: flex; gap: 6px; flex-wrap: wrap; }
.gp-action { font-weight: 600; }
.kc {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px;
  border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 12px; background: var(--paper);
  font: 700 15px var(--mono); color: var(--ink);
}
.kc--round { border-radius: 50%; padding: 0; width: 46px; }
.gp-touch { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.gp-tip { padding: 22px 26px; background: var(--game-color); color: var(--card); border: 3px solid var(--ink); border-radius: 20px; }
.gp-tip strong { font-family: var(--display); font-size: 17px; }
.gp-tip p { margin-top: 6px; font-size: 16px; line-height: 1.55; }
.game-page--neon .gp-tip { background: var(--night); color: var(--paper); border-color: var(--neon-pink); }

/* characters */
.gp-chars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.gp-portraits { display: flex; gap: 14px; flex-wrap: wrap; }
.gp-portrait {
  width: 88px; height: 88px; padding: 0; border-radius: 20px; border: 3px solid var(--ink); background: var(--char-bg);
  cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; opacity: .8;
  font: 800 30px var(--display); color: var(--card); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; transition: opacity .15s ease;
}
.gp-portrait img { width: 100%; height: 100%; object-fit: cover; }
.gp-portrait[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 8px var(--accent); }
.gp-char { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 3vw, 40px); align-items: center; }
.gp-chars:not(.is-enhanced) .gp-char + .gp-char { margin-top: 48px; }
.gp-char-art {
  aspect-ratio: 1 / 1; max-height: 560px; border: 4px solid var(--ink); border-radius: 28px; overflow: hidden;
  background: var(--char-bg); box-shadow: 10px 10px 0 var(--ink); display: flex; align-items: center; justify-content: center;
}
.gp-char-art img { width: 100%; height: 100%; object-fit: contain; }
.gp-char-initial { font: 900 clamp(120px, 14vw, 220px) var(--display); color: var(--card); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.gp-char-info { display: flex; flex-direction: column; gap: 18px; }
.gp-role { align-self: flex-start; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font: 700 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.gp-char-info h3 { font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; }
.gp-bio { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.gp-quote { margin: 0; padding: 22px 26px; background: var(--card); border: 3px solid var(--ink); border-radius: 20px; font-weight: 600; font-size: 19px; line-height: 1.5; }
.gp-char-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gp-char-facts div { padding: 16px 18px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; }
.gp-char-facts dt { font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gp-char-facts dd { margin: 4px 0 0; font-weight: 700; }

/* world */
.gp-world-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.gp-map-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; margin-bottom: 28px; }
.gp-map-row--nomap { grid-template-columns: minmax(0, 1fr); }
.gp-map-row--nomap .gp-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gp-map { margin: 0; border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--paper-2); }
.gp-map img { width: 100%; height: 100%; object-fit: cover; }
.gp-regions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gp-regions li { padding: 20px 22px; background: var(--card); border: 3px solid var(--ink); border-radius: 20px; display: flex; gap: 14px; align-items: flex-start; }
.gp-regions h3 { font-size: 18px; font-weight: 700; }
.gp-regions p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.gp-dot { width: 18px; height: 18px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.gp-regions li:first-child .gp-dot { background: var(--accent); }
.gp-regions li.is-dark { background: #241D33; color: var(--paper); }
.gp-regions li.is-dark p { color: #D9D0E0; }
.gp-regions li.is-dark .gp-dot { background: var(--ink); border-color: #B79CE8; }
.gp-lore { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gp-lore-card { padding: 28px; background: var(--card); border: 3px solid var(--ink); border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.gp-lore-card h3 { font-size: 20px; font-weight: 700; }
.gp-lore-card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.gp-lore-label { font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--game-color); }
.gp-lore-card.is-dark { background: #241D33; color: var(--paper); }
.gp-lore-card.is-dark p { color: #D9D0E0; }
.gp-lore-card.is-dark .gp-lore-label { color: #B79CE8; }
.game-page--neon .gp-lore-label { color: var(--neon-pink); }

/* screenshots & trailer */
.gp-media { background: var(--ink); color: var(--paper); }
.gp-media .label { color: var(--accent); }
.gp-trailer { aspect-ratio: 16 / 9; border: 3px solid var(--paper); border-radius: 24px; overflow: hidden; margin-bottom: 24px; background: #000; }
.gp-trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.gp-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gp-shots a { display: block; border: 3px solid var(--paper); border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
.gp-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gp-shots a:hover img { transform: scale(1.03); }

/* soundtrack */
.gp-album { width: min(300px, 100%); aspect-ratio: 1 / 1; border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 10px 10px 0 var(--accent); margin-top: 8px; }
.gp-album img { width: 100%; height: 100%; object-fit: cover; }
.gp-tracks { margin: 0; padding: 0; list-style: none; border-top: 4px solid var(--ink); }
.gp-tracks li { display: flex; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 3px solid var(--rule); }
.gp-track-play { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gp-track-play svg { width: 16px; height: 16px; }
.gp-track-play .i-pause, .gp-track-play.is-playing .i-play { display: none; }
.gp-track-play.is-playing .i-pause { display: block; }
.gp-track-play.is-playing, .gp-track-play:hover { background: var(--accent); }
.gp-track-dot { width: 44px; flex: none; display: flex; justify-content: center; }
.gp-track-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.gp-track-num { width: 28px; font: 700 14px var(--mono); color: var(--muted); }
.gp-track-title { flex-grow: 1; font-weight: 700; font-size: 17px; }
.gp-track-len { font: 500 14px var(--mono); color: var(--muted); }
.gp-split-main > .text-link { align-self: flex-start; margin-top: 8px; }

/* devlog + faq */
.gp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 64px); }
.gp-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.gp-posts li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; }
.gp-post-thumb { display: block; aspect-ratio: 3 / 2; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--accent); }
.gp-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gp-posts h3 { font-size: 19px; font-weight: 700; }
.gp-posts h3 a { text-decoration: none; }
.gp-posts time { display: block; margin-top: 6px; font: 500 13px var(--mono); color: var(--muted); }
.gp-faq { border-top: 4px solid var(--ink); }
.gp-faq details { border-bottom: 3px solid var(--rule); padding: 18px 0; }
.gp-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.gp-faq summary::-webkit-details-marker { display: none; }
.gp-faq summary::after { content: "+"; font: 800 22px var(--display); line-height: 1; transition: transform .2s ease; }
.gp-faq details[open] summary::after { transform: rotate(45deg); }
.gp-faq p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* closing CTA */
.gp-cta-wrap { padding-top: 0; }
.gp-devlog-faq + .gp-cta-wrap, .gp-media + .gp-cta-wrap { padding-top: clamp(64px, 8vw, 120px); }
.gp-cta { border: 4px solid var(--ink); border-radius: 34px; padding: clamp(28px, 4.5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: 12px 12px 0 var(--ink); }
.gp-cta h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; }
.gp-cta p { margin-top: 12px; font-size: 19px; line-height: 1.55; max-width: 44ch; }
.gp-cta--light { background: var(--game-color); color: var(--card); }
.gp-cta--neon { background: var(--night); color: var(--paper); border-color: var(--neon-pink); box-shadow: 12px 12px 0 var(--neon-cyan); }
.gp-cta--neon h2 { color: var(--neon-pink); }
.gp-cta--light .btn--accent { box-shadow: none; }

@media (max-width: 900px) {
  .gp-hero { min-height: 0; align-items: flex-end; }
  .gp-hero-art { position: relative; height: 56vw; }
  .gp-hero::after { display: none; }
  .gp-hero { flex-direction: column; align-items: stretch; }
  .gp-hero-inner { padding-top: 28px; padding-bottom: 40px; background: var(--paper); }
  .gp-hero--neon .gp-hero-inner { background: var(--night); }
  .gp-split, .gp-world-head, .gp-map-row, .gp-char, .gp-two { grid-template-columns: minmax(0, 1fr); }
  .gp-keys { grid-template-columns: minmax(0, 1fr); }
  .gp-char-art { max-height: 420px; }
  .gp-posts li { grid-template-columns: 100px minmax(0, 1fr); }
}

/* Panels hidden by the picker/tabs must stay hidden even with grid/flex layouts. */
.game-page [hidden] { display: none !important; }
