/*
Theme Name: Super Nintega — Live Worlds
Description: A focused, accessible Super Nintega and Remix Lab launch site.
Version: 1.3.0
Author: Tablet Pro
Requires at least: 6.5
Requires PHP: 8.1
*/

/* An editorial, forest-lit identity. No remote fonts or decorative motion. */
:root {
  color-scheme: dark;
  --ink: #edf5ef;
  --muted: #aec1b7;
  --base: #081713;
  --surface: #10251e;
  --line: #31473b;
  --mint: #a2edc7;
  --gold: #edc184;
  --max: 1264px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--base); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 5.3vw, 4.7rem); }
h2 { font-size: clamp(2.4rem, 3.8vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h1 em, .signup-copy h2 em {
  color: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.wrap { width: calc(100% - 6rem); max-width: var(--max); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 7vw, 7rem); }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: -8rem; z-index: 100; padding: 1rem; background: var(--mint); color: var(--base); }
.skip:focus { top: 1rem; }
.eyebrow { color: var(--mint); font-size: .875rem; font-weight: 600; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1.2rem; }

/* Navigation stays available on small screens without a hidden menu. */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.2rem; min-height: 96px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; min-width: 0; font-size: 1.35rem; font-weight: 650; letter-spacing: -.04em; text-decoration: none; line-height: 1.25; }
.brand img { width: 64px; height: auto; flex-shrink: 0; }
.topbar nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1.8rem; }
.topbar nav > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9375rem; }
.topbar nav > a:not(.button):hover { color: var(--mint); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 52px; padding: .85rem 1.25rem; border: 1px solid var(--mint); border-radius: .7rem; background: var(--mint); color: #0b2b1e; font-weight: 650; line-height: 1.45; text-align: center; text-decoration: none; transition: background-color .18s, border-color .18s; }
.button:hover { background: #c4f8df; border-color: #c4f8df; }
.button-small { padding: .6rem 1.1rem; min-height: 44px; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; font-size: .9375rem; font-weight: 550; text-decoration: none; }
.text-link:hover { color: var(--mint); text-decoration: underline; }

/* The real gameplay stays prominent; typography carries the opening story. */
.hero { background: radial-gradient(ellipse at 80% 45%, #25453055, transparent 58%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: 3.2rem 3rem; }
.hero-content { padding-block: 1rem 2rem; }
.hero .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: 1.8rem; }
.development { font-size: .8125rem; color: var(--gold); text-transform: none; letter-spacing: 0; border-left: 1px solid #697258; padding-left: 1rem; }
.hero h1 { line-height: 1.08; }
.hero h1 > span { display: block; }
.hero h1 em { display: block; max-width: 12ch; padding-top: .12em; }
.hero-copy { color: #c6d6cb; font-size: 1.125rem; line-height: 1.7; max-width: 29rem; margin-block: 1.7rem 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-note { font-size: .875rem; color: var(--muted); margin-top: 1.1rem; max-width: 29rem; }
.hero-art { min-width: 0; }
.hero-art figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .6rem; font-size: .75rem; color: var(--muted); text-align: center; margin: .8rem .4rem 0; line-height: 1.5; }
.gameplay-player { overflow: hidden; background: #10271f; border: 1px solid #6c896e; border-radius: 1rem; box-shadow: 0 24px 70px #0004; }
.clip-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .75rem 1rem; font-size: .9375rem; font-weight: 550; }
.clip-toggle { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; min-width: 100px; padding: .45rem .85rem; background: #223d30; border: 1px solid #6a8a73; border-radius: .55rem; color: var(--ink); font-size: .875rem; cursor: pointer; }
.clip-toggle:hover { background: #335540; border-color: var(--mint); }
.clip-toggle:disabled { opacity: .6; cursor: default; }
.clip-toggle[hidden], .clip-error[hidden] { display: none; }
.gameplay-player video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: contain; background: #081713; }
.clip-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: .85rem 1rem; color: var(--muted); font-size: .8125rem; }
.clip-footer span:first-child { color: var(--gold); }
.clip-error { padding: .8rem 1rem; color: #ffe0ab; font-size: .875rem; }
.ribbon { border-block: 1px solid var(--line); }
.ribbon .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1.45rem; gap: 2rem; }
.ribbon p { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; font-size: .875rem; }
.ribbon p + p { border-left: 1px solid var(--line); padding-left: 2rem; }
.ribbon b { font-weight: 600; color: var(--ink); }
.ribbon span { color: var(--muted); }

/* The product story: roomy, specific, and deliberately light on chrome. */
.lab { background: radial-gradient(ellipse at 20% 35%, #1b352a66, transparent 65%), #10221c; border-bottom: 1px solid var(--line); }
.lab-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 3rem; }
.lab-header > p { max-width: 28rem; color: #c2d3c7; font-size: 1.125rem; }
.lab-note { display: inline-block; color: var(--muted); font-size: .875rem; margin-top: .8rem; }

/* A character canvas and a wider scenery canvas explain the existing tools visually. */
.studio-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 1.5rem; align-items: stretch; }
.studio-card { min-width: 0; border: 1px solid #476151; border-radius: 1.1rem; background: #0c1d17; overflow: hidden; box-shadow: inset 0 1px #d4ead710; }
.studio-copy { padding: clamp(1.5rem, 2.5vw, 2.3rem); }
.studio-copy .studio-kicker { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; color: var(--gold); font-size: .875rem; line-height: 1.5; }
.studio-kicker > span { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.studio-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.14; margin-bottom: .85rem; }
.studio-copy > p:last-child { max-width: 40rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.character-card { grid-row: span 2; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 45%, #2d5040 0, transparent 65%), #10271f; }
.character-card .studio-copy { padding-bottom: .8rem; }
.character-portrait { display: flex; flex: 1; flex-direction: column; justify-content: center; padding-block: .4rem 1.2rem; }
.character-portrait img { width: 100%; height: clamp(300px, 30vw, 400px); object-fit: contain; filter: drop-shadow(0 18px 18px #061b1255); }
.character-portrait figcaption { color: var(--muted); font-size: .75rem; text-align: center; padding-inline: 1rem; margin-top: .6rem; }
.idea-note { border-top: 1px solid #64877255; background: #07171180; padding: 1.3rem clamp(1.5rem, 2.5vw, 2.3rem); }
.idea-note > span { color: var(--gold); font-size: .8125rem; }
.idea-note p { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-style: italic; line-height: 1.5; color: #e4ead6; margin-top: .45rem; }
.scenery-portrait { position: relative; isolation: isolate; background: #304c2b; }
.scenery-portrait img { width: 100%; height: clamp(200px, 21vw, 285px); object-fit: cover; object-position: 50% 63%; }
.scenery-portrait figcaption { position: absolute; bottom: .75rem; right: .9rem; left: .9rem; width: fit-content; max-width: calc(100% - 1.8rem); padding: .3rem .6rem; border-radius: .3rem; color: #e9f1e8; font-size: .75rem; background: #092016e6; }
.scenery-card .studio-copy { padding-block: 1.5rem 1.7rem; }
.scenery-card .studio-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.play-card { background: linear-gradient(115deg, #23372b, #14271e 80%); border-color: #60724b; }
.play-card .studio-copy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 1.6rem; padding-block: 1.6rem; }
.play-card .studio-kicker { grid-column: 1 / -1; }
.play-card .studio-copy h3 { margin-bottom: 0; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.play-card .studio-copy > p:last-child { align-self: center; font-size: 1rem; }

.foundations-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem 2rem; }
.foundations-heading h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); }
.foundations-heading .eyebrow { margin: 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 2.5rem; }
.three article { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.rule-index { font-size: .8125rem; color: var(--gold); }
.three h3 { font-size: 1.35rem; margin-block: 1.2rem .8rem; }
.three p { color: var(--muted); }

/* Theme-specific form styling; the standalone plugin and privacy behavior stay intact. */
.signup-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 4.5vw, 4rem); background: radial-gradient(ellipse at 10% 0, #37513a66, transparent 65%), #142a22; border: 1px solid #687c58; border-radius: 1.1rem; box-shadow: inset 0 1px #dbecc116; }
.signup-copy .eyebrow { color: var(--gold); }
.signup-copy h2 { font-size: clamp(2.5rem, 3.7vw, 3.4rem); margin-bottom: 1.5rem; }
.signup-copy h2 em { color: #e9ce9e; }
.signup-copy .description { color: #d0ded3; max-width: 27rem; font-size: 1.0625rem; }
.signup-note { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }
.signup-form-panel { align-self: center; min-width: 0; border-left: 1px solid #79907755; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.signup-panel .sn-signup { max-width: none; }
.signup-panel .sn-signup-fields { grid-template-columns: 1fr; gap: 1.1rem; }
.signup-panel .sn-signup label { font-size: .9375rem; }
.signup-panel .sn-signup input:not([type=checkbox]):not([type=hidden]) { background: #0a1d17; border-color: #627668; border-radius: .65rem; padding: .85rem 1rem; min-height: 54px; font-size: 1rem; }
.signup-panel .sn-signup input::placeholder { color: #a4b6ac; }
.signup-panel .sn-signup input:hover { border-color: #a0b9a6; }
.signup-panel .sn-signup input:focus-visible { border-color: var(--mint); }
.signup-panel .sn-signup .sn-consent { margin-block: 1.3rem; font-size: .875rem; color: #d0ded3; }
.signup-panel .sn-signup input[type=checkbox] { width: 22px; height: 22px; margin-top: .1rem; }
.signup-panel .sn-signup button { width: 100%; background: var(--mint); border-color: var(--mint); min-height: 54px; padding: .9rem 1.1rem; }
.signup-panel .sn-signup button:hover { background: #c4f8df; }
.signup-panel .sn-signup input:autofill { border-color: var(--mint); }
.signup-panel .sn-signup:has([data-state="success"]) .sn-signup-status { background: #153b2b; }
.signup-panel .sn-signup-status:empty { min-height: 0; margin: 0; }
.signup-panel .sn-signup-status:not(:empty) { padding: .9rem 1rem; margin-block: 1rem; border: 1px solid currentColor; border-radius: .5rem; }
.signup-panel .sn-signup-privacy { color: var(--muted); margin-top: 1.25rem; }
.signup-panel .sn-signup-privacy summary { min-height: 44px; padding-block: .5rem; }
.signup-panel .sn-signup-privacy p { margin-block: .7rem; overflow-wrap: anywhere; }
.signup-unavailable { border-left: 2px solid var(--gold); padding: 1rem; color: var(--muted); }

/* Native disclosure controls, with comfortable pointer and touch targets. */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; padding-block: 1.2rem; font-size: 1.125rem; line-height: 1.5; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--mint); font-size: 1.5rem; line-height: 1; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover, .faq details[open] summary { color: var(--mint); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); }
.site-footer { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem; font-size: .9375rem; color: var(--muted); }
.footer-row .brand { color: var(--ink); font-size: 1.2rem; }
.footer-row .brand img { width: 54px; }
.fineprint { color: #a7b9ae; font-size: .8125rem; max-width: 58rem; margin-top: 1.8rem; line-height: 1.7; }
.preview-only { padding: .75rem 1rem; background: #4c381b; color: #fff1d1; font-size: .875rem; text-align: center; }
.legal-page { padding-block: 4rem; max-width: 50rem; overflow-wrap: anywhere; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); margin-bottom: 2rem; }
.legal-page p { margin-block: 1rem; }
.legal-page h2 { font-size: 2rem; margin-top: 2rem; }

/* Intrinsic grids, no fixed-height text boxes; layout follows enlarged text. */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 3rem); }
  .topbar nav { gap: .5rem 1.25rem; }
  .hero-grid { gap: 2rem; }
  .hero-actions { gap: .5rem 1rem; }
  .faq { gap: 3rem; }
  .three { gap: 2rem; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; gap: 1.5rem; }
  .hero-content { padding-block: 0 1rem; max-width: 42rem; }
  .hero h1 { font-size: clamp(3rem, 7.5vw, 4.4rem); }
  .hero h1 em { max-width: 17ch; }
  .hero-copy { max-width: 35rem; }
  .studio-grid { gap: 1rem; }
  .play-card .studio-copy { display: block; }
  .play-card .studio-copy h3 { margin-bottom: .85rem; }
  .character-portrait img { height: 330px; }
  .ribbon .wrap { gap: 1rem; }
  .ribbon p { display: block; }
  .ribbon span { display: block; margin-top: .25rem; }
  .ribbon p + p { padding-left: 1rem; }
  .signup-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: 2rem; gap: 2rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.5rem); }
  .section { padding-block: 3.5rem; }
  .topbar .wrap { gap: .75rem; padding-block: 1rem; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 54px; }
  .topbar nav { flex: 1 1 100%; justify-content: space-between; gap: .5rem .75rem; }
  .topbar nav > a { font-size: .875rem; }
  .button-small { gap: .75rem; padding-inline: .9rem; }
  .hero-grid { padding-block: 2.5rem 2rem; gap: 1rem; }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero h1 em { max-width: 13ch; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .character-card { grid-row: auto; }
  .character-portrait img { height: 320px; }
  .scenery-portrait img { height: 240px; }
  .signup-form-panel { border-left: 0; padding-left: 0; border-top: 1px solid #79907755; padding-top: 1.8rem; }
  .hero-copy { font-size: 1.0625rem; margin-block: 1.5rem; }
  .hero-note { line-height: 1.5; }
  .ribbon .wrap { padding-block: 1.2rem; gap: .75rem; }
  .ribbon p { font-size: .8125rem; }
  .ribbon p + p { padding-left: .75rem; }
  .three, .signup-panel, .faq { grid-template-columns: 1fr; gap: 2rem; }
  .lab-header { display: block; margin-bottom: 2rem; }
  .lab-header > p { margin-top: 1.4rem; }
  .lab-header .eyebrow { margin-top: 0; }
  .foundations-heading { gap: .7rem; }
  .three { margin-top: 2rem; gap: 1.6rem; }
  .three h3 { margin-top: .7rem; }
  .signup-panel { padding: 1.8rem 1.3rem; gap: 2rem; }
  .signup-copy h2 { font-size: 2.8rem; }
  .signup-note { margin-top: 1rem; }
  .faq summary { font-size: 1rem; gap: 1rem; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar nav { column-gap: .6rem; }
  .topbar nav .button { gap: .4rem; padding-inline: .6rem; }
  .hero h1 { font-size: 2.9rem; }
  .ribbon .wrap { grid-template-columns: 1fr; gap: .5rem; }
  .ribbon p { display: flex; gap: .6rem; }
  .ribbon span { margin: 0; }
  .ribbon p + p { padding-left: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .studio-card, .gameplay-player, .signup-panel, .button { border-color: CanvasText; }
  .faq summary::after { color: ButtonText; }
}
