/* ==========================================================
   ごるバトGO！ Portal — Interactive Edition
   ========================================================== */

:root {
  /* Turf & light */
  --turf-deep:    #04361c;
  --turf-mid:     #0a5a2e;
  --turf-bright:  #19974b;
  --turf-glow:    #4ed989;
  --fairway:      #77c66a;

  /* UI accent */
  --gold:         #f6c453;
  --rose:         #ff6b6b;
  --mango:        #ff9f43;
  --sky:          #5eb7ff;

  /* Ink */
  --ink:          #0b2614;
  --ink-soft:     #1b3a28;
  --paper:        #f6fff2;
  --paper-dim:    rgba(246,255,242,0.72);
  --paper-mute:   rgba(246,255,242,0.45);

  /* radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --ease-out:   cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

* , *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: 'M PLUS Rounded 1c', 'Outfit', system-ui, sans-serif;
  color: var(--paper);
  background: #04240f;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==========================================================
   LIVING BACKGROUND
   ========================================================== */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-grad {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(78, 217, 137, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 100%, rgba(246,196,83,0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 100%, rgba(94,183,255,0.10), transparent 55%),
    linear-gradient(160deg, #052a14 0%, #084d27 45%, #062e17 100%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 85%);
}
.bg-noise {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(1px 1px at 80% 40%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,0.18), transparent 50%);
  opacity: 0.6;
}
.bg-sweep {
  position: absolute; inset: 0;
  background:
    conic-gradient(from 200deg at 50% -20%,
      transparent 0deg,
      rgba(246,196,83,0.08) 25deg,
      transparent 60deg,
      transparent 360deg);
  animation: sweep 18s linear infinite;
  transform-origin: 50% 0%;
}
@keyframes sweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating golf balls */
.floater {
  position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #e7f0e3 40%, #9db79a 100%);
  box-shadow:
    inset -2px -3px 4px rgba(0,0,0,0.2),
    0 6px 14px rgba(0,0,0,0.25);
  opacity: 0.85;
  animation: floaty 12s ease-in-out infinite;
}
.floater::before {
  content:''; position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,0.08) 0.5px, transparent 1px) 2px 2px / 5px 5px,
    radial-gradient(circle at 60% 60%, rgba(0,0,0,0.08) 0.5px, transparent 1px) 0 0 / 5px 5px;
  opacity: 0.6;
}
@keyframes floaty {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(12px,-28px) rotate(180deg); }
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.page {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 28px 24px 72px;
}

/* ==========================================================
   TOP BAR
   ========================================================== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px; margin-bottom: 18px;
  color: var(--paper);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-dim);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--turf-glow));
  box-shadow: 0 0 12px var(--turf-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 10px var(--turf-glow); }
  50%     { transform: scale(1.25); box-shadow: 0 0 22px var(--turf-glow); }
}
.meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--paper-mute); font-weight: 600;
}
.meta-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}
.meta-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5c5c; box-shadow: 0 0 8px #ff5c5c;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 420px;
  isolation: isolate;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(4,36,20,0.65) 100%),
    radial-gradient(120% 80% at 50% 30%, rgba(78,217,137,0.25), transparent 60%),
    linear-gradient(180deg, #0a6e38, #03381c);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-stage {
  position: relative;
  display: grid; place-items: center;
  padding: 32px 16px 72px;
  min-height: 420px;
  perspective: 1200px;
}
.hero-stage-inner {
  position: relative;
  width: min(100%, 100%);
  aspect-ratio: 16/9;
  transform-style: preserve-3d;
  transition: transform 0.15s var(--ease-out);
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.18),
    inset 0 0 0 2px rgba(255,255,255,0.25);
  transform: translateZ(60px);
}
.hero-glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(255,214,110,0.5), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(78,217,137,0.45), transparent 70%);
  filter: blur(30px);
  transform: translateZ(10px);
  pointer-events: none;
}

/* decorative ring around hero image */
.hero-ring {
  position: absolute; inset: -18px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: calc(var(--r-lg) + 18px);
  transform: translateZ(20px);
  pointer-events: none;
}

/* Flying balls around hero */
.hero-ball {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #d7e1d1 55%, #7c9279);
  box-shadow:
    inset -3px -4px 6px rgba(0,0,0,0.28),
    0 10px 20px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
}
.hero-ball::after {
  content:''; position:absolute; inset: 3px;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.12) 0.6px, transparent 1.2px) 0 0 / 5px 5px;
  opacity: 0.8;
}

/* Hero bottom gradient + tagline */
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  z-index: 3;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(3,28,14,0.85));
}
.hero-title {
  font-family: 'Outfit', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-title small {
  display: block; font-size: 0.55em; font-weight: 700;
  color: var(--paper-mute);
  letter-spacing: 0.18em; margin-bottom: 6px;
  text-transform: uppercase;
}
.hero-title .accent {
  background: linear-gradient(90deg, #ffd66e, #ff9f43 40%, #ff6b6b 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cta-group {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.hero-chip {
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem; font-weight: 700;
  color: var(--paper-dim);
  backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-chip .dotk { width:6px; height:6px; border-radius:50%; background: var(--turf-glow); box-shadow: 0 0 8px var(--turf-glow); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute);
  z-index: 5;
  opacity: 0;
  animation: hintIn 1.2s 0.8s var(--ease-out) forwards, hintBob 2s 2s ease-in-out infinite;
}
.scroll-hint .line {
  width: 1px; height: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
}
@keyframes hintIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes hintBob {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 5px); }
}

/* ==========================================================
   SECTION HEAD
   ========================================================== */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 48px 4px 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Outfit', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}
.section-head h2 .num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6em; font-weight: 800;
  color: var(--turf-glow);
  letter-spacing: 0.3em;
  margin-right: 10px;
  vertical-align: 3px;
}
.section-head p {
  color: var(--paper-mute);
  font-size: 0.82rem; max-width: 360px;
  line-height: 1.7;
}

/* ==========================================================
   GAME GRID
   ========================================================== */
.games {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.game {
  grid-column: span 6;
  position: relative;
  min-height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit; text-decoration: none;
  background: #0a3b1e;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  isolation: isolate;
  display: flex; flex-direction: column;
  cursor: pointer;
  will-change: transform;
}
.game:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

/* Top photo area */
.game-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #051a0c;
}
.game-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(1.05);
}
.game:hover .game-photo img {
  transform: scale(1.14);
  filter: saturate(1.15) brightness(1.05);
}
.game-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4,36,20,0.8) 85%, rgba(4,36,20,1));
  pointer-events: none;
}
.game-photo::before {
  /* top animated sheen */
  content: ''; position: absolute;
  top: 0; left: -30%; width: 30%; height: 100%;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: skewX(-18deg);
  opacity: 0; transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}
.game:hover .game-photo::before {
  opacity: 1;
  animation: sheen 1.2s var(--ease-out);
}
@keyframes sheen {
  0%   { left: -30%; }
  100% { left: 130%; }
}

/* Tilt sticker on top-right corner of photo */
.game-tag {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  z-index: 3;
}
.game-tag.battle  { background: linear-gradient(135deg, #ffd66e, #ffa84c); }
.game-tag.olympic { background: linear-gradient(135deg, #d9e3ff, #f2dfff); }
.game-tag .mark {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
}

.game-num {
  position: absolute; top: 14px; right: 14px;
  font-family: 'Outfit', monospace;
  font-size: 0.72rem; font-weight: 800;
  color: var(--paper);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 5px 10px;
  letter-spacing: 0.15em;
  backdrop-filter: blur(10px);
  z-index: 3;
}

/* Game body */
.game-body {
  position: relative;
  padding: 22px 24px 26px;
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 2;
}
.game-name {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap;
}
.game-name h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.game-name .en {
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  color: var(--paper-mute);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.game-desc {
  color: var(--paper-dim);
  font-size: 0.88rem; line-height: 1.75;
  text-wrap: pretty;
}
.game-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.spec {
  background: rgba(4,36,20,0.7);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.spec .k {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem; font-weight: 700;
  color: var(--paper-mute);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.spec .v {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.9rem; font-weight: 800;
  color: var(--paper);
}

/* bottom CTA bar */
.game-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 0.88rem;
  color: var(--paper);
  letter-spacing: 0.05em;
  transition: background 0.3s;
}
.game:hover .game-cta {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.game-cta .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.3s var(--ease-spring), background 0.3s;
}
.game:hover .game-cta .arrow {
  transform: translateX(4px) rotate(-45deg);
  background: var(--turf-glow);
  color: var(--ink);
}

/* Battle — warm accent */
.game.battle::before {
  content:''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(100% 60% at 50% 0%, rgba(255,159,67,0.22), transparent 60%);
}
.game.battle .game-cta .arrow { background: linear-gradient(135deg, #ffd66e, #ff9f43); }
.game.battle:hover .game-cta .arrow { background: linear-gradient(135deg, #ffea9d, #ffb86a); }

/* Olympic — cool accent */
.game.olympic::before {
  content:''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(100% 60% at 50% 0%, rgba(94,183,255,0.22), transparent 60%);
}
.game.olympic .game-cta .arrow { background: linear-gradient(135deg, #e9d5ff, #d9e3ff); }

/* medal strip on olympic */
.medal-strip {
  display: flex; gap: 6px; align-items: center;
  font-size: 0.7rem;
  color: var(--paper-mute);
  letter-spacing: 0.1em;
}
.medal {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.55rem; font-weight: 900;
  color: rgba(0,0,0,0.55);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.3);
}
.medal.g { background: linear-gradient(145deg, #ffe79a, #e0a63a); }
.medal.s { background: linear-gradient(145deg, #eef1f5, #a9b3bd); }
.medal.b { background: linear-gradient(145deg, #e4a87a, #8a5a34); }
.medal.i { background: linear-gradient(145deg, #d7dde2, #5f6b75); color: rgba(255,255,255,0.8); }
.medal.d { background: linear-gradient(145deg, #bdf0ff, #5fc8ff); color: rgba(0,20,50,0.6); }

/* Card chips strip for battle */
.chip-strip {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mini-chip {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  color: var(--paper-dim);
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
}
.mini-chip.hot { background: linear-gradient(135deg, rgba(255,159,67,0.2), rgba(255,107,107,0.15)); border-color: rgba(255,159,67,0.35); color: #ffd2a3; }
.mini-chip.cool { background: linear-gradient(135deg, rgba(94,183,255,0.2), rgba(200,170,255,0.15)); border-color: rgba(94,183,255,0.35); color: #d3e7ff; }

/* ==========================================================
   INFO STRIP (bottom row)
   ========================================================== */
.info-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.info-card {
  grid-column: span 4;
  padding: 20px;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}
.info-card .kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 0.64rem; font-weight: 800;
  color: var(--turf-glow);
  letter-spacing: 0.22em; text-transform: uppercase;
}
.info-card h4 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800; font-size: 1.05rem;
  color: var(--paper);
}
.info-card p {
  color: var(--paper-mute);
  font-size: 0.82rem; line-height: 1.7;
}
.info-card .big {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2.4rem; line-height: 1;
  color: var(--paper);
  display: flex; align-items: baseline; gap: 4px;
}
.info-card .big small {
  font-size: 0.9rem; color: var(--paper-mute); font-weight: 700;
}

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee {
  margin-top: 36px;
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.marquee-track span { display:inline-flex; align-items:center; gap:14px; }
.marquee-track .sep {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--turf-glow);
  box-shadow: 0 0 10px var(--turf-glow);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.foot {
  margin-top: 48px;
  text-align: center;
  padding: 20px;
  color: var(--paper-mute);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.foot .big {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.22em;
  color: var(--paper-dim);
  margin-top: 8px;
  font-weight: 900;
}

/* Legal links (footer) */
.legal-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  padding: 0 16px;
  text-align: center;
}
.legal-links a {
  color: var(--paper-mute);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.25s;
}
.legal-links a:hover {
  color: var(--turf-glow);
  text-decoration: underline;
}
.legal-sep { color: rgba(246,255,242,0.25); font-size: 0.8rem; }

/* ==========================================================
   PAYMENT / PASS UI
   ========================================================== */
.hidden { display: none !important; }

/* トップバーの残時間バッジ */
.pass-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; margin-right: 10px;
  border-radius: 99px;
  background: rgba(78,217,137,0.16);
  border: 1px solid rgba(78,217,137,0.4);
  color: var(--turf-glow);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
}
.pass-status b { font-family: 'Outfit', sans-serif; font-weight: 900; }

/* 決済済み状態ボックス（pricingカード内） */
.pass-active-box {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 99px;
  background: rgba(78,217,137,0.14);
  border: 1px solid rgba(78,217,137,0.4);
  color: var(--turf-glow);
  font-size: 0.85rem; font-weight: 700;
}
.pass-active-box b { font-family: 'Outfit', sans-serif; }
.pass-active-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--turf-glow);
  box-shadow: 0 0 10px var(--turf-glow);
  animation: passPulse 1.6s ease-in-out infinite;
}
@keyframes passPulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* アプリ内ブラウザ注意 */
.inapp-warn {
  max-width: 460px; margin: 4px auto 0;
  font-size: 0.76rem; line-height: 1.6;
  color: #ffd66e;
  background: rgba(255,214,110,0.1);
  border: 1px solid rgba(255,214,110,0.28);
  border-radius: 12px; padding: 10px 14px;
}

/* 再認証リンク */
.recover-link {
  background: none; border: none; cursor: pointer;
  color: var(--paper-mute);
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  margin-top: 2px;
}
.recover-link:hover { color: var(--paper-dim); }

/* 決済系モーダル */
.pay-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4,20,10,0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.pay-modal-panel {
  background: rgba(12,40,24,0.96);
  border: 1px solid rgba(78,217,137,0.28);
  border-radius: 22px; padding: 30px 24px;
  max-width: 400px; width: 100%; text-align: center;
  color: var(--paper);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.pay-modal-icon { font-size: 2.6rem; margin-bottom: 6px; }
.pay-modal-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.pay-modal-msg { font-size: 0.9rem; line-height: 1.75; color: var(--paper-dim); margin-bottom: 18px; }
.pay-modal-btn {
  display: block; width: 100%;
  padding: 14px 20px; margin-top: 10px;
  border-radius: 14px; border: none;
  font-family: inherit; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.pay-modal-btn.primary {
  background: linear-gradient(135deg, #19974b, #4ed989);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(78,217,137,0.4);
}
.pay-modal-btn.primary:hover { transform: translateY(-2px); }
.pay-modal-btn.ghost {
  background: transparent; color: var(--paper-mute);
  font-weight: 600; font-size: 0.9rem;
}
.pay-modal-btn.ghost:hover { color: var(--paper-dim); }
.pay-modal-guest {
  display: inline-block; margin-top: 14px;
  color: var(--turf-glow); font-size: 0.86rem; font-weight: 700;
  text-decoration: none;
}
.pay-modal-guest:hover { text-decoration: underline; }
.pay-modal-input {
  width: 100%; margin-bottom: 8px;
  padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid rgba(78,217,137,0.35);
  background: rgba(255,255,255,0.06);
  color: var(--paper); font-family: 'Outfit', monospace; font-size: 0.9rem;
}
.pay-modal-input:focus { outline: none; border-color: var(--turf-glow); }
.pay-modal-error {
  color: #ff8a8a; font-size: 0.82rem; margin-bottom: 8px; text-align: left;
}

/* ==========================================================
   REVEAL
   ========================================================== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.26s; }
.reveal.d4 { transition-delay: 0.36s; }
.reveal.d5 { transition-delay: 0.46s; }

/* ==========================================================
   CURSOR GLOW
   ========================================================== */
.cursor-glow {
  position: fixed;
  width: 360px; height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(78,217,137,0.22), transparent 60%);
  transform: translate(-50%, -50%);
  left: -400px; top: -400px;
  z-index: 1;
  transition: transform 0.3s var(--ease-out);
  mix-blend-mode: screen;
}

/* Coming Soon card */
.game.coming-soon {
  grid-column: span 12;
  min-height: 0;
  opacity: 0.72;
  cursor: default;
  border-style: dashed;
  border-color: rgba(255,255,255,0.18);
  background: rgba(4,36,20,0.4);
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  align-items: stretch;
}
.game.coming-soon:hover {
  transform: none;
  opacity: 0.85;
}
.coming-soon-photo {
  aspect-ratio: unset !important;
  min-height: 130px;
  position: relative;
  display: grid; place-items: center;
  background: transparent !important;
}
.cs-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 18px
    );
  border-radius: 0;
}
.cs-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cs-icon {
  font-size: 2.8rem; line-height: 1;
  filter: grayscale(1) opacity(0.45);
}
.cs-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--paper-mute);
}
.cs-tag { background: rgba(255,255,255,0.1) !important; color: var(--paper-mute) !important; border: 1px dashed rgba(255,255,255,0.2) !important; }
.cs-dots {
  display: flex; gap: 6px; align-items: center;
  margin-top: 8px;
}
.cs-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper-mute);
  animation: csdot 1.4s ease-in-out infinite;
}
.cs-dots span:nth-child(2) { animation-delay: 0.2s; }
.cs-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes csdot {
  0%,80%,100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.2); }
}

@media (max-width: 860px) {
  .game.coming-soon {
    grid-template-columns: 1fr;
  }
  .coming-soon-photo { min-height: 100px; aspect-ratio: 16/5 !important; }
}

/* ==========================================================
   REGISTER BUTTON
   ========================================================== */
.register-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  border-radius: 99px;
  background: linear-gradient(135deg, #19974b, #4ed989);
  color: var(--ink);
  font-family: 'Outfit', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800; font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(78,217,137,0.45), 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.register-btn::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease-spring);
}
.register-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%) skewX(-18deg);
  transition: transform 0.5s;
}
.register-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(78,217,137,0.55), 0 4px 12px rgba(0,0,0,0.3);
}
.register-btn:hover::after { transform: translateX(4px); }
.register-btn:hover::before { transform: translateX(200%) skewX(-18deg); }
.register-btn:active { transform: scale(0.98); }

/* Pricing card full-width highlight */
.pricing-card {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(78,217,137,0.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border-color: rgba(78,217,137,0.25) !important;
}
.pricing-card .big {
  font-size: 3rem !important;
  background: linear-gradient(90deg, #ffd66e, #4ed989);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================
   TWEAKS PANEL
   ========================================================== */
.tweaks {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 280px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(10, 36, 22, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--paper);
  z-index: 100;
  font-size: 0.82rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: none;
}
.tweaks.on { display: block; }
.tweaks h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tweaks-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.tweaks-row:last-child { margin-bottom: 0; }
.tweaks-label { color: var(--paper-dim); font-weight: 600; flex: 1; }
.tweaks-opts {
  display: flex; gap: 4px;
  border-radius: 99px;
  padding: 3px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}
.tweaks-opt {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: transparent;
  color: var(--paper-mute);
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.tweaks-opt.on {
  background: var(--turf-glow);
  color: var(--ink);
}
.tweaks-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.tweaks-swatch.on { border-color: var(--paper); transform: scale(1.1); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 860px) {
  .page { padding: 16px 12px 56px; }

  /* ヒーロー：3D効果・余白をリセット */
  .hero { min-height: 0 !important; }
  .hero-stage {
    display: block !important;
    padding: 0 !important;
    min-height: 0 !important;
    perspective: none !important;
  }
  .hero-stage-inner {
    width: 100% !important;
    transform: none !important;
  }
  .hero-ring { display: none; }
  .hero-glow { display: none; }
  .hero-ball { display: none; }
  .hero-img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
    box-shadow: none !important;
  }
  .hero-foot {
    position: static !important;
    background: linear-gradient(180deg, rgba(3,28,14,0.92), rgba(3,28,14,0.85)) !important;
    padding: 20px 16px 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .scroll-hint { display: none; }

  /* ゲームカード */
  .game { grid-column: span 12 !important; min-height: 0 !important; }
  .game-photo { aspect-ratio: 16/9 !important; }
  .game-body { padding: 18px 20px 20px !important; gap: 12px !important; }
  .game-name h3 { font-size: 1.5rem !important; }

  .info-card { grid-column: span 12; }
  .section-head { margin-top: 32px; }
  .tweaks { right: 10px; bottom: 10px; width: 240px; }

  /* compact モード完全上書き */
  body[data-density="compact"] .hero-stage { padding: 0 !important; min-height: 0 !important; }
  body[data-density="compact"] .game-photo { aspect-ratio: 16/9 !important; }
  body[data-density="compact"] .game { min-height: 0 !important; }
}

/* ==========================================================
   THEMES (tweak)
   ========================================================== */
body[data-theme="sunset"] .bg-grad {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255,159,67,0.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 100%, rgba(255,107,107,0.15), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 100%, rgba(246,196,83,0.12), transparent 55%),
    linear-gradient(160deg, #2b1208 0%, #552912 45%, #2b1208 100%);
}
body[data-theme="night"] .bg-grad {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(94,183,255,0.25), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 100%, rgba(168,85,247,0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 100%, rgba(94,183,255,0.10), transparent 55%),
    linear-gradient(160deg, #06091c 0%, #0e1a3c 45%, #050812 100%);
}

body[data-density="compact"] .game { min-height: 0; }
body[data-density="compact"] .game-photo { aspect-ratio: 16/7; }
body[data-density="compact"] .hero-stage { padding: 40px 24px 56px; min-height: 360px; }

body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}
