/* src/styles.css — modern luxury noir / "reading the opponent" */
:root {
  --bg: #090c11;            /* 近黒 */
  --bg-2: #0e131b;
  --ink: #eef1f6;
  --ink-soft: #d4dbe5;
  --muted: #8b94a4;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.15);
  --gold-line: rgba(230,195,114,0.30);
  --glass: rgba(255,255,255,0.05);
  --glass-2: rgba(255,255,255,0.085);
  /* 上面が明るく沈むガラス（立体感） */
  --surface: linear-gradient(180deg, rgba(255,255,255,0.058), rgba(255,255,255,0.018));
  --accent: #e6c372;        /* 洗練ゴールド */
  --accent-2: #f4dca0;
  --accent-soft: rgba(230,195,114,0.16);
  --strong: #34d399;
  --weak: #97a3b4;
  --bluff: #fb7185;
  --r-sm: 11px; --r: 14px; --r-lg: 18px; --r-pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-1: 0 10px 30px rgba(0,0,0,0.38);
  --shadow-2: 0 18px 50px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Hiragino Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  background-color: #06080c;
  /* 上から差すスポットライト＋ビネット */
  background-image:
    radial-gradient(130% 92% at 50% -12%, #1c2735 0%, #0c1017 50%, #06080c 100%);
  background-attachment: fixed;
  /* スマホ前提: タップの青ハイライト除去・誤選択防止・ダブルタップ拡大防止 */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
/* 高級感の微グレイン（ごく薄い粒子で質感を出す） */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
::selection { background: rgba(230,195,114,0.28); color: #fff; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;            /* モバイルのアドレスバー増減に追従 */
  display: flex;
  flex-direction: column;
  /* ノッチ・ホームインジケータ回避 */
  padding:
    calc(env(safe-area-inset-top) + 14px)
    calc(env(safe-area-inset-right) + 18px)
    calc(env(safe-area-inset-bottom) + 20px)
    calc(env(safe-area-inset-left) + 18px);
  position: relative;
}
button { font-family: inherit; cursor: pointer; }
/* 解説文だけは読み返せるよう選択を許可 */
.fb-explain { -webkit-user-select: text; user-select: text; }

/* === avatar：暗闇でこちらを見据える人影。目だけが光る === */
.avatar-figure {
  display: flex; justify-content: center; padding: 10px;
  background: radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 62%);
}
.avatar-svg { width: min(300px, 82vw); height: auto; filter: drop-shadow(0 22px 34px rgba(0,0,0,0.6)); }
.av-shadow { fill: rgba(0,0,0,0.45); }
.av-body { fill: #12161e; }
.av-arm rect { fill: #161d29; }
.av-eye { fill: #f3ead2; filter: drop-shadow(0 0 3px rgba(243,234,210,0.5)); }  /* 光を受けた目 */
.av-mouth { fill: #2c333d; }
.av-chips circle { fill: var(--accent); stroke: #a8853a; stroke-width: 1; }
.av-head { transform-box: fill-box; transform-origin: center; }

/* 1 手の震え */
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }
.tell-shake .av-arm-right { animation: shake 0.12s linear infinite; transform-box: fill-box; transform-origin: center; }

/* 2 固まる（全身が不自然に静止→わずかな硬直の表現として一瞬縮む） */
@keyframes freeze { 0%{transform:scale(1)} 10%{transform:scale(0.985)} 100%{transform:scale(0.985)} }
.tell-freeze .avatar-svg { animation: freeze 0.4s ease-out forwards; }

/* 3 即ベット（チップが素早く前に出る） */
@keyframes instantBet { 0%{transform:translateY(0)} 30%{transform:translateY(28px)} 100%{transform:translateY(28px)} }
.tell-instantBet .av-chips { animation: instantBet 0.25s ease-out forwards; transform-box: fill-box; }

/* 4 長考（頭がゆっくり傾く） */
@keyframes longThink { 0%{transform:rotate(0)} 100%{transform:rotate(-10deg)} }
.tell-longThink .av-head { animation: longThink 2s ease-in-out forwards; }

/* 5 目線をそらす（目が横にずれる） */
@keyframes eyesAway { 0%{transform:translateX(0)} 100%{transform:translateX(-5px)} }
.tell-eyesAway .av-eye { animation: eyesAway 0.8s ease-in-out forwards; transform-box: fill-box; }

/* 8 喉や口を触る（腕が顔へ） */
@keyframes touchFace { 0%{transform:translate(0,0) rotate(0)} 100%{transform:translate(-30px,-72px) rotate(6deg)} }
.tell-touchFace .av-arm-right { animation: touchFace 1s ease-in-out forwards; transform-box: fill-box; transform-origin: bottom; }

/* 9 チップを丁寧に置く（ゆっくり静かに前へ） */
@keyframes chipsGentle { 0%{transform:translateY(0)} 100%{transform:translateY(26px)} }
.tell-chipsGentle .av-chips { animation: chipsGentle 1.8s ease-in-out forwards; transform-box: fill-box; }

/* 11 自分のチップを見る（目が下に流れる） */
@keyframes chipGlance { 0%,100%{transform:translate(0,0)} 30%,62%{transform:translate(2px,3px)} }
.tell-chipGlance .av-eye { animation: chipGlance 1.3s ease-in-out; transform-box: fill-box; }

/* 12 早めにチップへ手を伸ばす（右手がチップへ寄る） */
@keyframes earlyReach { 0%{transform:translate(0,0)} 100%{transform:translate(9px,-15px)} }
.tell-earlyReach .av-arm-right { animation: earlyReach 0.6s ease-out forwards; transform-box: fill-box; transform-origin: bottom; }

/* 13 手札を見直す（カードを少し持ち上げて覗く） */
@keyframes recheckCards { 0%,100%{transform:translateY(0)} 38%,70%{transform:translateY(-7px)} }
.tell-recheckCards .av-cards { animation: recheckCards 1.5s ease-in-out; transform-box: fill-box; }

/* 14 チップを指で弾く（くるりと回す遊び） */
@keyframes chipFlip { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-12px) rotate(180deg)} }
.tell-chipFlip .av-chips { animation: chipFlip 0.55s ease-in-out 2; transform-box: fill-box; transform-origin: center; }

/* 15 心配げに唇を横に引く（口が横に広がる） */
@keyframes worriedLips { 0%,100%{transform:scaleX(1) scaleY(1)} 45%,75%{transform:scaleX(1.8) scaleY(0.7)} }
.tell-worriedLips .av-mouth { animation: worriedLips 1.4s ease-in-out; transform-box: fill-box; transform-origin: center; }

/* 16 ベット後に立ち上がる（上半身が立ち上がる） */
@keyframes standUp { 0%{transform:translateY(0)} 100%{transform:translateY(-24px)} }
.tell-standUp .av-head, .tell-standUp .av-body { animation: standUp 0.8s ease-out forwards; }

/* 17 苛立ち・無礼にベット（頭を不機嫌に振る） */
@keyframes irritatedBet { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-9deg)} 75%{transform:rotate(9deg)} }
.tell-irritatedBet .av-head { animation: irritatedBet 0.5s ease-in-out 2; }

/* 18 唇を固く結ぶ（口が薄く一文字に縮む） */
@keyframes lipCompress { 0%{transform:scaleX(1) scaleY(1)} 100%{transform:scaleX(0.66) scaleY(0.4)} }
.tell-lipCompress .av-mouth { animation: lipCompress 0.8s ease-out forwards; transform-box: fill-box; transform-origin: center; }

/* 19 襟元を引っ張る（右手が首元へ→換気のタグ） */
@keyframes collarPull { 0%{transform:translate(0,0)} 40%{transform:translate(-20px,-50px)} 55%{transform:translate(-20px,-57px)} 70%{transform:translate(-20px,-50px)} 100%{transform:translate(-20px,-52px)} }
.tell-collarPull .av-arm-right { animation: collarPull 1.2s ease-in-out forwards; transform-box: fill-box; transform-origin: bottom; }

/* 20 首をさする（右手が首すじへ→さする往復） */
@keyframes neckRub { 0%{transform:translate(0,0)} 30%{transform:translate(-16px,-58px)} 45%{transform:translate(-11px,-58px)} 60%{transform:translate(-16px,-58px)} 75%{transform:translate(-11px,-58px)} 100%{transform:translate(-14px,-56px)} }
.tell-neckRub .av-arm-right { animation: neckRub 1.4s ease-in-out forwards; transform-box: fill-box; transform-origin: bottom; }

/* 21 せわしないチップいじり（小刻みに左右へ） */
@keyframes chipFidget { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-3px)} 40%{transform:translateX(3px)} 60%{transform:translateX(-3px)} 80%{transform:translateX(3px)} }
.tell-chipFidget .av-chips { animation: chipFidget 0.3s linear infinite; transform-box: fill-box; }

/* 22 片方の肩をすくめる（上半身が一瞬上がる） */
@keyframes shrug { 0%,100%{transform:translateY(0)} 45%,70%{transform:translateY(-6px)} }
.tell-shrug .av-body { animation: shrug 1.1s ease-in-out; transform-box: fill-box; }

/* 23 手を卓の下に隠す（両腕が下がって消える） */
@keyframes handsHide { 0%{transform:translateY(0); opacity:1} 100%{transform:translateY(22px); opacity:0.12} }
.tell-handsHide .av-arm { animation: handsHide 0.9s ease-in forwards; transform-box: fill-box; }

/* === 画面の入り（上品なフェードアップ） === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 4px; animation: fadeUp .4s ease both; }
/* 短い画面（導入・本編開始・結果）は縦中央に。問題画面は上寄せで全要素を確保 */
.screen.intro, .screen.result, .screen:not(.intro):not(.question):not(.result):not(.menu) { justify-content: center; }
.screen.question { justify-content: flex-start; padding-top: 0; gap: 8px; }
/* 問題画面は1画面に収める：アバター縮小＋余白詰め（図鑑詳細のアバターは大きいまま） */
.q-avatar .avatar-figure { padding: 4px; }
.q-avatar .avatar-svg { width: min(300px, 80vw, 40vh); }
/* 回答後はアバター縮小＋状況カードを隠し、解説＋「次へ」を1画面に収める */
.question.answered .q-avatar .avatar-figure { padding: 0; background: none; }
.question.answered .q-avatar .avatar-svg { width: min(92px, 26vw, 12vh); transition: width .25s ease; }
.question.answered .q-situation { display: none; }
.screen.encyclopedia, .screen.tell-detail { justify-content: flex-start; }

/* 英字の大ロゴ（イントロ・ホーム共通の主役タイトル） */
.screen h1.wordmark {
  margin: 4px 0 2px; max-width: 100%; white-space: nowrap;
  font-size: clamp(32px, 11vw, 44px);
  font-weight: 800; letter-spacing: 0.08em; padding-left: 0.08em; line-height: 1.05;
  background: linear-gradient(168deg, #fcefcb 0%, #ecce86 46%, #c89a44 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0,0,0,0.85)) drop-shadow(0 0 34px rgba(230,195,114,0.28));
}
/* 体験版の「無料版」タグ */
.intro-free {
  font-size: 15px; font-weight: 800; letter-spacing: 0.3em; padding-left: 0.3em;
  color: var(--accent); opacity: 0.95; margin: 0 0 6px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85);
}

/* === home menu === */
.screen.menu { position: relative; z-index: 1; justify-content: space-between; gap: 0; padding-top: 2vh; padding-bottom: 2vh; }
.menu-top { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 11vh; }
.menu-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.menu-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(180deg,
      rgba(10,13,18,0.30) 0%,
      rgba(10,13,18,0.05) 26%,
      rgba(10,13,18,0.45) 55%,
      rgba(10,13,18,0.86) 78%,
      rgba(10,13,18,0.98) 100%),
    url(assets/home-bg.jpg);
  background-size: cover, cover;
  background-position: top center, top center;
  background-repeat: no-repeat;
}
.screen.menu .menu-top h1 {
  margin-top: 4px;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #f4d989;
  text-shadow: 0 2px 16px rgba(0,0,0,0.92), 0 0 26px rgba(230,195,114,0.3);
}
.menu-sub { color: #c3ccd8; margin: -2px 0 16px; text-shadow: 0 1px 14px rgba(0,0,0,0.9); }
.menu-btn {
  width: 100%; max-width: 320px; padding: 14px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.3;
}
.mb-main { font-size: 17px; font-weight: 700; }
.mb-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.btn-primary .mb-sub { color: rgba(26,19,10,0.7); }
.menu-badge {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  font-size: 13px; background: var(--bluff); color: #1a0d10; font-weight: 800;
}

/* === encyclopedia === */
.enc-head {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px;
  margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative;
}
.enc-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.enc-head h2 { margin: 0; }
.back-btn { padding: 8px 15px; font-size: 13px; border-radius: var(--r-pill); color: var(--ink-soft); }
.enc-note { color: var(--muted); font-size: 13px; max-width: 380px; text-align: center; margin: 8px 0 6px; letter-spacing: 0.01em; }
.enc-group { width: 100%; max-width: 380px; margin: 0 auto; }
.enc-group + .enc-group { margin-top: 22px; }
.enc-group-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 4px 2px 10px; padding-left: 11px; border-left: 3px solid var(--muted);
  font-size: 13px;
}
.enc-group-title.g-value { border-left-color: var(--strong); }
.enc-group-title.g-bluff { border-left-color: var(--bluff); }
.enc-group-title.g-mixed { border-left-color: var(--accent); }
.enc-group-label { font-weight: 800; color: var(--ink); font-size: 13.5px; }
.enc-group-count { color: var(--muted); font-size: 11px; font-weight: 600; margin-left: auto; }
.enc-list { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.enc-card {
  text-align: left; width: 100%; padding: 15px 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.enc-card:hover { transform: translateY(-2px); border-color: var(--gold-line); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.08); }
.enc-card:active { transform: translateY(0) scale(0.99); }
.enc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.enc-name { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; }
.enc-meta { font-size: 12px; color: var(--muted); margin: 4px 0; }
.enc-summary { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-top: 5px; }

/* read badges & reliability */
.badge { font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; letter-spacing: 0.02em; }
.badge-value { background: rgba(52,211,153,0.16); color: var(--strong); border: 1px solid rgba(52,211,153,0.4); }
.badge-bluff { background: rgba(251,113,133,0.16); color: var(--bluff); border: 1px solid rgba(251,113,133,0.4); }
.badge-mixed { background: rgba(230,195,114,0.16); color: var(--accent); border: 1px solid rgba(230,195,114,0.4); }
.badge-weak { background: rgba(151,163,180,0.16); color: var(--weak); border: 1px solid rgba(151,163,180,0.4); }
.rel { font-weight: 700; }
.rel-高 { color: var(--strong); }
.rel-中 { color: var(--accent); }
.rel-低 { color: var(--muted); }

/* === tell detail === */
.tell-detail .detail-avatar { display: flex; justify-content: center; }
.detail-badges { display: flex; gap: 10px; align-items: center; margin: 2px 0 6px; }
.detail-text {
  max-width: 380px; font-size: 15px; line-height: 1.8; color: #d3dae4; text-align: left;
  -webkit-user-select: text; user-select: text;
}

/* === ライブ攻略ガイド（アコーディオン） === */
.acc-list { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 10px; text-align: left; -webkit-user-select: text; user-select: text; }
.acc {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.acc.open { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(230,195,114,0.07), rgba(230,195,114,0.02)); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 15px 16px; background: transparent; border: none; text-align: left; cursor: pointer;
}
.acc-title {
  flex: 1; font-size: 15.5px; font-weight: 800; color: var(--ink); line-height: 1.35;
  border-left: 3px solid var(--accent); padding-left: 10px;
}
.acc-count {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 999px; flex: 0 0 auto;
}
.acc-chev { color: var(--accent); font-size: 18px; line-height: 1; flex: 0 0 auto; transition: transform .22s ease; }
.acc.open .acc-chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 14px 12px; }
.acc.open .acc-body { display: block; animation: accFade .25s ease both; }
@keyframes accFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.guide-intro { margin: 2px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.guide-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; margin-bottom: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.guide-item:last-child { margin-bottom: 0; }
.guide-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.guide-item-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.guide-item-text { margin: 0; font-size: 13.5px; line-height: 1.72; color: #d3dae4; }
.guide-item-text b { color: var(--ink); }

/* === situation：ポーカーHUD風 === */
.situation {
  width: 100%; max-width: 380px; margin: 2px auto 2px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

/* ポット：チップ型の数値ピル */
.sit-pot-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(243,215,150,0.12), rgba(216,169,78,0.05));
  border: 1px solid rgba(216,169,78,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}
.sit-chip-ico { width: 18px; height: 18px; color: var(--accent); opacity: 0.95; }
.sit-pot-label {
  font-size: 10px; letter-spacing: 0.22em; font-weight: 700; color: var(--accent);
}
.sit-pot-val { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.sit-pot-val small {
  font-size: 10px; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0.08em;
}

/* アクション：ガラスのカード */
.sit-card {
  width: 100%; box-sizing: border-box;
  padding: 13px 18px 15px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.06);
}
.sit-eyebrow {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 6px;
}
.sit-action {
  margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.62;
}

/* === text === */
.screen h1 {
  margin: 6px 0 2px; font-size: 29px; font-weight: 800; letter-spacing: 0.06em;
  background: linear-gradient(168deg, #fcefcb 0%, #e7c87f 48%, #c79a44 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.screen h2 {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 0.03em; color: var(--ink);
}
/* イントロ：背景にホームの男（少し強めの暗幕で文字を読みやすく） */
.screen.intro { position: relative; z-index: 1; text-align: center; }
.intro p { margin-left: auto; margin-right: auto; }
.menu-bg.intro-bg {
  background-image:
    linear-gradient(180deg,
      rgba(7,9,13,0.56) 0%,
      rgba(7,9,13,0.52) 30%,
      rgba(7,9,13,0.66) 58%,
      rgba(7,9,13,0.88) 82%,
      rgba(7,9,13,0.98) 100%),
    url(assets/home-bg.jpg);
}
.intro p, .intro-lead, .intro-punch { text-shadow: 0 1px 9px rgba(0,0,0,0.82); }
.intro p { line-height: 1.78; color: var(--ink-soft); max-width: 19em; text-shadow: 0 1px 9px rgba(0,0,0,0.82); }
.intro-hook {
  font-size: 22px; font-weight: 800; letter-spacing: 0.01em; margin: 8px 0 10px;
  background: linear-gradient(180deg, #f6e3b0, #e0b766);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-punch {
  margin: 16px auto 4px; max-width: 18em;
  font-size: 17px; font-weight: 700; line-height: 1.72; color: var(--ink); letter-spacing: 0.01em;
}
.intro-punch b { color: var(--accent); }
/* 文節ごとに塊で改行（端末幅に自動で合わせ、文節の途中では切れない） */
.intro-flow span, .intro-punch span { display: inline-block; }
.intro-lead { font-size: 17px; color: var(--ink); margin-top: 10px; letter-spacing: 0.01em; }

/* === 日本語をスマートに折り返す（語中での不自然な改行・孤立文字を抑制） === */
#app { word-break: auto-phrase; line-break: strict; }
.intro p, .enc-summary, .guide-item-text, .guide-intro,
.detail-text, .fb-explain, .mb-sub { text-wrap: pretty; }
.intro-hook, .intro-lead, .intro-punch, .menu-sub, .sit-action,
.acc-title, .enc-group-label, .screen h2, .fb-mark, .enc-note { text-wrap: balance; }

/* === buttons === */
.btn {
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 22px; font-size: 16px;
  background: var(--surface); color: var(--ink); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1.5px); border-color: var(--line-2); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.08); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.btn-primary {
  border: none; color: #1c1407; font-weight: 800; letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fbe6ad 0%, #e9c478 45%, #cf9f4c 100%);
  box-shadow: 0 10px 28px rgba(216,169,78,0.34), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(120,80,20,0.25);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(216,169,78,0.5), inset 0 1px 0 rgba(255,255,255,0.6); }
.menu-btn { border-radius: var(--r-lg); }

.q-top { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 30px; }
.q-slot { flex: 0 0 76px; display: flex; align-items: center; }
.q-slot:last-child { justify-content: flex-end; }
.q-heading { flex: 1; text-align: center; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.quit-btn {
  padding: 6px 12px; font-size: 12px; border-radius: 10px;
  color: var(--muted); background: var(--glass); border: 1px solid var(--line);
}
.quit-btn:hover { transform: none; color: var(--ink); border-color: rgba(255,255,255,0.18); background: var(--glass-2); }

/* === 2択：ガラスのカード＋色の発光 === */
.q-choices { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.choice {
  min-width: 132px; padding: 16px 24px; font-weight: 800; font-size: 17px; letter-spacing: 0.03em;
  border-radius: var(--r-lg); border: 1px solid var(--line); position: relative; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.06);
}
.choice::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: 0.95;
}
.choice-value::after { background: var(--strong); box-shadow: 0 0 16px var(--strong); }
.choice-bluff::after { background: var(--bluff);  box-shadow: 0 0 16px var(--bluff); }
.choice-value:hover { border-color: var(--strong); }
.choice-bluff:hover { border-color: var(--bluff); }

/* 回答後：正解＝緑で点灯＋✓ / 誤答した選択＝赤＋✕。残りは薄く後退 */
.choice.is-correct, .choice.is-wrong { opacity: 1; }
.choice.is-correct {
  border-color: var(--strong); color: #d8ffec;
  background: rgba(52,211,153,0.14);
}
.choice.is-correct::after { background: var(--strong); box-shadow: 0 0 18px var(--strong); opacity: 1; }
.choice.is-wrong {
  border-color: var(--bluff); color: #ffe2e7;
  background: rgba(251,113,133,0.14);
}
.choice.is-wrong::after { background: var(--bluff); box-shadow: 0 0 18px var(--bluff); opacity: 1; }
.choice.is-correct::before, .choice.is-wrong::before {
  position: absolute; top: 5px; right: 9px; font-size: 13px; font-weight: 800; line-height: 1;
}
.choice.is-correct::before { content: "✓"; color: var(--strong); }
.choice.is-wrong::before { content: "✕"; color: var(--bluff); }

/* === feedback：ガラスのパネル === */
.q-feedback {
  width: 100%; max-width: 380px; margin-top: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 13px 16px 12px; text-align: center; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.06);
}
.fb-mark { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; }
.fb-mark.ok { color: var(--strong); text-shadow: 0 0 20px rgba(52,211,153,0.5); }
.fb-mark.ng { color: var(--bluff); text-shadow: 0 0 20px rgba(251,113,133,0.5); }
.fb-answer { margin-top: 6px; color: var(--muted); font-size: 14px; }
.fb-answer b { color: var(--ink); }
.fb-explain { font-size: 14px; line-height: 1.62; text-align: left; color: #d3dae4; margin: 8px 0 11px; }

/* === result === */
.result-score {
  font-size: 34px; font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(168deg, #fcefcb 0%, #e7c87f 50%, #c79a44 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(230,195,114,0.22));
}
.result-best { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; margin-top: 2px; }

/* === 製品版の案内（無料版クリア後） === */
.promo {
  width: 100%; max-width: 360px; margin: 8px auto 2px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 16px 14px; box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.05);
}
.promo-lead {
  text-align: center; font-size: 16px; font-weight: 800; color: var(--ink);
  margin: 0 0 14px; line-height: 1.55;
}
.promo-desc { text-align: center; font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin: -6px 0 15px; }
.promo-value { text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1.65; color: var(--ink); margin: 15px 0 0; }
.promo-desc span, .promo-value span { display: inline-block; }
.promo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.promo-list li { display: flex; gap: 11px; align-items: flex-start; }
.promo-ic { font-size: 18px; line-height: 1.35; flex: 0 0 auto; }
.promo-body { display: flex; flex-direction: column; gap: 2px; }
.promo-body b { font-size: 14.5px; font-weight: 800; color: var(--accent); letter-spacing: 0.01em; }
.promo-d { font-size: 13px; line-height: 1.62; color: var(--ink-soft); }
.promo-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
