@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  /* Pastel retro-arcade — bright & energetic, NOT neon, NOT muted */
  --bg:      #201636;
  --bg-2:    #2C1F4A;
  --bg-3:    #392A5E;
  --ink:     #FBF3FF;
  --muted:   #C2B1E0;

  --pink:    #FF9CC9;
  --lav:     #C6A5FF;
  --mint:    #9CF0CE;
  --cyan:    #9BE3FF;
  --yellow:  #FFE39B;

  --line:    rgba(251, 243, 255, 0.14);
  --line-2:  rgba(251, 243, 255, 0.30);
  --shadow:  #140d24;

  --font-arcade: 'Press Start 2P', monospace;
  --font-body:   'VT323', monospace;

  --maxw: 1200px;
  --ease: 0.18s steps(4, end);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-x: hidden;
  image-rendering: pixelated;
}
img { image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-arcade); line-height: 1.4; font-weight: 400; }
::selection { background: var(--pink); color: var(--shadow); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--lav); }

/* CRT scanlines overlay */
.scanlines { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px); }
.app { position: relative; z-index: 1; }

/* Arcade text helpers */
.arcade { font-family: var(--font-arcade); }
.blink { animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 4%;
  background: rgba(32, 22, 54, 0.85); backdrop-filter: blur(6px); border-bottom: 3px solid var(--line); }
.logo { display: flex; flex-direction: column; gap: 3px; }
.logo-name { font-family: var(--font-arcade); font-size: 0.95rem; color: var(--pink); }
.logo-sub { font-family: var(--font-body); font-size: 1rem; color: var(--muted); }
.nav { display: none; gap: 1.8rem; }
@media (min-width: 860px) { .nav { display: flex; align-items: center; } }
.nav a { font-family: var(--font-arcade); font-size: 0.6rem; text-transform: uppercase; color: var(--muted); transition: color var(--ease); }
.nav a:hover { color: var(--cyan); }
.lang-toggle { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-arcade); font-size: 0.6rem; }
.lang-option { cursor: pointer; color: var(--muted); }
.lang-option.active { color: var(--yellow); }
.lang-sep { color: var(--line-2); }

/* CHUNKY ARCADE BUTTONS */
.btn { display: inline-block; font-family: var(--font-arcade); font-size: 0.7rem; text-transform: uppercase;
  padding: 0.95rem 1.4rem; cursor: pointer; border: 3px solid var(--shadow);
  box-shadow: 4px 4px 0 var(--shadow); transition: transform var(--ease), box-shadow var(--ease), background var(--ease); }
.btn:active, .btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-primary { background: var(--pink); color: var(--shadow); }
.btn-primary:hover { background: var(--yellow); }
.btn-ghost { background: var(--bg-3); color: var(--ink); }
.btn-ghost:hover { background: var(--lav); color: var(--shadow); }
.btn-block { width: 100%; text-align: center; }
.btn.is-disabled { background: var(--bg-3); color: var(--muted); pointer-events: none; box-shadow: 2px 2px 0 var(--shadow); }

/* HERO — arcade CRT */
.hero { padding: 120px 4% 3rem; }
.crt { max-width: var(--maxw); margin: 0 auto; background: var(--bg-2);
  border: 4px solid var(--lav); border-radius: 18px; padding: 1rem; box-shadow: 0 0 0 4px var(--shadow), 0 24px 60px rgba(0,0,0,0.5); }
.crt-hud { display: flex; justify-content: space-between; font-family: var(--font-arcade); font-size: 0.6rem; color: var(--cyan); padding: 0.3rem 0.6rem 0.8rem; }
.crt-screen { position: relative; min-height: 72vh; overflow: hidden; border-radius: 10px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(198,165,255,0.18), transparent 60%),
    radial-gradient(100% 80% at 80% 90%, rgba(255,156,201,0.16), transparent 60%),
    linear-gradient(160deg, #241a40, #1a1230);
  display: flex; align-items: center; }
.crt-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(20,13,36,0.9); border-radius: 10px;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 4px); }

.hero-character { position: absolute; right: 3%; bottom: 0; height: min(66vh, 560px); width: auto; z-index: 3;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.5)); }
.hero-ghost { position: absolute; left: 16%; top: 18%; height: 76px; width: auto; z-index: 4; animation: bob 3.5s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-16px); } }

.hero-copy { position: relative; z-index: 5; padding: 2.5rem clamp(1.2rem, 4vw, 3rem); max-width: 640px; }
.insert-coin { display: block; font-family: var(--font-arcade); font-size: 0.6rem; color: var(--yellow); margin-bottom: 1rem; }
.hero-tagline { display: block; font-family: var(--font-arcade); font-size: 0.62rem; color: var(--cyan); margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(1.7rem, 5.5vw, 3.4rem); color: var(--pink);
  text-shadow: 3px 3px 0 var(--lav), 6px 6px 0 var(--shadow); letter-spacing: 1px; margin-bottom: 1.4rem; }
.hero-subtitle { font-size: 1.4rem; color: var(--ink); max-width: 460px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.press-start { display: block; font-family: var(--font-arcade); font-size: 0.65rem; color: var(--mint); }

/* MARQUEE */
.marquee-wrap { overflow: hidden; background: var(--pink); border-top: 4px solid var(--shadow); border-bottom: 4px solid var(--shadow); padding: 0.7rem 0; }
.marquee { display: flex; white-space: nowrap; width: max-content; animation: scroll 30s linear infinite; }
.m-item { font-family: var(--font-arcade); font-size: 0.8rem; color: var(--shadow); padding: 0 1.2rem; text-transform: uppercase; }
.m-star { color: var(--bg); align-self: center; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION TITLES */
.section-title { font-size: clamp(1.1rem, 3vw, 1.8rem); color: var(--lav); text-align: center;
  text-shadow: 2px 2px 0 var(--shadow); margin-bottom: 2.5rem; }

/* SELECT YOUR FIGHTER */
.select { max-width: var(--maxw); margin: 0 auto; padding: 5rem 4%; }
.select-title { font-size: clamp(1.2rem, 3.5vw, 2rem); color: var(--yellow); text-align: center; text-shadow: 3px 3px 0 var(--shadow); margin-bottom: 2.5rem; }
.select-stage { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 820px) { .select-stage { grid-template-columns: 1.1fr 0.9fr; } }

.select-preview { position: relative; aspect-ratio: 1 / 1; border: 4px solid var(--shadow); border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, var(--tint, #2a2140) 0%, #1a1230 78%); transition: background 0.3s; }
.select-ghost { position: absolute; font-family: var(--font-arcade); font-size: clamp(2rem, 9vw, 6rem); color: rgba(251,243,255,0.06); z-index: 1; white-space: nowrap; letter-spacing: 2px; pointer-events: none; }
#fighter-image { position: relative; z-index: 2; max-width: 82%; max-height: 82%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); }
.fighter-locked { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; }
.fighter-locked span { font-family: var(--font-arcade); font-size: 4rem; color: var(--line-2); }

.fighter-card { background: var(--bg-2); border: 3px solid var(--lav); border-radius: 12px; padding: 1.8rem; box-shadow: 6px 6px 0 var(--shadow); }
.fighter-class { display: inline-block; font-family: var(--font-arcade); font-size: 0.6rem; text-transform: uppercase; color: var(--shadow); background: var(--cyan); padding: 0.35rem 0.6rem; margin-bottom: 1rem; }
.anim-badge { display: inline-block; font-family: var(--font-arcade); font-size: 0.55rem; text-transform: uppercase; color: var(--shadow); background: var(--mint); padding: 0.35rem 0.6rem; margin-left: 0.4rem; margin-bottom: 1rem; }
.fighter-name { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--pink); margin-bottom: 1.2rem; }
.fighter-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.fighter-stats div { border: 2px solid var(--line); padding: 0.5rem 0.7rem; background: var(--bg); }
.fighter-stats dt { font-family: var(--font-arcade); font-size: 0.5rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.fighter-stats dd { font-size: 1.3rem; color: var(--mint); }
.fighter-desc { color: var(--muted); font-size: 1.25rem; margin-bottom: 1.4rem; }

.roster { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.slot { width: 92px; height: 92px; background: var(--bg-3); border: 3px solid var(--line-2); cursor: pointer; padding: 6px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.slot img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.slot:hover { border-color: var(--cyan); transform: translateY(-3px); }
.slot.active { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink), 4px 4px 0 var(--shadow); }
.slot.locked { display: flex; align-items: center; justify-content: center; border-style: dashed; }
.slot.locked span { font-family: var(--font-arcade); font-size: 1.4rem; color: var(--line-2); }
.slot.anim { position: relative; }
.slot.anim::after { content: '▶'; position: absolute; top: 3px; right: 4px; font-family: var(--font-arcade); font-size: 0.5rem; color: var(--mint); text-shadow: 1px 1px 0 var(--shadow); }
.select-hint { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: 1.2rem; }

/* COMMISSIONS */
.commissions { max-width: var(--maxw); margin: 0 auto; padding: 5rem 4%; text-align: center; }
.comm-status { display: flex; align-items: center; justify-content: center; gap: 0.7rem; font-size: clamp(0.9rem, 3vw, 1.5rem); }
.comm-status .state { color: var(--mint); }
.is-closed .comm-status .state { color: var(--pink); }
.status-coin { width: 16px; height: 16px; background: var(--mint); border: 2px solid var(--shadow); border-radius: 50%; }
.is-open .status-coin { animation: blink 1.4s steps(1,end) infinite; }
.is-closed .status-coin { background: var(--pink); }
.comm-text { color: var(--muted); max-width: 520px; margin: 1.4rem auto 2.5rem; font-size: 1.3rem; }
.comm-cols { display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: left; margin-bottom: 2.5rem; }
@media (min-width: 720px) { .comm-cols { grid-template-columns: 1fr 1fr; } }
.comm-card { background: var(--bg-2); border: 3px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.comm-card h3 { font-size: 0.75rem; color: var(--yellow); margin-bottom: 1rem; }
.comm-card ul { list-style: none; }
.comm-card li { color: var(--muted); padding: 0.45rem 0; border-bottom: 2px solid var(--line); font-size: 1.25rem; }
.comm-card li:last-child { border-bottom: none; }
.comm-card li::before { content: '▸ '; color: var(--cyan); }
.comm-note { margin-top: 1rem !important; color: var(--pink) !important; font-size: 1.1rem; border: none !important; }

/* PROCESS */
.process { max-width: var(--maxw); margin: 0 auto; padding: 4rem 4%; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.process-step { background: var(--bg-2); border: 3px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.step-id { font-family: var(--font-arcade); font-size: 0.75rem; color: var(--cyan); display: block; margin-bottom: 1rem; }
.process-step h3 { font-size: 0.85rem; color: var(--pink); margin-bottom: 0.8rem; }
.process-step p { color: var(--muted); font-size: 1.2rem; }

/* ABOUT — the duo */
.about { max-width: var(--maxw); margin: 0 auto; padding: 5rem 4%; text-align: center; }
.about-intro { color: var(--muted); font-size: 1.4rem; max-width: 560px; margin: 0 auto 2.5rem; }
.about-players { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.player-card { background: var(--bg-2); border: 3px solid var(--lav); border-radius: 12px; padding: 1.8rem; width: 240px; box-shadow: 6px 6px 0 var(--shadow); }
.player-avatar { aspect-ratio: 1; background: var(--bg); border: 2px dashed var(--line-2); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.player-avatar span { font-family: var(--font-arcade); font-size: 0.7rem; color: var(--muted); }
.player-card h3 { font-size: 1rem; color: var(--yellow); margin-bottom: 0.5rem; }
.player-card p { color: var(--muted); font-size: 1.2rem; }

/* TERMS */
.terms { max-width: 780px; margin: 0 auto; padding: 4rem 4%; }
.terms-list { list-style: none; }
.terms-list li { color: var(--muted); font-size: 1.25rem; padding: 0.7rem 0 0.7rem 1.8rem; position: relative; border-bottom: 2px solid var(--line); }
.terms-list li::before { content: '✦'; position: absolute; left: 0; color: var(--lav); }

/* CONTACT */
.contact { max-width: var(--maxw); margin: 0 auto; padding: 5rem 4%; }
.contact-intro { color: var(--muted); font-size: 1.35rem; text-align: center; margin-bottom: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.6fr 0.9fr; align-items: start; } }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-family: var(--font-arcade); font-size: 0.55rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; background: var(--bg-2); border: 3px solid var(--line-2); color: var(--ink);
  font-family: var(--font-body); font-size: 1.25rem; padding: 0.7rem 0.9rem; transition: border-color var(--ease); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); }
.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-note { color: var(--muted); font-size: 1.1rem; }

/* FOOTER */
.footer { border-top: 4px solid var(--line); background: var(--bg-2); padding: 4rem 4% 2.5rem; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-logo { font-family: var(--font-arcade); font-size: 1.2rem; color: var(--pink); margin-bottom: 0.8rem; }
.footer-tagline { color: var(--muted); font-size: 1.2rem; }
.footer-social span { display: block; font-family: var(--font-arcade); font-size: 0.6rem; color: var(--muted); margin-bottom: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; font-family: var(--font-arcade); font-size: 0.65rem; }
.footer-links a { color: var(--cyan); }
.footer-bottom { max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 2px solid var(--line); font-family: var(--font-arcade); font-size: 0.55rem; color: var(--muted); text-align: center; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .form-row { flex-direction: column; gap: 0; }
  .hero-character { opacity: 0.35; right: 50%; transform: translateX(50%); }
  .hero-ghost { display: none; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
