/* Madden Interactive: F3 "Player Select" in a synthwave night.
   Dark site by design. Brand: near-black, purple, lavender, off-white; blue and pink only as neon accents. */
:root {
  --ink: #0B0A12;
  --ink-2: #14141C;
  --panel: #171624;
  --panel-2: #1D1C2B;
  --line: rgba(167, 123, 255, 0.35);
  --line-soft: rgba(245, 244, 250, 0.12);
  --text: #F5F4FA;
  --soft: #CFCDE0;
  --muted: #A3A1B6;
  --purple: #6610EF;
  --purple-hi: #7A2CFF;
  --purple-lo: #3E0898;
  --lavender: #A77BFF;
  --magenta: #FF4FD8;
  --cyan: #3AD6FF;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  --label: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--lavender); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { left: 12px; }
.eyebrow { margin: 0 0 10px; font-family: var(--label); font-weight: 700; letter-spacing: 0.22em; font-size: 14px; color: var(--lavender); text-transform: uppercase; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11, 10, 18, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 18px rgba(102, 16, 239, 0.22); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 56px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a.cta { margin-left: 8px; padding: 0 20px; background: var(--purple); color: #fff; font-weight: 600; box-shadow: 0 0 22px rgba(102, 16, 239, 0.65); }
.nav a.cta:hover { color: #fff; box-shadow: 0 0 32px rgba(167, 123, 255, 0.85); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { position: relative; display: block; width: 20px; height: 2px; background: currentColor; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s, top 0.2s; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .logo img { height: 46px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 20px var(--gutter-l); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
  .nav.open { display: flex; }
  .nav a { min-height: 52px; font-size: 19px; border-bottom: 1px solid var(--line-soft); padding: 0 4px; }
  .nav a.cta { margin: 14px 0 0; justify-content: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #0B0A12 0%, #120B26 55%, #1E0B3A 100%); }
.circuit { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 35%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 35%, #000 70%); }
.stairs { position: absolute; right: 0; top: 24px; width: 40%; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; padding: 8px; z-index: -2; }
.stairs span { aspect-ratio: 1; border: 2px solid var(--lavender); box-shadow: 0 0 12px rgba(167, 123, 255, 0.55), inset 0 0 10px rgba(167, 123, 255, 0.35); background: rgba(102, 16, 239, 0.08); }
.stairs span.fill { background: rgba(102, 16, 239, 0.55); border-color: #C9A9FF; }
.stairs span.top { border-color: var(--magenta); box-shadow: 0 0 18px rgba(255, 79, 216, 0.7), inset 0 0 12px rgba(255, 79, 216, 0.4); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 30px rgba(255, 79, 216, 0.95), inset 0 0 16px rgba(255, 79, 216, 0.6); } }
.hero-3d { position: absolute; inset: 0; z-index: -1; }
.hero-3d canvas { display: block; width: 100%; height: 100%; }
/* Without WebGL: a CSS neon floor so the hero still has its horizon. */
.hero-floor { position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; z-index: -2; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,79,216,0.35) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(167,123,255,0.35) 0 1px, transparent 1px 40px);
  transform: perspective(380px) rotateX(58deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
.hero.has-3d .hero-floor { display: none; }
.hero-copy { padding: clamp(64px, 8vw, 128px) 0 clamp(170px, 18vw, 260px); max-width: 800px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(11, 10, 18, 0.8); }
.lede { margin: 26px 0 0; max-width: 520px; font-size: 19px; color: var(--soft); text-shadow: 0 1px 3px var(--ink), 0 0 18px rgba(11, 10, 18, 0.95); }
.buttons { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; font-family: var(--body); transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.1s ease; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 0 0 1px #8F55FF, 0 0 26px rgba(102, 16, 239, 0.75); }
.btn-primary:hover { color: #fff; box-shadow: 0 0 0 1px #C9A9FF, 0 0 40px rgba(167, 123, 255, 0.9); }
.btn-ghost { border: 2px solid var(--cyan); color: var(--text); background: rgba(11, 10, 18, 0.55); box-shadow: 0 0 16px rgba(58, 214, 255, 0.35), inset 0 0 12px rgba(58, 214, 255, 0.2); }
.btn-ghost:hover { color: var(--text); box-shadow: 0 0 28px rgba(58, 214, 255, 0.7), inset 0 0 16px rgba(58, 214, 255, 0.35); }
.motion-toggle { position: absolute; right: var(--gutter-r); bottom: 16px; z-index: 2; font: 600 13px var(--body); color: var(--soft); background: rgba(11, 10, 18, 0.6); border: 1px solid var(--line); min-height: 40px; padding: 0 14px; cursor: pointer; }
.motion-toggle:hover { color: var(--text); border-color: var(--lavender); }
@media (max-width: 900px) {
  .stairs { width: 78%; top: 8px; opacity: 0.75; }
  .hero-copy { padding: 270px 0 180px; }
}
@media (prefers-reduced-motion: reduce) { .stairs span.top { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section h2 { margin: 0; font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -0.02em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.band-dark { background: var(--ink); }
.band-select { background: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -1px 30px rgba(255, 79, 216, 0.22); }

/* Player select */
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.card { background: var(--panel); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid rgba(167, 123, 255, 0.45); box-shadow: 0 0 18px rgba(102, 16, 239, 0.22), 0 10px 0 #07070B; min-width: 0; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; position: relative; }
.card:hover { border-color: var(--cyan); box-shadow: 0 0 30px rgba(58, 214, 255, 0.4), 0 10px 0 #07070B; transform: translateY(-3px); }
.card.selected { border: 2px solid var(--magenta); box-shadow: 0 0 34px rgba(255, 79, 216, 0.5), inset 0 0 22px rgba(255, 79, 216, 0.12), 0 10px 0 #07070B; }
.card.selected::after { content: "SELECTED"; position: absolute; top: -13px; right: 22px; padding: 3px 11px; background: var(--magenta); color: #14141C; font: 700 12px/1.4 var(--label); letter-spacing: 0.12em; box-shadow: 0 0 16px rgba(255, 79, 216, 0.8); }
.card-art { height: 168px; border-radius: 16px; background: #22213A; display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.card-art span { display: block; }
.card .tag { font: 700 13px var(--label); letter-spacing: 0.12em; color: var(--lavender); }
.card.selected .tag { color: #FF8BE6; }
.card h3 { margin: 0; font-size: 27px; }
.card p { margin: 0; color: var(--soft); flex-grow: 1; }
.card .select-btn { text-decoration: none; min-height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--text); color: var(--ink-2); font-weight: 700; box-shadow: 0 6px 0 #A9A7B8; }
.card .select-btn:hover { color: var(--ink-2); background: #fff; }
.card.selected .select-btn { background: var(--purple); color: #fff; box-shadow: 0 6px 0 var(--purple-lo); }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.game { background: var(--panel); border: 1px solid rgba(167, 123, 255, 0.3); overflow: hidden; }
.game-art { height: 220px; background: #22213A; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.game-body { padding: 20px 24px 24px; }
.game .status { margin: 0; font: 700 13px var(--label); letter-spacing: 0.12em; color: var(--lavender); }
.game h3 { margin: 4px 0 0; font-size: 22px; }
.px { display: block; }
.glow-p { background: var(--purple); box-shadow: 0 0 18px rgba(102, 16, 239, 0.9); }
.glow-l { background: var(--lavender); box-shadow: 0 0 20px rgba(167, 123, 255, 0.9); }
.glow-m { background: var(--magenta); box-shadow: 0 0 20px rgba(255, 79, 216, 0.9); }

/* Featured app */
.band-light { background: #F5F4FA; color: #14141C; }
.band-light a { color: #14141C; }
.feature { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.feature-copy { flex: 1 1 420px; min-width: 0; }
.feature .eyebrow { color: var(--purple); }
.feature h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); }
.feature p { margin: 20px 0 0; font-size: 19px; color: #3D3D4A; max-width: 520px; }
.feature-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; background: #14141C; color: #fff !important; font-weight: 600; }
.play.soon { background: transparent; color: #14141C !important; border: 2px dashed #14141C; cursor: default; }
.text-link { color: var(--purple) !important; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.phone { flex: 0 1 300px; display: flex; justify-content: center; position: relative; }
.phone-body { width: 260px; height: 530px; border-radius: 40px; background: #14141C; padding: 12px; box-shadow: 0 30px 60px -20px rgba(102, 16, 239, 0.45); }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; background: linear-gradient(160deg, #0B6E4F, #0A5A41); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 24px; }
.phone-screen strong { font: 700 26px var(--display); }
.phone-screen span { font-size: 15px; opacity: 0.9; }
.phone .px-a, .phone .px-b { position: absolute; width: 34px; height: 34px; background: var(--purple); }
.phone .px-a { right: 6px; top: -10px; }
.phone .px-b { right: -34px; top: -50px; background: var(--lavender); }

/* How we work */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-items: end; }
.levels li { background: var(--panel); border: 1px solid rgba(167, 123, 255, 0.28); padding: 24px; }
.levels .lv { margin: 0; font: 700 13px var(--label); letter-spacing: 0.12em; color: var(--lavender); }
.levels h3 { margin: 6px 0 4px; font-size: 23px; }
.levels p { margin: 0; color: var(--soft); }
.xp { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.xp span { height: 8px; background: #2A2A3A; }
.xp span.on { background: var(--lavender); box-shadow: 0 0 10px rgba(167, 123, 255, 0.8); }
.levels li.last { border-color: var(--purple); box-shadow: 0 0 30px rgba(102, 16, 239, 0.35); }

/* Contact */
.contact { border-radius: 28px; background: var(--purple); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; box-shadow: 0 0 70px rgba(102, 16, 239, 0.4); }
.contact h2 { color: #fff; }
.contact-copy { flex: 1 1 340px; min-width: 0; }
.contact-copy p { margin: 18px 0 0; font-size: 18px; }
.contact-copy a { color: #fff; font-weight: 600; font-size: 19px; overflow-wrap: anywhere; }
.contact form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.contact input, .contact textarea { min-height: 54px; padding: 0 16px; border: 0; border-radius: 12px; font: 400 17px var(--body); color: #14141C; background: #fff; }
.contact textarea { padding: 14px 16px; resize: vertical; min-height: 130px; }
.contact .btn-send { align-self: flex-start; background: #14141C; color: #fff; border-radius: 14px; box-shadow: 0 6px 0 #000; }
.contact .btn-send:hover { box-shadow: 0 6px 0 #000, 0 0 24px rgba(255, 255, 255, 0.25); }
.form-note { margin: 0; font-size: 14px; opacity: 0.9; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap { padding-block: 48px 36px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.site-footer img { height: 84px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-base { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 15px; }
.foot-base a { color: var(--muted); }

/* Plain text pages (privacy) and the holding page */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 12px; }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--soft); }
.prose .updated { color: var(--muted); font-size: 15px; }
.soon-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.soon-page .hero { flex: 1; display: flex; align-items: center; }
.soon-page .hero-copy { padding-block: 80px 200px; }
.soon-logo { height: 120px; width: auto; margin-bottom: 36px; }
