:root {
  /* ホールの夜の色。わざとダーク1色にしている */
  color-scheme: dark;
  --bg: #0b0d17;
  --bg2: #141829;
  --card: #1a1f35;
  --card2: #222844;
  --line: #2e3558;
  --text: #f1f2f8;
  --muted: #9aa1c2;
  --gold: #ffcc33;
  --gold2: #ff9f1c;
  --pink: #ff3d7f;
  --cyan: #33e1ff;
  --green: #3ddc84;
  --red: #ff5a5a;
  --plus: #ff5a7a;   /* 勝ち（ホールの慣習で赤系） */
  --minus: #5aa8ff;  /* 負け */
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --digit: 'DotGothic16', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #1d2246 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; }
/* スマホ上端の安全領域を、ヘッダーと同じ色で塗る */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }
a { color: var(--cyan); }
.hidden { display: none !important; }
.muted { color: var(--muted); }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
.screen { display: none; min-height: 100vh; padding-block: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.screen.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- ボタン ---------- */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .08s ease, background .2s, box-shadow .2s; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #e0315f, #c4471a); border-color: transparent; box-shadow: 0 6px 24px rgba(255, 61, 127, .35); }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2a1a00; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 16px 20px; font-size: 18px; }
.btn.small { padding: 8px 14px; font-size: 13px; min-height: 44px; }
.btn small { font-weight: 400; opacity: .8; margin-left: 4px; font-size: 12px; }
.btn .btn-sub { display: block; font-weight: 400; font-size: 12px; opacity: .85; margin-top: 3px; } /* タイトルの2つのボタンの違い（毎回ちがう生まれ／今日はみんな同じ生まれ） */
.icon-btn { background: transparent; border: 0; color: var(--text); font-size: 22px; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: rgba(255,255,255,.06); }
.badge-new { position: absolute; top: -8px; left: 14px; background: #c81e55; color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 999px; }

/* ---------- タイトル ---------- */
.title-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 24px; text-align: center; }
.kicker { color: var(--gold); letter-spacing: .2em; font-size: 13px; margin: 0 0 4px; }
.logo { margin: 0; font-weight: 900; line-height: 1; display: flex; justify-content: center; align-items: baseline; gap: 2px; text-shadow: 0 0 24px rgba(255, 61, 127, .5); }
.logo-num { font-family: var(--digit); font-size: clamp(72px, 24vw, 120px); color: var(--gold); letter-spacing: -.02em; text-shadow: 0 0 18px rgba(255, 204, 51, .7), 0 0 40px rgba(255, 159, 28, .4); }
.logo-man { font-size: clamp(36px, 11vw, 56px); color: var(--gold); }
.logo-bun { font-size: clamp(24px, 7vw, 34px); margin-left: 6px; }
.logo-one { font-family: var(--digit); font-size: clamp(64px, 20vw, 100px); color: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { text-shadow: 0 0 30px rgba(255, 61, 127, 1), 0 0 60px rgba(255, 61, 127, .6); } }
.tagline { margin: 14px 0 6px; color: var(--muted); }
.title-lamps { display: flex; justify-content: center; gap: 10px; margin: 10px 0 28px; }
.title-lamps i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); opacity: .25; animation: lamp 1.4s infinite; }
.title-lamps i:nth-child(2) { animation-delay: .2s; } .title-lamps i:nth-child(3) { animation-delay: .4s; }
.title-lamps i:nth-child(4) { animation-delay: .6s; background: var(--pink); } .title-lamps i:nth-child(5) { animation-delay: .8s; }
.title-lamps i:nth-child(6) { animation-delay: 1s; } .title-lamps i:nth-child(7) { animation-delay: 1.2s; }
@keyframes lamp { 0%, 100% { opacity: .2; } 30% { opacity: 1; box-shadow: 0 0 12px currentColor; } }
.menu { display: grid; gap: 12px; }
.menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-note { color: var(--muted); font-size: 12px; margin-top: 24px; }

/* ---------- 汎用バー ---------- */
.bar { display: flex; align-items: center; gap: 6px; margin: 0 -16px; padding: 10px 16px; position: sticky; top: 0; background: rgba(11, 13, 23, .92); backdrop-filter: blur(8px); z-index: 5; }
.bar h2 { font-size: 18px; margin: 0; }

/* ---------- 設定 ---------- */
.setup { padding-bottom: 40px; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { font-weight: 900; margin-bottom: 8px; color: var(--gold); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid.two { grid-template-columns: 1fr; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid span { display: block; padding: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; height: 100%; }
.choice-grid b { display: block; font-size: 15px; }
.choice-grid small { color: var(--muted); font-size: 12px; }
.choice-grid input:checked + span { border-color: var(--pink); background: #2a1f3d; box-shadow: 0 0 0 3px rgba(255, 61, 127, .2); }
.choice-grid input:focus-visible + span { outline: 2px solid var(--cyan); }
.note { color: var(--muted); font-size: 13px; }

/* ---------- ガチャ ---------- */
.gacha { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 0; text-align: center; }
.gacha-title { font-size: 18px; margin: 0 0 6px; }
.reels { display: grid; gap: 10px; }
.reel { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; }
.reel-label { color: var(--muted); font-size: 13px; text-align: right; }
.reel-window { background: #05060c; border: 2px solid var(--line); border-radius: 12px; height: 56px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 6px 14px rgba(0,0,0,.6); }
.reel-text { font-size: clamp(15px, 4.6vw, 22px); font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 8px; }
.reel.spinning .reel-text { filter: blur(1.5px); opacity: .8; }
.reel.stopped .reel-window { border-color: var(--gold); animation: stop .4s ease; }
.reel.stopped .reel-text { color: var(--gold); text-shadow: 0 0 12px rgba(255, 204, 51, .6); }
.reel.rare .reel-window { border-color: var(--pink); box-shadow: 0 0 20px rgba(255, 61, 127, .6), inset 0 6px 14px rgba(0,0,0,.6); }
.reel.rare .reel-text { color: var(--pink); }
@keyframes stop { 0% { transform: scale(1.06); } 100% { transform: none; } }
.gacha-odds { min-height: 3.4em; color: var(--muted); font-size: 14px; }
.gacha-odds b { color: var(--gold); font-family: var(--digit); font-size: 18px; }

/* ---------- 冒頭の一日 ---------- */
.prologue { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 0; max-width: 560px; margin: 0 auto; }
.prologue-kicker { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .3em; margin: 0; }
.prologue-scene p { margin: 4px 0; line-height: 1.8; }
.prologue-scene .when { font-family: var(--digit); color: var(--gold); }
.prologue-scene .call { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 700; }
.prologue-after { display: grid; gap: 14px; animation: fade .35s ease; }
.prologue-result { text-align: center; line-height: 1.8; }
.prologue-result p { margin: 2px 0; }
.prologue-result .cliff { color: var(--muted); font-size: 14px; }

/* ---------- HUD ---------- */
.hud { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(11, 13, 23, .94); backdrop-filter: blur(10px); margin: 0 -16px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.hud-top { display: flex; align-items: center; gap: 10px; }
.hud-age { font-family: var(--digit); font-size: 30px; color: var(--gold); line-height: 1; white-space: nowrap; }
.hud-age small { font-family: var(--font); font-size: 14px; margin-left: 2px; }
.hud-year { font-size: 13px; color: var(--muted); margin-left: 8px; font-family: var(--digit); }
.hud-sex { font-family: var(--font); font-size: 12px; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 8px; vertical-align: 3px; }
.hud-place { flex: 1; font-size: 13px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-money { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr; gap: 6px; margin: 8px 0; }
.hud-money div { background: var(--card); border-radius: 10px; padding: 4px 8px; min-width: 0; }
.hud-money small { display: block; font-size: 10px; color: var(--muted); line-height: 1.3; }
.hud-money b { font-family: var(--digit); font-size: 15px; font-weight: 400; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plus { color: var(--plus); } .minus { color: var(--minus); }
.hud-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat span { font-size: 10px; color: var(--muted); display: block; line-height: 1.4; }
.stat i { display: block; height: 6px; background: #262c4a; border-radius: 6px; overflow: hidden; }
.stat em { display: block; height: 100%; width: 50%; border-radius: 6px; transition: width .5s ease; }
.stat[data-stat=health] em { background: var(--green); }
.stat[data-stat=happiness] em { background: var(--gold); }
.stat[data-stat=knowledge] em { background: var(--cyan); }
.stat[data-stat=relations] em { background: var(--pink); }
.stat.flash-up em { box-shadow: 0 0 10px #fff; }

/* ---------- フィード ---------- */
.feed { padding: 14px 0 120px; display: flex; flex-direction: column; gap: 10px; }
.card { scroll-margin-bottom: 110px; scroll-margin-top: 160px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; animation: slide .3s ease; }
@keyframes slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card .meta { font-size: 12px; color: var(--muted); font-family: var(--digit); display: flex; gap: 8px; align-items: center; }
.card .meta .tag { font-family: var(--font); font-size: 11px; padding: 0 8px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.card p { margin: 4px 0; }
.card.year { background: transparent; border-style: dashed; padding: 8px 12px; }
.card.year.quiet { opacity: .8; padding: 4px 12px; color: var(--muted); }
.card.year .yb { font-family: var(--digit); }
.card.birth { border-color: var(--gold); background: linear-gradient(180deg, #2a2440, var(--card)); }
.card.choice { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255, 61, 127, .2), var(--shadow); }
.card.choice.hall { border-color: var(--gold); background: linear-gradient(180deg, #2e2616, var(--card)); }
.card.choice.policy { border-color: var(--cyan); background: linear-gradient(180deg, #13283a, var(--card)); }
.card.heavy { border-color: #6b7299; background: #181c30; }
.card.world { border-color: transparent; background: #12152a; font-size: 14px; }
.card.result { border-left: 4px solid var(--pink); }
/* 大事な結果（結婚・別れ・出産・見送り・大勝ち）。読み終えるまで自動で進まない */
.card.important { border-left: 4px solid var(--gold); }
.options { display: grid; gap: 8px; margin-top: 10px; }
.opt { text-align: left; background: var(--card2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.5; }
.opt:hover:not(:disabled) { border-color: var(--pink); }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt.picked { border-color: var(--pink); background: #3a1f35; }
.opt.faded { opacity: .35; }
.help-link { display: inline-block; margin-top: 6px; min-height: 36px; font-size: 13px; color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.session-chip { display: inline-flex; gap: 8px; align-items: center; font-family: var(--digit); font-size: 14px; background: #05060c; border-radius: 8px; padding: 2px 10px; margin-top: 4px; }

.controls { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 10px; background: linear-gradient(180deg, rgba(11,13,23,0), rgba(11,13,23,.95) 30%); z-index: 8; }
.controls .btn[aria-pressed=true] { background: var(--cyan); color: #04202a; border-color: transparent; }

/* ---------- 実戦演出 ---------- */
.stage { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 10, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.machine { width: 100%; max-width: 420px; background: linear-gradient(180deg, #23123a, #0e1022); border: 3px solid var(--gold); border-radius: 20px; padding: 16px; text-align: center; box-shadow: 0 0 40px rgba(255, 204, 51, .25); position: relative; overflow: hidden; }
.machine h3 { margin: 0; font-size: 18px; }
.machine .catch { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.screen-lcd { background: #04050a; border-radius: 12px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1px solid #333; }
.lcd-main { font-size: 26px; font-weight: 900; transition: transform .2s; padding: 0 8px; }
.lcd-sub { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 1.5em; }
.lcd-main.hot { color: var(--red); animation: shake .25s infinite; }
.lcd-main.win { color: var(--gold); text-shadow: 0 0 20px var(--gold); animation: zoom .4s ease; }
.lcd-main.upper { color: var(--pink); text-shadow: 0 0 20px var(--pink); animation: zoom .4s ease; }
@keyframes shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes zoom { from { transform: scale(1.6); } to { transform: none; } }
.screen-lcd.flash { animation: flash .5s ease 3; }
@keyframes flash { 50% { background: #3a2a00; } }
.screen-lcd.flash-pink { animation: flashp .4s ease 4; }
@keyframes flashp { 50% { background: #4a0a2a; } }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.counters div { background: #05060c; border-radius: 8px; padding: 4px; }
.counters small { display: block; font-size: 10px; color: var(--muted); }
.counters b { font-family: var(--digit); font-weight: 400; font-size: 18px; }
.lamp-row { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.lamp-row i { width: 14px; height: 14px; border-radius: 50%; background: #222; }
.lamp-row.on i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.lamp-row.pink i { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.stage-result { margin-top: 12px; }
.stage-result .big { font-family: var(--digit); font-size: 40px; line-height: 1.2; }
.stage .btn { margin-top: 10px; }

/* ---------- エンディング ---------- */
.end { padding: 28px 0 60px; }
.end-head { text-align: center; }
.end-head .rip { color: var(--muted); font-size: 14px; }
.end-head h2 { margin: 6px 0; font-size: 22px; }
.end-big { text-align: center; margin: 22px 0 6px; }
.end-big small { color: var(--muted); display: block; }
.end-big .num { font-family: var(--digit); font-size: clamp(40px, 13vw, 64px); line-height: 1.1; }
.end-compare { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.title-badge { margin: 18px auto; max-width: 360px; text-align: center; border-radius: 16px; padding: 14px; background: linear-gradient(135deg, #3a2a00, #2a1f3d); border: 2px solid var(--gold); }
.title-badge .r { letter-spacing: .2em; color: var(--gold); font-size: 13px; }
.title-badge .n { font-size: 24px; font-weight: 900; }
.title-badge .d { color: var(--muted); font-size: 13px; }
.title-badge.r4 { border-color: var(--pink); box-shadow: 0 0 30px rgba(255, 61, 127, .5); }
.title-badge.r3 { box-shadow: 0 0 24px rgba(255, 204, 51, .4); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.kpi { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.kpi small { color: var(--muted); font-size: 12px; display: block; }
.kpi b { font-family: var(--digit); font-weight: 400; font-size: 20px; }
.kpi span { font-size: 12px; color: var(--muted); display: block; }
.section-h { font-size: 15px; color: var(--gold); margin: 22px 0 8px; }
.chart { background: var(--card); border-radius: 12px; padding: 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 4px; }
.moment { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.moment b { font-family: var(--digit); font-weight: 400; white-space: nowrap; }
.worldline { background: linear-gradient(135deg, #10263a, #1a1f35); border: 1px solid var(--cyan); border-radius: 14px; padding: 14px; margin: 16px 0; }
.worldline b { font-family: var(--digit); font-weight: 400; font-size: 22px; color: var(--cyan); }
.worldline .note { display: block; margin-top: 6px; font-size: 11px; line-height: 1.5; }
.one-line { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: rgba(255, 204, 51, .06); text-align: center; }
.one-line small { color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.one-line p { margin: 4px 0 0; font-weight: 700; line-height: 1.7; }
.hall-meaning { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); line-height: 1.7; text-align: center; }
.memories { margin: 0 0 8px; }
.end-actions { display: grid; gap: 10px; margin-top: 22px; }
.end-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.daily-box { background: var(--card); border: 1px solid var(--gold); border-radius: 14px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.daily-box b { color: var(--gold); font-family: var(--digit); font-weight: 400; font-size: 18px; }
.titles-new { text-align: center; color: var(--pink); font-size: 13px; }

/* ---------- 一覧 ---------- */
.list { display: grid; gap: 10px; padding: 8px 0 40px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.item .row { display: flex; justify-content: space-between; gap: 8px; }
.item .t { font-weight: 900; }
.item .s { color: var(--muted); font-size: 13px; }
.item.locked { opacity: .45; }
.item.locked .t { letter-spacing: .2em; }
.rar { color: var(--gold); font-size: 12px; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.about { padding-bottom: 60px; }
.about h3 { color: var(--gold); font-size: 16px; margin: 20px 0 6px; }
.about li { margin-bottom: 4px; }

/* ---------- モーダル・トースト ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; width: 100%; max-width: 440px; max-height: 86vh; overflow: auto; box-shadow: var(--shadow); }
.modal-card h3 { margin: 0 0 8px; }
.modal-card .btn { margin-top: 8px; }
.modal-card input[type=text] { width: 100%; padding: 12px; font-size: 18px; border-radius: 10px; border: 1px solid var(--line); background: #05060c; color: var(--text); font-family: var(--digit); letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center; background: var(--card2); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; z-index: 70; font-size: 14px; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 第2版の追加 ---------- */
.today-stats { color: var(--muted); font-size: 13px; margin: 0; min-height: 1.4em; }
.card.pending { animation: slide .3s ease, glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px rgba(255, 61, 127, .45), var(--shadow); } }
.opt .key { display: inline-block; min-width: 1.5em; margin-right: 6px; font-family: var(--digit); color: var(--muted); font-weight: 400; }
.card .q { font-weight: 700; }
.diff { font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
/* 何年か後に思い出す選択（fx.remember）。効き目はすぐには見えない、と伝える */
.later { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.digit { font-family: var(--digit); font-weight: 400; letter-spacing: .05em; }
.copy-box { width: 100%; background: #05060c; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; }
.item-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.link-btn { text-align: center; text-decoration: none; display: block; }
.small { font-size: 12px; }
.brand-line { text-align: center; color: var(--gold); font-size: 13px; letter-spacing: .15em; margin: 0 0 6px; }
.end-head .odds { color: var(--gold); font-family: var(--digit); font-weight: 400; font-size: 18px; margin-left: 4px; }
.kpi b.small-b { font-family: var(--font); font-weight: 700; font-size: 16px; }
.moment .grow { flex: 1; text-align: left; }
.epilogue { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(255, 204, 51, .05); border-radius: 0 12px 12px 0; }
.epilogue p { margin: 4px 0; }
.daily-box.vs { border-color: var(--pink); }
.help-row { display: flex; gap: 14px; flex-wrap: wrap; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row3 .btn { padding: 12px 6px; font-size: 13px; }
.seed-line { text-align: center; color: var(--muted); font-size: 13px; margin: 2px 0; }
.seed-line b { font-family: var(--digit); font-weight: 400; color: var(--text); letter-spacing: .08em; }
.sticky-share .btn { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.sticky-share { position: sticky; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 18px; background: linear-gradient(180deg, rgba(11,13,23,0), rgba(11,13,23,.96) 35%); }
.end { padding-bottom: 10px; }
@media (min-width: 900px) {
  body { font-size: 17px; }
  #app { max-width: 620px; }
}

.row-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.row-links .btn { text-align: center; text-decoration: none; }
.card-img { width: 100%; border-radius: 10px; margin: 6px 0; -webkit-touch-callout: default; }
.artifact .site-only { display: none !important; }
.card .q { white-space: pre-line; }

/* 年の区切り */
.year-divider { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 14px 0 0; padding: 6px 2px 4px; border-top: 1px solid var(--line); }
.year-divider b { font-family: var(--digit); font-weight: 400; font-size: 20px; color: var(--gold); }
.year-divider .y { font-family: var(--digit); font-size: 13px; color: var(--muted); }
.year-divider .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.year-divider i { font-style: normal; font-size: 11px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }

.hall-line { font-size: 13px; color: var(--muted); font-family: var(--font); margin-top: 6px !important; }
.because { font-size: 12px; color: var(--cyan); margin: 0 0 4px !important; }
