/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #0a0a0c;
  --dark:     #111117;
  --dark2:    #18181f;
  --dark3:    #1e1e28;
  --gold:     #c9a84c;
  --gold-lt:  #e8c97a;
  --gold-dk:  #8a6820;
  --red:      #9b2335;
  --white:    #f0ead8;
  --muted:    #8a8494;
  --border:   rgba(201,168,76,0.18);

  --font-display: 'Cinzel', serif;
  --font-jp:      'Noto Serif JP', serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1100px;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

/* ── Background torii pattern ────────────────────────── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='160' viewBox='0 0 120 160'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.04)' stroke-width='1.5'%3E%3Crect x='20' y='100' width='80' height='6' rx='3'/%3E%3Crect x='30' y='60' width='60' height='5' rx='2.5'/%3E%3Crect x='10' y='106' width='14' height='54'/%3E%3Crect x='96' y='106' width='14' height='54'/%3E%3Crect x='24' y='65' width='10' height='35'/%3E%3Crect x='86' y='65' width='10' height='35'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 240px 320px;
  opacity: 1;
}

body > * { position: relative; z-index: 1; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 50%, var(--gold-lt) 100%);
  color: #1a0e00;
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.btn-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.8;
  text-transform: none;
}

.btn-download {
  background: #111;
  color: var(--white);
  border: 1px solid var(--border);
  flex-direction: row;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 12px 24px;
}
.btn-download:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.apple-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Section shared ──────────────────────────────────── */
.section { padding: 96px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  margin-bottom: 6px;
}
.section-sub {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 56px;
  opacity: 0.85;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* logo has black bg — blend into header */
  mix-blend-mode: lighten;
}

.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 32px rgba(201,168,76,0.35));
  animation: float 4s ease-in-out infinite;
}

.hero-eyebrow {
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  max-width: 900px;
}
.hero-sub {
  font-family: var(--font-jp);
  font-size: clamp(15px, 2vw, 20px);
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
}
.hero-divider {
  margin-top: 12px;
  font-size: 28px;
  opacity: 0.4;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Games ───────────────────────────────────────────── */
.games { background: var(--dark); }
.games .section-title,
.games .section-sub { text-align: center; }

.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.game-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.game-logo-kanji {
  font-family: var(--font-jp);
  font-size: 52px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(201,168,76,0.4);
}
.game-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.game-logo-text em {
  font-style: italic;
  color: var(--gold);
}

.game-desc {
  color: rgba(240,234,216,0.75);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.link-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ── Carousel ────────────────────────────────────────── */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark3);
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
  max-height: 480px;
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.placeholder-icon { font-size: 48px; opacity: 0.5; }

.slide-1 { background: linear-gradient(160deg, #1a0e1c 0%, #110a18 100%); }
.slide-2 { background: linear-gradient(160deg, #1a0e10 0%, #110810 100%); }
.slide-3 { background: linear-gradient(160deg, #0e0f1a 0%, #080c18 100%); }
.slide-4 { background: linear-gradient(160deg, #1a1108 0%, #120d05 100%); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(201,168,76,0.15); border-color: var(--gold); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── About ───────────────────────────────────────────── */
.about { position: relative; overflow: hidden; }
.about-deco {
  position: absolute;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  font-family: var(--font-jp);
  font-size: 240px;
  color: rgba(201,168,76,0.03);
  pointer-events: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
}
.about-inner {
  display: flex;
  justify-content: center;
}
.about-content {
  max-width: 800px;
  width: 100%;
}
.about-mission {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(240,234,216,0.8);
  font-family: var(--font-jp);
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
}
.about-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
}
.team-badge {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 6px 18px;
  border-radius: 20px;
}
.team-desc {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.pillar:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.pillar-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.pillar p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Contact ─────────────────────────────────────────── */
.contact { background: var(--dark); }

.contact-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-group input,
.form-group textarea {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138,132,148,0.6); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.btn-submit { align-self: flex-start; }

.form-note {
  font-size: 13px;
  color: var(--gold);
  min-height: 20px;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
  opacity: 0.8;
  filter: brightness(1.1);
  transition: opacity 0.2s, filter 0.2s;
}
.footer-logo:hover .footer-logo-img { opacity: 1; filter: brightness(1.3); }
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.copyright {
  font-size: 12px;
  color: rgba(138,132,148,0.5);
  letter-spacing: 0.04em;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; gap: 0; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10,10,12,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .nav.open a {
    padding: 14px 24px;
    font-size: 13px;
  }
  .nav-toggle { display: flex; }

  .game-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .game-card-right { order: -1; }
  .carousel { max-height: 360px; max-width: 220px; }

  .about-pillars { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .contact-card { padding: 32px 24px; }
  .btn-submit { align-self: stretch; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: 100px 20px 64px; }
  .hero-title { font-size: 32px; }
}
