/* BAIBAI! — site styles. Neon × puffy. No external fonts, images or libraries.
   Hand-authored; build.py only appends a ?v=<hash> to the URL. */

:root {
  --bg0: #07031a;
  --bg1: #120833;
  --bg2: #1c0d4a;
  --ink: #f7f4ff;
  --ink-2: #d3caf5;
  --ink-3: #a79dd3;
  --line: rgba(255, 255, 255, .12);
  --card: rgba(255, 255, 255, .055);
  --cyan: #3ff3ff;
  --pink: #ff4fcf;
  --violet: #9d6bff;
  --yellow: #ffe45c;
  --lime: #8dff7a;
  --orange: #ff9d4d;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
          "Yu Gothic UI", "Meiryo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", var(--font);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  background: var(--bg0);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 88% -8%, rgba(109, 44, 255, .34), transparent 62%),
    radial-gradient(900px 640px at -12% 26%, rgba(31, 184, 255, .12), transparent 60%),
    radial-gradient(900px 700px at 110% 70%, rgba(255, 79, 207, .10), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0, var(--bg0) 900px);
  overflow-x: hidden;
}

:lang(en) body, body:lang(en) { line-height: 1.6; }

img, svg, video { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: #9ff9ff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(255, 79, 207, .45); color: #fff; }

.nb { display: inline-block; }
.tagline, .section h2, .doc-head h1, .feature h3, .clip-copy h3, .dl h1 { text-wrap: balance; }
:lang(ja) :is(h1, h2, h3, summary, .tagline, .lede, .f-sub, .fineprint, .stage-note, .promise strong) { word-break: auto-phrase; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--yellow); color: #1b0838; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 4, 28, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; line-height: 0; border-radius: 12px; }
.brand .logo { height: 34px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .lang {
  color: var(--ink); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; margin-left: 4px;
  font-family: var(--font-round);
}
.site-nav .nav-opt { display: none; }
@media (min-width: 720px) { .site-nav .nav-opt { display: inline-block; } }

/* ------------------------------------------------------------------ buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 800 16px/1.2 var(--font-round); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff86dd 0%, #ff47c4 48%, #d8249f 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(90, 0, 70, .35),
              0 12px 30px -10px rgba(255, 79, 207, .85), 0 0 26px rgba(255, 79, 207, .35);
  text-shadow: 0 1px 0 rgba(110, 0, 80, .45);
}
.btn-primary::after { /* glossy top highlight, kept behind the label */
  content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 26%; z-index: 0;
  border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn > * { position: relative; z-index: 1; }
.btn-primary:hover { color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(90, 0, 70, .35),
                     0 14px 34px -10px rgba(255, 79, 207, .95), 0 0 34px rgba(255, 79, 207, .5); }
.btn-ghost {
  color: var(--cyan); background: rgba(63, 243, 255, .07);
  box-shadow: inset 0 0 0 1.5px rgba(63, 243, 255, .55), 0 0 18px rgba(63, 243, 255, .12);
}
.btn-ghost:hover { color: #b8fbff; background: rgba(63, 243, 255, .13); }
.btn .store-mark { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .04em; }
.btn .btn-lines { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  color: var(--ink); font: 700 14px/1 var(--font-round); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); background: rgba(141, 255, 122, .1);
                             box-shadow: 0 0 16px rgba(141, 255, 122, .2); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid; gap: 8px 40px; padding: 26px 0 52px;
  grid-template-areas: "head" "art" "body";
}
.hero-head { grid-area: head; text-align: center; }
.hero-art { grid-area: art; }
.hero-body { grid-area: body; text-align: center; }
@media (min-width: 920px) {
  .hero { grid-template-columns: 1.02fr 1fr; grid-template-areas: "head art" "body art"; align-items: center;
          padding: 56px 0 80px; }
  .hero-head, .hero-body { text-align: left; }
  .hero-head { align-self: end; }
  .hero-body { align-self: start; }
}

.kicker {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 6px; padding: 5px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink-2); font: 700 13px/1.4 var(--font-round); letter-spacing: .06em;
}
.kicker b { color: var(--yellow); font-weight: 800; }
.hero h1 { margin: 0; line-height: 0; }
.hero .logo { width: min(100%, 640px); height: auto; margin: 4px auto 0; display: block; }
@media (min-width: 920px) { .hero .logo { margin-left: -8px; } }

.tagline {
  margin: 6px 0 0; font: 900 clamp(26px, 7.5vw, 56px)/1.2 var(--font); letter-spacing: .02em;
  color: #fff; text-shadow: 0 0 22px rgba(255, 79, 207, .55), 0 0 2px rgba(255, 255, 255, .6);
}
:lang(en) .tagline { font-family: var(--font-round); letter-spacing: -.005em; }
.lede { margin: 14px auto 0; max-width: 34em; color: var(--ink-2); font-size: clamp(15px, 3.9vw, 18px); }
@media (min-width: 920px) { .lede { margin-left: 0; } }
.lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
@media (min-width: 920px) { .cta-row { justify-content: flex-start; } }
.fineprint { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; }

/* the stage: rings + balls (a small web toy; not gameplay) */
.stage {
  position: relative; display: block; width: min(90vw, 470px); aspect-ratio: 1 / 1; margin: 6px auto 0;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: inherit; font: inherit;
  overflow: hidden; /* rotated square SVGs would otherwise widen the page; all art lies inside the circle */
  background: radial-gradient(circle at 50% 50%, rgba(63, 243, 255, .09) 0, rgba(157, 107, 255, .07) 38%, transparent 66%);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.stage:focus-visible { outline-offset: -6px; border-radius: 50%; }
.stage .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.stage .ring-1 { animation: spin 14.5s linear infinite; }
.stage .ring-2 { animation: spin 22s linear infinite reverse; }
.stage .ring-3 { animation: spin 31s linear infinite; }
.stage.is-live .ring-1 { animation: none; }
.stage .glow-pulse {
  position: absolute; inset: 18%; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 40px 6px rgba(63, 243, 255, .35), inset 0 0 40px rgba(63, 243, 255, .25);
  transition: opacity .35s ease-out;
}
.stage .glow-pulse.on { opacity: .9; transition-duration: .06s; }
@keyframes spin { to { transform: rotate(360deg); } }

.balls { position: absolute; inset: 0; pointer-events: none; }
.ball {
  --hi: #fff6fc; --lt: #ffb8e8; --md: #ff5cc8; --dk: #c81f8a; --dp: #5e0a43;
  position: absolute; left: 0; top: 0; width: 8%; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    radial-gradient(28% 17% at 31% 22%, rgba(255, 255, 255, .95) 0 55%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 37% 31%, var(--hi) 0 7%, var(--lt) 20%, var(--md) 54%, var(--dk) 86%, var(--dp) 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--md) 60%, transparent), inset 0 -2px 6px rgba(0, 0, 0, .18);
  will-change: transform;
}
.ball::before { /* eyes + blush */
  content: ""; position: absolute; left: 18%; right: 18%; top: 42%; height: 24%;
  background:
    radial-gradient(circle at 26% 34%, #2a0a2e 0 12%, transparent 13.5%),
    radial-gradient(circle at 74% 34%, #2a0a2e 0 12%, transparent 13.5%),
    radial-gradient(22% 13% at 8% 86%, rgba(255, 79, 139, .6), transparent 100%),
    radial-gradient(22% 13% at 92% 86%, rgba(255, 79, 139, .6), transparent 100%);
}
.ball::after { /* smile */
  content: ""; position: absolute; left: 42%; width: 16%; top: 58%; height: 9%;
  border: 2px solid #2a0a2e; border-top: 0; border-radius: 0 0 999px 999px;
}
.ball.c-yellow { --hi: #fffdf0; --lt: #fff29e; --md: #ffd23f; --dk: #e08a00; --dp: #6b3a00; }
.ball.c-cyan { --hi: #f0feff; --lt: #aef8ff; --md: #3fdcff; --dk: #0f8fd1; --dp: #073a63; }
.ball.c-lime { --hi: #f5fff0; --lt: #ccffb4; --md: #80ef5c; --dk: #2f9e2a; --dp: #0f4716; }
.ball.c-violet { --hi: #f8f3ff; --lt: #d6c0ff; --md: #9d6bff; --dk: #5b2fd0; --dp: #241060; }
.ball.c-orange { --hi: #fff6ee; --lt: #ffcaa2; --md: #ff9d4d; --dk: #d85a14; --dp: #5e2004; }
.ball.pop { animation: pop .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { scale: .2; } to { scale: 1; } }

/* static (no-JS / reduced motion) positions, in % of the stage */
.ball.s1 { left: 36%; top: 50%; } .ball.s2 { left: 55%; top: 36%; } .ball.s3 { left: 52%; top: 58%; }
.stage.is-live .ball { left: 0; top: 0; }

.fx { position: absolute; left: 0; top: 0; pointer-events: none; font: 900 clamp(14px, 3.6vw, 20px)/1 var(--font-round);
      color: var(--yellow); text-shadow: 0 0 10px rgba(255, 228, 92, .7); white-space: nowrap;
      animation: rise .9s ease-out forwards; }
.fx.note { color: var(--cyan); text-shadow: 0 0 10px rgba(63, 243, 255, .8); font-size: clamp(13px, 3vw, 18px); }
@keyframes rise { from { opacity: 1; translate: -50% -50%; } to { opacity: 0; translate: -50% -190%; } }

.stage-hint {
  position: absolute; left: 50%; bottom: 23%; translate: -50% 0; padding: 6px 14px; border-radius: 999px;
  background: rgba(10, 4, 34, .75); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  font: 800 14px/1.2 var(--font-round); pointer-events: none; transition: opacity .3s;
}
.stage.tapped .stage-hint { opacity: 0; }

.stage-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.counter {
  min-width: 5.5em; text-align: center; font: 900 clamp(24px, 6vw, 34px)/1 var(--font-round);
  color: #fff; text-shadow: 0 0 14px rgba(255, 79, 207, .8), 0 0 30px rgba(255, 79, 207, .35);
  font-variant-numeric: tabular-nums;
}
.counter.bump { animation: bump .25s ease-out; }
@keyframes bump { 40% { scale: 1.18; } }
.stage-note { margin: 8px 0 0; text-align: center; color: var(--ink-3); font-size: 12.5px; }

/* ------------------------------------------------------------------ sections */

.section { padding: 48px 0; }
@media (min-width: 820px) { .section { padding: 72px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.eyebrow { margin: 0 0 6px; color: var(--cyan); font: 800 13px/1.4 var(--font-round); letter-spacing: .16em; text-transform: uppercase; }
.section h2 {
  margin: 0; font: 900 clamp(26px, 6vw, 42px)/1.25 var(--font); letter-spacing: .01em;
  text-shadow: 0 0 24px rgba(157, 107, 255, .45);
}
:lang(en) .section h2 { font-family: var(--font-round); }
.section-head p { margin: 12px 0 0; color: var(--ink-2); }

.clip-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .clip-grid { grid-template-columns: auto 1fr; gap: 56px; } }
.phone {
  position: relative; width: min(76vw, 330px); aspect-ratio: 9 / 16; margin: 0 auto; padding: 9px; border-radius: 38px;
  background: linear-gradient(150deg, #33206e, #0c0626 60%, #1e0f4b);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 0 34px 80px -24px rgba(157, 107, 255, .7), 0 0 70px rgba(63, 243, 255, .14);
}
.clip-badge {
  position: absolute; z-index: 2; left: 50%; top: 22px; translate: -50% 0; padding: 6px 14px; border-radius: 999px;
  background: rgba(8, 4, 28, .78); box-shadow: inset 0 0 0 1px rgba(255, 228, 92, .5); color: var(--yellow);
  font: 800 12.5px/1.3 var(--font-round); white-space: nowrap; pointer-events: none;
}
.phone video { display: block; width: 100%; height: 100%; border-radius: 30px; object-fit: cover; background: #05021a; }
.clip-copy h3 { margin: 0 0 8px; font: 900 22px/1.4 var(--font); }
.clip-copy p { margin: 0 0 12px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--lime) 30%, #2f9e2a 100%);
  box-shadow: 0 0 10px rgba(141, 255, 122, .5);
}
.ticks li strong { color: #fff; }

.features { display: grid; gap: 18px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative; padding: 24px 22px 22px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 50px -30px rgba(0, 0, 0, .8);
}
.feature::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 70%; pointer-events: none; opacity: .5;
  background: radial-gradient(closest-side, var(--accent, var(--cyan)), transparent);
  filter: blur(10px);
}
.feature.f-note { --accent: rgba(63, 243, 255, .45); }
.feature.f-double { --accent: rgba(255, 79, 207, .45); }
.feature.f-deep { --accent: rgba(157, 107, 255, .5); }
.feature .f-icon { position: relative; width: 64px; height: 64px; display: block; }
.feature h3 { position: relative; margin: 12px 0 6px; font: 900 24px/1.3 var(--font); }
:lang(en) .feature h3 { font-family: var(--font-round); }
.feature .f-sub { position: relative; margin: 0 0 10px; color: var(--yellow); font: 800 14px/1.4 var(--font-round); }
.feature p { position: relative; margin: 0; color: var(--ink-2); font-size: 15px; }

.promise { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; }
@media (min-width: 720px) { .promise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise li {
  list-style: none; padding: 16px 18px; border-radius: 20px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.promise li strong { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; margin-bottom: 4px; }
.promise li strong::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--dot, var(--cyan)) 45%, rgba(0, 0, 0, .35) 100%);
  box-shadow: 0 0 10px var(--dot, var(--cyan));
}
.promise li:nth-child(2) { --dot: var(--pink); } .promise li:nth-child(3) { --dot: var(--yellow); } .promise li:nth-child(4) { --dot: var(--lime); }
.promise li span { color: var(--ink-2); font-size: 14px; }
.promise-links { text-align: center; margin: 18px 0 0; color: var(--ink-3); font-size: 14px; }
.promise-links a { margin: 0 .5em; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.faq details[open] { background: rgba(255, 255, 255, .075); box-shadow: inset 0 0 0 1px rgba(63, 243, 255, .35); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 16px 52px 16px 20px;
  font-weight: 800; font-size: 16px; border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; color: #1b0838; background: var(--cyan);
  font: 900 18px/1 var(--font-round);
}
.faq details[open] summary::after { content: "−"; background: var(--pink); color: #fff; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin-bottom: 0; }

.download {
  position: relative; text-align: center; padding: 40px 22px; border-radius: 34px; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 79, 207, .25), transparent 70%),
              linear-gradient(180deg, rgba(157, 107, 255, .18), rgba(63, 243, 255, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px -40px rgba(255, 79, 207, .6);
}
.download h2 { margin-bottom: 10px; }
.download p { color: var(--ink-2); margin: 0 auto 20px; max-width: 36em; }
.download .cta-row { justify-content: center; }

/* ------------------------------------------------------------------ documents (legal / support) */

.doc { max-width: 800px; margin: 0 auto; padding: 36px 20px 72px; }
.doc-head { margin-bottom: 22px; }
.doc-head .eyebrow { text-align: left; }
.doc-head h1 { margin: 0; font: 900 clamp(28px, 6.4vw, 42px)/1.3 var(--font); text-shadow: 0 0 24px rgba(157, 107, 255, .5); }
:lang(en) .doc-head h1 { font-family: var(--font-round); }
.draft-banner {
  margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: #fff3b0;
  background: rgba(255, 228, 92, .08); box-shadow: inset 0 0 0 1px rgba(255, 228, 92, .35);
}
.toc { margin: 0 0 28px; padding: 16px 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.prose .toc h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }
.prose .toc ul { list-style: none; margin: 0; padding: 0; columns: 1; }
@media (min-width: 720px) { .prose .toc ul { columns: 2; column-gap: 32px; } }
.prose .toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--cyan); text-decoration: underline; }

.prose { color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--line); color: #fff; font-size: 1.4em; line-height: 1.4; }
.prose h3 { margin: 1.8em 0 .5em; color: #fff; font-size: 1.15em; line-height: 1.45; }
.prose h4 { margin: 1.5em 0 .4em; color: #fff; font-size: 1em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--pink); }
.prose strong { color: #fff; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: .1em .35em; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff; }
.prose pre { overflow-x: auto; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose blockquote {
  margin: 1.2em 0; padding: .7em 1em; border-left: 3px solid var(--pink); border-radius: 0 14px 14px 0;
  background: rgba(255, 79, 207, .07); color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.4em; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94em; }
.table-wrap.stack table { min-width: 480px; }
.prose th, .prose td { padding: .65em .8em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose th { color: #fff; background: rgba(255, 255, 255, .06); font-weight: 800; white-space: nowrap; }
.prose .al-r { text-align: right; } .prose .al-c { text-align: center; } .prose .al-l { text-align: left; }
@media (max-width: 559px) {
  .table-wrap.stack { overflow: visible; box-shadow: none; border-radius: 0; }
  .table-wrap.stack table { min-width: 0; }
  .table-wrap.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap.stack tr {
    display: block; margin: 0 0 12px; padding: 10px 14px; border-radius: 16px;
    background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  }
  .table-wrap.stack td { display: block; padding: 5px 0; border: 0; text-align: left; }
  .table-wrap.stack td::before {
    content: attr(data-label); display: block; color: var(--ink-3); font-size: 12px; font-weight: 800; letter-spacing: .04em;
  }
  .table-wrap.stack td:first-child { color: #fff; font-weight: 800; font-size: 1.05em; }
  .table-wrap.stack td:first-child::before { display: none; }
  .table-wrap.stack td:empty { display: none; }
}
.prose details { margin: .6em 0; padding: .2em 1em; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.prose details summary { cursor: pointer; padding: .5em 0; color: #fff; font-weight: 800; }
.prose .check { color: var(--lime); }
.prose .sticker-note { padding: 12px 16px; border-radius: 14px; background: rgba(63, 243, 255, .06);
                       box-shadow: inset 0 0 0 1px rgba(63, 243, 255, .28); }
:lang(ja) em { font-style: normal; font-weight: 700; }
.doc-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* ------------------------------------------------------------------ deep-link pages */

.dl { max-width: 560px; margin: 0 auto; padding: 36px 20px 64px; text-align: center; }
.dl .logo { width: min(80%, 320px); height: auto; margin: 0 auto 6px; display: block; }
.dl h1 { margin: 10px 0 4px; font: 900 clamp(24px, 6vw, 34px)/1.35 var(--font); }
.dl .card {
  margin: 20px 0; padding: 26px 20px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px -40px rgba(63, 243, 255, .6);
}
.code-display {
  margin: 4px 0 2px; font: 800 clamp(32px, 10.5vw, 58px)/1.15 var(--font-mono); letter-spacing: .06em;
  color: #fff; text-shadow: 0 0 18px rgba(63, 243, 255, .75), 0 0 2px #fff; overflow-wrap: anywhere;
}
.day-display { margin: 4px 0; font: 900 clamp(40px, 13vw, 72px)/1.1 var(--font-round); color: #fff;
               text-shadow: 0 0 20px rgba(255, 79, 207, .8), 0 0 2px #fff; }
.dl .actions { display: grid; gap: 12px; margin-top: 18px; }
.dl .muted { color: var(--ink-3); font-size: 14px; }
.dl .help { text-align: left; color: var(--ink-2); font-size: 15px; }
.dl .help h2 { font-size: 17px; margin: 22px 0 6px; color: #fff; }
.dl .help ul { padding-left: 1.3em; margin: 0; }
.dl form { display: grid; gap: 10px; margin-top: 10px; }
.dl input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .3); color: #fff; font: 800 22px/1 var(--font-mono); letter-spacing: .08em; text-align: center;
  text-transform: uppercase;
}
.dl input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 243, 255, .25); }
.dl .error { color: #ffb0c8; min-height: 1.5em; margin: 0; }
.share-sample { font-family: var(--font); background: rgba(0, 0, 0, .3); border-radius: 14px; padding: 12px 14px; white-space: pre-wrap; text-align: left; color: #fff; }
.dl .help .legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; align-items: baseline; }
.legend .k { color: #fff; font-weight: 800; white-space: nowrap; }
.countdown { font-variant-numeric: tabular-nums; color: #fff; font-weight: 800; }
[data-lang="ja"] .i18n:lang(en), [data-lang="en"] .i18n:lang(ja) { display: none !important; }
.lang-toggle { margin-top: 18px; }
.lang-toggle .chip[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(63, 243, 255, .1); box-shadow: none; }
.mini-footer { margin-top: 26px; padding: 26px 20px 40px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.mini-footer .footer-links { justify-content: center; }

/* ------------------------------------------------------------------ footer */

.site-footer { margin-top: 30px; padding: 40px 0 48px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(3, 1, 14, .45); }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1fr 2fr; } }
.site-footer .logo { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note { margin: 16px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.7; }

/* ------------------------------------------------------------------ 404 */

.nf { text-align: center; padding: 60px 20px 80px; }
.nf .cta-row, .dl .cta-row { justify-content: center; }
.nf h1 { margin: 10px 0 12px; font: 900 clamp(22px, 5.6vw, 32px)/1.4 var(--font); }
.nf .muted { margin: 4px 0; color: var(--ink-2); }
.nf .big { font: 900 clamp(60px, 20vw, 140px)/1 var(--font-round); color: #fff; text-shadow: 0 0 30px rgba(255, 79, 207, .8); margin: 0; }

/* ------------------------------------------------------------------ motion & print */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .ring, .ball.pop, .counter.bump, .fx { animation: none !important; }
  .fx { display: none; }
}

@media print {
  body { background: #fff !important; color: #000; }
  .site-header, .site-footer, .skip, .toc { display: none !important; }
  .prose, .prose h2, .prose h3, .prose strong, .doc-head h1 { color: #000 !important; text-shadow: none !important; }
  .prose a { color: #000; }
  .table-wrap { box-shadow: none; }
  .prose th, .prose td { border: 1px solid #999; }
}
