/* ============================================================
   404 PLAYER — LP styles
   (c) AMIX / トミナガハルキ
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0b0e;
  --bg2: #101014;
  --ink: #f2f0ea;
  --dim: rgba(242, 240, 234, 0.62);
  --mute: rgba(242, 240, 234, 0.34);
  --line: rgba(242, 240, 234, 0.16);
  --red: #ff3b30;
  --disp: "Anton", "Dela Gothic One", sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --jpdisp: "Dela Gothic One", "Noto Sans JP", sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

/* フィルムグレイン */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-3%, 2%); }
  75% { transform: translate(3%, 3%); }
  100% { transform: translate(-2%, -2%); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

a { color: inherit; }

/* ---- header ---- */
.siteHead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  mix-blend-mode: difference;
}
.brand {
  font-family: var(--mono); font-weight: 700;
  font-size: 15px; letter-spacing: 0.12em;
  text-decoration: none;
}
.brand .b404, .f-logo .b404 { color: var(--red); }
.siteHead nav { display: flex; gap: clamp(14px, 2.6vw, 30px); }
.siteHead nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-decoration: none; position: relative; padding: 4px 0;
}
.siteHead nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s;
}
.siteHead nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 90px clamp(20px, 4vw, 48px) 64px;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.34em; color: var(--red);
  margin-bottom: clamp(14px, 2.5vh, 28px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-title {
  font-family: var(--disp); font-weight: 400;
  line-height: 0.88; user-select: none;
}
.ht-row { display: block; }
.ht-num {
  /* コートは画面幅いっぱいに広げる（404自体は中央・上限サイズ維持） */
  position: relative; display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(160px, min(30vw, 44vh), 520px);
  touch-action: pan-y; /* 縦スクロールは妨げない */
}
#heroCv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ht-num-fallback {
  font-size: clamp(130px, min(30vw, 36vh), 400px);
  letter-spacing: 0.01em; line-height: 0.88;
  display: block; text-align: center;
}
.ht-num.live .ht-num-fallback { visibility: hidden; }

/* 擬似ロード（素の書体がちらつく代わりに、HTTPリクエスト風の演出を挟む） */
.ht-load {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
}
.ht-num.loading .ht-num-fallback { visibility: hidden; }
.ht-num.loading .ht-load { display: flex; }
.ht-num.live .ht-load { display: none; }
.ht-load-line {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  color: var(--dim);
}
.ht-load-line .err { color: var(--red); }
.ht-load-cursor { font-style: normal; color: var(--red); animation: htblink 0.8s steps(1) infinite; }
@keyframes htblink { 50% { opacity: 0; } }
.ht-load-track {
  width: min(220px, 50vw); height: 3px;
  background: rgba(242, 240, 234, 0.14);
  overflow: hidden;
}
.ht-load-bar {
  /* 最低表示時間(950ms)と同期して満ちる。満タン＝404の再構築開始 */
  display: block; height: 100%; width: 0;
  background: var(--red);
  animation: htfill 0.95s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes htfill { to { width: 100%; } }
.ht-load-line.swap { animation: htglitch 0.2s steps(2); }
@keyframes htglitch {
  25% { transform: translate(-2px, 1px); }
  75% { transform: translate(2px, -1px); }
}
/* 端末カード（CONCEPTセクションで使用） */
.concept-side { display: flex; flex-direction: column; gap: 18px; }
.hero-term {
  border: 1px solid var(--line);
  background: var(--bg2);
  text-align: left;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-bottom: 1px solid var(--line);
}
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.term-bar i:first-child { background: var(--red); }
.term-bar span {
  margin-left: 8px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; color: var(--mute);
}
.term-body {
  padding: 18px 20px;
  font-family: var(--mono); font-size: 12.5px; line-height: 2.1;
  color: var(--dim); overflow-x: auto;
}
.term-body .t-err { color: var(--red); }
.term-body .t-ok { color: #7cd992; }
.t-cursor { animation: tblink 1s steps(1) infinite; color: var(--ink); }
@keyframes tblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t-cursor { animation: none; } }
.ht-player {
  font-size: clamp(38px, min(9.4vw, 10vh), 120px);
  letter-spacing: 0.42em; text-indent: 0.42em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  margin-top: clamp(10px, 2vh, 24px);
  transition: color 0.45s;
}
.ht-player:hover { color: var(--red); -webkit-text-stroke-color: var(--red); }
.hero-copy {
  margin: clamp(22px, 3.6vh, 42px) auto 0;
  font-size: clamp(13.5px, 1.6vw, 15.5px);
  line-height: 2.15; color: var(--dim);
  max-width: 42em;
}
.hero-copy b { color: var(--ink); font-weight: 700; }
.hero-cta { margin-top: clamp(20px, 3vh, 34px); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 26px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--mute);
  display: flex; align-items: center; gap: 12px;
}
.sc-line { display: inline-block; width: 56px; height: 1px; background: var(--mute); position: relative; overflow: hidden; }
.sc-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: scline 1.8s ease-in-out infinite;
}
@keyframes scline { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-decoration: none;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink);
  padding: 14px 26px; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-fill { background: var(--ink); color: var(--bg); }
.btn-fill:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-big { padding: 18px 34px; font-size: 13.5px; }
.dl-size { font-weight: 400; color: inherit; opacity: 0.55; font-size: 11px; }

/* ---- marquee ---- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  padding: 13px 0;
}
.mq-inner { display: inline-flex; animation: mq 30s linear infinite; }
.mq-inner span {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em;
  color: var(--mute);
}
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-inner { animation: none; } }

/* ---- sections ---- */
.sec { padding: clamp(90px, 14vh, 170px) clamp(20px, 4vw, 48px); }
.sec-in { max-width: 1080px; margin: 0 auto; }
.sec-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.3em;
  color: var(--red); margin-bottom: 18px;
}
.sec-title {
  font-family: var(--jpdisp); font-weight: 400;
  font-size: clamp(30px, 6vw, 58px); line-height: 1.35;
  margin-bottom: clamp(34px, 6vh, 64px);
}

/* ---- concept ---- */
.concept-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.concept-copy { color: var(--dim); font-size: 14.5px; line-height: 2.3; }
.concept-copy b { color: var(--ink); }
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.stats li {
  border: 1px solid var(--line); padding: 22px 10px 18px;
  text-align: center; margin: -0.5px;
}
.stats b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(34px, 4.5vw, 52px); line-height: 1; }
.stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--mute); }

/* ---- games ---- */
.games { padding-bottom: clamp(60px, 8vh, 100px); }
.games-note { color: var(--dim); font-size: 13.5px; margin-top: -18px; }
.games-note b { color: var(--ink); }

.gameList { max-width: 1080px; margin: clamp(40px, 7vh, 80px) auto 0; }
.gameRow {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 6vh, 64px) 0 clamp(40px, 6vh, 60px);
}
.gameRow:last-child { border-bottom: 1px solid var(--line); }

.g-head { display: flex; align-items: baseline; gap: clamp(14px, 2.4vw, 26px); flex-wrap: wrap; margin-bottom: clamp(22px, 3.6vh, 36px); }
.g-no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--mute); }
.g-name {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(46px, 9vw, 104px); line-height: 1;
  letter-spacing: 0.015em;
}
.gameRow:hover .g-name { color: var(--ac, var(--ink)); transition: color 0.3s; }
.gameRow[data-slug="breaker"]:hover .g-name { color: var(--ink); }
.g-genre {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  border: 1px solid var(--line); color: var(--dim);
  padding: 5px 13px; border-radius: 999px;
}

.g-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.g-lede { font-size: clamp(16px, 2vw, 19px); font-weight: 700; margin-bottom: 14px; line-height: 1.9; }
.g-text { font-size: 13.5px; line-height: 2.2; color: var(--dim); }
.g-spec { list-style: none; margin-top: 22px; }
.g-spec li {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--dim); padding: 7px 0 7px 18px; position: relative;
  border-top: 1px dashed var(--line);
}
.g-spec li::before { content: "+"; position: absolute; left: 0; color: var(--red); }

/* browser mock */
.browser {
  border: 1px solid var(--line);
  background: var(--bg2);
  transition: border-color 0.3s;
}
.gameRow:hover .browser { border-color: rgba(242, 240, 234, 0.4); }
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser:hover .browser-bar i:first-child { background: var(--red); }
.browser-bar .url {
  margin-left: 10px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--mute);
}
.browser-view { position: relative; aspect-ratio: 16 / 10; background: var(--acbg, var(--bg2)); overflow: hidden; }
.browser-view iframe {
  /* 実ページを1280x800で描画し、枠に合わせて縮小表示する */
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 800px; border: 0;
  transform-origin: 0 0;
  pointer-events: auto;
}

/* 操作開始ゲート */
.gate {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent; border: 0; cursor: pointer; padding: 0 0 12px;
  touch-action: pan-y; /* 操作開始前はページの縦スクロールを許可 */
}
.gate span {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ink); background: rgba(11, 11, 14, 0.82);
  border: 1px solid var(--line);
  padding: 9px 16px;
  transition: background 0.25s, border-color 0.25s;
}
.gate:hover span { background: var(--red); border-color: var(--red); color: #fff; }
.browser-view.active .gate { display: none; }

.demoBadge {
  position: absolute; top: 9px; left: 9px; z-index: 4;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em;
  color: var(--ink); background: rgba(11, 11, 14, 0.78);
  border: 1px solid var(--line); padding: 6px 9px;
  pointer-events: none;
}
.demoBadge::first-letter { color: var(--red); }
.browser-view.active .demoBadge { display: none; }

/* 操作解除 */
.exitInteract {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  display: none;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink); background: rgba(11, 11, 14, 0.82);
  border: 1px solid var(--line);
  padding: 7px 12px; cursor: pointer;
}
.exitInteract:hover { background: var(--ink); color: var(--bg); }
.browser-view.active .exitInteract { display: block; }
.loadDemo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(4px, 1vw, 10px);
  background: var(--acbg, var(--bg2));
  color: var(--ac, var(--ink));
  border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
}
.loadDemo::before {
  content: "404";
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 130px);
  line-height: 1; letter-spacing: 0.02em;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.loadDemo:hover::before { transform: scale(1.06) rotate(-1.5deg); }
.loadDemo::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px dashed currentColor; opacity: 0.35; pointer-events: none;
}

.g-actions { margin-top: clamp(20px, 3.4vh, 30px); display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cz[disabled] {
  color: var(--dim); border-color: var(--line); opacity: 0.82;
  cursor: not-allowed;
}

/* complete pack */
.allpack { max-width: 1080px; margin: clamp(50px, 8vh, 90px) auto 0; }
.ap-in {
  border: 1px solid var(--ink);
  padding: clamp(36px, 6vh, 64px) clamp(22px, 4vw, 56px);
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, rgba(242, 240, 234, 0.03) 0 10px, transparent 10px 20px);
}
.ap-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--red); margin-bottom: 14px; }
.ap-in h3 {
  font-family: var(--jpdisp); font-weight: 400;
  font-size: clamp(24px, 4.4vw, 40px); line-height: 1.35;
  margin-bottom: 12px;
}
.ap-in p { color: var(--dim); font-size: 13.5px; margin-bottom: 28px; }
.ap-in .btn { line-height: 1.35; text-align: center; }

/* ---- how to ---- */
.howto { background: var(--bg2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 30px); counter-reset: step; }
.steps li { border: 1px solid var(--line); padding: 28px 24px 26px; background: var(--bg); }
.st-no {
  display: inline-block; font-family: var(--disp); font-size: 40px; line-height: 1;
  color: var(--red); margin-bottom: 14px;
}
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.steps p { font-size: 13px; line-height: 2.1; color: var(--dim); }
.steps code, .faqList code {
  font-family: var(--mono); font-size: 0.88em;
  background: rgba(242, 240, 234, 0.08);
  padding: 1px 7px; border-radius: 3px;
}

.conf { margin-top: clamp(28px, 4.6vh, 44px); border: 1px solid var(--line); background: var(--bg); }
.conf-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.conf-tabs button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  background: none; border: 0; border-right: 1px solid var(--line);
  color: var(--mute); padding: 13px 22px; cursor: pointer; white-space: nowrap;
}
.conf-tabs button.on { color: var(--ink); background: rgba(242, 240, 234, 0.06); }
.conf-code { padding: 22px 24px; overflow-x: auto; }
.conf-code code { font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--dim); }

.specList { list-style: none; margin-top: clamp(28px, 4.6vh, 44px); display: grid; grid-template-columns: 1fr 1fr; }
.specList li {
  border: 1px solid var(--line); margin: -0.5px;
  padding: 20px 22px; font-size: 12.5px; line-height: 2; color: var(--dim);
}
.specList b {
  display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px;
}

/* ---- arrange ---- */
.arrList { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 26px); }
.arrCard {
  border: 1px solid var(--line); padding: 30px 28px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.arrCard:hover { border-color: rgba(242, 240, 234, 0.45); transform: translateY(-3px); }
.arr-ic { display: block; width: 32px; height: 32px; margin-bottom: 16px; color: var(--ink); }
.arrCard:hover .arr-ic { color: var(--red); transition: color 0.3s; }
.arrCard h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.arrCard p { font-size: 13px; line-height: 2.15; color: var(--dim); }
.arrCard code {
  font-family: var(--mono); font-size: 0.88em;
  background: rgba(242, 240, 234, 0.08);
  padding: 1px 7px; border-radius: 3px;
}
@media (max-width: 640px) { .arrList { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faqList details { border-top: 1px solid var(--line); }
.faqList details:last-child { border-bottom: 1px solid var(--line); }
.faqList summary {
  list-style: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700;
  padding: 22px 44px 22px 4px; position: relative;
  transition: color 0.25s;
}
.faqList summary::-webkit-details-marker { display: none; }
.faqList summary::after {
  content: "+"; position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 18px; color: var(--red);
  transition: transform 0.25s;
}
.faqList details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faqList summary:hover { color: var(--red); }
.faqList p { padding: 0 4px 24px; font-size: 13.5px; line-height: 2.2; color: var(--dim); }
.faqList a { color: var(--ink); text-underline-offset: 4px; }

/* ---- terms ---- */
.termsBox { border: 1px solid var(--line); padding: clamp(26px, 4.4vh, 44px) clamp(22px, 3.6vw, 44px); }
.termsBox ul { list-style: none; margin-bottom: 30px; }
.termsBox li {
  padding: 13px 0 13px 40px; position: relative;
  font-size: 14px; border-bottom: 1px dashed var(--line);
}
.termsBox li::before {
  position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.termsBox li.ok::before { content: "OK"; color: #7cd992; }
.termsBox li.ng::before { content: "NG"; color: var(--red); }

/* ---- footer ---- */
.siteFoot {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 8vh, 80px) clamp(20px, 4vw, 48px) 46px;
  text-align: center;
}
.f-logo { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; margin-bottom: 10px; }
.f-note { font-size: 12.5px; color: var(--mute); margin-bottom: 26px; }
.f-links { font-size: 12.5px; color: var(--dim); }
.f-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.f-links a:hover { color: var(--red); }
.f-sep { margin: 0 10px; color: var(--mute); }

/* ---- download confirm modal ---- */
#dlModal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#dlModal[hidden] { display: none; }
.dlm-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dlm-card {
  position: relative; max-width: 460px; width: 100%;
  background: var(--bg2); border: 1px solid rgba(242, 240, 234, 0.35);
  padding: 34px 32px 30px;
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
#dlModal.on .dlm-backdrop { opacity: 1; }
#dlModal.on .dlm-card { opacity: 1; transform: none; }
.dlm-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em; color: var(--red); margin-bottom: 10px; }
.dlm-card h3 { font-family: var(--jpdisp); font-weight: 400; font-size: 21px; margin-bottom: 18px; }
.dlm-list { list-style: none; margin-bottom: 18px; }
.dlm-list li {
  position: relative; padding: 9px 0 9px 22px;
  font-size: 12.5px; line-height: 1.95; color: var(--dim);
  border-bottom: 1px dashed var(--line);
}
.dlm-list li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-family: var(--mono); font-size: 12px; }
.dlm-list b { color: var(--ink); }
.dlm-terms { font-size: 12px; margin-bottom: 24px; }
.dlm-terms a { color: var(--ink); text-underline-offset: 4px; }
.dlm-terms a:hover { color: var(--red); }
.dlm-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dlm-btns .btn { padding: 12px 20px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .dlm-backdrop, .dlm-card { transition: none; }
}
@media (max-width: 480px) {
  .dlm-btns .btn { width: 100%; justify-content: center; }
}

/* ---- customize studio ---- */
#studio {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: stretch; justify-content: center;
}
#studio[hidden] { display: none; }
.st-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 11, 14, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s ease;
}
.st-frame {
  position: relative; width: 100%; max-width: 1400px;
  margin: clamp(10px, 2vh, 24px);
  background: var(--bg);
  border: 1px solid rgba(242, 240, 234, 0.3);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(18px) scale(0.99);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
}
#studio.on .st-backdrop { opacity: 1; }
#studio.on .st-frame { opacity: 1; transform: none; }
body.st-open { overflow: hidden; }

.st-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.st-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--red); margin-bottom: 4px; }
.st-head h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(22px, 3.4vw, 34px); line-height: 1; }
.st-x {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  background: none; border: 1px solid var(--line); color: var(--dim);
  padding: 9px 16px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.st-x:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.st-body {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
}
.st-preview {
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--line);
  padding: clamp(14px, 2vw, 24px);
}
.st-pv-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border: 1px solid var(--line); border-bottom: 0;
  background: var(--bg2);
}
.st-pv-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.st-pv-bar i:first-child { background: var(--red); }
.st-pv-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mute); }
.st-pv-view {
  position: relative; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2);
}
.st-pv-view iframe {
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 800px; border: 0;
  transform-origin: 0 0;
}
.st-pv-note { margin-top: 10px; font-size: 11.5px; color: var(--dim); }

.st-panel {
  overflow-y: auto; min-height: 0;
  padding: clamp(14px, 2vw, 22px);
}
.st-sec { margin-bottom: 24px; }
.st-sec h4 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.26em; color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 12px;
}

.st-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-preset {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--line);
  padding: 9px 10px; cursor: pointer;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--dim);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.st-preset:hover { border-color: rgba(242, 240, 234, 0.5); color: var(--ink); transform: translateY(-1px); }
.st-preset .dots { display: flex; }
.st-preset .dots i {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(242, 240, 234, 0.25);
  margin-left: -4px;
}
.st-preset .dots i:first-child { margin-left: 0; }

.st-color {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.st-color input[type="color"] {
  width: 38px; height: 30px; padding: 0; border: 1px solid var(--line);
  background: none; cursor: pointer; flex: 0 0 auto;
}
.st-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.st-color input[type="color"]::-webkit-color-swatch { border: none; }
.st-cl { flex: 1 1 auto; font-size: 12.5px; }
.st-hex { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.05em; }

.st-actions { display: flex; gap: 8px; margin-top: 14px; }
.st-actions button {
  flex: 1; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: border-color 0.2s, background 0.2s;
}
.st-dice { width: 15px; height: 15px; flex: 0 0 auto; }
.st-actions button:hover { border-color: rgba(242, 240, 234, 0.5); background: rgba(242, 240, 234, 0.06); }

.st-emoji { display: flex; flex-direction: column; gap: 10px; }
.st-emoji input {
  width: 74px; font-size: 22px; text-align: center;
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 6px;
}
.st-emoji input::placeholder {
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--mute);
}
.st-emoji-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.st-emoji-picks button {
  font-size: 18px; line-height: 1;
  background: var(--bg2); border: 1px solid var(--line);
  padding: 7px 9px; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.st-emoji-picks button:hover { border-color: rgba(242, 240, 234, 0.5); transform: translateY(-1px); }

.st-field { display: block; margin-bottom: 10px; }
.st-field span { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 5px; }
.st-field input {
  width: 100%; font-family: var(--mono); font-size: 12.5px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  padding: 9px 11px;
}
.st-field input:focus { outline: none; border-color: rgba(242, 240, 234, 0.5); }
.st-hint { font-size: 11px; color: var(--dim); line-height: 1.9; }

.st-dl {
  width: 100%;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 15px 10px; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.st-dl:hover { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 900px) {
  .st-frame { overflow-y: auto; }
  .st-body { grid-template-columns: 1fr; }
  .st-preview { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .st-backdrop, .st-frame { transition: none; }
}

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #heroNum i { transition: none; }
}

/* ---- responsive ---- */
.sp { display: none; }
@media (max-width: 860px) {
  .g-body { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .specList { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp { display: inline; }
  body { font-size: 14px; }
  .browser-view iframe { pointer-events: none; }
  .gate, .exitInteract { display: none !important; }
  .ap-in { padding-left: 12px; padding-right: 12px; }
  .ap-in h3 { font-size: clamp(19px, 5.6vw, 22px); line-height: 1.3; white-space: nowrap; }
  .siteHead nav a.navTerms { display: none; }
  .hero { padding-top: 96px; }
  .hero-scroll { display: none; }
  .stats b { font-size: 30px; }
  .g-actions .btn { width: 100%; justify-content: center; }
  .g-actions .btn-cz[disabled] { border-style: dashed; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .ap-in .btn { width: 100%; justify-content: center; }
}
