:root{
  --bg:#070812;
  --panel:#0b0d1b;
  --panel2:#0f1230;
  --text:#e9ecff;
  --muted:#a7add6;
  --neonA:#5b7cfa; /* blue */
  --neonB:#b15cff; /* purple */
  --neonC:#2ee9ff; /* cyan */
  --ring: rgba(177, 92, 255, .45);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: 1120px;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(91,124,250,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(177,92,255,.22), transparent 60%),
    radial-gradient(800px 600px at 60% 90%, rgba(46,233,255,.14), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

img{ max-width:100%; display:block; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding: 0 18px;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  background: var(--panel2);
  border: 1px solid rgba(91,124,250,.45);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 1000;
}

/* Header / navigation */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,8,18,.7);
  border-bottom: 1px solid rgba(177,92,255,.15);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand-mark{
  width:34px; height:34px;
}
.brand-name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-name strong{ font-size:14px; }
.brand-name span{ font-size:12px; color:var(--muted); font-weight:600; }

.nav{
  display:none;
  align-items:center;
  gap: 18px;
}
.nav a{
  font-weight:700;
  color: rgba(233,236,255,.86);
  padding: 10px 10px;
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav a:hover{
  transform: translateY(-1px);
  background: rgba(91,124,250,.08);
  box-shadow: 0 0 0 1px rgba(91,124,250,.25) inset;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.mobile-toggle{
  appearance:none;
  border: 1px solid rgba(177,92,255,.35);
  background: rgba(11,13,27,.5);
  color: var(--text);
  width:44px; height:44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.mobile-toggle:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(177,92,255,.12);
  border-color: rgba(177,92,255,.6);
}
.mobile-toggle:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring);
}

.mobile-menu{
  display:none;
  border-top: 1px solid rgba(177,92,255,.15);
  padding: 12px 0 18px;
}
.mobile-menu.is-open{ display:block; }
.mobile-menu a{
  display:block;
  padding: 12px 6px;
  font-weight:800;
  color: rgba(233,236,255,.9);
  border-radius: 14px;
}
.mobile-menu a:hover{
  background: rgba(91,124,250,.08);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight:900;
  letter-spacing:.2px;
  border: 1px solid rgba(177,92,255,.28);
  background: rgba(11,13,27,.6);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  cursor:pointer;
  user-select:none;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(91,124,250,.55);
  box-shadow:
    0 0 0 1px rgba(91,124,250,.25) inset,
    0 18px 60px rgba(91,124,250,.14);
}
.btn:active{ transform: translateY(-1px); }
.btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring);
}
.btn-primary{
  background:
    linear-gradient(135deg, rgba(91,124,250,.35), rgba(177,92,255,.25));
  border-color: rgba(177,92,255,.65);
}
.btn-ghost{
  background: transparent;
  border-color: rgba(167,173,214,.28);
}
.btn-small{ padding: 10px 12px; border-radius: 12px; font-weight:850; }

.btn-icon{
  width:18px; height:18px; opacity:.95;
}

/* Sections / layout */
.hero{
  padding: 46px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items:center;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(177,92,255,.25);
  background: rgba(11,13,27,.5);
  color: rgba(233,236,255,.9);
  font-weight:850;
  font-size: 12px;
  letter-spacing:.3px;
}
.eyebrow-dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(46,233,255,1), rgba(46,233,255,.15));
  box-shadow: 0 0 20px rgba(46,233,255,.4);
}
.hero h1{
  margin: 12px 0 10px;
  font-size: 40px;
  line-height:1.05;
  letter-spacing:-.6px;
}
.hero p{
  margin:0;
  color: rgba(233,236,255,.86);
  font-weight:650;
}
.hero-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 10px;
  margin-top: 18px;
}
.hero-card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(177,92,255,.18);
  background:
    radial-gradient(600px 240px at 30% 20%, rgba(91,124,250,.18), transparent 52%),
    radial-gradient(500px 240px at 70% 30%, rgba(177,92,255,.14), transparent 50%),
    rgba(11,13,27,.55);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.stat{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.stat strong{ font-size:16px; }
.stat span{ color:var(--muted); font-weight:700; font-size:12px; }
.hero-visual{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(91,124,250,.18);
  background: rgba(7,8,18,.35);
  padding: 14px;
}
.hero-visual img{ width:100%; height:auto; }

/* Smaller framed logo in the hero right column (game pages). Keeps the default .hero-grid: one column on narrow screens, two from 720px up. */
.hero-logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
}
/* Wrapper only: no border/padding so the logo fills the slot edge to edge (no visible frame). */
.hero-logo-frame{
  max-width: 220px;
  width: 100%;
}
.hero-logo-frame img{
  display:block;
  width:100%;
  height:auto;
}

/*
  Optional visible frame around a small square logo (e.g. home hero).
  Matches the softer "card" look used by .hero-visual so the block feels part of the same design language.
*/
.hero-logo-frame--bordered{
  max-width: 204px;
  border-radius: 18px;
  border: 1px solid rgba(91,124,250,.18);
  background: rgba(7,8,18,.35);
  padding: 12px;
  box-sizing: border-box;
}
.hero-logo-frame--bordered img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.section{
  padding: 26px 0;
}

/* Games listing spacing
   On the games listing page (`/games/`) the single `.game-card` is close enough to the footer
   that its glow/shadow can visually overlap the footer area.
   We add extra bottom padding only for that specific page section so the layout
   stays the same everywhere else. */
.games-listing{
  padding-bottom: 88px;
}
.section-head{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 14px;
}
.section-title{
  margin:0;
  font-size: 24px;
  letter-spacing:-.2px;
}
.section-subtitle{
  margin:0;
  color: rgba(233,236,255,.82);
  font-weight:650;
}

/* Home: "Games that respond to you" — extra paragraph spacing when a card has multiple <p>
   (needs higher specificity than `.feature-card p` later in this file) */
.feature-card.philosophy-card p{
  margin:0 0 10px;
  color: rgba(233,236,255,.82);
  font-weight:650;
}
.feature-card.philosophy-card p:last-child{ margin-bottom:0; }

/* Home: founders photos (800x800 display target; scales down on narrow screens) */
.founders-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items:center;
  margin-bottom: 18px;
}
.founder-frame{
  margin:0;
  padding:0;
  overflow:hidden;
  width: min(800px, 100%);
  max-width:800px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}
.founder-frame img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit: cover;
  object-position: center center;
  /* Nudge the crop upward so the face sits better in the square frame */
  transform: translateY(-3mm);
  /* Corners come from the figure + overflow:hidden (no inner mat / double radius) */
  border-radius: 0;
}
.founder-frame--placeholder{
  display:grid;
  place-items:center;
  min-height:0;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(91,124,250,.12), transparent 55%),
    rgba(11,13,27,.35);
  border: none;
}
.founder-placeholder-text{
  color: var(--muted);
  font-weight:650;
  font-size: 15px;
  text-align:center;
  padding: 16px;
}
/* Founders section: heading above photos, centered */
.founders-title-block{
  text-align: center;
  align-items: center;
  margin-bottom: 20px;
}
.founders-title-block .section-title{
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.panel{
  border-radius: var(--radius-lg);
  background: rgba(11,13,27,.55);
  border: 1px solid rgba(177,92,255,.14);
  padding: 16px;
}

/* Founder portraits: no .panel mat — image fills the rounded box edge-to-edge */
figure.founder-frame{
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: var(--radius-xl);
}

.feature-card{
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover{
  transform: translateY(-2px);
  border-color: rgba(91,124,250,.4);
  box-shadow: 0 0 0 1px rgba(91,124,250,.18) inset, 0 22px 70px rgba(91,124,250,.12);
}
.feature-card h3{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 8px;
  font-size: 16px;
}
.feature-badge{
  width:30px; height:30px; border-radius: 12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(91,124,250,.22), rgba(177,92,255,.18));
  border: 1px solid rgba(177,92,255,.25);
}
.feature-card p{
  margin:0;
  color: rgba(233,236,255,.82);
  font-weight:650;
}

/* Featured game */
.featured{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items:center;
}
.game-spotlight{
  padding: 9px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(91,124,250,.18);
  background:
    radial-gradient(700px 300px at 20% 20%, rgba(91,124,250,.18), transparent 55%),
    radial-gradient(600px 260px at 70% 40%, rgba(177,92,255,.14), transparent 55%),
    rgba(11,13,27,.55);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.spotlight-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.game-cover{
  border-radius: 18px;
  border: 1px solid rgba(177,92,255,.18);
  background: rgba(7,8,18,.35);
  padding: 12px;
}
.game-cover img{
  width:100%;
  border-radius: 14px;
}

/* Logo art: fill the cover box edge-to-edge so padding / empty bands around the image are gone.
   `object-fit: cover` scales the bitmap to cover the whole rectangle (may crop edges if aspect differs). */
.game-cover.game-cover--logo{
  padding: 0;
  overflow: hidden;
}
.game-spotlight .game-cover.game-cover--logo{
  aspect-ratio: 1 / 1;
  max-width: 270px;
}
.game-spotlight .game-cover.game-cover--logo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.game-card .game-cover.game-cover--logo{
  aspect-ratio: 1 / 1;
  width: 100%;
}
.game-card .game-cover.game-cover--logo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  border-radius: 0;
}
.game-meta h2{
  margin:0 0 4px;
  font-size: 19px;
  letter-spacing:-.2px;
}
.game-meta p{
  margin:0 0 9px;
  color: rgba(233,236,255,.82);
  font-weight:650;
  font-size: 13px;
}
.store-row{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* Games listing: store buttons stay clickable above the full-card link (see .game-card__link). */
.game-card .store-row--on-card a{
  pointer-events: auto;
}
.game-spotlight .store-row{
  gap: 6px;
}

/* Games grid */
.games-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.game-card{
  position:relative;
  overflow:hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  border-radius: var(--radius-xl);
  background: rgba(11,13,27,.55);
  border: 1px solid rgba(177,92,255,.14);
  /* Mobile: avoid double-tap zoom delay on interactive cards (supported browsers). */
  touch-action: manipulation;
}
/* Full-area navigation to the game page; sits under .game-card-inner in the stacking order. */
.game-card__link{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(91, 124, 250, 0.22);
}
.game-card__link:focus{
  outline:none;
}
/* Ring on the card so focus is visible even though the link is under the content layer. */
.game-card--full-link:has(.game-card__link:focus-visible){
  box-shadow: 0 0 0 4px var(--ring);
}
.game-card:hover{
  transform: translateY(-3px);
  border-color: rgba(91,124,250,.45);
  box-shadow: 0 0 0 1px rgba(91,124,250,.2) inset, 0 26px 90px rgba(91,124,250,.16);
}

/* Detective Mentalist - listing card size
   Requirement: make this specific "window" half width and half height, and keep it centered.
   Note: we use `transform` (scale) because the scroll reveal effect also uses `transform`,
   so we must override both the normal and visible reveal states for this card. */
.games-listing .game-card--detective-mentalist{
  margin-left:auto;
  margin-right:auto;
  transform-origin: top center;
}
.games-listing .game-card--detective-mentalist.reveal{
  /* When the card is not yet visible, it starts lowered by `.reveal` (translateY(10px)). */
  transform: translateY(10px) scale(1);
}
.games-listing .game-card--detective-mentalist.reveal.reveal-visible{
  /* When the card becomes visible, it goes to translateY(0) and keeps the scaled size. */
  transform: translateY(0) scale(1);
}
.games-listing .game-card--detective-mentalist:hover{
  /* On hover, keep the card scaled while applying the small lift effect. */
  transform: translateY(-3px) scale(1);
}
.games-listing .game-card--detective-mentalist.reveal.reveal-visible:hover{
  /* This selector is intentionally more specific than `.reveal.reveal-visible`
     so hover keeps the lift (translateY) instead of being overridden back to translateY(0). */
  transform: translateY(-3px) scale(1);
}
.game-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 260px at 20% 20%, rgba(91,124,250,.18), transparent 55%),
              radial-gradient(540px 240px at 70% 30%, rgba(177,92,255,.14), transparent 55%);
  opacity:0;
  transition: opacity .22s ease;
  pointer-events:none;
}
.game-card:hover::after{ opacity:1; }
.game-card-inner{
  position:relative;
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
}
/* Listing cards with a stretched link: content layer above the link; clicks pass through to the link. */
.game-card--full-link .game-card-inner{
  z-index:2;
  pointer-events: none;
}
.game-card h3{
  margin: 0 0 8px;
  font-size: 18px;
}
.game-card p{
  margin:0;
  color: rgba(233,236,255,.82);
  font-weight:650;
}
.game-card .game-cover{
  padding: 0;
  background: transparent;
  border: none;
}
.game-card .game-cover img{ border-radius: 14px; border:1px solid rgba(177,92,255,.18); }
.chip-list{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap: 7px;
}
.chip{
  font-size: 12px;
  font-weight: 850;
  color: rgba(233,236,255,.9);
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(167,173,214,.22);
  background: rgba(7,8,18,.2);
}
/* Tighter chips only in the featured spotlight block (other pages keep default .chip sizing). */
.game-spotlight .chip-list{
  margin-top: 6px;
  gap: 5px;
}
.game-spotlight .chip{
  font-size: 11px;
  padding: 6px 8px;
}

/* Detail page sections */
.two-col{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.step{
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(177,92,255,.14);
  background: rgba(11,13,27,.45);
}
.step h3{
  margin:0 0 6px;
  font-size: 16px;
}
.step p{
  margin:0;
  color: rgba(233,236,255,.82);
  font-weight:650;
}

.screens{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.screenshot{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(177,92,255,.14);
  background: rgba(7,8,18,.25);
  padding: 12px;
}

/* Footer */
.site-footer{
  padding: 28px 0 40px;
  border-top: 1px solid rgba(177,92,255,.14);
  margin-top: 16px;
  color: rgba(233,236,255,.82);
}
.footer-inner{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
.footer-links a{
  font-weight:800;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(167,173,214,.18);
  background: rgba(11,13,27,.25);
  transition: transform .18s ease, border-color .18s ease;
}
.footer-links a.footer-instagram-link{
  /* This variant marks the social media button while keeping
     the same layout and spacing as the other footer links. */
  border-color: rgba(181,96,255,.34);
  background: linear-gradient(135deg, rgba(181,96,255,.18), rgba(91,124,250,.16));
  /* We center the icon so the button feels balanced without text. */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  min-width: 42px;
  padding: 10px;
}
.footer-links a.footer-instagram-link svg{
  /* Fixed icon size keeps consistency across all pages/footers. */
  width: 18px;
  height: 18px;
}
.footer-links a:hover{
  transform: translateY(-2px);
  border-color: rgba(91,124,250,.5);
}
.footer-links a.footer-instagram-link:hover{
  /* Slightly stronger accent on hover to signal interactivity
     without creating a visual jump in the footer. */
  border-color: rgba(201,124,255,.6);
}
.copyright{
  color: rgba(167,173,214,.92);
  font-weight:650;
  font-size: 13px;
}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.reveal-visible{
  opacity:1;
  transform: translateY(0);
}

/* Detective Mentalist spotlight size tweak
   This page uses the `.reveal` animation which also controls `transform`.
   Because we want to shrink the container by 20% (to 80%), we override
   the `transform` for both `.reveal` and `.reveal-visible` states. */
.detective-mentalist-page .game-spotlight{
  transform-origin: center top;
}
.detective-mentalist-page .game-spotlight.reveal{
  transform: translateY(10px) scale(0.8);
}
.detective-mentalist-page .game-spotlight.reveal.reveal-visible{
  transform: translateY(0) scale(0.8);
}

/* Forms */
.form{
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 8px;
}
label{
  font-weight: 850;
  color: rgba(233,236,255,.9);
  font-size: 14px;
}
input, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(177,92,255,.2);
  background: rgba(11,13,27,.5);
  padding: 12px 12px;
  color: var(--text);
  font-weight: 650;
}
textarea{ min-height: 130px; resize: vertical; }
input:focus, textarea:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(91,124,250,.6);
}
.help{
  color: rgba(167,173,214,.95);
  font-weight: 650;
  font-size: 13px;
  margin-top: -4px;
}

/* Responsive */
@media (min-width: 720px){
  .container{ padding: 0 24px; }
  .nav{ display:flex; }
  .mobile-toggle{ display:none; }
  .mobile-menu{ display:none !important; }
  .hero-grid{ grid-template-columns: 1.2fr .8fr; gap: 22px; }
  .hero-logo-wrap{ justify-content:flex-end; }
  .hero-actions{ flex-direction:row; flex-wrap:wrap; }
  .feature-grid{ grid-template-columns: repeat(3, 1fr); }
  .spotlight-grid{ grid-template-columns: 270px 1fr; align-items:center; }
  .games-grid{ grid-template-columns: repeat(2, 1fr); }
  /* On the "Games" page we only have one card, so keep it centered and full-row. */
  .games-listing .games-grid{ grid-template-columns: 1fr; justify-items:center; }
  .two-col{ grid-template-columns: 1fr 1fr; }
  .steps{ grid-template-columns: repeat(3, 1fr); }
  /* Age Suitability page: only two paths, keep them paired instead of a 3-column row. */
  .steps.age-suitability-player-paths{ grid-template-columns: 1fr 1fr; }
  .screens{ grid-template-columns: repeat(3, 1fr); }
  .header-inner{ padding: 16px 0; }
  .footer-inner{ flex-direction:row; align-items:center; justify-content:space-between; }
  .founders-grid{
    grid-template-columns: repeat(2, minmax(0, 800px));
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ transition:none; transform:none; opacity:1; }
  .game-card, .feature-card, .btn, .footer-links a{ transition:none; }
}

