:root {
  color-scheme: dark;
  --bg: #171914;
  --bg-soft: #1d211b;
  --surface: #22251e;
  --surface-raised: #2a2d25;
  --cyan: #d1b869;
  --pink: #c57b59;
  --violet: #929775;
  --green: #e0cb7a;
  --text: #f5f1e5;
  --muted: #c0bdad;
  --line: rgba(255, 255, 255, .1);
  --radius: 14px;
  --content: 1160px;
  --space: clamp(1.25rem, 4vw, 2rem);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(95, 57, 180, .17), transparent 55%),
    var(--bg);
  line-height: 1.6;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip-link {
  position: absolute; z-index: 20; top: -5rem; left: 1rem;
  padding: .75rem 1rem; color: var(--bg); background: var(--green);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.container { width: min(var(--content), calc(100% - 2 * var(--space))); margin-inline: auto; }
.site-header {
  position: sticky; z-index: 10; top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 24, .9);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; letter-spacing: -.04em; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-size: 1.2rem; }
.brand-name span { color: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 7px; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.icon-button, .menu-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px;
}
.icon-button:hover, .menu-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.menu-toggle { display: none; }
.search-glyph { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-glyph::after { content: ""; position: absolute; width: 7px; height: 2px; background: currentColor; right: -5px; bottom: -3px; transform: rotate(45deg); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.15rem; border: 1px solid transparent;
  border-radius: 8px; color: var(--bg); background: var(--cyan); text-decoration: none;
  font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,245,255,.2); }
.button-secondary { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line); }
.button-secondary:hover { border-color: var(--pink); box-shadow: 0 8px 28px rgba(255,56,184,.15); }
.button-small { min-height: 38px; padding: .5rem .8rem; font-size: .88rem; }
.library-shortcuts, .platform-links, .console-actions, .collection-memberships { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1rem 0; }
.catalog-art { --art-accent: var(--violet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 220px; padding: 1.4rem; text-align: center; border-top: 4px solid var(--art-accent); background: radial-gradient(ellipse at top, #39305b, #161724); }
.catalog-art[data-platform="nes"] { --art-accent: #ff6678; }
.catalog-art[data-platform="snes"] { --art-accent: #bc9cff; }
.catalog-art[data-platform="gb"], .catalog-art[data-platform="gbc"] { --art-accent: #b4d784; background: linear-gradient(135deg, #30392c, #151c1a); }
.catalog-art[data-platform="genesis"], .catalog-art[data-platform="master-system"], .catalog-art[data-platform="game-gear"] { --art-accent: #76b5ff; background: linear-gradient(135deg, #183250, #121725); }
.catalog-art[data-platform^="ps"] { --art-accent: #79d6db; background: linear-gradient(135deg, #29354b, #181b2b); }
.art-title { color: var(--text); font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); line-height: 1.3; overflow-wrap: anywhere; }
.art-notice { color: var(--art-accent); font: .75rem "DM Mono", monospace; }
.game-art.catalog-art { aspect-ratio: auto; }
.preview-art { margin-top: 1rem; overflow: hidden; border-radius: var(--radius); background: var(--bg); }
.preview-art img { width: 100%; max-height: 480px; object-fit: contain; }
.art-monogram { color: var(--cyan); font: 700 clamp(2rem, 6vw, 4rem) monospace; text-shadow: 4px 4px var(--violet); }
.platform-label, .availability { color: var(--muted); font-size: .85rem; }
.tag-review { color: #ffd58a; border-color: #ffd58a55; }
.metadata-warning { padding: 1rem; border-left: 3px solid #ffd58a; background: #ffd58a0a; color: #ffd58a; }
.console-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.4rem; }
.console-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.console-card h2 { font-size: 1.4rem; }
.console-card p:not(.eyebrow) { color: var(--muted); }
.console-symbol { width: 80px; padding: 1rem .5rem; margin-bottom: 1.5rem; border: 2px solid var(--violet); border-radius: 12px; text-align: center; color: var(--cyan); font: 700 1.3rem monospace; box-shadow: 5px 5px #0a0a10; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0; }
.metadata { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: .5rem 1rem; margin: 1.5rem 0; }
.metadata dt { color: var(--muted); }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
.personal-notice { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; color: var(--muted); }
.collection-form { display: grid; gap: .7rem; margin-top: 1rem; }
.collection-form input { width: 100%; min-width: 0; border: 1px solid var(--line); padding: .7rem; border-radius: 8px; background: var(--bg); color: var(--text); }
.game-card-content { overflow-wrap: anywhere; }
.detail-panel img { border-radius: var(--radius); margin-top: 1rem; }
.detail-panel input[type="file"] { max-width: 100%; }
.game-frame { min-height: 360px; width: 100%; margin-top: 1rem; background: #000; }
.game-frame:empty { display: none; }
.game-frame canvas { max-width: 100%; }
.eyebrow { margin: 0 0 .8rem; color: var(--green); font: 500 .76rem "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
.hero-copy { position: relative; z-index: 1; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; }
.hero h1 { max-width: 760px; margin-bottom: 1.4rem; font-size: clamp(3rem, 7.3vw, 6.25rem); }
.hero h1 .accent { color: var(--cyan); text-shadow: 0 0 26px rgba(0,245,255,.25); }
.hero-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.arcade-machine {
  position: relative; width: min(300px, 75%); padding: 20px 18px 25px;
  border: 2px solid #6250ad; border-radius: 18px 18px 30px 30px;
  background: linear-gradient(130deg, #343050, #191827 65%); transform: rotate(3deg);
  box-shadow: 15px 20px 0 #0a0a10, 0 0 60px rgba(139,92,246,.2);
}
.arcade-top { height: 34px; margin: 0 14px 10px; border: 2px solid #795fee; border-radius: 8px; background: repeating-linear-gradient(90deg, #211b42 0 8px, #392a65 8px 16px); }
.arcade-screen { position: relative; overflow: hidden; display: grid; place-items: center; height: 170px; border: 9px solid #090a12; border-radius: 12px; background: radial-gradient(ellipse at 50% 100%, #282767, #101020 70%); }
.arcade-screen::after { position: absolute; inset: 0; content: ""; opacity: .2; background: repeating-linear-gradient(transparent 0 4px, rgba(0,0,0,.7) 4px 5px); }
.pixel-sun { position: absolute; top: 22px; width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(#ff38b8, #9c7bff 75%); box-shadow: 0 0 32px #ff38b855; }
.pixel-sun::after { position: absolute; content: ""; inset: 46% 0 0; background: repeating-linear-gradient(transparent 0 7px, #101020 7px 12px); }
.pixel-ground { position: absolute; bottom: 20px; width: 100%; height: 5px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.pixel-player { position: absolute; z-index: 1; bottom: 27px; left: 30%; width: 22px; height: 28px; background: var(--green); box-shadow: 0 0 16px #8aff6c88; }
.pixel-player::before, .pixel-player::after { position: absolute; content: ""; background: var(--green); }
.pixel-player::before { width: 30px; height: 6px; left: -4px; top: 5px; }
.pixel-player::after { width: 6px; height: 10px; left: 4px; bottom: -8px; box-shadow: 10px 0 var(--green); }
.arcade-controls { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 0; }
.control-pad { width: 55px; height: 55px; position: relative; }
.control-pad::before, .control-pad::after { position: absolute; content: ""; background: #090a12; border-radius: 3px; }
.control-pad::before { width: 54px; height: 18px; top: 18px; }
.control-pad::after { width: 18px; height: 54px; left: 18px; }
.arcade-buttons { display: flex; gap: 10px; transform: rotate(-20deg); }
.arcade-buttons i { display: block; width: 21px; height: 21px; border-radius: 50%; background: var(--pink); box-shadow: 0 4px #8b1d65; }
.arcade-buttons i + i { background: var(--cyan); box-shadow: 0 4px #087c85; transform: translateY(-12px); }
.float-chip { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #ffffff35; border-radius: 13px; color: var(--cyan); background: #181828; font: 500 1.2rem "DM Mono", monospace; box-shadow: 0 0 28px #00f5ff1a; }
.float-chip.one { top: 10%; left: 3%; transform: rotate(-12deg); }
.float-chip.two { right: 0; bottom: 12%; color: var(--pink); transform: rotate(12deg); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { border-block: 1px solid var(--line); background: rgba(21,21,34,.72); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2, .page-heading h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); }
.section-heading > p { max-width: 430px; margin-bottom: 0; color: var(--muted); }
.text-link { color: var(--cyan); font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.game-card:hover { transform: translateY(-5px); border-color: #00f5ff77; box-shadow: 0 14px 36px #0004; }
.game-art { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #25223c; }
.game-art img { width: 100%; height: 100%; object-fit: contain; }
.game-card-content { padding: 1.1rem; }
.game-card-top { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.tag { display: inline-flex; align-items: center; padding: .24rem .55rem; border: 1px solid #00f5ff55; border-radius: 100px; color: var(--cyan); font: 500 .72rem "DM Mono", monospace; }
.tag-pink { border-color: #ff38b855; color: #ff79ce; }
.game-card h3 { margin: 0; font-size: 1.23rem; }
.game-card p { min-height: 3.1em; margin: .65rem 0 1rem; color: var(--muted); font-size: .9rem; }
.game-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.year { color: var(--muted); font: .78rem "DM Mono", monospace; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.category-card { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 115px; padding: 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #222234, #171722); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: var(--pink); }
.category-card::after { position: absolute; content: ""; width: 70px; height: 70px; right: -18px; bottom: -24px; border: 1px solid #00f5ff44; transform: rotate(45deg); box-shadow: 0 0 0 10px #ff38b812, 0 0 0 20px #8b5cf610; }
.category-card strong { display: block; font-size: 1.05rem; }
.category-card span { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; }
.category-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; margin-right: .9rem; border: 1px solid #ffffff1c; border-radius: 10px; color: var(--cyan); font: 500 .8rem "DM Mono", monospace; }
.discovery { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border: 1px solid #8b5cf655; border-radius: 20px; background: radial-gradient(ellipse at 90% 10%, #8b5cf62c, transparent 48%), linear-gradient(120deg, #211d37, #171725); }
.discovery h2 { max-width: 620px; margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.discovery p { max-width: 580px; color: var(--muted); }
.page-heading { padding: 4rem 0 2.5rem; }
.page-heading > p:last-child { max-width: 670px; margin: 1rem 0 0; color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.field { display: grid; gap: .35rem; }
.field label { color: var(--muted); font: 500 .72rem "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field select, .search-dialog input { width: 100%; min-height: 45px; padding: .65rem .8rem; border: 1px solid #ffffff20; border-radius: 8px; color: var(--text); background: #11111b; }
.filter-actions { align-self: end; }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0; color: var(--muted); font-size: .9rem; }
.status { padding: 2.2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.status strong { display: block; margin-bottom: .35rem; color: var(--text); }
.category-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.category-detail { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.category-detail h2 { margin-bottom: .5rem; font-size: 1.3rem; }
.category-detail p { margin-bottom: 1rem; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin: 2rem 0 .65rem; font-size: 1.45rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--cyan); }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); background: #0d0d14; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-brand p { margin: .55rem 0 0; color: var(--muted); font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.copyright { color: #858599; font: .75rem "DM Mono", monospace; }
.search-dialog { width: min(560px, calc(100% - 2rem)); padding: 1.5rem; color: var(--text); border: 1px solid #ffffff24; border-radius: 16px; background: var(--surface); box-shadow: 0 20px 80px #000b; }
.search-dialog::backdrop { background: #05050bd9; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dialog-heading h2 { margin: 0; font-size: 1.3rem; }
.search-dialog form { display: flex; gap: .6rem; }
.search-dialog input { flex: 1; }
.search-dialog p { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }
.game-detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: 2rem; padding-bottom: 4rem; }
.detail-art { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-art img { width: 100%; height: auto; object-fit: contain; }
.detail-copy h1 { margin: .7rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.detail-copy > p { color: var(--muted); }
.detail-panel { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail-panel h2 { font-size: 1rem; }
.detail-panel ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.game-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #080810; }
.game-frame iframe { display: block; width: 100%; height: min(70vh, 620px); border: 0; }
.frame-actions { display: flex; justify-content: flex-end; padding: .75rem; }

@media (max-width: 850px) {
  .site-nav { gap: 1rem; }
  .header-inner { gap: 1rem; }
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 1rem; }
  .hero-art { min-height: 310px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header-inner { min-height: 66px; }
  .menu-toggle { display: inline-grid; }
  .nav-actions .search-trigger { display: inline-grid; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    display: none; align-items: stretch; gap: 0; padding: .6rem var(--space) 1rem;
    border-bottom: 1px solid var(--line); background: rgba(16,16,24,.98);
  }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: .75rem 0; border-bottom: 1px solid #ffffff0d; }
  .hero { padding: 3.5rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .hero-art { min-height: 290px; }
  .arcade-machine { width: 250px; }
  .arcade-screen { height: 145px; }
  .float-chip.one { left: 5%; }
  .section-heading { align-items: start; flex-direction: column; }
  .game-grid { gap: .8rem; }
  .game-card-content { padding: .85rem; }
  .game-card h3 { font-size: 1.05rem; }
  .game-card p { min-height: 4.7em; font-size: .82rem; }
  .game-card-footer { align-items: start; flex-direction: column; }
  .category-grid { gap: .65rem; }
  .category-card { min-height: 104px; padding: .85rem; }
  .category-mark { flex-basis: 34px; width: 34px; height: 34px; margin-right: .6rem; }
  .category-detail-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filter-actions .button { width: 100%; }
  .results-meta { align-items: start; flex-direction: column; }
  .footer-inner { align-items: start; flex-direction: column; }
  .game-detail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.announcement-bar {
  padding: .45rem 1rem;
  color: #28291f;
  background: #d8c681;
  text-align: center;
  font: 600 .72rem "DM Mono", monospace;
  letter-spacing: .04em;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.cart-link:hover { border-color: var(--cyan); color: var(--cyan); }
.cart-link [data-cart-count] {
  display: inline-grid;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  color: #24251d;
  background: var(--cyan);
  font-size: .75rem;
  font-weight: 700;
}
.retail-hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 82% 48%, #9b89502b, transparent 36%), #171914; }
.retail-hero-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); min-height: 550px; padding-block: 4rem; }
.retail-hero-copy { position: relative; z-index: 1; }
.retail-hero h1 { max-width: 720px; margin-bottom: 1.25rem; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.retail-hero h1 span { color: #d8c681; }
.retail-hero-copy > p:not(.eyebrow, .inventory-note) { max-width: 560px; color: #ccc8b9; font-size: 1.08rem; }
.retail-hero-art { display: grid; place-items: center; min-height: 370px; }
.retail-hero-art img { width: min(100%, 610px); filter: drop-shadow(0 25px 25px #0005); }
.inventory-note { margin: 1.25rem 0 0; color: #aaa999; font-size: .78rem; }
.retail-section { padding-block: clamp(3rem, 6vw, 5rem); }
.retail-section .section-heading { margin-bottom: 1.6rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #f1eddf25; border-radius: 13px; color: #262820; background: #f1eddf; box-shadow: 0 8px 24px #0002; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 15px 32px #0004; }
.product-card-image-link { display: block; color: inherit; background: #e6e1d1; text-decoration: none; }
.product-image { display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; background: #e6e1d1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.image-fallback { padding: 1rem; color: #66685b; text-align: center; font: .78rem "DM Mono", monospace; }
.product-card-content { display: flex; height: 100%; flex-direction: column; align-items: flex-start; padding: 1rem; }
.product-card-content h3 { min-height: 2.5em; margin: .2rem 0 .55rem; font-size: 1.06rem; }
.product-card-content h3 a { color: #25271f; text-decoration: none; }
.product-card-content h3 a:hover { text-decoration: underline; text-decoration-color: #a94739; text-underline-offset: 3px; }
.product-meta { margin: 0 0 .35rem; color: #67695e; font: .7rem "DM Mono", monospace; }
.product-price { display: flex; align-items: center; gap: .5rem; min-height: 1.6rem; margin: .3rem 0; color: #28291f; }
.product-price strong { font-size: 1.08rem; }
.compare-price { color: #77766b; font-size: .83rem; }
.sale-label { padding: .1rem .35rem; border-radius: 3px; color: white; background: #a94739; font: .68rem "DM Mono", monospace; }
.stock-label { display: inline-flex; align-items: center; gap: .4rem; color: #526746; font-size: .78rem; }
.stock-label::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.stock-out { color: #994c3d; }
.product-add { width: 100%; margin-top: auto; color: #fff8e9; background: #3b4938; }
.product-add:hover { background: #4d6248; }
.detail-pending { margin: .55rem 0; color: #885b37; font-size: .75rem; }
.platform-tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .8rem; }
.platform-tile { display: flex; align-items: center; gap: .8rem; min-height: 82px; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: #22251e; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.platform-tile:hover { transform: translateY(-2px); border-color: var(--cyan); }
.platform-tile strong { overflow-wrap: anywhere; font-size: .88rem; }
.platform-mark { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 1px solid #d1b86955; border-radius: 9px; color: var(--cyan); font: 700 .72rem "DM Mono", monospace; }
.why-gamenize { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.why-gamenize > div { max-width: 700px; }
.why-gamenize h2 { font-size: clamp(2rem, 4vw, 3rem); }
.why-gamenize p:not(.eyebrow) { color: var(--muted); }
.retail-page-heading { padding-bottom: 1.5rem; }
.retail-page-heading > p:last-child { margin-top: 1rem; }
.shop-layout { padding-bottom: 4rem; }
.product-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.2rem; }
.product-filter-actions { display: flex; align-items: end; }
.product-search-submit { align-self: end; }
.load-more-wrap { display: flex; justify-content: center; margin: 2rem 0; }
.store-message { padding: .8rem 1rem; border: 1px solid #d1b86955; border-radius: 8px; color: #e8ddb1; background: #d1b86912; }
.store-message.is-error { border-color: #c57b5977; color: #f0b7a1; background: #c57b5912; }
.product-detail-section { min-height: 300px; padding-bottom: 2rem; }
.breadcrumbs { display: flex; gap: .6rem; padding-top: 1.5rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--cyan); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); padding-block: 2rem; }
.product-gallery { min-width: 0; }
.product-detail-image { min-height: 360px; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 14px; background: #f1eddf; }
.product-detail-image .image-fallback { color: #595b52; }
.product-detail-image img { object-fit: contain; }
.product-thumbnails { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.product-thumb { width: 74px; height: 74px; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #e6e1d1; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-copy h1 { margin: .5rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.product-detail-copy > .product-price strong { font-size: 1.5rem; }
.product-summary { color: #ded8c9; font-size: 1.05rem; }
.detail-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0; }
.product-detail-add { min-width: 190px; color: #fff8e9; background: #3b4938; }
.variant-select { width: 100%; min-height: 46px; margin-top: .6rem; padding: .6rem; border: 1px solid #ffffff36; border-radius: 7px; color: var(--text); background: #20231d; }
.product-description { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.product-description p { white-space: pre-line; color: #d5d1c3; }
.product-metadata { grid-template-columns: minmax(130px, .75fr) minmax(0, 1.25fr); padding-top: .8rem; border-top: 1px solid var(--line); }
.related-section { padding-top: 1rem; }
.related-section[hidden] { display: none; }
.cart-page { min-height: 300px; padding-bottom: 4rem; }
.cart-page #cart-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .4fr); align-items: start; gap: 2rem; }
.cart-list { display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #20231d; }
.cart-line-image { display: grid; width: 110px; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; border-radius: 7px; background: #e6e1d1; }
.cart-line-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-info h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.cart-line-info h2 a { text-decoration: none; }
.cart-line-info .product-price { color: var(--text); }
.cart-line-controls { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; }
.cart-quantity { width: 75px; min-height: 40px; padding: .4rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #151711; }
.text-button { padding: .4rem; border: 0; color: var(--cyan); background: transparent; text-decoration: underline; }
.cart-line-total { white-space: nowrap; }
.cart-summary { position: sticky; top: 100px; padding: 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: #20231d; }
.cart-summary h2 { font-size: 1.25rem; }
.cart-subtotal { display: flex; justify-content: space-between; gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cart-note { color: var(--muted); font-size: .82rem; }
.checkout-button { width: 100%; margin-top: .4rem; color: #fff8e9; background: #3b4938; }
.order-confirmed { max-width: 720px; margin: 2rem auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid #d1b86966; border-radius: 16px; background: #22251e; }
.order-confirmed h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.order-confirmed > p:not(.eyebrow, .order-number) { color: var(--muted); }
.order-number { padding: .8rem 1rem; border-radius: 7px; color: var(--cyan); background: #d1b86912; font: 600 .95rem "DM Mono", monospace; }

@media (max-width: 850px) {
  .retail-hero-grid { grid-template-columns: 1fr .8fr; gap: 1rem; min-height: 470px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .announcement-bar { font-size: .65rem; }
  .retail-hero-grid { grid-template-columns: 1fr; gap: .5rem; padding-block: 3rem 2rem; }
  .retail-hero-art { min-height: 240px; }
  .retail-hero-art img { width: min(100%, 430px); }
  .retail-hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .nav-actions { gap: .4rem; }
  .cart-link { padding: .48rem .55rem; font-size: .8rem; }
  .product-grid { gap: .7rem; }
  .product-card-content { padding: .75rem; }
  .product-card-content h3 { font-size: .95rem; }
  .product-card-content .product-meta, .product-card-content .detail-pending { font-size: .65rem; }
  .product-filters { grid-template-columns: 1fr; }
  .product-search-submit, .product-filter-actions .button { width: 100%; }
  .why-gamenize { align-items: flex-start; flex-direction: column; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-detail-image { min-height: 250px; }
  .cart-page #cart-content { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 76px minmax(0, 1fr); gap: .7rem; padding: .7rem; }
  .cart-line-image { width: 76px; }
  .cart-line-total { grid-column: 2; justify-self: end; }
  .cart-summary { position: static; }
}
