:root {
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.72);
  --dim: rgba(246, 241, 232, 0.48);
  --line: rgba(246, 241, 232, 0.16);
  --black: #07090c;
  --panel: #11151b;
  --panel-2: #171d24;
  --teal: #22c7c8;
  --amber: #ffb33c;
  --red: #ff4f3e;
  --green: #5ee08a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(34, 199, 200, 0.48);
  border-radius: 8px;
  background: rgba(34, 199, 200, 0.12);
  color: var(--teal);
  font-weight: 900;
}
.logo-mark { overflow: hidden; width: 76px; background: rgba(7, 9, 12, 0.7); }
.logo-mark img { display: block; width: 70px; height: 42px; object-fit: contain; object-position: center; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.98rem; }
.brand small { margin-top: 2px; color: var(--dim); font-size: 0.78rem; }

.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 0.92rem; font-weight: 750; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.language-control { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }
.language-control select { min-height: 38px; padding: 0 28px 0 10px; border: 1px solid rgba(246,241,232,.18); border-radius: 8px; background: rgba(246,241,232,.08); color: var(--ink); font: inherit; text-transform: uppercase; }
.language-control option { background: var(--panel); color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(246,241,232,.08); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

.hero { position: relative; display: grid; min-height: 92vh; overflow: hidden; align-items: end; padding: 128px 5vw 68px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.92), rgba(7,9,12,.52) 52%, rgba(7,9,12,.22)), linear-gradient(180deg, rgba(7,9,12,.14), rgba(7,9,12,.9)); }
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero-logo { display: block; width: min(180px, 52vw); margin: 0 0 14px; filter: drop-shadow(0 18px 36px rgba(0,0,0,.52)); }

.page-main { padding-top: 74px; }
.page-hero { padding: clamp(96px, 12vw, 160px) 5vw clamp(56px, 8vw, 100px); background: radial-gradient(circle at 78% 0%, rgba(34,199,200,.2), transparent 38%), radial-gradient(circle at 18% 8%, rgba(255,79,62,.16), transparent 32%), #0c1015; border-bottom: 1px solid var(--line); }
.compact-hero { min-height: 48vh; display: grid; align-items: end; }
.compact-hero > div { max-width: 920px; }
.game-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.game-hero-copy { max-width: 860px; }
.game-key-art { min-height: 380px; }

.eyebrow { margin: 0 0 14px; color: var(--amber); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(3.2rem, 8vw, 6.6rem); line-height: .88; letter-spacing: -.04em; text-wrap: balance; }
h2 { margin-bottom: 14px; font-size: clamp(2.1rem, 4.8vw, 5rem); line-height: .98; letter-spacing: -.04em; }
h3 { margin-bottom: 12px; font-size: 1.22rem; letter-spacing: -.01em; }
.hero-lede { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.36rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 8px; font-weight: 900; }
.button-primary { background: var(--red); color: white; box-shadow: 0 14px 34px rgba(255,79,62,.3); }
.button-primary:hover { background: #e93f31; }
.button-secondary { border: 1px solid rgba(246,241,232,.24); background: rgba(246,241,232,.08); color: var(--ink); }
.text-link { display: inline-flex; margin-top: 22px; color: var(--amber); font-weight: 900; }
.disabled-link { color: var(--dim); cursor: not-allowed; }

.intro-strip { display: grid; grid-template-columns: minmax(180px,.42fr) minmax(280px,.78fr) minmax(280px,1fr); gap: clamp(22px,4vw,58px); align-items: center; padding: 64px 5vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c1015; }
.input-line { margin: 0; color: var(--teal); font-size: clamp(2.8rem,7vw,6rem); font-weight: 950; line-height: 1; }
.input-line span { color: var(--amber); }

.intro-strip p:not(.eyebrow):not(.input-line), .section-heading p, .game-card p, .feature-card p, .game-copy p, .manifesto-grid blockquote, .principles-grid p, .timeline span, .contact-section p, .contact-card p, .fact-card dd { color: var(--muted); line-height: 1.65; }
.intro-strip h2 { margin-bottom: 0; font-size: clamp(2rem,3.5vw,3.8rem); }
.section { padding: 86px 5vw; }
.section-heading { max-width: 900px; margin-bottom: 36px; }
.section-heading p { font-size: 1.08rem; }
.sticky-heading { position: sticky; top: 104px; align-self: start; }
.split-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(28px, 6vw, 76px); align-items: start; }
.feature-stack { display: grid; gap: 16px; }
.feature-grid, .catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; }

.game-card, .feature-card, .contact-card, .fact-card { min-height: 290px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.feature-card { min-height: 220px; }
.featured-card { background: linear-gradient(180deg, rgba(255,79,62,.14), rgba(17,21,27,0) 62%), var(--panel); border-color: rgba(255,79,62,.42); }
.muted-card { background: rgba(17,21,27,.7); }
.card-code { display: inline-grid; min-width: 42px; height: 42px; place-items: center; margin-bottom: 42px; padding: 0 10px; border-radius: 8px; background: rgba(34,199,200,.14); color: var(--teal); font-size: .78rem; font-weight: 950; }
.card-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.card-topline .card-code { margin: 0; }
.status-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; border: 1px solid rgba(94,224,138,.35); border-radius: 999px; background: rgba(94,224,138,.12); color: var(--green); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.status-pill.muted { border-color: rgba(246,241,232,.2); background: rgba(246,241,232,.08); color: var(--dim); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-row span { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(246,241,232,.16); border-radius: 999px; background: rgba(246,241,232,.06); color: var(--muted); font-size: .78rem; font-weight: 800; }

.spotlight-section { background: radial-gradient(circle at 12% 10%, rgba(255,179,60,.08), transparent 32%); }
.spotlight-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; padding: clamp(24px,4vw,42px); border: 1px solid rgba(34,199,200,.28); border-radius: 8px; background: linear-gradient(135deg, rgba(34,199,200,.1), rgba(255,79,62,.1)), var(--panel); }
.spotlight-media { min-height: 320px; }
.spotlight-copy { display: grid; align-content: center; }
.spotlight-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.placeholder-art { display: grid; place-items: center; border: 1px solid rgba(34,199,200,.28); border-radius: 8px; background: radial-gradient(circle at 50% 40%, rgba(34,199,200,.24), transparent 30%), linear-gradient(135deg, rgba(255,79,62,.18), rgba(255,179,60,.08)), #0b0f14; overflow: hidden; }
.placeholder-art span { color: rgba(246,241,232,.86); font-size: clamp(2rem,5vw,4rem); font-weight: 950; letter-spacing: -.04em; text-align: center; text-shadow: 0 16px 34px rgba(0,0,0,.5); }

.game-showcase { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(24px,4vw,56px); align-items: start; padding: clamp(24px,4vw,42px); border: 1px solid rgba(34,199,200,.28); border-radius: 8px; background: linear-gradient(135deg, rgba(34,199,200,.1), rgba(255,79,62,.1)), var(--panel); }
.game-copy { max-width: 860px; }
.game-copy p { margin-bottom: 18px; font-size: 1.04rem; }
.game-copy .game-question { margin: 28px 0 0; color: var(--ink); font-size: clamp(1.35rem,2.2vw,2rem); font-weight: 950; line-height: 1.2; }
.fact-card { min-height: auto; }
.fact-card h3 { color: var(--green); }
.fact-card dl { display: grid; gap: 18px; margin: 0; }
.fact-card div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fact-card div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-card dt { color: var(--dim); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fact-card dd { margin: 4px 0 0; }

.media-section { background: #0c1015; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.media-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.media-grid .large-placeholder { grid-row: span 2; }
.image-placeholder { display: grid; min-height: 180px; place-items: center; border: 1px dashed rgba(246,241,232,.34); border-radius: 8px; background: linear-gradient(135deg, rgba(246,241,232,.08), rgba(34,199,200,.08)), rgba(7,9,12,.4); color: var(--dim); font-size: .8rem; font-weight: 900; text-transform: uppercase; }
.large-placeholder { min-height: 380px; }

.manifesto-section { padding: 82px 5vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c1015; }
.standalone-section { border-top: 0; }
.manifesto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.manifesto-grid blockquote { min-height: 190px; margin: 0; padding: 28px; border: 1px solid rgba(255,179,60,.25); border-radius: 8px; background: linear-gradient(180deg, rgba(255,179,60,.1), rgba(17,21,27,0)), var(--panel); color: var(--ink); font-size: 1.18rem; font-weight: 800; }
.principles-band { padding: 82px 5vw; background: linear-gradient(90deg, rgba(34,199,200,.1), rgba(255,179,60,.08)), #11151b; }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.principles-grid article { min-height: 220px; padding: 28px; background: rgba(7,9,12,.72); }
.roadmap-section { background: radial-gradient(circle at 85% 0%, rgba(94,224,138,.08), transparent 32%); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.timeline li { min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.timeline strong { display: block; margin-bottom: 18px; color: var(--green); }
.contact-section { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; margin: 0 5vw 72px; padding: 34px; border: 1px solid rgba(255,179,60,.32); border-radius: 8px; background: linear-gradient(90deg, rgba(255,179,60,.12), rgba(255,79,62,.1)), var(--panel); }
.contact-section h2 { font-size: clamp(2rem,3.8vw,4rem); }
.contact-section p { max-width: 720px; margin-bottom: 0; }
.contact-grid-section { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.contact-card { min-height: 260px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 5vw; border-top: 1px solid var(--line); color: var(--dim); }
.site-footer strong { color: var(--ink); }

@media (max-width: 980px) {
  .intro-strip, .game-showcase, .contact-section, .split-section, .spotlight-card, .game-hero, .contact-grid-section { grid-template-columns: 1fr; }
  .manifesto-grid, .principles-grid, .timeline, .media-grid { grid-template-columns: 1fr; }
  .sticky-heading { position: static; }
  .media-grid .large-placeholder { grid-row: auto; }
}
@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 68px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 5vw 22px; border-bottom: 1px solid var(--line); background: rgba(7,9,12,.96); }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; }
  .language-control { justify-content: space-between; width: 100%; padding-top: 12px; }
  .language-control select { min-width: 104px; }
  .hero { min-height: 86vh; padding-top: 108px; }
  .hero-logo { width: min(160px,58vw); margin-bottom: 14px; }
  .hero-scrim { background: linear-gradient(90deg, rgba(7,9,12,.94), rgba(7,9,12,.58)), linear-gradient(180deg, rgba(7,9,12,.18), rgba(7,9,12,.94)); }
  h1 { font-size: clamp(3rem,17vw,5.2rem); }
  .game-card, .principles-grid article, .timeline li, .feature-card { min-height: auto; }
  .hero-actions, .button { width: 100%; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 460px) {
  .brand small { display: none; }
  .brand strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}


/* Site v3 additions */
.footer-links { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--ink); }
.breadcrumb { color: var(--dim); font-size: .86rem; font-weight: 800; }
.breadcrumb a { color: var(--amber); }
.utility-grid-section { background: radial-gradient(circle at 80% 0%, rgba(34,199,200,.08), transparent 32%); }
.utility-grid, .download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; }
.utility-card, .download-card, .devlog-card, .notice-card { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.utility-card p, .download-card p, .devlog-card p, .notice-card, .legal-content p, .legal-content li, .post-content p, .post-content li, .faq-list p, .clean-list li { color: var(--muted); line-height: 1.7; }
.download-card { display: grid; gap: 18px; align-content: start; }
.download-card img { width: 100%; max-height: 240px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: rgba(7,9,12,.56); }
.copy-card { min-height: auto; }
.clean-list { margin: 12px 0 0; padding-left: 1.2rem; }
.devlog-list { display: grid; gap: 16px; max-width: 980px; }
.devlog-card h3 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.post-date { color: var(--amber); font-size: .85rem; font-weight: 900; text-transform: uppercase; }
.post-layout { max-width: 920px; margin: 0 auto; padding: clamp(110px, 14vw, 160px) 5vw 90px; }
.post-layout h1 { font-size: clamp(3rem, 7vw, 6rem); }
.post-content { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-content h2, .legal-content h2 { margin-top: 36px; }
.legal-content { max-width: 920px; margin: 0 auto; }
.legal-content a, .fact-card a { color: var(--amber); font-weight: 850; }
.notice-card { margin-top: 34px; border-color: rgba(255,179,60,.35); background: linear-gradient(180deg, rgba(255,179,60,.1), rgba(17,21,27,0)), var(--panel); }
.faq-section { background: radial-gradient(circle at 15% 10%, rgba(255,179,60,.08), transparent 32%); }
.faq-list { display: grid; gap: 12px; max-width: 980px; }
.faq-list details { padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.faq-list summary { cursor: pointer; font-weight: 950; }
.faq-list p { margin-bottom: 0; }
.error-hero { min-height: 72vh; }
.site-nav { gap: clamp(12px, 1.6vw, 22px); }
.site-nav a { white-space: nowrap; }

@media (max-width: 980px) {
  .download-grid, .utility-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .footer-links { flex-direction: column; gap: 8px; }
  .post-layout { padding-top: 110px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 74px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 5vw 22px; border-bottom: 1px solid var(--line); background: rgba(7,9,12,.96); }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; }
  .language-control { justify-content: space-between; width: 100%; padding-top: 12px; }
  .language-control select { min-width: 104px; }
}

/* Hadoken Joystick Easter Egg */
.input-line.interactive-input {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, text-shadow 0.2s;
  user-select: none;
}
.input-line.interactive-input:hover {
  transform: scale(1.05);
  text-shadow: 0 0 16px var(--teal), 0 0 32px var(--amber);
}
.input-line.interactive-input:active {
  transform: scale(0.95);
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-4px, 2px) rotate(-0.5deg); }
  20%, 40%, 60%, 80% { transform: translate(4px, -2px) rotate(0.5deg); }
}
.hadoken-shake {
  animation: screen-shake 0.4s ease-in-out;
}

.hadoken-fireball {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  font-family: Inter, sans-serif;
  font-weight: 950;
  color: var(--teal);
  text-shadow: 0 0 20px var(--teal), 0 0 40px var(--red);
  font-size: clamp(2rem, 5vw, 4rem);
  animation: fly-and-fade 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fly-and-fade {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(50px, -10px) scale(1.2);
  }
  100% {
    transform: translate(400px, -30px) scale(1);
    opacity: 0;
  }
}

