/* the8bitclub.com. Colors come from the channel banner (navy + electric blue) and the shirt print (#4888d8). */
@font-face { font-family: "Press Start 2P"; src: url(/fonts/PressStart2P-Regular.ttf); font-display: swap; }
:root {
  --bg: #05070d; --panel: #0c111c; --panel-2: #121a2a; --line: #1e2a42;
  --text: #e9eef7; --dim: #9aa8bf; --blue: #3fa9ff; --blue-2: #4888d8; --cream: #f3e6c0; --ok: #5fd38d; --bad: #ff7b7b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --pixel: "Press Start 2P", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #8fd0ff; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--cream); color: #000; padding: 8px 12px; z-index: 20; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font: 800 clamp(2.2rem, 6vw, 3.9rem)/1.05 var(--sans); letter-spacing: -.025em; }
h2 { font: 800 clamp(1.6rem, 3.8vw, 2.4rem)/1.15 var(--sans); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
.kicker { font: 400 .7rem/1.6 var(--pixel); color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: #cfd8e8; max-width: 56ch; }
.dim { color: var(--dim); }
.blue { color: var(--blue); }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100vw - 1120px) / 2)); background: rgba(5, 7, 13, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font: 400 .85rem var(--pixel); }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--text); text-decoration: none; font: 600 .98rem var(--sans); padding: 8px 12px; border-radius: 8px; border: 1px solid transparent; }
.top nav a:hover { background: var(--panel-2); }
.top nav a[aria-current="page"] { color: var(--blue); border-color: var(--line); background: var(--panel); }
.cart-count { display: inline-block; min-width: 1.5em; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: var(--blue); color: #001225; text-align: center; }
@media (max-width: 640px) { .brand span { display: none; } .top nav a { padding: 8px 8px; font-size: .9rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--blue);
  background: var(--blue); color: #001225; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #7cc6ff; border-color: #7cc6ff; color: #001225; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--panel-2); color: #8fd0ff; }
.btn.red { background: #ff3b3b; border-color: #ff3b3b; color: #fff; }
.btn.red:hover { background: #ff6262; border-color: #ff6262; color: #fff; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { position: relative; padding: 96px 0 88px; background: #05070d url(/images/hero-banner.jpg) right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.94) 0%, rgba(5,7,13,.78) 55%, rgba(5,7,13,.35) 100%); }
.hero .wrap { position: relative; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.narrow-media { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 820px) { .split, .split.narrow-media { grid-template-columns: 1fr; gap: 28px; } section { padding: 44px 0; } .hero { padding: 64px 0 56px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; }
.short { aspect-ratio: 9 / 16; width: min(340px, 100%); margin-inline: auto; }
.short iframe, .short video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.date-chip { display: inline-block; font: 700 .85rem var(--sans); letter-spacing: .03em; color: #001225; background: var(--cream); padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.price { font: 800 2rem/1 var(--sans); letter-spacing: -.02em; color: var(--cream); }
.note { font-size: .92rem; color: var(--dim); }

/* arcade tab */
.arcade-frame { position: relative; aspect-ratio: 16 / 9; min-height: 420px; width: 100%; }
.arcade-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .arcade-frame { aspect-ratio: auto; height: 78vh; } }

/* store */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-card:hover { border-color: var(--blue); color: var(--text); }
.product-card .body { padding: 16px 18px 20px; }
.product-card.soon { display: grid; place-items: center; text-align: center; min-height: 320px; padding: 24px; border-style: dashed; color: var(--dim); }
.gallery .main { aspect-ratio: 4 / 5; }
.gallery .main img, .gallery .main video { width: 100%; height: 100%; object-fit: cover; }
.gallery .main video { object-fit: contain; background: #000; } /* the 9:16 ad is shown whole, not cropped to the 4:5 frame */
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 4 / 5; position: relative; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: rgba(0,0,0,.35); }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend, .field-label { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); padding: 0; margin-bottom: 8px; display: block; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px; font: 700 1rem var(--sans); cursor: pointer; }
.sizes input:checked + span { border-color: var(--blue); background: var(--blue); color: #001225; }
.sizes input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 44px; background: var(--panel-2); color: var(--text); border: 0; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--line); }
.qty input { width: 52px; height: 44px; text-align: center; background: transparent; color: var(--text); border: 0; font: 700 1rem var(--sans); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.msg { margin-top: 14px; min-height: 1.6em; font-weight: 600; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.specs { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.specs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font: 700 .8rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
details { margin-top: 18px; } summary { cursor: pointer; font-weight: 600; }

/* cart */
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { border-radius: 10px; width: 84px; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-line .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.link-btn { background: none; border: 0; color: var(--dim); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px 0; }
.link-btn:hover { color: var(--text); }
.totals { margin-top: 20px; margin-left: auto; width: min(360px, 100%); }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
@media (max-width: 520px) { .cart-line { grid-template-columns: 64px 1fr; } .cart-line img { width: 64px; } .cart-line .right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; } }

.prose { max-width: 70ch; }
.prose h2 { font: 700 1.3rem/1.3 var(--sans); letter-spacing: 0; margin-top: 1.8em; }
.bottom { border-top: 1px solid var(--line); padding: 32px max(16px, calc((100vw - 1120px) / 2)) 48px; color: var(--dim); font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot-links a { color: var(--text); }
