/* Midnight Mint studio site. Mobile first; no build step. */
:root {
  --navy-900: #0c1030;
  --navy-800: #151a3d;   /* logo D background */
  --navy-700: #1d2452;
  --navy-600: #29316a;
  --gold: #f6c75a;       /* "MIDNIGHT" lettering */
  --gold-deep: #e0a83e;
  --mint: #6fd49a;       /* "MINT" lettering, lifted for contrast on navy */
  --mint-deep: #3f9f6a;
  --teal-shadow: #056e78;
  --cream: #f6efdc;
  --muted: #c3c8e2;
  --line: rgba(246, 199, 90, 0.22);
  --radius: 16px;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--navy-800);
  background-image: radial-gradient(1200px 600px at 50% -10%, #222a63 0%, transparent 60%);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #9be7bb; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--gold); text-shadow: 0 3px 0 var(--teal-shadow); }
h2 .mint { color: var(--mint); }
h3 { font-size: 1.4rem; color: var(--cream); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(12, 16, 48, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { width: 172px; height: auto; }
@media (min-width: 700px) { .brand img { width: 220px; } }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 10px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 380px) { .site-nav a { padding: 10px 7px; font-size: 0.9rem; } .brand img { width: 150px; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 1rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.12s ease, background-color 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #ffd977, var(--gold-deep)); color: var(--navy-900); box-shadow: 0 4px 0 #8a5d17; }
.btn-gold:hover { color: var(--navy-900); background: linear-gradient(180deg, #ffe39a, #eab24a); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(246, 239, 220, 0.5); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-mint { background: var(--mint); color: var(--navy-900); }
.btn-mint:hover { color: var(--navy-900); background: #8fe3b2; }
.btn .ext { font-size: 0.85em; }

/* ---------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); }
.hero-art { position: relative; aspect-ratio: 832 / 1040; max-height: 92vh; width: 100%; }
.hero-art picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(180deg, transparent, var(--navy-800)); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 3.5%; text-align: center; padding: 0 16px; }
.hero-copy h1 { margin: 0 auto; width: min(76vw, 340px); }
.hero-copy h1 img { width: 100%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); }
.tagline { margin: 10px 0 0; font-weight: 600; font-size: clamp(1rem, 4.4vw, 1.35rem); letter-spacing: 0.04em; color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 2px #000; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 4px 16px 32px; position: relative; z-index: 2; margin-top: -8px; }
@media (min-width: 760px) {
  .hero-art { aspect-ratio: 1920 / 900; max-height: 80vh; min-height: 420px; }
  .hero-art picture img { object-position: 50% 60%; }
  .hero-copy { top: 50%; transform: translateY(-58%); }
  .hero-copy h1 { width: clamp(240px, 24vw, 380px); }
  .hero-copy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(680px, 46vw); height: 150%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(8, 10, 30, 0.72), transparent); }
  .hero-cta { margin-top: -56px; }
}

/* ---------- sections */
section { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; }
.alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- game cards */
.games-grid { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .games-grid { grid-template-columns: 1fr 1fr; } .games-grid .featured { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .games-grid { grid-template-columns: repeat(3, 1fr); } .games-grid .featured { grid-column: span 2; }
  .games-grid .card.featured { flex-direction: row; }
  .games-grid .featured .card-media { flex: 1 1 60%; }
  .games-grid .featured .card-media img { object-position: 15% 50%; }
  .games-grid .featured .card-body { flex: 1 1 40%; justify-content: center; padding: 24px; } }
.card { display: flex; flex-direction: column; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1100px) { .featured .card-media { aspect-ratio: auto; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 800 0.78rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.badge-live { background: var(--mint); color: var(--navy-900); }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-900); box-shadow: 0 0 0 3px rgba(12, 16, 48, 0.25); }
.badge-soon { background: rgba(12, 16, 48, 0.85); color: var(--gold); border: 1px solid var(--gold); }
.card-badge { align-self: flex-start; margin-bottom: 6px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); margin: 0 0 6px; font-size: 1rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; align-items: center; }
.card-actions .small-link { font-size: 0.92rem; }
.featured .card-body h3 { font-size: 1.75rem; color: var(--gold); text-shadow: 0 2px 0 var(--teal-shadow); }

/* ---------- about */
.about { display: grid; gap: 24px; align-items: center; }
.about img { width: min(220px, 60vw); border-radius: 50%; margin: 0 auto; box-shadow: 0 10px 40px rgba(246, 199, 90, 0.18); }
@media (min-width: 760px) { .about { grid-template-columns: 240px 1fr; gap: 40px; } .about img { width: 240px; } }
.cast { color: var(--muted); }

/* ---------- socials */
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .socials { grid-template-columns: repeat(4, 1fr); } }
.socials a, .socials .disabled { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 14px; background: var(--navy-700); border: 1px solid var(--line); color: var(--cream); text-decoration: none; font-weight: 600; }
.socials a:hover { border-color: var(--mint); color: var(--mint); }
.socials svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.socials .disabled { color: var(--muted); border-style: dashed; }
.socials small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }

/* ---------- footer */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.95rem; color: var(--muted); }
.rg { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(41, 49, 106, 0.35); margin-bottom: 24px; }
.age-badge { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--gold); color: var(--gold); font: 400 1.1rem/1 var(--display); }
.rg p { margin: 0 0 6px; }
.rg strong { color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 16px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.legal { font-size: 0.88rem; }

/* ---------- age gate */
.age-gate { border: 2px solid var(--gold); border-radius: 20px; padding: 0; width: min(92vw, 440px); background: var(--navy-800); color: var(--cream); box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6); }
.age-gate::backdrop { background: rgba(6, 8, 24, 0.82); }
.age-gate-inner { padding: 28px 24px 24px; text-align: center; }
.age-gate .age-badge { margin: 0 auto 14px; width: 64px; height: 64px; font-size: 1.3rem; }
.age-gate h2 { font-size: 1.5rem; margin-bottom: 10px; }
.age-gate p { color: var(--cream); font-size: 1.05rem; }
.age-gate .gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.age-gate .gate-actions .btn { min-width: 130px; }
.age-gate .fine { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- game page */
.game-hero { position: relative; background: var(--navy-900); }
.game-hero > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 70vh; }
.game-hero-copy { padding: 20px 0 8px; }
.game-hero-copy .game-logo { width: min(80vw, 420px); margin: -70px auto 10px; position: relative; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)); }
.game-hero-copy .lede { text-align: center; max-width: 56ch; margin: 0 auto 18px; font-size: 1.1rem; }
.game-hero-copy .status { text-align: center; margin-bottom: 14px; }
.play-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.play-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } }
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin-bottom: 10px; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stills img { border-radius: 12px; border: 1px solid var(--line); }
.stills figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.stills figure { margin: 0; }
.mags { display: grid; gap: 20px; align-items: center; }
.mags img { border-radius: var(--radius); border: 1px solid var(--line); width: min(100%, 360px); margin: 0 auto; }
@media (min-width: 760px) { .mags { grid-template-columns: 320px 1fr; } }

/* ---------- press page */
.press-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .press-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .press-grid { grid-template-columns: repeat(3, 1fr); } }
.press-item { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.press-item .preview { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; background: repeating-conic-gradient(#1b2150 0 25%, #20275a 0 50%) 50% / 24px 24px; }
.press-item .preview { overflow: hidden; }
.press-item .preview img { max-height: 180px; width: auto; max-width: 100%; object-fit: contain; }
.press-item .preview.photo { padding: 0; }
.press-item .preview.photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.press-item .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.press-item .meta p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.press-item .btn { align-self: flex-start; min-height: 44px; padding: 10px 18px; font-size: 0.95rem; margin-top: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.swatches li { display: flex; align-items: center; gap: 10px; background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; font-size: 0.92rem; }
.swatches span { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); }
.boilerplate { background: var(--navy-700); border-left: 4px solid var(--mint); border-radius: 0 12px 12px 0; padding: 16px 20px; }
.boilerplate p:last-child { margin-bottom: 0; }
.notice { color: var(--muted); font-size: 0.95rem; }
.page-title { padding-top: 40px; padding-bottom: 8px; }
.page-title h1 { font-size: clamp(2rem, 7vw, 3rem); color: var(--gold); text-shadow: 0 3px 0 var(--teal-shadow); }
.page-title p { color: var(--muted); max-width: 60ch; }
