:root {
  --bg: #fffaf3;
  --fg: #222;
  --muted: #6b6258;
  --accent: #e2384d;
  --accent-fg: #fff;
  --card: #fff;
  --line: #e7ddd0;
  --banner: #ffe36e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916; --fg: #f1ece4; --muted: #b3a999; --card: #26231f;
    --line: #3d3832; --banner: #6b5a12;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif);
  line-height: 1.6; min-height: 100dvh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 16px; }

.joke-banner { background: #ffe36e; color: #222; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 16px; }
.progress { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 16px 0; min-height: 1.6em; }
.site-foot { font-size: 12px; color: var(--muted); padding: 16px; border-top: 1px solid var(--line); text-align: center; }
.site-foot p { margin: 4px 0; }

/* ボタン：押せるものは白地＋縁 or アクセント色。グレーは無効状態だけ */
button { font: inherit; cursor: pointer; border-radius: var(--radius, 10px); }
.btn-primary {
  display: block; width: 100%; margin-top: 16px; padding: 14px;
  background: var(--accent); color: var(--accent-fg); border: 0; font-weight: 700;
}
.btn-secondary {
  display: block; width: 100%; margin-top: 12px; padding: 12px;
  background: var(--card); color: var(--fg); border: 2px solid var(--accent); font-weight: 700;
}
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 8px; }
button:disabled { background: #ccc; color: #777; border-color: #ccc; cursor: not-allowed; }

/* トップ */
.top { text-align: center; padding-top: 32px; }
.top-brand { font-size: 28px; font-weight: 800; margin: 0; }
.top-lead { color: var(--muted); }
.btn-quit {
  margin: 32px auto 16px; padding: 18px 48px; font-size: 20px; font-weight: 800;
  background: var(--card); color: var(--accent); border: 3px solid var(--accent);
}
.top-note { font-size: 13px; color: var(--muted); }

/* ステージ共通 */
.stage-head { margin-bottom: 16px; }
.stage-no { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.stage-title { font-size: 20px; margin: 4px 0 0; }
.stage-body { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.placeholder { color: var(--muted); text-align: center; }

.clear-msg { font-size: 28px; font-weight: 900; color: var(--accent); text-align: center; margin: 8px 0 16px; }
.source-card { border-left: 4px solid var(--accent); background: var(--bg); padding: 12px; border-radius: 8px; }
.source-label { font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.source-summary { margin: 0 0 8px; }
.source-card a { color: var(--accent); font-size: 14px; }

/* 最終画面 */
.final { text-align: center; padding-top: 48px; }
.final-done, .final-back { font-size: 32px; font-weight: 900; }
.final-back { color: var(--accent); }

/* ── ステージ固有（クラス名は sNN- で始める） ── */
.s01-label { font-weight: 700; text-align: center; }
.s01-bar { position: relative; height: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; overflow: visible; }
.s01-fill { height: 100%; background: var(--accent); border-radius: 9px; transition: width .3s; }
.s01-skip { position: absolute; right: -2px; bottom: -14px; font-size: 8px; padding: 0 2px; background: none; border: 0; color: var(--muted); opacity: .55; }
.s01-msg { font-size: 12px; color: var(--accent); min-height: 1.6em; }

.s05-talk p { margin: 0 0 8px; }
.s05-count { font-size: 13px; color: var(--muted); }

.s15-note { color: var(--accent); font-weight: 700; min-height: 1.6em; }

.s20-stack { position: relative; }
.s20-dialog {
  border: 2px solid var(--accent); border-radius: 12px; padding: 16px; text-align: center;
  background: var(--card); box-shadow: calc(var(--d) * 2px) calc(var(--d) * 2px) 0 var(--line);
  transform: scale(calc(1 - var(--d) * .03));
}
.s20-q { font-size: 18px; font-weight: 800; margin: 0; }
.s20-count { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.s02-sub, .s03-sub { font-size: 13px; color: var(--muted); }
.s02-clock { font-variant-numeric: tabular-nums; text-align: center; font-weight: 700; }
.s02-slot { min-height: 64px; }

.s03-404 { text-align: center; }
.s03-code { font-size: 64px; font-weight: 900; margin: 0; color: var(--muted); }
.s03-hidden { background: none; border: 0; padding: 0; color: inherit; font: inherit; border-radius: 0; cursor: default; }
.s03-hidden:focus-visible { outline: 2px solid var(--accent); }
.s03-small { font-size: 11px; color: var(--muted); }
.s03-hint { font-size: 13px; color: var(--accent); min-height: 1.6em; }

.s04-step { font-size: 13px; font-weight: 700; color: var(--accent); }
.s04-perk { font-size: 18px; font-weight: 800; text-align: center; border: 2px dashed var(--accent); border-radius: 10px; padding: 12px; }
.s04-accepted { font-weight: 700; }

.s06-queue { font-size: 22px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.s06-bar { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.s06-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 1s linear; }
.s06-voice { font-size: 14px; }
.s06-song { font-size: 12px; color: var(--muted); }

.s07-plan { border: 2px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; }
.s07-plan span { font-size: 13px; color: var(--muted); }
.s07-note { font-size: 12px; color: var(--muted); }

.s08-head { font-weight: 700; color: var(--accent); }
.s08-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius, 10px); }
.s08-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.s08-list li.is-read span { color: var(--muted); }
.s08-read { background: var(--card); color: var(--accent); border: 1px solid var(--accent); padding: 2px 10px; font-size: 12px; }
.s08-more { color: var(--muted); justify-content: center !important; }
.s08-all { justify-content: flex-end !important; border-bottom: 0 !important; }
.s08-all-btn { background: none; border: 0; color: var(--accent); font-size: 10px; text-decoration: underline; padding: 0; }

.s09-done { font-size: 28px; font-weight: 900; text-align: center; }
.s09-note { font-size: 13px; color: var(--accent); }
.s09-check { display: block; margin: 8px 0; }

.s10-bill { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); padding: 10px 4px; margin: 12px 0; }
.s10-bill strong { font-size: 18px; color: var(--accent); }
.s10-small { font-size: 12px; color: var(--muted); }
.s10-msg { font-weight: 700; color: var(--accent); min-height: 1.6em; }

.s11-log { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.s11-log p { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 14px; max-width: 85%; }
.s11-bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.s11-me { background: var(--accent); color: var(--accent-fg); align-self: flex-end; }

.s12-reply { min-height: 3.2em; font-weight: 700; }
.s12-count { font-size: 13px; color: var(--muted); }

.s13-sky { position: relative; height: 220px; border: 2px dashed var(--line); border-radius: 12px; background: linear-gradient(#bfe3ff55, transparent); display: grid; place-items: center; }
.s13-letter { position: absolute; top: 8px; left: 10px; font-size: 12px; color: var(--muted); }
.s13-bird { font-size: 56px; cursor: grab; touch-action: none; user-select: none; position: relative; z-index: 5; }
.s13-bird.is-drag { cursor: grabbing; }
.s13-bird.is-fly { transition: transform 1s ease-in, opacity 1s; transform: translate(120vw, -80vh) !important; opacity: 0; }
.s13-msg { min-height: 3.2em; font-size: 14px; }

.s14-scroll { height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--bg); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.s14-scroll h3 { font-size: 15px; margin: 12px 0 4px; }
.s14-scroll p { margin: 0 0 4px; font-size: 14px; }
.s14-end { text-align: center; margin-top: 16px !important; }
.s14-status { font-size: 13px; color: var(--muted); text-align: right; }

.s16-label { font-weight: 700; margin-bottom: 4px; }
.s16-input { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
.s16-err { color: var(--accent); font-size: 13px; min-height: 1.6em; }
.s16-note { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   スキン（元ネタに寄せた見た目・もじりレベル。docs/SPEC.md §2）
   - 実ロゴ・正確なブランドカラー・専用フォントは使わない。近い「雰囲気」まで
   - body[data-skin] の間だけ有効。ステージ画面には PARODY の透かしを出す
   ════════════════════════════════════════════════════════════ */
.brandbar {
  display: flex; align-items: center; gap: 10px; margin: -16px -16px 16px; padding: 12px 16px;
  background: var(--brand-bg, var(--card)); color: var(--brand-fg, var(--fg));
}
.brand-logo { font-weight: 900; font-size: 20px; line-height: 1; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.brand-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 11px; opacity: .8; }
.brand-parody { flex: none; font-size: 10px; font-weight: 900; letter-spacing: .1em; border: 1.5px solid currentColor; border-radius: 4px; padding: 1px 5px; transform: rotate(-6deg); }

body[data-skin] .stage-body { position: relative; overflow: hidden; }
body[data-skin] .stage-body::after {
  content: 'PARODY'; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: 64px; font-weight: 900; letter-spacing: .1em; color: var(--fg); opacity: .05; transform: rotate(-24deg);
}

/* ── Ubar One（配車アプリ風：白黒・角ばった太字・黒い四角ボタン） ── */
body[data-skin="ubar"] {
  --bg: #f6f6f6; --fg: #111; --muted: #5e5e5e; --card: #fff; --line: #e2e2e2;
  --accent: #111; --accent-fg: #fff; --radius: 8px; --brand-bg: #111; --brand-fg: #fff;
  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
body[data-skin="ubar"] .brand-logo { font-size: 22px; letter-spacing: -.04em; font-weight: 700; }
body[data-skin="ubar"] .stage-body { border: 0; border-radius: 16px; box-shadow: 0 2px 12px #0001; }
body[data-skin="ubar"] .stage-title { font-size: 26px; letter-spacing: -.02em; }
body[data-skin="ubar"] .stage-no { color: #5e5e5e; }
body[data-skin="ubar"] .btn-secondary { border-color: #111; background: #eee; color: #111; border-width: 0; }
body[data-skin="ubar"] .s01-fill, body[data-skin="ubar"] .s01-bar { border-radius: 0; }

/* ── SeriousXM（衛星ラジオ風：濃紺×電光ブルー、ラジオの周波数っぽい装飾） ── */
body[data-skin="serious"] {
  --bg: #0b1530; --fg: #eef3ff; --muted: #9fb0d4; --card: #131f42; --line: #24356a;
  --accent: #2f7bff; --accent-fg: #fff; --radius: 24px; --brand-bg: #050b1c; --brand-fg: #fff;
  --font: "Avenir Next", "Segoe UI", "Hiragino Sans", sans-serif;
}
body[data-skin="serious"] .brand-logo { color: #2f7bff; font-size: 16px; letter-spacing: .02em; }
body[data-skin="serious"] .brand-name { display: none; }
body[data-skin="serious"] .brandbar { border-bottom: 3px solid; border-image: linear-gradient(90deg, #2f7bff, #9b5cff) 1; }
body[data-skin="serious"] .stage-body {
  background: radial-gradient(circle at 50% -20%, #2f7bff33, transparent 60%), var(--card);
}
body[data-skin="serious"] .stage-no { color: #7fb0ff; }
body[data-skin="serious"] .btn-secondary { background: transparent; color: #fff; border-color: #2f7bff; }

/* ── Adobo Creative Cloudy（クリエイティブツール風：ダークグレー×赤、小さめ文字） ── */
body[data-skin="adobo"] {
  --bg: #1e1e1e; --fg: #e8e8e8; --muted: #a0a0a0; --card: #2b2b2b; --line: #3b3b3b;
  --accent: #d8342a; --accent-fg: #fff; --radius: 16px; --brand-bg: #121212; --brand-fg: #fff;
  --font: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
body[data-skin="adobo"] .brand-logo {
  background: #d8342a; color: #fff; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; transform: rotate(-4deg);
}
body[data-skin="adobo"] .stage-body { border-radius: 6px; font-size: 14px; }
body[data-skin="adobo"] .btn-primary { border-radius: 16px; padding: 10px; }
body[data-skin="adobo"] .btn-secondary { background: transparent; color: #e8e8e8; border-color: #8a8a8a; border-radius: 16px; padding: 9px; }
body[data-skin="adobo"] .stage-no { color: #ff6b60; }

/* ── LA Fitless（ジム会員サイト風：白×紺×赤、角ばった大文字見出し） ── */
body[data-skin="fitless"] {
  --bg: #eef1f6; --fg: #14213d; --muted: #59657d; --card: #fff; --line: #cfd6e3;
  --accent: #c8102e; --accent-fg: #fff; --radius: 2px; --brand-bg: #14213d; --brand-fg: #fff;
  --font: "Arial Black", "Arial", "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
}
body[data-skin="fitless"] .brand-logo {
  border: 3px solid #fff; padding: 3px 6px; font-style: italic; background: #c8102e;
}
body[data-skin="fitless"] .stage-title { text-transform: uppercase; font-style: italic; letter-spacing: .02em; }
body[data-skin="fitless"] .stage-body { border-top: 6px solid #c8102e; border-radius: 0; }
body[data-skin="fitless"] .btn-primary, body[data-skin="fitless"] .btn-secondary { text-transform: uppercase; letter-spacing: .06em; }
body[data-skin="fitless"] .btn-secondary { border-color: #14213d; color: #14213d; }

/* ── amajon prime（通販サイト風：紺ヘッダー×黄色の丸ボタン、ロゴの下は「への字」） ── */
body[data-skin="amajon"] {
  --bg: #eaeded; --fg: #0f1111; --muted: #565959; --card: #fff; --line: #d5d9d9;
  --accent: #f5c242; --accent-fg: #0f1111; --radius: 100px; --brand-bg: #18222f; --brand-fg: #fff;
  --font: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
body[data-skin="amajon"] .brand-logo { position: relative; font-size: 21px; letter-spacing: -.03em; padding-bottom: 6px; }
body[data-skin="amajon"] .brand-logo::after {
  /* 本家の「笑顔の矢印」ではなく、への字（不満顔） */
  content: ''; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 8px;
  border-top: 2.5px solid #f59a23; border-radius: 50% 50% 0 0;
}
body[data-skin="amajon"] .brand-tag { color: #f5c242; opacity: 1; }
body[data-skin="amajon"] .stage-body { border-radius: 8px; }
body[data-skin="amajon"] .stage-no { color: #007185; }
body[data-skin="amajon"] .btn-primary { font-weight: 400; box-shadow: 0 2px 5px #d5d9d980; }
body[data-skin="amajon"] .btn-secondary { font-weight: 400; border: 1px solid #d5d9d9; color: #0f1111; box-shadow: 0 2px 5px #d5d9d980; }
body[data-skin="amajon"] .source-card a, body[data-skin="amajon"] .btn-link { color: #007185; }

/* ── いつまでも会員倶楽部（平成の会員制ホームページ風：MSゴシック・ベベルボタン・青リンク） ── */
body[data-skin="kanjo"] {
  --bg: #ffffe0; --fg: #000; --muted: #444; --card: #fff; --line: #000080;
  --accent: #0000ee; --accent-fg: #000; --radius: 0; --brand-bg: linear-gradient(#3a6ea5, #000080); --brand-fg: #ffff00;
  --font: "MS PGothic", "ＭＳ Ｐゴシック", Osaka, monospace;
}
body[data-skin="kanjo"] .brand-logo { color: #ff0; animation: kanjo-blink 1s steps(1) infinite; }
@keyframes kanjo-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body[data-skin="kanjo"] .brand-logo { animation: none; } }
body[data-skin="kanjo"] .stage-body { border: 3px double #000080; border-radius: 0; }
body[data-skin="kanjo"] .stage-title { color: #800000; }
body[data-skin="kanjo"] .btn-primary, body[data-skin="kanjo"] .btn-secondary {
  background: #e6ecff; color: #000; border: 3px outset #b9c6ff; font-weight: 400;
}
body[data-skin="kanjo"] .btn-primary:active, body[data-skin="kanjo"] .btn-secondary:active { border-style: inset; }

/* ── B群ステージ ── */
.s17-join {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 52vh; border: 0; background: var(--accent); color: var(--accent-fg);
  font-size: 32px; font-weight: 900;
}
.s17-join small { font-size: 14px; font-weight: 400; }
.s17-msg { min-height: 1.6em; font-size: 14px; font-weight: 700; }
.s17-foot { text-align: right; }
.s17-rice { font-size: 6px; padding: 0 1px; line-height: 1; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 50%; }

.s18-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s18-item input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.s18-item > span:nth-child(2) { flex: 1; min-width: 0; }
.s18-mean { width: 100%; padding-left: 26px; font-size: 12px; color: var(--accent); font-weight: 700; }
.s18-msg { min-height: 1.6em; font-size: 13px; color: var(--accent); }

.s19-keep { display: block; width: 100%; min-height: 220px; font-size: 40px; font-weight: 900; background: #e5262f; color: #fff; border: 0; border-radius: 24px; box-shadow: 0 8px 0 #9e1219; }
.s19-keep:active { transform: translateY(4px); box-shadow: 0 4px 0 #9e1219; }
.s19-msg { min-height: 1.6em; font-weight: 700; }
.s19-quit { display: block; margin: 8px auto 0; background: none; border: 0; padding: 4px 10px; font-size: 12px; color: var(--card); filter: brightness(.94); }

.s21-crumb { font-size: 11px; color: var(--muted); margin: 0; }
.s21-head { font-size: 22px; font-weight: 800; margin: 4px 0 8px; }
.s21-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.s21-list li + li { border-top: 1px solid var(--line); }
.s21-row { display: flex; justify-content: space-between; width: 100%; padding: 14px; background: var(--card); color: var(--fg); border: 0; border-radius: 0; text-align: left; }
.s21-back { color: var(--accent); }
.s21-note { min-height: 1.6em; font-size: 13px; color: var(--accent); }

.s22-alert { background: #c8102e; color: #fff; font-weight: 800; padding: 8px 10px; border-radius: 6px; margin-top: 0; }
.s22-clock { font-size: 48px; font-weight: 900; text-align: center; color: #c8102e; margin: 8px 0; font-variant-numeric: tabular-nums; }
.s22-viewers { font-size: 13px; color: #c8102e; text-align: center; }
.s22-msg { min-height: 1.6em; font-size: 13px; font-weight: 700; }
.s22-small { display: block; margin: 20px auto 0; background: none; border: 0; padding: 4px; font-size: 11px; color: var(--muted); text-decoration: underline; }

.s23-warn { border: 2px solid #e5262f; border-radius: 12px; padding: 12px; }
.s23-big { font-size: 18px; font-weight: 800; margin-top: 0; }
.s23-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s23-empty { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 8px; }
.s23-count { text-align: center; font-weight: 700; color: var(--muted); }

.s24-pic { display: grid; place-items: center; }
.s24-bubble { background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; font-weight: 700; text-align: center; }

.s25-paper {
  width: 100%; font: 16px/2em "Yu Mincho", "Hiragino Mincho ProN", serif; padding: 0 8px; border: 2px solid #c0392b; border-radius: 0;
  color: #222; background-color: #fffdf6;
  background-image: linear-gradient(#e5b2ab 1px, transparent 1px), linear-gradient(90deg, #f0d3cf 1px, transparent 1px);
  background-size: 100% 2em, 2em 100%; background-position: 0 -1px, 7px 0; background-attachment: local;
}
.s25-count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.s25-note { font-size: 12px; color: var(--muted); }

.s26-board { border: 4px double var(--fg); padding: 10px; text-align: center; background: var(--card); }
.s26-board p { margin: 4px 0; }
.s26-board-title { font-weight: 800; letter-spacing: .2em; }
.s26-small { font-size: 11px; color: var(--muted); }
.s26-clockbox { position: relative; margin: 16px 0 8px; padding: 12px; background: #111; color: #7CFF6B; text-align: center; border-radius: 6px; }
.s26-clock { margin: 0; font: 700 18px/1.4 Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }
.s26-ff { position: absolute; right: 2px; bottom: 0; background: none; border: 0; padding: 2px; font-size: 9px; opacity: .35; color: #7CFF6B; }
.s26-status { font-weight: 700; text-align: center; }

.s27-opt { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 8px 0; padding: 12px 14px; background: var(--card); color: var(--fg); border: 2px solid var(--line); text-align: left; }
.s27-opt span { font-size: 12px; color: var(--muted); }
.s27-opt:hover { border-color: var(--accent); }
.s27-msg { min-height: 1.6em; font-weight: 700; }

.s28-phone { width: 220px; margin: 0 auto; border: 8px solid #222; border-radius: 28px; padding: 24px 14px 16px; background: var(--card); position: relative; text-align: center; font-size: 14px; }
.s28-notch { position: absolute; top: 4px; left: 50%; width: 60px; height: 10px; margin-left: -30px; background: #222; border-radius: 6px; }
.s28-title { font-weight: 800; margin-top: 0; }
.s28-pc { border: 2px solid #3a6ea5; background: #fff; color: #000; font-family: "MS PGothic", "Yu Gothic", sans-serif; font-size: 13px; }
.s28-titlebar { display: flex; gap: 10px; background: linear-gradient(90deg, #0a246a, #a6caf0); color: #fff; padding: 3px 6px; font-size: 12px; }
.s28-pcbody { padding: 12px; }
.s28-trips { text-align: center; font-size: 13px; color: var(--muted); }

.s30-box { border: 1px solid #d0d0d0; border-radius: 4px; background: #fff; color: #222; box-shadow: 0 2px 8px #0002; }
.s30-head { background: #3b77d8; color: #fff; padding: 14px; }
.s30-head p { margin: 0; }
.s30-head strong { font-size: 20px; display: block; }
.s30-sub { font-size: 12px; opacity: .9; }
.s30-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; }
.s30-tile { aspect-ratio: 1; padding: 6px; background: #f3f3f3; border: 0; border-radius: 0; position: relative; }
.s30-tile svg { width: 100%; height: 100%; display: block; transition: transform .15s; }
.s30-tile[aria-pressed="true"] svg { transform: scale(.82); }
.s30-tile[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #3b77d8; color: #fff; font-size: 13px; line-height: 20px; }
.s30-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #d0d0d0; padding: 8px; }
.s30-msg { margin: 0; color: #d93025; font-size: 13px; }
.s30-verify { background: #3b77d8; color: #fff; border: 0; border-radius: 2px; padding: 10px 22px; font-weight: 700; }

/* ── Subsq+（架空の汎用サブスク：紫〜ピンクのグラデ、丸いカード） ── */
body[data-skin="subsq"] {
  --bg: #f5f3ff; --fg: #1f1640; --muted: #6b6390; --card: #fff; --line: #e3defa;
  --accent: #7c3aed; --accent-fg: #fff; --radius: 14px; --brand-bg: linear-gradient(120deg, #7c3aed, #db2777); --brand-fg: #fff;
}
body[data-skin="subsq"] .brand-logo { background: #fff; color: #7c3aed; border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 16px; }
body[data-skin="subsq"] .stage-body { border: 0; border-radius: 20px; box-shadow: 0 6px 24px #7c3aed1f; }
body[data-skin="subsq"] .btn-primary { background: linear-gradient(120deg, #7c3aed, #db2777); }

/* ── Bookinn.con（予約サイト風：濃い青ヘッダー×黄色ボタン、赤い煽り文字） ── */
body[data-skin="bookinn"] {
  --bg: #f2f4f8; --fg: #1a1a1a; --muted: #5b6270; --card: #fff; --line: #d6dbe5;
  --accent: #1d4fa3; --accent-fg: #fff; --radius: 4px; --brand-bg: #1a3d8f; --brand-fg: #fff;
  --font: "Segoe UI", BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}
body[data-skin="bookinn"] .brand-logo { font-size: 22px; letter-spacing: -.03em; }
body[data-skin="bookinn"] .brand-tag { color: #f6c445; opacity: 1; }
body[data-skin="bookinn"] .btn-primary { background: #f6c445; color: #1a1a1a; }

/* ── Pototo クラウド（写真クラウド風：白×水色、丸ゴシック） ── */
body[data-skin="pototo"] {
  --bg: #f4f8fc; --fg: #1d2733; --muted: #66768a; --card: #fff; --line: #dce6f0;
  --accent: #2b8be6; --accent-fg: #fff; --radius: 22px; --brand-bg: #fff; --brand-fg: #1d2733;
  --font: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}
body[data-skin="pototo"] .brandbar { border-bottom: 1px solid #dce6f0; }
body[data-skin="pototo"] .brand-logo { color: #2b8be6; font-size: 26px; }

/* ── Doorlingo（語学アプリ風：明るい緑、角丸ボタンに下影。マスコットは自作のりんご） ── */
body[data-skin="doorlingo"] {
  --bg: #fff; --fg: #3c3c3c; --muted: #7a7a7a; --card: #fff; --line: #e5e5e5;
  --accent: #3fae49; --accent-fg: #fff; --radius: 16px; --brand-bg: #3fae49; --brand-fg: #fff;
  --font: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}
body[data-skin="doorlingo"] .stage-body { border: 2px solid #e5e5e5; border-radius: 20px; }
body[data-skin="doorlingo"] .btn-primary { box-shadow: 0 4px 0 #2b7f33; letter-spacing: .04em; }
body[data-skin="doorlingo"] .btn-secondary { border: 2px solid #e5e5e5; color: #3fae49; box-shadow: 0 4px 0 #e5e5e5; }
body[data-skin="doorlingo"] .btn-primary:active, body[data-skin="doorlingo"] .btn-secondary:active { transform: translateY(4px); box-shadow: none; }

/* ── ずっと市役所 退会課（役所の窓口風：明朝見出し・枠線） ── */
body[data-skin="madoguchi"] {
  --bg: #f4f1e8; --fg: #222; --muted: #5d5a52; --card: #fffdf7; --line: #b9b2a0;
  --accent: #2f5d50; --accent-fg: #fff; --radius: 0; --brand-bg: #2f5d50; --brand-fg: #fff;
  --font: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
body[data-skin="madoguchi"] .brand-logo { border: 2px solid #fff; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-family: "Yu Mincho", serif; font-size: 16px; }
body[data-skin="madoguchi"] .stage-title { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
body[data-skin="madoguchi"] .stage-body { border: 1px solid #b9b2a0; }

/* ── NETFLUX（動画配信風：黒×赤、大きな太字） ── */
body[data-skin="netflux"] {
  --bg: #111; --fg: #f1f1f1; --muted: #a3a3a3; --card: #1c1c1c; --line: #333;
  --accent: #d6262f; --accent-fg: #fff; --radius: 4px; --brand-bg: #000; --brand-fg: #fff;
  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
}
body[data-skin="netflux"] .brand-logo { color: #d6262f; font-size: 30px; font-weight: 900; transform: scaleY(1.25); }
body[data-skin="netflux"] .brand-name { color: #d6262f; letter-spacing: .06em; }
body[data-skin="netflux"] .s27-opt { background: #232323; border-color: #333; }
body[data-skin="netflux"] .s27-opt:hover { border-color: #fff; }

/* 404ページ */
.nf-back { text-align: center; text-decoration: none; }
.s01-note { font-size: 13px; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 0; }
.s01-hint { font-size: 13px; font-weight: 700; color: var(--accent); min-height: 1.6em; }
.s01-skip.is-hinted { opacity: 1; font-size: 11px; color: var(--accent); text-decoration: underline; }
