
:root {
  --ink: #0A0A1A;
  --cyan: #00E5FF;
  --pink: #FF2BD6;
  --yellow: #EFFF00;
  --lime: #39FF14;
  --orange: #FF7900;
  --purple: #A964FF;
  --cream: #FFFBEA;
  --white: #FFFFFF;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-lg: 14px 14px 0 var(--ink);
  --border: 4px solid var(--ink);
  --radius: 0;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 4px; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  transform: translateY(-150%); background: var(--white); border: var(--border);
  padding: .65rem 1rem; font-weight: 900; text-transform: uppercase;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 900px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 8rem) 0; border-bottom: var(--border); }
.section:last-child { border-bottom: 0; }
.section-cyan { background: var(--cyan); }
.section-pink { background: var(--pink); }
.section-yellow { background: var(--yellow); }
.section-lime { background: var(--lime); }
.section-orange { background: var(--orange); }
.section-purple { background: var(--purple); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--white); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem;
  padding: .45rem .8rem; background: var(--yellow); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); font-size: .78rem; line-height: 1.2;
  font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
}
.section-dark .kicker { color: var(--ink); }
.display, h1, h2, h3, h4 {
  font-family: "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.04em; line-height: .96; text-wrap: balance;
}
h1 { margin: 0; font-size: clamp(3.3rem, 9vw, 7.8rem); text-transform: uppercase; }
h2 { margin: 0 0 1.2rem; font-size: clamp(2.3rem, 6vw, 5rem); text-transform: uppercase; }
h3 { margin: 0 0 .8rem; font-size: clamp(1.4rem, 3vw, 2.25rem); text-transform: uppercase; }
h4 { margin: 0 0 .6rem; font-size: 1.2rem; text-transform: uppercase; }
p { margin: 0 0 1.15rem; }
.lede { max-width: 780px; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.55; font-weight: 750; }
.micro { font-size: .82rem; line-height: 1.45; }
.eyebrow { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
.text-link { font-weight: 900; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.text-link:hover { color: var(--pink); }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: var(--cyan);
  border-bottom: var(--border); transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 0 var(--ink); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 1000; text-transform: uppercase; letter-spacing: -.035em; }
.brand img { width: 44px; height: 44px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.brand span { font-size: 1.12rem; }
.desktop-nav { display: flex; align-items: center; gap: 1.15rem; }
.desktop-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .055em; font-size: .75rem; font-weight: 900; padding: .75rem .3rem; border-bottom: 3px solid transparent; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { border-bottom-color: var(--ink); color: #4e0063; }
.nav-cta { display: inline-flex !important; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1rem !important; background: var(--yellow); border: 2px solid var(--ink) !important; box-shadow: 4px 4px 0 var(--ink); }
.nav-cta:hover { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); color: var(--ink) !important; }
.menu-button { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.menu-button svg { width: 27px; height: 27px; }
.mobile-nav { display: none; position: fixed; inset: 78px 0 0; background: var(--cyan); z-index: 999; padding: 1.2rem 1rem 3rem; overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 1rem; margin-bottom: .65rem; background: var(--white); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); text-decoration: none; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; }

.hero { position: relative; overflow: hidden; min-height: 760px; display: grid; align-items: center; background: var(--pink); border-bottom: var(--border); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .3; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr); gap: clamp(2.2rem,5vw,5rem); align-items: center; padding: clamp(4.5rem,8vw,8rem) 0; }
.hero h1 span { color: var(--yellow); text-shadow: 5px 5px 0 var(--ink); }
.hero .lede { margin-top: 1.6rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; padding: .8rem 1.25rem; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-weight: 1000; line-height: 1.15; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; cursor: pointer; }
.btn:hover { transform: translate(5px,5px); box-shadow: 1px 1px 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-cyan { background: var(--cyan); }
.btn-pink { background: var(--pink); }
.btn-lime { background: var(--lime); }
.btn-orange { background: var(--orange); }
.btn-white { background: var(--white); }
.btn-dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); box-shadow: 6px 6px 0 var(--white); }
.btn-dark:hover { box-shadow: 1px 1px 0 var(--white); }

.arcade-console { position: relative; background: var(--cyan); border: 5px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); padding: clamp(1rem,3vw,2rem); transform: rotate(1.5deg); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-weight: 1000; text-transform: uppercase; }
.console-lights { display: flex; gap: .4rem; }
.console-lights span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.console-screen { min-height: 370px; position: relative; overflow: hidden; background: var(--ink); border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px var(--purple); }
.console-screen::before { content: ""; position: absolute; inset: 0; opacity: .24; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.22) 6px 7px); }
.console-block { position: absolute; width: 72px; height: 72px; border: 5px solid var(--white); animation: floatBlock 4s ease-in-out infinite; }
.console-block.b1 { left: 11%; top: 17%; background: var(--pink); }
.console-block.b2 { right: 14%; top: 13%; background: var(--yellow); animation-delay: -.8s; }
.console-block.b3 { left: 24%; bottom: 14%; background: var(--lime); animation-delay: -1.6s; }
.console-block.b4 { right: 27%; bottom: 21%; background: var(--orange); animation-delay: -2.4s; }
.console-plus { position: absolute; inset: 50% auto auto 50%; width: 130px; height: 130px; transform: translate(-50%,-50%); }
.console-plus::before, .console-plus::after { content: ""; position: absolute; background: var(--cyan); border: 4px solid var(--white); }
.console-plus::before { width: 36px; height: 130px; left: 47px; top: 0; }
.console-plus::after { width: 130px; height: 36px; left: 0; top: 47px; }
.console-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.3rem; }
.dpad { display: grid; grid-template-columns: repeat(3,32px); grid-template-rows: repeat(3,32px); }
.dpad span { background: var(--ink); }
.dpad .up { grid-column: 2; grid-row: 1; } .dpad .left { grid-column:1; grid-row:2; } .dpad .center { grid-column:2; grid-row:2; } .dpad .right { grid-column:3; grid-row:2; } .dpad .down { grid-column:2; grid-row:3; }
.arcade-buttons { display: flex; gap: .75rem; }
.arcade-buttons span { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.arcade-buttons .a { background: var(--pink); } .arcade-buttons .b { background: var(--yellow); }
@keyframes floatBlock { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(5deg); } }

.ticker { overflow: hidden; border-bottom: var(--border); background: var(--yellow); }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 1rem; padding: .75rem 1.2rem; font-weight: 1000; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ticker-track span::after { content: "✦"; color: var(--pink); font-size: 1.3rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem,5vw,4rem); }
.heading-row p { max-width: 570px; font-weight: 700; }
.grid { display: grid; gap: clamp(1.2rem,3vw,2rem); }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { position: relative; background: var(--white); border: var(--border); box-shadow: var(--shadow); padding: clamp(1.25rem,3vw,2rem); }
.card:hover { transform: translateY(-5px); box-shadow: 12px 12px 0 var(--ink); }
.card.no-hover:hover { transform: none; box-shadow: var(--shadow); }
.card-cyan { background: var(--cyan); } .card-pink { background: var(--pink); } .card-yellow { background: var(--yellow); } .card-lime { background: var(--lime); } .card-orange { background: var(--orange); } .card-purple { background: var(--purple); }
.card-number { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; background: var(--ink); color: var(--yellow); border-radius: 50%; font-weight: 1000; }
.card-link { display: inline-flex; margin-top: 1rem; font-weight: 1000; text-transform: uppercase; letter-spacing: .04em; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.icon-block { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--ink); color: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 4px 0 rgba(255,255,255,.75); font-size: 1.8rem; }

.game-card { padding: 0; overflow: hidden; }
.game-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-bottom: var(--border); }
.game-card-body { padding: 1.3rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.badge { display: inline-flex; align-items: center; padding: .28rem .55rem; border: 2px solid var(--ink); background: var(--yellow); font-size: .7rem; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.badge.alt { background: var(--cyan); }
.badge.pink { background: var(--pink); }
.badge.lime { background: var(--lime); }

.feature-strip { display: grid; grid-template-columns: repeat(4,1fr); border: var(--border); box-shadow: var(--shadow-lg); }
.feature-strip > div { padding: clamp(1.25rem,3vw,2rem); border-right: var(--border); background: var(--white); }
.feature-strip > div:last-child { border-right: 0; }
.feature-strip strong { display: block; font-family: "Arial Black", sans-serif; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1; }
.feature-strip span { display: block; margin-top: .5rem; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }

.post-card { padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-bottom: var(--border); }
.post-card-body { padding: 1.35rem; }
.post-card h3 { font-size: clamp(1.45rem,2.2vw,2rem); line-height: 1; }
.post-card time { font-size: .77rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.post-card p { margin-top: .8rem; font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
.stack > * + * { margin-top: 1.2rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { position: relative; padding-left: 2.2rem; margin-bottom: .85rem; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -.1rem; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--ink); font-size: .82rem; font-weight: 1000; }
.callout { padding: clamp(1.4rem,3vw,2.3rem); background: var(--yellow); border: var(--border); box-shadow: var(--shadow); }
.callout-dark { background: var(--ink); color: var(--white); box-shadow: 9px 9px 0 var(--pink); }
.callout-dark a { color: var(--yellow); }

.page-hero { position: relative; overflow: hidden; padding: clamp(4.2rem,8vw,7.5rem) 0; border-bottom: var(--border); background: var(--pink); }
.page-hero::after { content: ""; position: absolute; width: 400px; height: 400px; right: -90px; bottom: -220px; background: var(--yellow); border: 7px solid var(--ink); transform: rotate(19deg); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 1050px; font-size: clamp(3rem,8vw,6.7rem); }
.page-hero .lede { margin-top: 1.5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.breadcrumbs li:not(:last-child)::after { content: " / "; margin-left: .45rem; }
.breadcrumbs a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose { font-size: 1.08rem; line-height: 1.78; }
.prose > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.prose h2 { max-width: 900px; margin-top: 3.6rem; margin-bottom: 1.2rem; font-size: clamp(2rem,5vw,3.8rem); }
.prose h3 { margin-top: 2.3rem; font-size: clamp(1.45rem,3vw,2.25rem); }
.prose p { margin-bottom: 1.35rem; }
.prose ul, .prose ol { margin-top: 1rem; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .65rem; }
.prose a { font-weight: 900; text-decoration-thickness: 3px; text-underline-offset: 4px; background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.prose blockquote { max-width: 900px; margin-top: 2rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--cyan); border: var(--border); box-shadow: var(--shadow); font-weight: 800; }
.prose .article-note { max-width: 900px; padding: 1.35rem 1.5rem; background: var(--yellow); border: var(--border); box-shadow: 6px 6px 0 var(--ink); }
.prose table { width: min(100%,900px); border-collapse: collapse; margin-top: 2rem; margin-bottom: 2rem; background: var(--white); border: var(--border); }
.prose th, .prose td { border: 2px solid var(--ink); padding: .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--cyan); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.article-header { background: var(--yellow); border-bottom: var(--border); padding: clamp(3.5rem,7vw,6rem) 0; }
.article-header-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); align-items: center; gap: clamp(2rem,5vw,5rem); }
.article-header h1 { font-size: clamp(2.7rem,7vw,5.9rem); }
.article-header img { width: 100%; border: var(--border); box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: 1.3rem; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: clamp(2rem,5vw,5rem); align-items: start; }
.article-body { min-width: 0; }
.article-aside { position: sticky; top: 112px; }
.toc { padding: 1.2rem; background: var(--cyan); border: var(--border); box-shadow: var(--shadow); }
.toc h2 { font-size: 1.25rem; margin: 0 0 .8rem; }
.toc ol { margin: 0; padding-left: 1.25rem; font-size: .86rem; font-weight: 800; }
.toc li + li { margin-top: .5rem; }
.toc a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.related { margin-top: 4rem; padding-top: 3rem; border-top: var(--border); }

.archive-tools { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0 0; }
.archive-tools a { text-decoration: none; }
.faq-list { display: grid; gap: 1rem; }
details { background: var(--white); border: var(--border); box-shadow: 6px 6px 0 var(--ink); }
summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 1.15rem; font-weight: 1000; text-transform: uppercase; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.2rem; top: .9rem; font-size: 1.55rem; }
details[open] summary::after { content: "−"; }
details p { padding: 0 1.15rem 1.2rem; }

.game-stage-section { background: var(--ink); color: var(--white); padding: clamp(2.5rem,6vw,5rem) 0; border-bottom: var(--border); }
.game-shell { background: var(--cyan); color: var(--ink); border: 5px solid var(--white); box-shadow: 12px 12px 0 var(--pink); padding: clamp(.8rem,2.5vw,1.5rem); }
.game-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; margin-bottom: 1rem; }
.game-stats { display: flex; flex-wrap: wrap; gap: .7rem; }
.game-stat { min-width: 110px; padding: .5rem .75rem; background: var(--white); border: 3px solid var(--ink); font-size: .82rem; font-weight: 1000; text-transform: uppercase; }
.game-stat span { display: block; font-size: 1.2rem; line-height: 1.1; }
.game-actions { display: flex; gap: .6rem; }
.game-actions button { min-height: 44px; padding: .55rem .85rem; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 1000; text-transform: uppercase; cursor: pointer; }
.game-actions button:hover { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.game-frame { position: relative; width: 100%; aspect-ratio: 16/9; min-height: 420px; background: var(--ink); border: 4px solid var(--ink); overflow: hidden; }
.game-frame canvas { width: 100%; height: 100%; background: var(--ink); }
.game-message { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; pointer-events: none; }
.game-message > div { max-width: 520px; padding: 1.4rem; background: rgba(10,10,26,.93); border: 4px solid var(--yellow); color: var(--white); box-shadow: 8px 8px 0 var(--pink); }
.game-message[hidden] { display: none; }
.game-message h2 { font-size: clamp(2rem,5vw,4rem); color: var(--yellow); }
.touch-controls { display: none; margin-top: 1rem; grid-template-columns: 72px 72px 72px; grid-template-rows: 60px 60px; justify-content: center; gap: .45rem; }
.touch-controls button { background: var(--yellow); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 1.3rem; font-weight: 1000; touch-action: manipulation; }
.touch-controls .touch-up { grid-column: 2; grid-row:1; } .touch-controls .touch-left { grid-column:1; grid-row:2; } .touch-controls .touch-down { grid-column:2; grid-row:2; } .touch-controls .touch-right { grid-column:3; grid-row:2; }
.memory-board { display: grid; grid-template-columns: repeat(4,minmax(70px,1fr)); gap: .75rem; padding: clamp(1rem,4vw,3rem); min-height: 420px; align-content: center; background: var(--ink); }
.memory-card { aspect-ratio: 1/1; border: 4px solid var(--white); background: var(--pink); color: transparent; display: grid; place-items: center; font-size: clamp(2rem,6vw,4.5rem); cursor: pointer; transform-style: preserve-3d; transition: transform .2s ease, background .2s ease; }
.memory-card.revealed, .memory-card.matched { color: var(--ink); background: var(--yellow); transform: rotateY(180deg); }
.memory-card.matched { background: var(--lime); }
.game-instructions { margin-top: 1.25rem; padding: 1rem; background: var(--white); border: 3px solid var(--ink); font-weight: 750; }
.game-status { margin-top: .8rem; min-height: 1.6em; font-weight: 900; }

.site-footer { background: var(--cyan); border-top: var(--border); padding: clamp(3.5rem,7vw,6rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: clamp(2rem,4vw,4rem); }
.footer-brand { max-width: 400px; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-col h2 { font-size: 1.1rem; margin-bottom: 1rem; border-bottom: 3px solid var(--ink); padding-bottom: .5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: .55rem; }
.footer-col a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 3px solid var(--ink); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.footer-email { display: inline-flex; margin-top: .8rem; padding: .45rem .65rem; background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 1000; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero-grid, .article-header-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .arcade-console { max-width: 680px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-strip { grid-template-columns: repeat(2,1fr); }
  .feature-strip > div:nth-child(2) { border-right: 0; }
  .feature-strip > div:nth-child(-n+2) { border-bottom: var(--border); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
  .toc ol { columns: 2; column-gap: 2rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand span { font-size: .95rem; }
  .hero-grid { padding: 3.8rem 0; }
  .hero h1 { font-size: clamp(3.05rem,16vw,5.5rem); }
  .arcade-console { transform: none; box-shadow: 8px 8px 0 var(--ink); }
  .console-screen { min-height: 300px; }
  .heading-row { display: block; }
  .heading-row p { margin-top: 1rem; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip > div { border-right: 0; border-bottom: var(--border); }
  .feature-strip > div:last-child { border-bottom: 0; }
  .toc ol { columns: 1; }
  .article-header img { transform: none; }
  .article-layout { gap: 1.5rem; }
  .game-frame { min-height: 360px; aspect-ratio: 4/5; }
  .touch-controls { display: grid; }
  .memory-board { grid-template-columns: repeat(4,minmax(55px,1fr)); gap: .45rem; padding: .7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: .5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .button-row { display: grid; }
  .btn { width: 100%; }
  .game-toolbar { align-items: stretch; }
  .game-stats, .game-actions { width: 100%; }
  .game-stat, .game-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
