/* Karate Duel — WEB-01 marketing landing
   Dark dojo / sakura / neon-accent · mobile-first */

:root {
  --bg: #0a0710;
  --bg-elevated: #140e1c;
  --bg-card: #1a1226;
  --ink: #f4eef8;
  --ink-muted: #b5a4c4;
  --sakura: #ff7eb6;
  --sakura-soft: #ffb3d4;
  --neon: #7ef0ff;
  --neon-dim: #3a9eaa;
  --gold: #f0c26a;
  --border: rgba(255, 126, 182, 0.22);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--neon); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--sakura-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--neon);
  color: #041218;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 7, 16, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--sakura-soft); }

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sakura), #9b2d6a);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(255, 126, 182, 0.45);
}

.nav {
  display: none;
  gap: 1.1rem;
  font-size: 0.92rem;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover, .nav a:focus-visible { color: var(--sakura-soft); }

@media (min-width: 720px) {
  .nav { display: flex; }
}

/* Hero — full first viewport; fighters absolute L/R flanking title */
.hero {
  --header-h: 3.5rem;
  position: relative;
  isolation: isolate;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 0;
  max-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/hero_dojo_sakura.jpg") center / cover no-repeat,
    linear-gradient(160deg, #1a0a28, #2a0f35 45%, #0d1a28);
  z-index: -2;
  transform: scale(1.02);
}

/* Absolute L/R layers — no grid (grid collapsed both fighters to left on live) */
.hero-fighters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-fighter {
  position: absolute;
  bottom: 0;
  display: block;
  /* Scale to 2x where the first viewport has room; never clip vertically. */
  height: min(100%, 96vh);
  width: auto;
  /* Beat global img max-width:100% so stills keep L/R size */
  max-width: min(84vw, 960px);
  object-fit: contain;
  object-position: bottom center;
  opacity: 0.95;
  mix-blend-mode: normal;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
}

.hero-fighter--left {
  left: clamp(0px, 2vw, 1.5rem);
  /* Idle sprites face viewer-left; flip left so male faces center (right) */
  transform: scaleX(-1);
}

.hero-fighter--right {
  right: clamp(0px, 2vw, 1.5rem);
  /* Unflipped: female faces center (left) toward male */
}

@media (max-width: 720px) {
  .hero-fighter {
    height: min(100%, 96vh);
    max-width: min(92vw, 560px);
    opacity: 0.82;
  }
  .hero-content {
    padding-inline: min(18vw, 6rem);
  }
}

@media (max-width: 420px) {
  .hero-fighter {
    height: min(100%, 96vh);
    max-width: min(88vw, 420px);
    opacity: 0.72;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }
  .hero-tagline {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-fighter {
    mix-blend-mode: normal;
    opacity: 0.75;
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.22) 0%, rgba(10, 7, 16, 0.35) 40%, rgba(10, 7, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 7, 16, 0.12) 0%, transparent 20%, transparent 80%, rgba(10, 7, 16, 0.12) 100%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 126, 182, 0.14), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
  /* Keep title clear of flanking fighters */
  padding-inline: min(22vw, 12rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(126, 240, 255, 0.35);
  border-radius: 999px;
  color: var(--neon);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(126, 240, 255, 0.08);
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(255, 126, 182, 0.35);
}

.hero-tagline {
  margin: 0 auto 1.15rem;
  color: var(--ink-muted);
  font-size: clamp(0.92rem, 2.4vw, 1.1rem);
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sakura), #e23d8a);
  color: #1a0610;
  box-shadow: 0 0 24px rgba(255, 126, 182, 0.4);
}
.btn-primary:hover { color: #1a0610; filter: brightness(1.06); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--sakura); color: var(--sakura-soft); }

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4.5vw, 2.15rem);
  letter-spacing: 0.01em;
}

.lede, .section-note {
  color: var(--ink-muted);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.about {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(126, 240, 255, 0.07), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-grid li {
  background: linear-gradient(165deg, rgba(26, 18, 38, 0.95), rgba(16, 10, 24, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--sakura);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.feature-grid p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.shot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .shot-grid { grid-template-columns: repeat(3, 1fr); }
}

.shot-slot { margin: 0; }

.shot-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 126, 182, 0.45);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 126, 182, 0.05),
      rgba(255, 126, 182, 0.05) 8px,
      rgba(126, 240, 255, 0.04) 8px,
      rgba(126, 240, 255, 0.04) 16px
    ),
    #120c1a;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem;
}

.shot-label {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sakura-soft);
  font-size: 0.85rem;
}

.shot-sub {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.shot-slot figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: center;
}
.shot-slot figcaption em { color: var(--gold); font-style: normal; }

/* Stores */
.stores {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 126, 182, 0.12), transparent 60%),
    var(--bg);
}

.stores-inner { text-align: center; }
.stores-inner .section-note { margin-inline: auto; }

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.store-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: min(100%, 15rem);
  padding: 1rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.85;
  pointer-events: none;
}
.store-btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.store-platform {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.store-status {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
}

.contact-placeholder {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(240, 194, 106, 0.55);
  background: rgba(240, 194, 106, 0.08);
  color: var(--ink-muted);
  max-width: 36rem;
}
.contact-placeholder strong {
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #07050c;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand .logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  box-shadow: none;
}

.footer-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


/* Disabled store placeholders (button, not links) */
button.store-btn {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  cursor: not-allowed;
  opacity: 0.85;
}
button.store-btn:disabled {
  cursor: not-allowed;
}
