@layer base, components;
@layer base {
  *,::before,::after { box-sizing: border-box; }
  :root { color-scheme: dark; --bg: #09090b; --panel: #18181b; --line: #27272a; --muted: #a1a1aa; }
  html { scroll-behavior: smooth; scroll-padding-top: 30px; }
  body { margin: 0; background: var(--bg); color: #fff; font: 16px/1.7 Inter, "Helvetica Neue", Arial, sans-serif; }
  h1,h2,h3,p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  button,input,textarea { font: inherit; }
  button { cursor: pointer; color: inherit; }
  a,button,input,textarea { -webkit-tap-highlight-color: transparent; }
  svg { display: block; }
  img { display: block; max-width: 100%; height: auto; }
  ::selection { background: #fff; color: var(--bg); }
  :focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
  [hidden] { display: none !important; }
}
@layer components {
  .container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: #fff; color: var(--bg); transform: translateY(-180%); }
  .skip-link:focus { transform: translateY(0); }
  .site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 5; background: var(--bg); }
  .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; letter-spacing: -.7px; white-space: nowrap; }
  .brand-mark { width: 36px; height: 40px; flex-shrink: 0; }
  .brand-dot { color: #71717a; }
  .desktop-nav,.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
  .nav-link { display: inline-block; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 0; background: transparent; border: 0; position: relative; transition: color .2s; }
  .nav-link::after { content: ""; position: absolute; bottom: 5px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav-link:hover,.nav-link[aria-current="page"] { color: #fff; }
  .nav-link:hover::after,.nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .header-status { display: flex; align-items: center; gap: 8px; padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); font: 9px/1.5 monospace; letter-spacing: 1px; }
  .status-dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 12px #ffffff70; }
  .menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid #3f3f46; border-radius: 6px; background: transparent; }
  .mobile-nav { padding-block: 8px 22px; }
  .mobile-nav .nav-link { display: block; padding: 12px; border-bottom: 1px solid var(--line); }
  .hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #09090b; }
  .hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 77% 45%, #ffffff0d, transparent 58%); }
  .hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
  .hero-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px; padding-block: 85px 70px; }
  .hero-text { animation: content-arrive .85s ease-out both; }
  .eyebrow { display: flex; align-items: center; gap: 10px; font: 10px/1.6 monospace; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
  .eyebrow::before { content: ""; width: 24px; height: 1px; flex-shrink: 0; background: var(--muted); }
  .hero h1 { margin-top: 24px; font-size: clamp(54px, 6.3vw, 86px); line-height: .99; letter-spacing: -.065em; font-weight: 800; }
  .muted-heading { color: #71717a; }
  .hero-copy { max-width: 440px; margin-top: 26px; font-size: 15px; color: var(--muted); line-height: 1.85; }
  .hero-actions,.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 20px; border: 1px solid #fff; border-radius: 5px; background: #fff; color: var(--bg); font-size: 12px; line-height: 1.4; font-weight: 700; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; text-align: center; }
  .button:hover { background: #d4d4d8; border-color: #d4d4d8; transform: translateY(-2px); box-shadow: 0 6px 24px #ffffff12; }
  .button-secondary { background: transparent; color: #fff; border-color: #3f3f46; }
  .button-secondary:hover { background: #27272a; border-color: #fff; }
  .button svg { width: 17px; height: 17px; flex-shrink: 0; }
  .hero-note { font: 10px/1.6 monospace; color: #a1a1aa; margin-top: 21px; }
  .hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; animation: arcade-arrive 1s ease-out both; }
  .arcade-orbit { position: absolute; inset: 5%; border: 1px solid #3f3f46; border-radius: 50%; animation: orbit-turn 35s linear infinite; }
  .arcade-orbit::before { content: ""; position: absolute; inset: 14%; border: 1px dashed #3f3f46; border-radius: 50%; }
  .arcade-orbit::after { content: "+"; position: absolute; top: 11%; right: 8%; font: 20px monospace; color: var(--muted); background: var(--bg); }
  .hero-arcade { width: 67%; height: auto; position: relative; filter: drop-shadow(0 20px 28px #000); animation: arcade-float 6s ease-in-out infinite; }
  .arcade-screen-glow { animation: screen-glow 5s ease-in-out infinite; }
  .visual-label { position: absolute; font: 9px/1.7 monospace; color: var(--muted); letter-spacing: 2px; }
  .visual-label-top { top: 2%; left: 10%; }
  .visual-label-bottom { bottom: 2%; right: 7%; }
  .hero-caption { display: flex; justify-content: space-between; padding-block: 18px; border-top: 1px solid var(--line); gap: 18px; font: 10px/1.7 monospace; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
  .hero-caption strong { color: #d4d4d8; font-weight: 400; }
  .motion-toggle { margin-top: 16px; background: transparent; border: 0; padding: 8px 0; font-size: 10px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
  .effects-paused *, .effects-paused *::before, .effects-paused *::after { animation-play-state: paused !important; }
  .directory { padding-block: 70px; }
  .section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 20px; }
  h2 { font-size: clamp(27px,3vw,36px); line-height: 1.15; letter-spacing: -1.3px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-subtitle { margin-top: 12px; color: var(--muted); font-size: 13px; }
  .section-index { font: 11px/1.5 monospace; color: var(--muted); white-space: nowrap; }
  .directory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 21px; }
  .filters { display: flex; flex-wrap: wrap; gap: 7px; }
  .filter { min-height: 44px; padding: 8px 14px; border: 1px solid #3f3f46; background: transparent; color: var(--muted); border-radius: 4px; font-size: 11px; transition: background .2s, color .2s; }
  .filter:hover { color: #fff; border-color: #71717a; }
  .filter[aria-pressed="true"] { color: var(--bg); background: #fff; border-color: #fff; }
  .search-wrap { display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #3f3f46; border-radius: 4px; width: 255px; flex-shrink: 0; }
  .search-wrap:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
  .search-wrap svg { color: var(--muted); width: 16px; height: 16px; flex-shrink: 0; }
  .search-input { width: 100%; min-width: 0; min-height: 44px; background: transparent; color: #fff; border: 0; outline: none; font-size: 12px; }
  .search-input::placeholder { color: var(--muted); }
  .results-line { margin-bottom: 18px; color: var(--muted); font: 10px/1.5 monospace; }
  .game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .game-card { min-width: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #111113; transition: border-color .25s, transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
  .game-card:hover,.game-card:focus-within { border-color: #a1a1aa; transform: translateY(-4px); box-shadow: 0 12px 30px #0005; }
  .card-art { height: 178px; background: var(--panel); position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
  .card-art::before { content: ""; position: absolute; width: 125px; height: 125px; border: 1px solid #303034; transform: rotate(45deg); transition: transform .5s; }
  .card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #ffffff09 50%, transparent 70%); transform: translateX(-110%); transition: transform .6s; pointer-events: none; }
  .game-card:hover .card-art::before { transform: rotate(65deg); }
  .game-card:hover .card-art::after { transform: translateX(110%); }
  .game-art-icon { width: 93px; height: 93px; color: #d4d4d8; position: relative; transition: transform .3s; }
  .game-card:hover .game-art-icon { transform: scale(1.06); }
  .art-number { position: absolute; top: 16px; left: 17px; color: var(--muted); font: 10px monospace; }
  .art-label { position: absolute; bottom: 13px; right: 17px; color: var(--muted); font: 8px monospace; letter-spacing: 2px; }
  .category-badge { position: absolute; top: 13px; right: 14px; padding: 3px 8px; border: 1px solid #3f3f46; background: var(--panel); font: 9px/1.7 monospace; text-transform: uppercase; letter-spacing: 1px; color: #d4d4d8; }
  .card-content { padding: 23px; display: flex; flex-direction: column; flex: 1; }
  .card-content h3 { font-size: 19px; letter-spacing: -.5px; line-height: 1.4; }
  .card-content h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .game-description { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
  .game-fit { font-size: 10px; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .game-fit span { color: #d4d4d8; }
  .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 21px; }
  .review-button { min-height: 44px; padding: 8px 0; color: #d4d4d8; font-size: 11px; display: inline-flex; gap: 7px; align-items: center; }
  .review-button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
  .official-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid #3f3f46; border-radius: 4px; font-size: 10px; font-weight: 600; }
  .official-link:hover { border-color: #fff; background: #27272a; }
  .empty-state { padding: 50px 24px; text-align: center; border: 1px dashed #3f3f46; border-radius: 6px; }
  .empty-state p { color: var(--muted); margin: 12px 0 20px; }
  .editorial-strip { display: grid; grid-template-columns: 1fr 1.25fr auto; align-items: center; gap: 32px; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin-top: 38px; }
  .editorial-strip h2 { font-size: 23px; letter-spacing: -.8px; }
  .editorial-strip p { font-size: 12px; color: var(--muted); line-height: 1.85; }
  .editorial-kicker { font: 9px/1.6 monospace; letter-spacing: 1.5px; color: var(--muted); display: block; margin-bottom: 9px; }
  .section-more { margin-top: 28px; display: flex; justify-content: center; }
  .site-footer { border-top: 1px solid var(--line); padding-block: 35px 25px; }
  .footer-top,.footer-bottom { display: flex; justify-content: space-between; gap: 25px; align-items: start; }
  .footer-top { padding-bottom: 27px; }
  .footer-tagline { color: var(--muted); font-size: 11px; margin-top: 9px; }
  .footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; }
  .copyright { color: var(--muted); font-size: 10px; }
  .disclaimer { max-width: 640px; color: var(--muted); font-size: 10px; line-height: 1.8; }
  .cookie-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(1060px,calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 19px 23px; border: 1px solid #52525b; border-radius: 8px; background: var(--panel); box-shadow: 0 8px 40px #000; }
  .cookie-banner h2 { font-size: 13px; letter-spacing: 0; margin-bottom: 5px; }
  .cookie-banner p { font-size: 11px; color: var(--muted); max-width: 660px; }
  .inline-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .cookie-actions { display: flex; gap: 9px; flex-shrink: 0; }
  .cookie-actions .button { padding: 9px 17px; font-size: 11px; }
  .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; padding-top: 28px; }
  .breadcrumb a:hover { color: #fff; text-decoration: underline; }
  .page-hero { padding-block: 48px 45px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 0%, #ffffff09, transparent 60%); }
  .page-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; letter-spacing: -.045em; margin-top: 18px; overflow-wrap: anywhere; }
  .page-hero .lead { max-width: 660px; margin-top: 20px; color: var(--muted); font-size: 16px; }
  .page-body { padding-block: 48px 70px; animation: content-arrive .6s ease-out both; }
  .content-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 64px; align-items: start; }
  .prose { color: var(--muted); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
  .prose p + p { margin-top: 14px; }
  .prose h2,.prose h3 { color: #fff; margin: 32px 0 12px; font-size: 21px; line-height: 1.4; letter-spacing: -.5px; }
  .prose h2:first-child,.prose h3:first-child { margin-top: 0; }
  .prose a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
  .prose .button { text-decoration: none; }
  .prose ul { padding-left: 20px; }
  .policy-date { display: block; font: 10px/1.6 monospace; margin-bottom: 22px; color: var(--muted); letter-spacing: 1px; }
  .side-panel { border: 1px solid #3f3f46; border-radius: 7px; padding: 26px; background: #111113; }
  .side-panel h2 { font-size: 19px; letter-spacing: -.5px; margin-bottom: 14px; }
  .side-panel p { color: var(--muted); font-size: 12px; line-height: 1.85; }
  .side-nav { display: grid; margin-top: 16px; }
  .side-nav a { padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: #d4d4d8; }
  .side-nav a:hover { color: #fff; padding-left: 5px; }
  .review-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 40px; }
  .review-illustration { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #3f3f46; background: #18181b; border-radius: 50%; }
  .review-illustration svg { width: 110px; height: 110px; color: #d4d4d8; }
  .review-footer { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
  .review-footer .button { margin-top: 18px; }
  .form-field { margin-top: 18px; }
  .form-field label { display: block; font-size: 12px; margin-bottom: 7px; color: #e4e4e7; }
  .form-field label span { color: var(--muted); }
  .form-field input,.form-field textarea,.email-draft { width: 100%; max-width: 100%; border: 1px solid #3f3f46; border-radius: 4px; padding: 11px 12px; background: var(--panel); color: #fff; font-size: 16px; }
  .form-field textarea { resize: vertical; min-height: 150px; }
  .form-consent { display: flex; gap: 10px; align-items: start; margin: 18px 0; font-size: 12px; color: var(--muted); }
  input[type="checkbox"] { accent-color: #fff; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
  .form-status { font-size: 12px; color: #d4d4d8; margin-top: 14px; }
  .email-draft { margin-top: 14px; resize: vertical; }
  #contact-fallback p,#contact-fallback .button { margin-top: 14px; }
  .notice { padding: 16px 20px; margin-bottom: 24px; border: 1px solid #3f3f46; color: var(--muted); font-size: 13px; border-radius: 5px; }
  @keyframes content-arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes arcade-arrive { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
  @keyframes arcade-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
  @keyframes orbit-turn { to { transform: rotate(360deg); } }
  @keyframes screen-glow { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
  @media (max-width: 1199px) {
    .header-status { display: none; }
    .desktop-nav { gap: 16px; }
    .editorial-strip { grid-template-columns: 1fr 1.4fr; }
    .editorial-strip .button { grid-column: 2; justify-self: start; }
    .content-layout { gap: 36px; }
  }
  @media (max-width: 1099px) {
    .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .directory-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 15px; }
    .search-wrap { width: 100%; }
  }
  @media (max-width: 899px) {
    .header-inner { flex-wrap: wrap; gap: 10px; padding-block: 18px; min-height: 76px; }
    .desktop-nav { width: 100%; }
    .js .desktop-nav { display: none; }
    .js .menu-toggle { display: inline-flex; }
    .content-layout { grid-template-columns: 1fr; }
    .side-panel { max-width: none; }
    .footer-top,.footer-bottom { flex-direction: column; }
  }
  @media (min-width: 900px) { .mobile-nav { display: none; } }
  @media (max-width: 767px) {
    .container { width: calc(100% - 36px); }
    .brand { font-size: 17px; }
    .brand-mark { width: 29px; height: 34px; }
    .hero-layout { grid-template-columns: 1fr; padding-block: 55px 35px; gap: 28px; }
    .hero-copy { max-width: 480px; }
    .hero-visual { width: min(330px,85%); margin-inline: auto; }
    .hero-caption { font-size: 8px; letter-spacing: .8px; flex-wrap: wrap; }
    .directory { padding-block: 45px; }
    .section-index { display: none; }
    .filters { gap: 6px; }
    .filter { padding-inline: 11px; }
    .game-grid { grid-template-columns: 1fr; }
    .card-art { height: 190px; }
    .editorial-strip { grid-template-columns: 1fr; padding: 25px; gap: 18px; }
    .editorial-strip .button { grid-column: 1; }
    .footer-nav { gap: 4px 20px; }
    .cookie-banner { bottom: 10px; width: calc(100% - 20px); padding: 17px; flex-direction: column; align-items: stretch; gap: 14px; max-height: calc(100dvh - 20px); overflow: auto; }
    .cookie-actions .button { flex: 1; }
    .page-hero { padding-block: 35px; }
    .page-body { padding-block: 32px 48px; }
    .review-hero-layout { grid-template-columns: 1fr; gap: 24px; }
    .review-illustration { width: 145px; }
    .review-illustration svg { width: 80px; height: 80px; }
  }
  @media (max-width: 359px) {
    .container { width: calc(100% - 24px); }
    .brand { font-size: 15px; gap: 7px; }
    .hero h1 { font-size: 48px; }
    .card-content { padding: 18px; }
    .card-actions { gap: 6px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,::before,::after { animation: none !important; transition: none !important; }
  }
}