
/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #0b0f16;
  --bg-2:      #0e131d;
  --panel:     #131a27;
  --panel-2:   #1a2333;
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .16);

  /* Ink */
  --ink:       #eef2f8;
  --ink-soft:  #b3bdce;
  --ink-mute:  #7b8598;
  --muted:     #7b8598;

  /* Brand */
  --brand:      #33a1e0;
  --brand-lite: #5cc0f5;
  --brand-deep: #1c5f86;
  --gold:       #ffce4d;
  --magenta:    #ff5c8a;

  /* Game-art accents (used by the playable demos) */
  --blue:   #33a1e0;
  --cyan:   #5cc0f5;
  --green:  #2ab673;
  --coral:  #ff6b4a;
  --amber:  #ffce4d;

  /* Effects */
  --radius:      14px;
  --radius-lg:   24px;
  --radius-pill: 999px;
  --shadow:      0 18px 50px -18px rgba(0, 0, 0, .65);
  --shadow-sm:   0 6px 20px -8px rgba(0, 0, 0, .6);
  --ring:        0 0 0 3px rgba(51, 161, 224, .45);

  /* Layout */
  --maxw:     1180px;
  --gutter:   clamp(20px, 5vw, 56px);
  --header-h: 68px;

  /* Type */
  --font-jp:      "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-display: "Outfit", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient background glow — fixed, non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%,  rgba(51, 161, 224, .18), transparent 70%),
    radial-gradient(50% 40% at 100% 10%, rgba(255, 92, 138, .10), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(28, 95, 134, .16), transparent 70%),
    var(--bg);
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: .01em;
}

p { text-wrap: pretty; }

button, input, textarea { font: inherit; }
button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
}
a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: rgba(51, 161, 224, .35); color: #fff; }

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-lite);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-top: 14px;
  letter-spacing: .02em;
}
.section-lead {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--ink-soft);
}
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

.note {
  margin-top: 18px;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand);
  --_fg: #04121d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-align: center;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(51, 161, 224, .6); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; border-color: var(--brand); }
.btn--sm { padding: 9px 16px; min-height: 0; font-size: .85rem; }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 22, .55);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(9, 12, 18, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #04121d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex: 0 0 auto;
}
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  position: relative;
  z-index: 120;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
body.nav-open .nav-toggle span::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    /* `top/left/right + height` rather than `inset:0` so the panel still fills
       the viewport even when a scrolled header's backdrop-filter turns it into
       the containing block for fixed descendants. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
    padding: 88px var(--gutter) 40px;
    margin: 0;
    background: rgba(9, 12, 18, .97);
    backdrop-filter: blur(16px);
    transform: translateY(-100%);
    transition: transform .42s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a {
    padding: 16px 8px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav a::after { display: none; }
  .nav .btn { margin: 20px 0 0; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 104px); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: .02em;
}
.hero-copy h1 .accent {
  background: linear-gradient(100deg, var(--brand-lite), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--ink-mute);
}
.hero-lead { margin-top: 18px; max-width: 46ch; font-size: 1.02rem; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  color: var(--ink-mute);
  font-size: .82rem;
  letter-spacing: .04em;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* Hero brief + stats panel */
.hero-visual { display: grid; gap: 14px; }
.brief-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}
.brief-card .brief-kicker {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.brief-card .brief-big {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--gold);
}
.brief-card .brief-note {
  display: block;
  margin-top: 16px;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  color: var(--ink);
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Generic card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.lead-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.6;
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}
.lead-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.lead-card::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- Plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.plan-card.is-featured {
  border-color: rgba(51, 161, 224, .45);
  box-shadow: 0 24px 60px -24px rgba(51, 161, 224, .35);
}
.plan-name {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--brand-lite);
}
.plan-price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
}
.plan-period {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
}
.plan-lead { color: var(--ink-soft); font-weight: 500; line-height: 1.6; }
.plan-card ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; }
.plan-card li { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.plan-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: middle;
}

/* ---------- Demos ---------- */
.demo-row {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding-block: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.demo-row:first-of-type { border-top: 0; }
.demo-copy { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.demo-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 206, 77, .12);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.demo-copy h3 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.demo-copy p:not(.demo-tag) { margin-top: 12px; color: var(--ink-soft); font-size: .94rem; line-height: 1.8; }
.demo-note { margin-top: 22px; font-size: .78rem; color: var(--ink-mute); line-height: 1.7; }

@media (max-width: 1040px) {
  .demo-row { grid-template-columns: 1fr; }
  .demo-copy { position: static; }
}

/* ---------- Use cases ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.type-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.type-card::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand-lite));
}

/* ---------- Reasons ---------- */
.reason-list { display: grid; gap: 0; }
.reason-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.reason-card:last-child { border-bottom: 1px solid var(--line); }
.reason-card > span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand-lite);
}
.reason-card h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
.reason-card p { margin-top: 10px; color: var(--ink-soft); font-size: .94rem; line-height: 1.85; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.about-grid p { margin-top: 16px; color: var(--ink-soft); line-height: 1.95; }
.about-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.fact-list li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.5;
}
.fact-list li:last-child { border-bottom: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.platforms span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
.form {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-hint {
  margin-inline: auto;
  max-width: 40rem;
  margin-bottom: 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.form-hint strong { color: var(--ink); font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.field .req { color: var(--brand-lite); font-size: .72rem; font-weight: 500; }
.field .note-inline { color: var(--magenta); font-size: .78rem; font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51, 161, 224, .25);
}
.field textarea { resize: vertical; min-height: 160px; }
.form .btn { align-self: flex-start; border: 0; }
.form-alt { margin-top: 4px; font-size: .84rem; color: var(--ink-mute); }
.form-alt a { color: var(--brand-lite); text-underline-offset: 3px; }
.form-alt a:hover { text-decoration: underline; }

/* ---------- Centered state (thanks) ---------- */
.state {
  min-height: 52vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  padding-block: clamp(60px, 12vw, 140px);
}
.state h1 { font-size: clamp(2rem, 6vw, 3rem); }
.state p { max-width: 44ch; margin-inline: auto; color: var(--ink-soft); }
.state .btn { justify-self: center; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  padding-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(4, 8, 14, .6));
  overflow: hidden;
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; color: var(--ink-mute); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: .9rem;
  color: var(--ink-soft);
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--brand-lite); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--ink-mute);
}
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--ink-soft); }
.footer-watermark {
  position: absolute;
  right: -4%;
  bottom: -34%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .022);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--brand); color: #04121d; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* ============================================================
   Playable demo components (SUMMER CATCH! / LUCKY CAPSULE)
   Kept close to the original; tuned to the dark fc-2026 palette.
   ============================================================ */
.demo-disclaimer {
  color: rgb(255 255 255 / 52%);
  font-size: 12px;
  line-height: 1.7;
}
.demo-note {
  margin: 8px 0 0;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgb(255 206 77 / 12%);
  color: rgb(255 255 255 / 82%);
  font-size: 12.5px;
  line-height: 1.6;
}

.game-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  touch-action: none;
}
.game-shell:focus-visible { outline: 3px solid rgb(51 161 224 / 40%); outline-offset: 3px; }

.game-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.game-hud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 74%);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.game-hud strong { margin-left: 6px; color: white; font-size: 15px; }
.hud-feedback { flex: 1 1 190px; min-width: 0; }

.catch-stage,
.capsule-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background: #0f1724;
  box-shadow: 0 28px 80px rgb(0 0 0 / 35%);
}
.catch-stage { aspect-ratio: 16 / 10; min-height: 390px; }
.catch-canvas { display: block; width: 100%; height: 100%; min-height: inherit; }
.stage-score {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 4;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgb(11 15 22 / 72%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}
.stage-score.bump { animation: fc-pop .22s var(--ease); }
.stage-score.gain { color: #7ec8ff; }
.stage-score.miss { color: #ff7676; }
.stage-time {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 4;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgb(11 15 22 / 72%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}
.stage-time.bump { animation: fc-pop .2s var(--ease); }
/* final seconds: red, blinking, pulsing — grows white, shrinks back red */
.stage-time.low {
  color: #ff5a5a;
  background: rgb(60 12 12 / 82%);
  animation: catch-time-alarm .82s ease-in-out infinite;
}
@keyframes catch-time-alarm {
  0%, 100% { transform: scale(1); color: #ff5a5a; background: rgb(60 12 12 / 82%); }
  46% { transform: scale(1.26); color: #fff; background: rgb(150 24 24 / 92%); }
}
@media (prefers-reduced-motion: reduce) {
  .stage-time.low { animation: none; }
}
.catch-legend {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  font-family: var(--font-jp);
  font-size: .84rem;
  font-weight: 700;
}
.catch-legend span { display: inline-flex; align-items: center; gap: 5px; }
.catch-legend img { width: 20px; height: 20px; }
.catch-legend .ok { color: #7ee0a8; }
.catch-legend .ng { color: #ff9a9a; }

.game-overlay {
  position: absolute;
  inset: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--radius);
  background: rgb(11 15 22 / 84%);
  color: white;
  text-align: center;
  backdrop-filter: blur(7px);
  overflow-y: auto;
}
/* compact the pre-game rules card so the スタート button never needs a scroll */
.game-overlay:has(.catch-legend) { padding: 14px; gap: 4px; }
.game-overlay:has(.catch-legend) > .game-brand { display: none; }
.game-overlay:has(.catch-legend) .rules { margin: 2px 0; line-height: 1.6; }
.game-brand {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.game-overlay h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.6vw, 34px);
  font-weight: 800;
  line-height: 1.05;
}
.game-overlay p {
  max-width: 440px;
  margin: 10px 0;
  color: rgb(255 255 255 / 78%);
  font-weight: 500;
  line-height: 1.8;
}
/* on the staged result screen the big word IS the headline — drop the
   brand line and demo title so the result + buttons fit without scrolling */
.game-overlay:has(.fc-res) > .game-brand,
.game-overlay:has(.fc-res) > h4 { display: none; }
.score-result { font-size: clamp(18px, 3vw, 26px); }

.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #04121d;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.mini-button:hover { transform: translateY(-2px); }
.mini-button.secondary { background: rgb(255 255 255 / 10%); color: white; border-color: rgb(255 255 255 / 22%); }
.mini-button:disabled { cursor: default; opacity: .55; transform: none; }

.capsule-shell { touch-action: auto; }
.jump-shell { touch-action: manipulation; }
.capsule-stage {
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgb(51 161 224 / 16%), transparent 42%),
    linear-gradient(155deg, #182130, #101722 54%, #223147);
}
.capsule-machine-wrap {
  position: relative;
  width: min(360px, 86vw);
  height: 410px;
  transition: transform .3s var(--ease);
}
.capsule-machine {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center bottom;
}
.machine-top {
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 188px;
  overflow: hidden;
  border: 10px solid #f3f6ff;
  border-radius: 8px 8px 48% 48%;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 56%), transparent 34%),
    rgb(92 192 245 / 34%);
  transform: translateX(-50%);
  box-shadow: inset 0 -18px 28px rgb(19 24 32 / 14%);
}
.capsule-ball {
  position: absolute;
  display: block;
  width: 64px;
  height: 64px;
  border: 6px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  box-shadow: inset 0 -10px 0 rgb(19 24 32 / 12%);
}
.ball-a { left: 28px; top: 78px; background: var(--coral); }
.ball-b { left: 94px; top: 50px; background: var(--amber); }
.ball-c { right: 28px; top: 86px; background: var(--blue); }
.ball-d { left: 142px; top: 112px; background: var(--green); }
.ball-e { left: 54px; top: 124px; background: white; }
.machine-body {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 310px;
  height: 260px;
  border: 8px solid #f3f6ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6b4a, #d94533);
  transform: translateX(-50%);
  box-shadow: 0 20px 34px rgb(0 0 0 / 24%);
}
.machine-title { position: absolute; left: 20px; top: 20px; color: white; }
.machine-title span,
.machine-title strong { display: block; line-height: 1; }
.machine-title span { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.machine-title strong { margin-top: 3px; font-family: var(--font-display); font-size: 29px; font-weight: 800; }
.machine-window {
  position: absolute;
  left: 28px;
  bottom: 46px;
  width: 104px;
  height: 104px;
  border: 7px solid #131820;
  border-radius: 50%;
  background: #23324a;              /* dark, so a light capsule reads clearly */
  overflow: hidden;
}
.window-glow,
.window-capsule { position: absolute; display: block; }
.window-glow { inset: 10px; border-radius: 50%; background: rgb(92 192 245 / 28%); }
.window-capsule {
  left: 24px;
  top: 34px;
  width: 44px;
  height: 30px;
  border: 2px solid rgb(19 24 32 / 34%);
  border-radius: 20px;
  background: linear-gradient(90deg, var(--cyan) 0 50%, #eef2fb 50% 100%);
  box-shadow: 0 2px 5px rgb(0 0 0 / 35%);
  transform: rotate(-18deg);
}
.capsule-handle {
  position: absolute;
  right: 34px;
  bottom: 70px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 7px solid #131820;
  border-radius: 50%;
  background: #f2b84b;
  cursor: pointer;
  transition: transform .18s var(--ease);
}
.capsule-handle:hover { transform: translateY(-2px); }
.capsule-handle span { display: block; width: 22px; height: 62px; border-radius: 20px; background: #131820; }
/* the dial keeps whatever rotation it was turned to — no reset animation */

/* ready: slowly zoom the whole machine IN right away (clipping is fine) so the
   dial reads clearly. The instant the dial stops (ready -> turning) it snaps
   back to normal size with no transition, shakes, waits a beat, then the
   capsule drops. */
.phase-ready .capsule-machine { animation: capsule-zoomin 1.15s cubic-bezier(.32, .06, .2, 1) both; }
.phase-turning .capsule-machine,
.phase-drop .capsule-machine,
.phase-wait .capsule-machine,
.phase-open .capsule-machine,
.phase-result .capsule-machine {
  /* quick scale-down back to normal size, hold ~0.4s, shake, then the capsule drops */
  animation: capsule-zoomout .22s var(--ease) both,
             capsule-nudge .5s ease .55s 1 both;
}
.phase-ready .machine-body { box-shadow: 0 20px 34px rgb(0 0 0 / 24%), 0 0 0 4px rgb(92 192 245 / 35%); }
@keyframes capsule-zoomin {
  0% { transform: scale(1); }
  100% { transform: scale(1.24); }
}
@keyframes capsule-zoomout {
  0% { transform: scale(1.24); }
  100% { transform: scale(1); }
}
@keyframes capsule-nudge {
  0%, 100% { margin-left: 0; }
  22% { margin-left: -6px; }
  50% { margin-left: 6px; }
  76% { margin-left: -3px; }
}
@media (prefers-reduced-motion: reduce) {
  .phase-ready .capsule-machine,
  .phase-turning .capsule-machine,
  .phase-drop .capsule-machine { animation: none; }
}
.capsule-turnhint {
  position: absolute;
  right: 30px;
  bottom: 40px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #04121d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .72rem;
  pointer-events: none;
  animation: fc-prompt .9s ease-in-out infinite alternate;
}
@keyframes fc-prompt { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.machine-tray {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 190px;
  height: 74px;
  border: 8px solid #f3f6ff;
  border-radius: 8px;
  background: #131820;
  transform: translateX(-50%);
}
/* the single capsule IS .capsule-open now — no separate tray copy */
.falling-capsule { display: none; }
.capsule-open {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 120px;
  height: 116px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.15);
}
/* ONE unbroken motion: the capsule drops from the machine into the tray zone,
   settles a beat, then rises to centre while growing — then it splits. Same
   `animation` value on every phase so it never restarts / cuts. */
.phase-turning .capsule-open,
.phase-wait .capsule-open,
.phase-open .capsule-open,
.phase-result .capsule-open {
  animation: cap-journey 2.3s linear 1s both;
}
@keyframes cap-journey {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 230px)) scale(.3) rotate(16deg);
    animation-timing-function: cubic-bezier(.5, 0, .9, .45);   /* accelerate down */
  }
  8% { opacity: 1; }
  34% {
    transform: translate(-50%, calc(-50% + 128px)) scale(.42) rotate(-8deg);
    animation-timing-function: ease-out;                        /* land soft */
  }
  46% {
    transform: translate(-50%, calc(-50% + 128px)) scale(.42) rotate(2deg);
    animation-timing-function: cubic-bezier(.32, .72, .3, 1);   /* ease into the rise */
  }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.cap-top,
.cap-bottom {
  position: absolute;
  left: 50%;
  display: block;
  width: 110px;
  height: 56px;
  border: 5px solid white;
  background: var(--blue);
  transform: translateX(-50%);
}
.cap-top { top: 2px; border-radius: 55px 55px 8px 8px; }
.cap-bottom { top: 58px; border-radius: 8px 8px 55px 55px; background: #eef2fb; }
/* the halves keep ONE flat colour, identical before and after the split */
.prize-coral .cap-top { background: #ff6b4a; }
.prize-green .cap-top { background: #2ab673; }
.prize-blue .cap-top  { background: #1c5dff; }
.prize-coral.prize-card { background: linear-gradient(135deg, #ff6b4a, #f2b84b); }
.prize-green.prize-card { background: linear-gradient(135deg, #2ab673, #16bfd8); }
.prize-blue.prize-card { background: linear-gradient(135deg, #1c5dff, #16bfd8); }
.spark { position: absolute; display: block; width: 12px; height: 34px; border-radius: 999px; background: var(--amber); opacity: 0; }
.spark-a { left: 6px; top: 20px; }
.spark-b { right: 6px; top: 16px; }
.spark-c { left: 54px; top: -8px; background: #fff; }
.phase-open .spark,
.phase-result .spark { animation: spark-pop 500ms ease both; }
.phase-open .spark-a { --sr: -42deg; }
.phase-open .spark-b { --sr: 40deg; }
.phase-result .spark-a { --sr: -42deg; }
.phase-result .spark-b { --sr: 40deg; }
@keyframes spark-pop {
  0% { opacity: 0; transform: rotate(var(--sr, 0deg)) scale(.2); }
  40% { opacity: 1; transform: rotate(var(--sr, 0deg)) scale(1.15); }
  100% { opacity: 0; transform: rotate(var(--sr, 0deg)) scale(1) translateY(-6px); }
}
/* open: the capsule (already at centre from cap-journey) splits パカッ */
.phase-open .cap-top,
.phase-result .cap-top { animation: cap-split-top 500ms cubic-bezier(.2,.8,.3,1) both; }
.phase-open .cap-bottom,
.phase-result .cap-bottom { animation: cap-split-bottom 500ms cubic-bezier(.2,.8,.3,1) both; }
@keyframes cap-split-top {
  0% { transform: translateX(-50%) translateY(0) rotate(0); }
  100% { transform: translateX(-50%) translateY(-52px) rotate(-14deg); }
}
@keyframes cap-split-bottom {
  0% { transform: translateX(-50%) translateY(0) rotate(0); }
  100% { transform: translateX(-50%) translateY(48px) rotate(8deg); }
}
.prize-card {
  position: absolute;
  left: 50%;
  top: 52%;
  display: grid;
  justify-items: start;
  width: min(350px, calc(100% - 48px));
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: var(--radius);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -38%) scale(0.96);
  box-shadow: 0 30px 70px rgb(0 0 0 / 32%);
}
.phase-result .prize-card { animation: prize-in 560ms ease 120ms both; pointer-events: auto; }
.prize-card.staged > * { opacity: 0; }
.phase-result .prize-card.staged > * { animation: fc-rise .45s var(--ease) both; }
.phase-result .prize-card.staged .r1 { animation-delay: .35s; }
.phase-result .prize-card.staged .r2 { animation-delay: .7s; }
.phase-result .prize-card.staged .r3 { animation-delay: 1s; }
.phase-result .prize-card.staged .r4 { animation-delay: 1.35s; }
.prize-card p,
.prize-card h4,
.prize-card span { margin: 0; }
.prize-card p {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgb(19 24 32 / 22%);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.prize-card h4 { margin-top: 22px; font-family: var(--font-display); font-size: clamp(25px, 4vw, 38px); font-weight: 800; line-height: 1.05; }
.prize-card span { margin-top: 14px; color: rgb(255 255 255 / 86%); font-weight: 500; line-height: 1.65; }
.prize-card .mini-button { margin-top: 0; }
.capsule-play { margin-top: 12px; }

/* Capsule result: coupon + share row */
.prize-card { min-height: 264px; }
.prize-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px dashed rgb(255 255 255 / 45%);
  border-radius: 10px;
}
.prize-coupon span {
  margin: 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 70%);
}
.prize-coupon code {
  font-family: "Outfit", ui-monospace, monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  color: #fff;
}
.prize-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.prize-share .mini-button { margin-top: 0; }

/* ---------- DEMO 03: BRAND JOURNEY ---------- */
.journey-shell { touch-action: auto; }
.journey-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgb(51 161 224 / 14%), transparent 46%),
    linear-gradient(160deg, #141d2b, #101722 58%, #1c2740);
  box-shadow: 0 28px 80px rgb(0 0 0 / 35%);
}
.journey-progress {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.journey-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  transition: background .3s var(--ease);
}
.journey-progress span.is-done { background: var(--brand); }
.journey-progress span.is-current { background: var(--brand-lite); }

.journey-screens { position: absolute; inset: 0; }
.journey-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px clamp(18px, 4vw, 36px) 26px;
  text-align: center;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.journey-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.journey-screen.journey-result {
  justify-content: center;
  gap: 7px;
  padding: 24px clamp(18px, 4vw, 34px);
}
.journey-result .journey-kv { width: 74px; margin: 0 auto 2px; }
.journey-result h4 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.journey-result .journey-text { font-size: .86rem; line-height: 1.6; max-width: 34ch; }
.journey-result .journey-reco,
.journey-result .journey-coupon { margin-top: 2px; }

/* loading / suspense */
.jl-dots i {
  display: inline-block;
  animation: jl-blink 1s infinite both;
}
.jl-dots i:nth-child(2) { animation-delay: .18s; }
.jl-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes jl-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* staged reveal of the result screen */
.journey-result.staged > * { opacity: 0; animation: fc-rise .5s var(--ease) both; }
.journey-result.staged .r1 { animation-delay: 0s; animation-duration: .32s; }
.journey-result.staged .r2 { animation-delay: .45s; }
.journey-result.staged .r3 { animation-delay: .8s; }
.journey-result.staged .r4 { animation-delay: 1.2s; }

.journey-kicker {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-lite);
}
.journey-screen h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  line-height: 1.2;
  color: #fff;
}
.journey-text {
  max-width: 38ch;
  margin-inline: auto;
  color: rgb(255 255 255 / 78%);
  font-size: .92rem;
  line-height: 1.75;
}
.journey-screen .mini-button { align-self: center; }

.journey-options { display: grid; gap: 8px; margin-top: 6px; }
.journey-option {
  padding: 13px 16px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  font-family: var(--font-jp);
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.journey-option:hover { transform: translateX(3px); border-color: var(--brand); background: rgb(51 161 224 / 12%); }

.journey-reco,
.journey-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  max-width: 34ch;
  margin-inline: auto;
}
.journey-reco span,
.journey-coupon span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 65%);
}
.journey-reco strong { color: var(--gold); font-family: var(--font-display); font-weight: 700; }
.journey-coupon {
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px dashed rgb(255 255 255 / 45%);
  border-radius: 10px;
}
.journey-coupon code {
  font-family: "Outfit", ui-monospace, monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  color: #fff;
}
.journey-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

.journey-result {
  border-radius: 0;
}
.journey-result.prize-blue { background: linear-gradient(160deg, rgb(28 93 255 / 22%), transparent 60%); }
.journey-result.prize-green { background: linear-gradient(160deg, rgb(42 182 115 / 22%), transparent 60%); }
.journey-result.prize-coral { background: linear-gradient(160deg, rgb(255 107 74 / 22%), transparent 60%); }

@keyframes handle-turn {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes capsule-drop {
  0% { opacity: 0; transform: translate(-50%, -170px) rotate(24deg); }
  18% { opacity: 1; }
  72%, 100% { opacity: 1; transform: translate(-50%, 0) rotate(-8deg); }
}
@keyframes capsule-open {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes prize-in {
  0% { opacity: 0; transform: translate(-50%, -32%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- Demo gallery (tabbed) ---------- */
.demo-custom-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgb(255 206 77 / 8%);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.demo-custom-note strong { color: var(--ink); font-weight: 700; }
.demo-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}
.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  scrollbar-width: thin;
}
.demo-tab {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--ink-mute);
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.demo-tab:hover { color: var(--ink-soft); }
.demo-tab.is-active { background: var(--brand); color: #04121d; }

.demo-panel { display: none; }
.demo-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3.5vw, 40px);
  align-items: start;
  padding: clamp(20px, 3.5vw, 36px);
}
.demo-info h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.2;
}
.demo-info h3 span {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-jp);
  font-size: .72em;
  font-weight: 700;
  color: var(--brand-lite);
}
.demo-info > p { margin-top: 10px; color: var(--ink-soft); font-size: .92rem; line-height: 1.8; }
.demo-sub {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.demo-uses { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.demo-uses li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.55;
}
.demo-uses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}
.demo-feats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.demo-feats span {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-size: .76rem;
  color: var(--ink-soft);
}
.demo-play { min-width: 0; }

/* ---------- DEMO: ROULETTE ---------- */
.roulette-shell { touch-action: auto; text-align: center; }
.roulette-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 400px;
  padding: 34px 16px 26px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 60% at 50% -6%, rgb(92 192 245 / 30%), transparent 68%),
    radial-gradient(70% 50% at 50% 116%, rgb(255 107 74 / 18%), transparent 70%),
    linear-gradient(165deg, #1a2b46, #0e1622 52%, #241b39);
}
/* full ring of light rays behind the wheel. Rotation is driven by JS
   (--ray-rot): a slow clockwise drift at rest, and while the wheel spins it
   follows the wheel's eased angle in reverse — so it decelerates with it
   (inertia). The enter zoom uses the independent `scale` property so it never
   fights the rotation. */
.roulette-stage::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  opacity: .5;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgb(92 192 245 / 13%) 0deg 3deg, transparent 3deg 15deg),
    repeating-conic-gradient(from 7deg at 50% 50%,
      rgb(255 206 77 / 9%) 0deg 2deg, transparent 2deg 30deg);
  transform: rotate(var(--ray-rot, 0rad));
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.roulette-stage.is-spinning::before { opacity: 1; }
.roulette-stage.is-entering::before,
.roulette-stage.is-entering::after {
  animation: roulette-bg-enter 1.7s cubic-bezier(.12, .7, .2, 1) both;
}
/* spotlight glow — a slow breathe at rest, a faster shimmer while spinning */
.roulette-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  background: radial-gradient(58% 46% at 50% 42%, rgb(92 192 245 / 30%), transparent 74%);
  animation: roulette-glow 9s ease-in-out infinite alternate;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.roulette-stage.is-spinning::after {
  opacity: 1;
  animation-duration: 1.1s;
}
@keyframes roulette-glow {
  0% { scale: 1; opacity: .5; }
  100% { scale: 1.14; opacity: 1; }
}
@keyframes roulette-bg-enter {
  0% { scale: 1.7; opacity: 0; }
  100% { scale: 1; opacity: .5; }
}
.roulette-wheelwrap { position: relative; z-index: 1; line-height: 0; }
/* wheel eases in slowly from oversized, blur clearing as it settles to size */
.roulette-wheelwrap.is-enter { animation: roulette-enter 1.7s cubic-bezier(.12, .7, .2, 1) both; }
@keyframes roulette-enter {
  0% { opacity: 0; transform: scale(1.85); filter: blur(18px); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .roulette-wheelwrap.is-enter { animation: none; }
  .roulette-stage::before, .roulette-stage::after { animation: none; }
}
.roulette-stage .rb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / 55%), rgb(92 192 245 / 12%) 60%, transparent 72%);
  pointer-events: none;
  animation: rb-float 8s ease-in-out infinite;
}
.roulette-stage .rb1 { width: 46px; height: 46px; left: 8%; top: 16%; animation-delay: 0s; }
.roulette-stage .rb2 { width: 26px; height: 26px; left: 84%; top: 24%; animation-delay: -1.5s; }
.roulette-stage .rb3 { width: 62px; height: 62px; left: 78%; top: 66%; animation-delay: -3s; }
.roulette-stage .rb4 { width: 20px; height: 20px; left: 14%; top: 72%; animation-delay: -4.5s; }
.roulette-stage .rb5 { width: 34px; height: 34px; left: 46%; top: 88%; animation-delay: -6s; }
@keyframes rb-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
  50% { transform: translateY(-16px) scale(1.08); opacity: .85; }
}
.roulette-canvas {
  position: relative;
  z-index: 1;
  width: 288px;
  max-width: 84%;
  aspect-ratio: 1;
  filter: drop-shadow(0 22px 44px rgb(0 0 0 / 55%));
}
.roulette-result { animation: pop-in .42s var(--ease) both; }
.roulette-prompt {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #04121d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  white-space: nowrap;
  pointer-events: none;
  animation: fc-prompt .9s ease-in-out infinite alternate;
}
/* generic celebratory pop for overlay result bodies */
@keyframes pop-in {
  0% { opacity: 0; transform: scale(.86); }
  62% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.game-overlay .score-result { animation: pop-in .4s var(--ease) both; display: inline-block; }
.game-overlay .rules {
  max-width: 42ch;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.85;
}
/* keep each clause intact so short tails never wrap onto their own line */
.game-overlay .rules .ln { display: inline-block; }
.game-overlay .rules b {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
}
.journey-screen.journey-loading { justify-content: center; }
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; }

/* game overlay must sit above canvas/CSS wheels that carry their own z-index */
.game-overlay { z-index: 5; }

/* ---- countdown ---- */
.fc-cd {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 7;
  background: rgb(11 15 22 / 45%);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.fc-cd-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 20vw, 130px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 24px rgb(0 0 0 / 55%);
  animation: fc-cd-pop .62s var(--ease) both;
}
.fc-cd-n.go {
  font-size: clamp(40px, 12vw, 78px);
  color: var(--gold);
}
@keyframes fc-cd-pop {
  0% { opacity: 0; transform: scale(1.8); }
  30% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.7); }
}

/* ---- staged result ---- */
.fc-res { display: grid; justify-items: center; gap: 12px; text-align: center; }
.fc-res-big {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1.1;
  color: #fff;
  animation: fc-pop .5s var(--ease) both;
}
.fc-res-subs {
  display: grid;
  gap: 4px;
  color: rgb(255 255 255 / 82%);
  font-size: .92rem;
  font-weight: 600;
  opacity: 0;
  animation: fc-rise .5s var(--ease) .55s both;
}
.fc-res-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  opacity: 0;
  animation: fc-rise .5s var(--ease) 1.15s both;
}
@keyframes fc-pop {
  0% { opacity: 0; transform: scale(.55); }
  55% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fc-rise {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- shake / flash ---- */
.fc-shake { animation: fc-shake .42s ease both; }
@keyframes fc-shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 0, 0); }
  40%, 60% { transform: translate3d(7px, 0, 0); }
}
.fc-flash {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  animation: fc-flash .3s ease both;
}
@keyframes fc-flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* big finish word (tap rush etc.) */
.fc-finish {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 7;
  pointer-events: none;
}
.fc-finish span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 11vw, 88px);
  color: var(--gold);
  text-shadow: 0 6px 28px rgb(0 0 0 / 6%), 0 0 40px rgb(255 206 77 / 45%);
  animation: fc-finish 1.6s var(--ease) both;
  white-space: nowrap;      /* JP result words must never wrap mid-phrase */
  text-align: center;
  padding: 0 6px;
}
.fc-finish span.bad {
  color: #ff6b6b;
  text-shadow: 0 6px 28px rgb(0 0 0 / 6%), 0 0 40px rgb(255 90 90 / 45%);
}
@keyframes fc-finish {
  0% { opacity: 0; transform: scale(0) rotate(-14deg); }
  16% { opacity: 1; transform: scale(1.25) rotate(5deg); }
  28% { transform: scale(.92) rotate(-2deg); }
  40% { transform: scale(1.08) rotate(1deg); }
  52% { transform: scale(1) rotate(0); }
  84% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

.island-prompt {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgb(11 15 22 / 78%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  pointer-events: none;
  animation: fc-prompt 1s ease-in-out infinite alternate;
}
@keyframes fc-prompt { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -6px); } }
.roulette-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -13px;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid var(--gold);
  z-index: 3;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 50%));
}
.roulette-result {
  position: relative;
  z-index: 2;
  width: min(340px, calc(100% - 20px));
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--radius);
  background: rgb(11 15 22 / 92%);
  color: #fff;
  backdrop-filter: blur(6px);
}
.roulette-result p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}
.roulette-result .prize-coupon { margin-top: 0; }
.roulette-spin { margin-top: 12px; min-width: 140px; }

/* ---------- DEMO: TAP RUSH ---------- */
.tap-shell { touch-action: manipulation; }
.tap-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 420px;
  padding: 22px 16px 26px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #14202b, #101722 60%, #241a2f);
  overflow: hidden;
}
.tap-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 13vw, 82px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 14px rgb(0 0 0 / 5%);
  pointer-events: none;
}
.tap-count.bump { animation: fc-pop .22s var(--ease); }
.tap-target {
  position: relative;
  flex: 0 0 auto;
  width: min(214px, 62vw);
  aspect-ratio: 1;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgb(92 192 245 / 45%), rgb(51 161 224 / 14%) 58%, transparent 72%),
    #0f1724;
  border: 2px solid rgb(92 192 245 / 45%);
  color: #fff;
  cursor: pointer;
  transition: transform .08s var(--ease), box-shadow .12s var(--ease);
}
.tap-target:active { box-shadow: 0 0 0 8px rgb(92 192 245 / 20%); }
.tap-target.is-hit { animation: tap-pop .16s var(--ease); }
.tap-target.is-done { filter: grayscale(.3); }
@keyframes tap-pop { 0% { transform: scale(.955); } 60% { transform: scale(1.025); } 100% { transform: scale(1); } }
.tap-cheer {
  min-height: 1.4em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--gold);
}
.tap-cheer.go { animation: fc-pop .3s var(--ease); }
.tap-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.tap-ring-bg { fill: none; stroke: rgb(255 255 255 / 12%); stroke-width: 8; }
.tap-ring-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}
.tap-mascot-wrap {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  position: relative;
  width: 58%;
  height: 74%;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / 35%));
  transition: transform .12s var(--ease);
}
.tap-target.is-cheer .tap-mascot-wrap { transform: translateY(-4px) scale(1.05); }
.tap-mascot-wrap img {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  transition: opacity .09s linear;
}
.tap-mascot-wrap .m-cheer { opacity: 0; }
.tap-target.is-cheer .tap-mascot-wrap .m-idle { opacity: 0; }
.tap-target.is-cheer .tap-mascot-wrap .m-cheer { opacity: 1; }
.tap-hint {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--brand-lite);
  pointer-events: none;
}
.tap-burst {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
}
.tap-burst.go { animation: tap-burst .34s var(--ease); }
@keyframes tap-burst {
  0% { opacity: .9; transform: scale(.4); box-shadow: 0 0 0 0 rgb(255 206 77 / 55%); }
  100% { opacity: 0; transform: scale(1); box-shadow: 0 0 0 70px rgb(255 206 77 / 0%); }
}

/* ---------- DEMO: SLIDE PUZZLE ---------- */
.slide-shell { touch-action: manipulation; }
.slide-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(255 158 107 / 18%), transparent 55%),
    linear-gradient(160deg, #16202c, #101722 62%, #1a2333);
}
.slide-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slide-time {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgb(11 15 22 / 72%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}
.slide-time.bump { animation: fc-pop .2s var(--ease); }
.slide-time.low { color: #ff6b6b; background: rgb(60 12 12 / 82%); }
.slide-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: var(--radius-pill);
  background: rgb(11 15 22 / 72%);
}
.slide-mini span { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--brand-lite); }
.slide-mini img { border-radius: 5px; }
.slide-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 12px;
  background: #0b1220;
  box-shadow: 0 22px 50px rgb(0 0 0 / 40%);
}
.slide-tile {
  border-radius: 6px;
  background-size: 300% 300%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: filter .12s var(--ease), transform .08s var(--ease);
}
.slide-tile:not(.is-blank):hover { filter: brightness(1.08); }
.slide-tile:not(.is-blank):active { transform: scale(.97); }
.slide-tile.is-blank { background: rgb(255 255 255 / 3%); cursor: default; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%); }
.slide-tile.can-move { animation: slide-hintpulse 1s ease-in-out infinite; box-shadow: 0 0 0 3px var(--gold); }
@keyframes slide-hintpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.slide-hintview {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  gap: 8px;
  background: rgb(11 15 22 / 90%);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: fc-pop .25s var(--ease) both;
}
.slide-hintview img {
  width: min(240px, 66%);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
}
.slide-hintview span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand-lite);
}
.slide-hint { margin-top: 12px; }

/* result icons shared */
.prize-icon { width: 52px; height: 52px; margin-bottom: 4px; }
.journey-kv {
  width: clamp(90px, 26vw, 132px);
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 10px 16px rgb(0 0 0 / 35%));
}
.journey-result .journey-kv { border-radius: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-panel.is-active { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero-actions, .hero-actions .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .reason-card { grid-template-columns: 1fr; gap: 6px; }
  .catch-stage, .capsule-stage, .journey-stage,
  .roulette-stage, .tap-stage, .slide-stage { min-height: 340px; }
  .catch-stage { aspect-ratio: auto; min-height: 330px; }
  .journey-screen { padding: 40px 18px 28px; }
  .demo-tab { font-size: .74rem; padding: 8px 11px; }
  .game-hud { align-items: stretch; }
  .game-hud span { flex: 1 1 auto; min-width: 0; }
  .hud-feedback { flex-basis: 100%; width: 100%; }
  .game-overlay { inset: 12px; padding: 18px; }
  .game-overlay h4 { font-size: clamp(20px, 6vw, 30px); overflow-wrap: anywhere; }
  .game-overlay p { max-width: 100%; font-size: 14px; }
  .capsule-machine-wrap { width: min(300px, 84vw); height: 360px; transform: scale(0.86); }
  .prize-card { width: calc(100% - 28px); min-height: 220px; padding: 20px; }
  .demo-actions, .demo-actions .mini-button, .capsule-play { width: 100%; }
  .form .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
