/* ジェームズくん育成日誌：夜の探偵事務所。紺の夜、真鍮、緑のランプ、紙の事件ファイル、赤い封蝋 */
:root {
  --night: #141A2E;
  --night-2: #1C2240;
  --wall: #231F3A;
  --brass: #D4A84F;
  --brass-hi: #F2D58A;
  --lamp: #FFD98A;
  --green: #2E6B5A;
  --green-hi: #4E9A80;
  --paper: #F2E6C9;
  --paper-2: #E6D5AE;
  --ink: #2A1F17;
  --ink-soft: #6B5A45;
  --seal: #C23A2F;
  --text: #F3EEE2;
  --soft: #B6B2CB;
  --line: rgba(242, 213, 138, 0.22);
  --tabs-h: 64px;
  --display: 'Dela Gothic One', 'Zen Maru Gothic', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--night); touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 217, 138, 0.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 26px),
    var(--night);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 8px; }
svg { display: block; }
#app { max-width: 480px; margin: 0 auto; position: relative; }
#screen { padding: calc(10px + env(safe-area-inset-top)) 12px 18px; }
.loading { text-align: center; color: var(--soft); padding: 40vh 0; }

/* ===== 上の帯 ===== */
.hud { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.datePlate {
  display: flex; flex-direction: column; line-height: 1.15; padding: 6px 12px 6px 10px;
  background: linear-gradient(180deg, #2C2648, #1E1A33); border: 1px solid var(--line); border-radius: 10px 4px 4px 10px;
}
.datePlate b { font-size: 14px; }
.datePlate span { font-size: 11px; color: var(--brass-hi); }
.rankPlate { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.rankName {
  font-family: var(--display); font-size: 17px; letter-spacing: 0.08em; color: var(--brass-hi);
  text-shadow: 0 2px 0 #3A2808;
  white-space: nowrap;
}
.fame { width: 100%; max-width: 140px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.fame i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--lamp)); border-radius: 3px; }
.money { display: flex; align-items: center; gap: 4px; padding: 5px 10px 5px 6px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 999px; }
.money svg { width: 20px; height: 20px; }
.money b { font-size: 15px; font-variant-numeric: tabular-nums; }
.money small { font-size: 11px; color: var(--soft); }

/* ===== 事務所の舞台 ===== */
.stage {
  position: relative; height: 312px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(242, 213, 138, 0.28);
  box-shadow: 0 0 0 4px #120F22, 0 0 0 5px rgba(212, 168, 79, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45);
  background: var(--wall);
}
.stage .office { position: absolute; inset: 0; width: 100%; height: 100%; }
.lampLight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 86% 62%, rgba(255, 210, 120, 0.22), transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 6s infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: 0.86; } 50% { opacity: 1; } 73% { opacity: 0.93; } }
.jamesBtn { position: absolute; left: 50%; bottom: -6px; width: 196px; transform: translateX(-46%); }
.jamesBtn .jamesFull { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.jamesFull .jBody, .jamesFull .jHead { transform-origin: 120px 300px; }
.stage .jamesFull .jHead { animation: breathe 3.6s ease-in-out infinite; }
.stage .jamesFull .jBody { animation: breatheB 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(2px); } }
@keyframes breatheB { 50% { transform: scaleY(0.992); } }
.blink { animation: blink 4.8s infinite; }
@keyframes blink { 0%, 95.5%, 100% { opacity: 0; } 96.5%, 98.5% { opacity: 1; } }
.bubble {
  position: absolute; top: 14px; left: 14px; max-width: 58%; margin: 0;
  padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: #FFFBF0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.55;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.bubble::after {
  content: ''; position: absolute; right: -9px; bottom: 10px; width: 16px; height: 14px; background: #FFFBF0;
  clip-path: polygon(0 0, 100% 70%, 0 100%);
}
.bubble.pop { animation: pop 0.35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0.85); } }
.chips { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.chips > span { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(14, 12, 28, 0.78); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.moodChip b { margin-left: 6px; color: var(--m); font-size: 13px; }
.titleChip { color: var(--brass-hi); }
.streakChip { color: #FFB89A; }

/* ===== 能力 ===== */
.panel {
  margin-top: 12px; padding: 10px 12px 12px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(43, 37, 72, 0.9), rgba(28, 25, 50, 0.9));
  border: 1px solid var(--line);
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.stat { display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.sIcon { width: 22px; height: 22px; color: var(--c); }
.sIcon svg { width: 100%; height: 100%; }
.sName { font-size: 13px; color: var(--soft); }
.sGrade {
  justify-self: end; font-family: var(--display); font-size: 20px; line-height: 1; color: var(--c);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.sGrade.gS, .sGrade.gSS, .sGrade.gSSS, .sGrade.gL { background: linear-gradient(180deg, #FFF3C4, #E9B949 60%, #B8862A); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 0 #5A3E0E); }
.sVal { font-variant-numeric: tabular-nums; text-align: right; min-width: 52px; }
.sVal b { font-size: 16px; }
.sVal small { display: block; font-size: 10px; color: var(--brass-hi); line-height: 1; }
.genki { display: grid; grid-template-columns: 22px auto 1fr 30px; gap: 6px; align-items: center; margin-top: 8px; }
.gIcon { width: 20px; height: 20px; color: #FF8C8C; }
.gName { font-size: 13px; color: var(--soft); }
.gBar { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.35); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.gBar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FF8C8C, #FFC36E); transition: width 0.6s ease; }
.genki b { font-variant-numeric: tabular-nums; text-align: right; }

/* ===== 今日の行動 ===== */
.today { margin-top: 12px; }
.turnRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.turns { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--soft); white-space: nowrap; }
.turns i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brass); }
.turns i.on { background: radial-gradient(circle at 35% 35%, #FFF3C4, var(--brass)); box-shadow: 0 0 8px rgba(255, 217, 138, 0.6); }
.letterBtn {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 12px;
  background: linear-gradient(180deg, #F7ECD2, #E6D3A8); color: var(--ink); font-size: 13px; font-weight: 700;
  box-shadow: 0 3px 0 #9C7E46, 0 8px 18px rgba(0, 0, 0, 0.35);
  animation: nudge 2.8s ease-in-out infinite;
}
.letterBtn svg { width: 32px; height: 24px; }
.letterBtn b { color: var(--seal); margin: 0 2px; }
@keyframes nudge { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-3deg); } 88% { transform: rotate(3deg); } 92% { transform: rotate(-2deg); } }
.doneNote { font-size: 12px; color: var(--soft); }
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.actBtn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px 8px;
  border-radius: 14px; background: linear-gradient(180deg, #332C55, #241F3E);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 3px 0 #120F22;
  transition: transform 0.12s;
}
.actBtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #120F22; }
.actBtn:disabled { opacity: 0.4; }
.aIcon { width: 34px; height: 34px; color: var(--ac); }
.aIcon svg { width: 100%; height: 100%; }
.aName { font-size: 12px; font-weight: 700; white-space: nowrap; }
.aLv { font-size: 10px; color: var(--soft); }
.a-kiki { --ac: #E8896A; } .a-hari { --ac: #4FB3A9; } .a-doku { --ac: #9A88E6; } .a-kitae { --ac: #A9C75E; } .a-yasu { --ac: #8FB4FF; }
.tomorrow { text-align: center; font-size: 13px; color: var(--soft); margin: 12px 0 0; }

/* ===== 下のタブ ===== */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(20, 17, 36, 0.92), #0F0D1E); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.tab { flex: 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 10px; color: var(--soft); font-size: 11px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--lamp); background: rgba(255, 217, 138, 0.08); }

/* ===== シート（下から出る板） ===== */
#layer { position: relative; z-index: 40; }
.sheetWrap { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.sheetBg { position: absolute; inset: 0; background: rgba(6, 5, 14, 0.6); opacity: 0; transition: opacity 0.25s; }
.sheet {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 24px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 18px 16px 0;
  border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #2B2548, #1D1934);
  border-top: 1px solid rgba(242, 213, 138, 0.35); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(102%); transition: transform 0.28s cubic-bezier(.2, .9, .3, 1);
}
.sheetWrap.open .sheetBg { opacity: 1; }
.sheetWrap.open .sheet { transform: none; }
.sheet h2 { margin: 0; font-size: 20px; }
.sheetTitle { font-family: var(--display); font-weight: 400; letter-spacing: 0.06em; color: var(--brass-hi); }
.sheetDesc { margin: 6px 0 12px; font-size: 14px; color: var(--soft); }
.sheetHead { display: flex; gap: 12px; align-items: center; }
.aIcon.big { width: 56px; height: 56px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
.lvLine { margin: 0; font-size: 13px; color: var(--brass-hi); }
.lvLine small { color: var(--soft); }
.gainList, .resGains { display: flex; flex-wrap: wrap; gap: 6px; }
.gain {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid color-mix(in srgb, var(--c, #FF8C8C) 55%, transparent);
  font-size: 14px;
}
.gain svg { width: 18px; height: 18px; color: var(--c, #FF8C8C); }
.gain b { font-size: 16px; color: var(--c, #FF8C8C); margin-left: 2px; }
.genkiGain { --c: #FF8C8C; }
.genkiGain.plus { --c: #7FE0A8; }
.warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(232, 101, 90, 0.15); color: #FFB3A8; font-size: 13px; }
.hint { margin: 10px 0 0; font-size: 12px; color: var(--soft); }
.sheetBtns {
  position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; margin: 12px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(29, 25, 52, 0), #1D1934 14px);
}
.sheet > :last-child:not(.sheetBtns) { margin-bottom: calc(16px + env(safe-area-inset-bottom)); }
.sheetBtns > button { flex: 1; min-height: 50px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.primary {
  background: linear-gradient(180deg, #FFE39C, var(--brass)); color: #3A2608;
  box-shadow: 0 4px 0 #8C6420, 0 10px 22px rgba(212, 168, 79, 0.25);
}
.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #8C6420; }
.ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--soft); }
.danger { background: #8E2E28; color: #fff; padding: 10px 16px; border-radius: 12px; }

/* ===== 行動の演出 ===== */
.stageFull {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(80% 60% at 50% 40%, #2E2752, #0F0C1F 80%);
  opacity: 0; transition: opacity 0.25s;
}
.stageFull.open { opacity: 1; }
.actScene { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.actBig { width: 120px; height: 120px; color: var(--ac); opacity: 0.18; position: absolute; top: 10px; }
.actBig svg { width: 100%; height: 100%; }
.actJames { width: 210px; position: relative; }
.actJames .jamesFull { width: 100%; }
.actStage .actJames { animation: bob 0.5s ease-in-out infinite alternate; }
.actStage.res-ok .actJames, .actStage.res-great .actJames, .actStage.res-fail .actJames { animation: none; }
@keyframes bob { to { transform: translateY(-6px); } }
.actVerb { font-size: 18px; font-weight: 700; margin: 10px 0 0; }
.dots i { font-style: normal; animation: dot 0.9s infinite; opacity: 0.2; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { opacity: 1; } }
.resWord {
  margin: 0 0 4px; font-family: var(--display); font-size: 44px; line-height: 1.2; letter-spacing: 0.06em;
  color: #fff; text-shadow: 0 3px 0 #4A3A7A;
  animation: slam 0.45s cubic-bezier(.2, 1.8, .4, 1);
}
.res-great .resWord {
  background: linear-gradient(180deg, #FFF6CF, #FFD45E 55%, #F09A2E); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 0 #7A4410) drop-shadow(0 0 18px rgba(255, 200, 80, 0.55));
  font-size: 56px;
}
.res-fail .resWord { color: #A9B0D6; text-shadow: 0 3px 0 #2A2D48; font-size: 38px; }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } }
.pop .jamesFull { animation: hop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hop { from { transform: translateY(16px) scale(0.96); } }
.burst {
  position: absolute; top: -30px; left: 50%; width: 520px; height: 520px; margin-left: -260px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 216, 120, 0.22) 0 8deg, transparent 8deg 20deg);
  mask-image: radial-gradient(circle, #000 20%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.resTag { position: relative; margin: 0; padding: 2px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ac) 30%, transparent); color: var(--ac); font-size: 13px; font-weight: 900; }
.resGains { justify-content: center; margin-top: 10px; }
.resStats { width: 100%; max-width: 340px; margin-top: 12px; padding: 8px 14px; border-radius: 16px; background: rgba(10, 8, 22, 0.55); border: 1px solid var(--line); }
.rsRow { display: grid; grid-template-columns: 22px 3em 1fr auto; gap: 8px; align-items: center; padding: 6px 0; text-align: left; }
.rsRow + .rsRow { border-top: 1px dashed rgba(255, 255, 255, 0.08); }
.rsRow .sIcon { color: var(--c); }
.rsName { font-size: 14px; color: var(--soft); }
.rsGrade { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--c); }
.rsGrade.up { animation: slam 0.4s cubic-bezier(.2, 1.8, .4, 1); color: var(--lamp); }
.rsNum { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.rsNum b { font-size: 22px; min-width: 2.2em; text-align: right; }
.rsNum em { font-style: normal; font-weight: 900; color: var(--c); min-width: 2.6em; }
.genkiRow { --c: #FF8C8C; }
.genkiRow .sIcon { color: #FF8C8C; }
.rsNum em.plus { color: #7FE0A8; } .rsNum em.minus { color: #FF8C8C; }
.rsBar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.rsBar i { display: block; height: 100%; background: linear-gradient(90deg, #FF8C8C, #FFC36E); transition: width 0.7s 0.35s ease; }
.actStage { background: radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--ac) 22%, #2E2752), #0F0C1F 78%); }
.rise { animation: rise 0.5s backwards cubic-bezier(.2, 1.4, .4, 1); animation-delay: var(--d); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.moodNote { margin: 10px 0 0; font-size: 14px; }
.moodNote.up { color: #FFB86B; } .moodNote.down { color: #9DB0E0; }
.lvUp { margin: 8px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 217, 138, 0.14); color: var(--lamp); font-size: 13px; font-weight: 700; }
.nextBtn {
  margin-top: 22px; min-width: 200px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, #FFE39C, var(--brass)); color: #3A2608; font-size: 17px; font-weight: 900;
  box-shadow: 0 4px 0 #8C6420, 0 10px 26px rgba(212, 168, 79, 0.3);
  animation: rise 0.35s backwards;
}

/* ===== できごと ===== */
.meet { text-align: center; }
.meetFace { display: flex; justify-content: center; margin: 4px 0 6px; }
.meetFace .friendFace { border-radius: 50%; background: radial-gradient(circle, #FFF3D6, #E6D2A6); box-shadow: 0 0 0 4px rgba(242, 213, 138, 0.35), 0 10px 26px rgba(0, 0, 0, 0.4); }
.meetRole { margin: 0; font-size: 12px; color: var(--soft); }
.meetLine { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #FFFBF0; color: var(--ink); font-weight: 700; text-align: left; }
.meetGot { margin: 12px 0 0; color: var(--lamp); font-weight: 900; }
.meetSheet h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.06em; }
.pzTag { margin: 0 0 6px; display: inline-block; padding: 2px 12px; border-radius: 999px; background: #4B3E8A; color: #E3DCFF; font-size: 12px; font-weight: 700; }
.pzHead { display: flex; align-items: center; gap: 8px; }
.pzHead .jamesHead { border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.pzHead p { margin: 0; color: var(--soft); font-size: 14px; }
.pzQ { margin: 10px 0 14px; padding: 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.75; }
.pzChoices { display: grid; gap: 8px; }
.pzC { min-height: 50px; padding: 10px 14px; border-radius: 12px; background: #3A3364; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 16px; font-weight: 700; text-align: left; }
.pzC:active { background: #4B4280; }
.pzRes { text-align: center; }
.pzRes .jamesHead { margin: 0 auto; }
.pzWord { margin: 4px 0; font-family: var(--display); font-size: 30px; }
.pzRes.ok .pzWord { color: var(--lamp); }
.pzRes.ng .pzWord { color: #A9B0D6; }
.pzAns { margin: 0; font-weight: 900; }
.pzWhy { margin: 6px 0 0; color: var(--soft); font-size: 14px; }
.pzMiss { color: var(--soft); }

/* ===== トースト ===== */
#toast { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toastItem {
  display: flex; align-items: center; gap: 8px; max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 14px;
  background: rgba(20, 17, 36, 0.95); border: 1px solid rgba(242, 213, 138, 0.45); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px; animation: drop 0.35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity 0.4s, transform 0.4s;
}
.toastItem svg { width: 22px; height: 22px; flex: none; color: #FF8C8C; }
.toastItem.out { opacity: 0; transform: translateY(-10px); }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.tTag { flex: none; padding: 1px 8px; border-radius: 6px; background: var(--brass); color: #3A2608; font-size: 11px; font-weight: 900; }

/* ===== 依頼と事件 ===== */
.offers { display: grid; gap: 12px; }
.offer {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 14px 14px 12px; border-radius: 6px 14px 14px 14px; color: var(--ink);
  background: linear-gradient(180deg, #FAF1DC, var(--paper-2));
  box-shadow: 0 3px 0 #A88C58, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.offer::after { content: ''; position: absolute; right: 14px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E2554A, #8E2A22); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35); }
.offerTown { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.again { position: absolute; right: 50px; top: 12px; font-size: 11px; color: #8E2A22; font-weight: 700; }
.offerTitle { font-family: var(--display); font-size: 21px; line-height: 1.35; letter-spacing: 0.04em; }
.offerClient { font-size: 12px; color: var(--ink-soft); }
.offerIntro { font-size: 14px; margin-top: 4px; }
.offerScenes, .pScenes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sceneChip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 5px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(42, 31, 23, 0.08); color: var(--ink); }
.sceneChip svg { width: 15px; height: 15px; color: color-mix(in srgb, var(--c) 70%, #000); }
.sceneChip b { margin-left: 3px; }
.sceneChip.hi b { color: #1F7A4E; } .sceneChip.mid b { color: #A0670E; } .sceneChip.lo b { color: #B23A2F; }
.partners { display: grid; gap: 8px; }
.partner { display: grid; grid-template-columns: 52px 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
.partner .friendFace, .soloMark .jamesHead { border-radius: 50%; background: radial-gradient(circle, #FFF3D6, #E6D2A6); }
.partner b { display: block; font-size: 15px; }
.partner small { color: var(--soft); font-size: 12px; }
.partner .pScenes { grid-column: 1 / -1; margin-top: 2px; }
.partner .sceneChip { background: rgba(242, 230, 201, 0.92); }

.caseStage { justify-content: flex-start; overflow-y: auto; padding-top: calc(18px + env(safe-area-inset-top)); background: radial-gradient(80% 50% at 50% 20%, #3A2E28, #120E12 80%); }
.caseStage.shake .file { animation: shake 0.4s; }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.file { position: relative; width: 100%; max-width: 440px; margin-top: 18px; animation: fileIn 0.5s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes fileIn { from { transform: translateY(40px) rotate(-2deg); opacity: 0; } }
.fileTab { position: absolute; top: -22px; left: 18px; padding: 2px 16px 6px; border-radius: 10px 10px 0 0; background: #C9A66A; color: var(--ink); font-size: 12px; font-weight: 700; }
.filePaper, .fileDetail {
  position: relative; padding: 18px 18px 22px; border-radius: 4px 14px 14px 14px; color: var(--ink);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.5), transparent 50%),
    linear-gradient(180deg, #F7EDD4, #E9D8B0);
  box-shadow: 0 2px 0 #B39660, 0 20px 50px rgba(0, 0, 0, 0.55);
}
.fileNo { margin: 0; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.1em; }
.fileTitle { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.3; letter-spacing: 0.04em; }
.fileClient { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); }
.fileIntro { margin: 10px 0 0; padding-bottom: 12px; border-bottom: 2px solid rgba(42, 31, 23, 0.15); font-size: 15px; }
.sceneList { list-style: none; margin: 0; padding: 0; }
.scene { padding: 12px 0; border-bottom: 1px dashed rgba(42, 31, 23, 0.2); animation: rise 0.35s backwards; }
.sceneHead { display: flex; align-items: center; gap: 6px; }
.sceneHead .sIcon { width: 22px; height: 22px; color: color-mix(in srgb, var(--c) 75%, #000); }
.sceneHead b { font-size: 15px; }
.sceneP { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.verdict { padding: 1px 10px; border-radius: 6px; font-size: 13px; font-weight: 900; color: #fff; animation: slam 0.3s cubic-bezier(.2, 1.8, .4, 1); }
.scene.ok .verdict { background: #2E7D57; } .scene.ng .verdict { background: #7A6F86; }
.meter { position: relative; height: 14px; margin: 8px 0 6px; border-radius: 7px; background: #CDB98E; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); overflow: visible; }
.meter .zone { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #4FB37E, #7FD39E); }
.meter .needle { position: absolute; top: -5px; left: 0; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #F7EDD4; }
.sceneLine { margin: 0; min-height: 1.7em; font-size: 15px; }
.scene.ng .sceneLine { color: #5E5468; }
.accuse { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin-top: 14px; }
.accuseJames .jamesFull { width: 120px; }
.accuseLine { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.7; }
.stampWrap { display: flex; justify-content: center; margin: 4px 0; }
.stamp { width: 240px; animation: stamp 0.42s cubic-bezier(.3, 1.6, .5, 1) backwards; mix-blend-mode: multiply; }
@keyframes stamp { 0% { transform: scale(2.6) rotate(8deg); opacity: 0; } 60% { opacity: 1; } }
.truth { margin: 10px 0 0; padding: 12px 14px; border-left: 4px solid var(--seal); background: rgba(194, 58, 47, 0.07); font-size: 15px; font-weight: 700; }
.truth.fog { border-color: #7A6F86; background: rgba(90, 80, 110, 0.1); color: #4E4660; }
.rewards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rw { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(42, 31, 23, 0.08); font-size: 13px; }
.rw svg { width: 16px; height: 16px; }
.rw b { color: #8E2A22; }
.rw.item { background: #2A1F17; color: var(--lamp); font-weight: 900; }
.caseCast { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.caseCast .jamesHead, .caseCast .friendFace { border-radius: 50%; background: radial-gradient(circle, #FFF3D6, #E6D2A6); box-shadow: 0 0 0 3px rgba(242, 213, 138, 0.5), 0 6px 16px rgba(0, 0, 0, 0.5); }
.caseStage .nextBtn { margin-bottom: 70px; }

/* ===== 格が上がる ===== */
.rankStage { background: radial-gradient(70% 50% at 50% 40%, #5A4318, #120E12 80%); }
.rankUp { position: relative; text-align: center; }
.rays { position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; margin: -350px 0 0 -350px; background: repeating-conic-gradient(rgba(255, 217, 138, 0.16) 0 6deg, transparent 6deg 18deg); mask-image: radial-gradient(circle, #000 15%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%); animation: spin 20s linear infinite; pointer-events: none; }
.ruLabel { margin: 0; color: var(--brass-hi); letter-spacing: 0.3em; font-size: 14px; position: relative; }
.ruName { margin: 0; font-family: var(--display); font-size: 48px; line-height: 1.25; position: relative; background: linear-gradient(180deg, #FFF6CF, #FFD45E 55%, #E0902A); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #6A3E0E); animation: slam 0.5s cubic-bezier(.2, 1.8, .4, 1); }
.ruJames { width: 200px; margin: 0 auto; position: relative; }
.ruTown { position: relative; margin: 6px 0 0; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); font-weight: 700; }

/* ===== 日誌 ===== */
.diarySheet { background: linear-gradient(180deg, #2B2548, #1D1934); }
.diaryPage {
  position: relative; padding: 18px 18px 18px 46px; border-radius: 6px; color: #2D2A4A;
  background:
    linear-gradient(90deg, transparent 32px, rgba(194, 58, 47, 0.45) 32px 34px, transparent 34px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(80, 110, 170, 0.28) 27px 28px),
    #FBF6E8;
  background-position: 0 0, 0 18px, 0 0;
  box-shadow: 0 2px 0 #CFC3A4, 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
}
.dHead { display: flex; gap: 12px; margin: 0; font-size: 13px; color: #5A5A86; line-height: 28px; }
.dLine { margin: 0; font-size: 15px; line-height: 28px; font-weight: 700; }
.dSign { margin: 0; line-height: 28px; text-align: right; font-family: var(--display); color: #5A5A86; font-size: 15px; transform: rotate(-4deg); }
.teaser { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 217, 138, 0.1); color: var(--lamp); font-size: 14px; }

/* ===== ページ（事件簿・衣装室・仲間・日誌） ===== */
.pageHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 2px 10px; }
.pageHead h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0.08em; color: var(--brass-hi); text-shadow: 0 2px 0 #3A2A0C; }
.pageHead p { margin: 0; color: var(--soft); font-size: 14px; }
.pageHead p b { color: var(--text); font-size: 18px; }
.pageNote { margin: 0 2px 12px; font-size: 13px; color: var(--soft); }
.townSec { margin-bottom: 18px; }
.townSec h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 8px; font-size: 16px; }
.townSec h2 small { font-size: 12px; color: var(--soft); font-weight: 500; }
.townSec.locked .fileGrid { opacity: 0.4; }
.fileGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fCard {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; padding: 16px 8px 8px; border-radius: 4px 10px 10px 10px;
  background: linear-gradient(180deg, #E9D7AE, #D9C190); color: var(--ink); text-align: left; box-shadow: 0 2px 0 #9C8050;
}
.fCard::before { content: ''; position: absolute; top: -6px; left: 8px; width: 34px; height: 8px; border-radius: 4px 4px 0 0; background: inherit; }
.fTitle { font-size: 13px; font-weight: 900; line-height: 1.4; }
.fBest { align-self: flex-end; padding: 0 6px; border: 2px solid currentColor; border-radius: 4px; font-size: 11px; font-weight: 900; transform: rotate(-6deg); }
.fCard.gold .fBest { color: var(--seal); } .fCard.done .fBest { color: #2E6B5A; } .fCard.fog .fBest { color: #6E6680; }
.fCard.gold { box-shadow: 0 2px 0 #9C8050, 0 0 0 2px rgba(194, 58, 47, 0.4); }
.fCard.unknown { background: rgba(255, 255, 255, 0.05); box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.18); color: var(--soft); justify-content: center; align-items: center; }
.fCard.unknown::before { background: rgba(255, 255, 255, 0.05); }
.paperSheet .fileDetail { box-shadow: none; }
.fileMeta { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }

.mirror { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(43, 37, 72, 0.9), rgba(28, 25, 50, 0.9)); border: 1px solid var(--line); }
.mirrorFrame { border-radius: 80px 80px 12px 12px; background: radial-gradient(70% 60% at 50% 40%, #4A3F78, #1E1A36); border: 3px solid var(--brass); padding: 8px 4px 0; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); }
.mirrorFrame .jamesFull { width: 100%; }
.wearNow p { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.wearNow small { display: inline-block; width: 3em; color: var(--soft); font-weight: 500; font-size: 12px; }
.wearNow .wearBonus { margin-top: 8px; font-size: 13px; color: var(--brass-hi); }
.seg { display: flex; gap: 4px; margin: 12px 0 10px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.seg button { flex: 1; min-height: 38px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--soft); }
.seg button.on { background: linear-gradient(180deg, #4A4078, #352D5C); color: var(--text); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.wearGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wCard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.wPic { display: block; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #4A3F78, #2A2448); }
.wCard.lock .wPic { background: rgba(255, 255, 255, 0.05); }
.wName { font-size: 13px; font-weight: 900; line-height: 1.35; }
.wBonus { font-size: 11px; color: var(--brass-hi); }
.wState { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 11px; color: var(--soft); line-height: 1.4; }
.wState svg { width: 14px; height: 14px; }
.wCard.on { border-color: var(--brass); background: rgba(212, 168, 79, 0.12); }
.wCard.on .wState { color: var(--lamp); font-weight: 700; }
.wCard.shop .wState { color: var(--text); font-weight: 700; }
.wCard.lock { opacity: 0.75; }
.silhouette svg { filter: brightness(0) invert(1) opacity(0.14); }
.buy { text-align: center; }
.buy .jamesFull { width: 160px; margin: 0 auto; }
.buy p { margin: 4px 0 0; color: var(--brass-hi); }
.buy .buyPrice { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--text); font-weight: 700; }
.buyPrice svg { width: 18px; height: 18px; }
.buyPrice small { color: var(--soft); font-weight: 500; }

.friendList { display: grid; gap: 10px; }
.frCard { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(43, 37, 72, 0.9), rgba(28, 25, 50, 0.9)); border: 1px solid var(--line); text-align: left; }
.frFace .friendFace { border-radius: 50%; background: radial-gradient(circle, #FFF3D6, #E6D2A6); box-shadow: 0 0 0 3px rgba(242, 213, 138, 0.3); }
.frCard.locked { background: rgba(255, 255, 255, 0.03); border-style: dashed; }
.frCard.locked .friendFace { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.frBody b { display: block; font-size: 17px; }
.frBody small { display: block; color: var(--soft); font-size: 12px; }
.frEff { display: block; margin-top: 4px; font-size: 13px; color: var(--brass-hi); }
.hearts { display: flex; gap: 3px; margin-top: 4px; }
.hearts i { width: 12px; height: 11px; background: rgba(255, 255, 255, 0.15); clip-path: path('M6 11 C6 11 0 7 0 3.5 A3 3 0 0 1 6 2 A3 3 0 0 1 12 3.5 C12 7 6 11 6 11 Z'); }
.hearts i.on { background: #FF8C9C; }

.diaryList { display: grid; gap: 8px; }
.dCard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 22px; border-radius: 6px 12px 12px 6px; background: #FBF6E8; color: #2D2A4A; text-align: left; border-left: 6px solid #3B4F7E; }
.dDate { font-weight: 900; font-size: 14px; }
.dDate small { margin-left: 8px; font-weight: 500; color: #5A5A86; font-size: 12px; }
.dFirst { font-size: 13px; color: #4A4766; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--soft); padding: 30px 12px; }
.titleGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiCard { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.14); text-align: left; color: var(--soft); }
.tiCard b { font-size: 14px; }
.tiCard small { font-size: 11px; }
.tiCard.has { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(212, 168, 79, 0.16), rgba(212, 168, 79, 0.04)); color: var(--text); }
.tiCard.has b { color: var(--brass-hi); }
.tiCard.on { border-color: var(--lamp); box-shadow: 0 0 0 1px var(--lamp); }
.tiOn { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 0 6px; border-radius: 6px; background: var(--lamp); color: #3A2608; font-weight: 900; }
.about { margin-top: 24px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--soft); }
.about summary { cursor: pointer; margin-top: 10px; }
.aboutLink { display: block; color: var(--brass-hi); font-weight: 700; }

/* ===== はじめて開いたとき ===== */
.introStage { padding: 0; background: #0B0A16; }
.intro { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; }
.intro .office { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; filter: blur(1.5px); }
.introShade { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 45%, transparent, rgba(8, 6, 18, 0.85)); }
.introBody { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px 10px; max-width: 440px; }
.logoSub { margin: 0; color: var(--brass-hi); letter-spacing: 0.4em; font-size: 14px; }
.logo {
  margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.2; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #FFF6D8, #F2C65A 60%, #C98A2A); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #4A2E08) drop-shadow(0 0 24px rgba(255, 200, 90, 0.35));
}
.logo span { display: block; font-size: 30px; letter-spacing: 0.3em; }
.introJames { width: 200px; margin-top: 6px; animation: hop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.introLead { margin: 6px 0 0; font-size: 15px; color: var(--text); }
.introTalk { margin: 10px 0 0; padding: 14px 16px; border-radius: 16px; background: #FFFBF0; color: var(--ink); font-weight: 700; font-size: 16px; text-align: left; animation: rise 0.3s backwards; }
.introStage .nextBtn { position: relative; margin-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* ===== 下の運営表示 ===== */
.foot { max-width: 480px; margin: 0 auto; padding: 12px 16px 24px; text-align: center; color: #7E7A96; font-size: 11px; }
.foot p { margin: 2px 0; }
.foot a { color: #A9A3C4; margin: 0 6px; }

@media (max-width: 360px) {
  .aName { font-size: 11px; }
  .jamesBtn { width: 170px; }
  .stage { height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .blink { opacity: 0; }
}

/* ===== このゲームについて（about.html） ===== */
body.aboutPage { padding-bottom: 0; }
.aboutMain { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
.aboutMain h1 { margin: 14px 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0.06em; color: var(--brass-hi); }
.aboutMain h2 { margin: 24px 0 6px; font-size: 17px; color: var(--lamp); }
.aboutMain ul { margin: 0; padding-left: 1.2em; }
.aboutMain li { margin: 6px 0; }
.aboutMain p { margin: 6px 0; }
.aboutMain a { color: var(--brass-hi); }
.backLink { font-weight: 700; text-decoration: none; }
.aboutLinks { display: flex; flex-direction: column; gap: 6px; }

/* 音のボタン（舞台の右上） */
.soundBtn { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(14, 12, 28, 0.7); border: 1px solid var(--line); color: var(--lamp); backdrop-filter: blur(4px); }
.soundBtn svg { width: 18px; height: 18px; }
.soundBtn[aria-pressed="false"] { color: var(--soft); }

/* 開いたときの「音を出しますか？」 */
.soundAsk { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(6, 5, 14, 0.72); opacity: 0; transition: opacity 0.25s; }
.soundAsk.open { opacity: 1; }
.saBox { width: 100%; max-width: 340px; padding: 20px 18px 18px; border-radius: 22px; background: linear-gradient(180deg, #2B2548, #1D1934); border: 1px solid rgba(242, 213, 138, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); text-align: center; transform: scale(0.94); transition: transform 0.25s cubic-bezier(.2, 1.4, .4, 1); }
.soundAsk.open .saBox { transform: none; }
.saArt .jamesHead { margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #4A3F78, #2A2448); box-shadow: 0 0 0 3px rgba(242, 213, 138, 0.35); }
.saTitle { margin: 10px 0 0; font-family: var(--display); font-size: 20px; color: var(--brass-hi); letter-spacing: 0.04em; }
.saNote { margin: 6px 0 0; font-size: 12px; color: var(--soft); }
.saBtns { display: grid; gap: 8px; margin-top: 14px; }
.saBtns button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.saBtns svg { width: 20px; height: 20px; }
.saYes { background: linear-gradient(180deg, #FFE39C, var(--brass)); color: #3A2608; box-shadow: 0 4px 0 #8C6420; }
.saNo { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--soft); }

/* 動き出す前の説明（JavaScript を動かさない読み取りにも、中身が見えるように。2026-10-10） */
.prerender { max-width: 560px; margin: 0 auto; padding: 24px 16px; font-size: 15px; line-height: 1.8; }
.prerender h1 { font-size: 24px; margin: 0 0 8px; }
.prerender h2 { font-size: 17px; margin: 20px 0 6px; }
.prerender ol, .prerender ul { padding-left: 1.2em; }
