:root {
  --pink-primary: #ff5c93;
  --pink-dark: #d93870;
  --pink-soft: #ffe8f0;
  --amber-accent: #ff9f43;
  --truth-teal: #10b981;
  --hallu-rose: #f43f5e;
  --text-main: #2e1d28;
  --text-muted: #735868;
  --ui-opacity: 0.75;
  --shadow-lg: 0 10px 28px rgba(68, 20, 44, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", sans-serif;
  background: #23151d;
  color: var(--text-main);
  user-select: none;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #2b1d24;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
}

.vn-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===== キャラクター立ち絵ビューポート（顔が常にしっかり見える配置） ===== */
.character-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f6e5dc;
}

.char-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  opacity: 0;
  transition: opacity 0.26s ease-in-out, transform 0.35s ease;
  pointer-events: none;
  animation: sisterBreathe 4.5s ease-in-out infinite;
}

.char-layer.active {
  opacity: 1;
}

.character-viewport.anim-happy .char-layer.active {
  animation: jumpHappy 0.5s ease;
}

.character-viewport.anim-shock .char-layer.active {
  animation: shakeShock 0.45s ease;
}

@keyframes sisterBreathe {
  0%, 100% { transform: scale(1.0) translateY(0px); }
  50% { transform: scale(1.01) translateY(-2px); }
}

@keyframes jumpHappy {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-10px) scale(1.018); }
  65% { transform: translateY(-4px) scale(1.008); }
}

@keyframes shakeShock {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-0.8deg); }
  40% { transform: translateX(8px) rotate(0.8deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.floating-hud {
  position: relative;
  z-index: 30;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  flex-wrap: nowrap;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 110, 160, 0.45);
  border-radius: 999px;
  padding: 4px 9px;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--pink-dark);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-pill {
  background: rgba(255, 240, 246, 0.85);
  backdrop-filter: blur(8px);
  color: var(--pink-dark);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 92, 147, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
}

.combo-pill {
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.92), rgba(255, 61, 104, 0.92));
  color: #fff;
  border: none;
  animation: pulseBounce 0.4s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 160, 190, 0.5);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.14s ease, background 0.14s ease;
}

.hud-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 240, 246, 0.95);
}

.hud-icon-btn.muted {
  opacity: 0.5;
}

/* ===== ギャルゲー/ノベル風 プレイレイヤー（下部固定3行ウィンドウ＋上部選択肢） ===== */
.vn-play-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 10px 12px;
  pointer-events: none;
}

/* 選択肢ポップアップ（選ぶときだけテキストウィンドウのすぐ上に表示・透過対応） */
.floating-choices {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: choicePopUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes choicePopUp {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vn-choice-bar {
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  font-family: inherit;
  font-size: clamp(0.75rem, 3.4vw, 0.9rem);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 4px 14px rgba(35, 12, 24, 0.18);
}

.vn-choice-bar:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.vn-choice-bar:active {
  transform: translateY(1px);
}

/* 選択肢も --ui-opacity で透過度を連動 */
.hallu-choice {
  background: rgba(255, 235, 240, var(--ui-opacity));
  color: #be123c;
  border: 2px solid rgba(244, 63, 94, 0.75);
}

.truth-choice {
  background: rgba(232, 253, 245, var(--ui-opacity));
  color: #047857;
  border: 2px solid rgba(16, 185, 129, 0.75);
}

.tsukkomi-choice {
  background: rgba(255, 250, 225, var(--ui-opacity));
  color: #92400e;
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  font-size: clamp(0.73rem, 3.2vw, 0.82rem);
  padding: 8px 10px;
}

/* ===== 回答直後に同時表示される「📱スマホ検索（ファクトチェック結果）」カード ===== */
.phone-result-card {
  pointer-events: auto;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 8px;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  border: 2.5px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.28);
  animation: choicePopUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
  cursor: pointer;
}

.phone-topbar {
  background: linear-gradient(90deg, #1e293b, #334155);
  color: #f8fafc;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  white-space: nowrap;
}

.phone-judge-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  animation: pulseBounce 0.35s ease;
}

.phone-judge-pill.stamp-correct {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.phone-judge-pill.stamp-wrong {
  background: #f43f5e;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

.phone-body {
  padding: 9px 13px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-verdict-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.phone-verdict-badge {
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.phone-verdict-badge.verdict-lie {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fda4af;
}

.phone-verdict-badge.verdict-truth {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.phone-point-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}

.phone-explanation-text {
  font-size: clamp(0.78rem, 2.2vw, 0.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: #1e293b;
  margin: 0;
}

/* 下部テキストウィンドウ外枠 */
.vn-textbox-wrap {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ネームプレート行（テキストボックス上辺にピタッと乗る） */
.vn-textbox-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 0 4px;
  margin-bottom: -2px;
  z-index: 2;
  white-space: nowrap;
}

.vn-nameplate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(255, 92, 147, 0.94), rgba(255, 130, 172, 0.94));
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 2px 8px rgba(217, 56, 112, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

.vn-speaker-name {
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 判定バッジ（ネームプレート横にスリム表示） */
.vn-judge-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  animation: pulseBounce 0.35s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.vn-judge-badge.stamp-correct {
  background: #ecfdf5;
  color: #047857;
  border: 1.5px solid #10b981;
}

.vn-judge-badge.stamp-wrong {
  background: #fff1f2;
  color: #be123c;
  border: 1.5px solid #f43f5e;
}

.vn-meta-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vn-category-pill {
  background: rgba(243, 232, 255, 0.9);
  color: #6b21a8;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid rgba(147, 51, 234, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.vn-mini-btn {
  background: rgba(255, 240, 246, 0.9);
  color: var(--pink-dark);
  border: 1px solid rgba(255, 92, 147, 0.35);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* メッセージウィンドウ本体（行数に関係なくサイズ完全固定！） */
.vn-textbox {
  position: relative;
  background: rgba(255, 250, 252, var(--ui-opacity));
  backdrop-filter: blur(8px);
  border: 2.5px solid rgba(255, 115, 162, 0.72);
  border-radius: 16px;
  padding: 10px 14px 24px;
  height: 124px; /* 完全固定！伸び縮みしない */
  min-height: 124px;
  max-height: 124px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 14, 28, 0.22);
  overflow: hidden; /* スクロールバーは絶対に出さない */
}

.vn-point-line {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  padding: 1px 7px;
  border-radius: 999px;
  margin-bottom: 2px;
  background: rgba(255, 228, 230, 0.92);
  color: #be123c;
  white-space: nowrap;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vn-point-line.truth-chip {
  background: rgba(209, 250, 229, 0.92);
  color: #047857;
}

/* テキストは3行程度にスッキリ収め、スクロールバーを出さずに固定表示 */
.vn-dialogue-text {
  font-size: clamp(0.85rem, 2.5vw, 0.93rem);
  font-weight: 700;
  line-height: 1.48;
  color: var(--text-main);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  word-break: auto-phrase;
  overflow-wrap: break-word;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.vn-textbox-footer {
  position: absolute;
  right: 12px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vn-page-hint {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--pink-dark);
  opacity: 0.85;
}

.vn-next-inline-btn {
  background: var(--pink-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 2px 9px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(2px); opacity: 0.55; }
}

/* ===== オーバーレイ画面（タイトル・リザルト：下部にコンパクト配置して顔を見せる） ===== */
.overlay-screen {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(to top, rgba(30, 12, 22, 0.62) 0%, rgba(30, 12, 22, 0.12) 55%, transparent 100%);
  overflow-y: auto;
}

.title-card, .result-card {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 250, 252, var(--ui-opacity));
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 130, 172, 0.65);
  border-radius: 22px;
  padding: 16px 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.title-catch {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 800;
  font-size: clamp(0.68rem, 3.2vw, 0.78rem);
  white-space: nowrap;
  max-width: 100%;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.main-title {
  font-size: clamp(1.6rem, 5.2vw, 2.2rem);
  font-weight: 900;
  color: #3a1f2d;
  line-height: 1.15;
  margin-bottom: 6px;
}

.main-title .pink {
  color: var(--pink-primary);
}

.title-desc {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--text-main);
  margin-bottom: 10px;
}

.title-desc strong {
  color: var(--pink-dark);
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primary-btn, .secondary-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #ff5c93 0%, #ff8566 100%);
  color: #fff;
  box-shadow: 0 5px 15px rgba(255, 92, 147, 0.32);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.88);
  color: var(--pink-dark);
  border: 1.5px solid #ffc2d6;
}

.btn-main-text {
  font-size: 0.95rem;
  font-weight: 900;
}

.btn-sub-text {
  font-size: 0.7rem;
  opacity: 0.92;
}

.ai-custom-box {
  background: rgba(255, 240, 246, 0.75);
  border: 1.5px dashed #ff94b8;
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
}

.ai-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.7rem;
}

.ai-tag {
  font-weight: 800;
  color: var(--pink-dark);
}

.ai-status-text {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.ai-input-row {
  display: flex;
  gap: 6px;
}

.ai-input-row input {
  flex: 1;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1.5px solid #f3c6d6;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}

.ai-gen-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.lifetime-stats {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--text-main);
}

.more-games {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-main);
  opacity: 0.8;
}

/* リザルト画面 */
.result-header-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--pink-dark);
}

.rank-title {
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 900;
  color: #3a1f2d;
  margin-bottom: 5px;
}

.sister-comment {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-dark);
  background: rgba(255, 232, 240, 0.85);
  padding: 7px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.score-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #f5d0df;
  border-radius: 10px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.score-value {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--pink-dark);
}

.history-section {
  text-align: left;
  margin-bottom: 10px;
}

.history-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.history-list {
  max-height: 115px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-item {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.72rem;
  border-left: 4px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.history-item.item-ok { border-left-color: var(--truth-teal); }
.history-item.item-ng { border-left-color: var(--hallu-rose); }

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* 設定モーダル */
.modal-backdrop, .loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(28, 12, 20, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 90dvh;
  overflow-y: auto;
  background: rgba(255, 252, 254, 0.95);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.close-modal-btn {
  border: none;
  background: #f3f4f6;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label {
  font-weight: 900;
  font-size: 0.86rem;
  color: var(--pink-dark);
}

.setting-help {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toggle-row, .slider-row, .setting-row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.text-input, .select-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1.5px solid #e5e7eb;
  font-family: inherit;
  font-size: 0.82rem;
}

.small-btn {
  align-self: flex-start;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border: none;
  border-radius: 8px;
  padding: 5px 11px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}

.modal-divider {
  border: none;
  border-top: 1px solid #f3e8ee;
  margin: 10px 0;
}

.modal-footer {
  margin-top: 12px;
}

.loading-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid var(--pink-soft);
  border-top-color: var(--pink-primary);
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 0.85s linear infinite;
}

.loading-title {
  font-weight: 900;
  color: var(--pink-dark);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.loading-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseBounce {
  0% { transform: scale(0.88); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* スマホ・狭い画面向けの微調整 */
@media (max-width: 480px) {
  .home-pill .logo-text {
    display: none; /* スマホではアイコンのみにしてヘッダーの被りを防ぐ */
  }
  .home-pill {
    padding: 4px 8px;
  }
  .vn-textbox-wrap {
    padding: 0;
  }
  .vn-textbox-top-row {
    gap: 3px;
    padding: 0 2px;
  }
  .vn-nameplate {
    padding: 2px 7px;
    gap: 4px;
  }
  .vn-speaker-name {
    font-size: 0.78rem;
  }
  .vn-judge-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .vn-category-pill {
    font-size: 0.62rem;
    padding: 2px 5px;
  }
  .vn-textbox {
    height: 124px;
    min-height: 124px;
    max-height: 124px;
    padding: 9px 12px 22px;
  }
  .vn-dialogue-text {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}

/* サブモード選択行（今日の7問 & 嘘図鑑） */
.sub-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.sub-mode-row .secondary-btn {
  padding: 8px 10px;
}

.sub-mode-row .btn-main-text {
  font-size: 0.86rem;
}

.sub-mode-row .btn-sub-text {
  font-size: 0.66rem;
  color: var(--pink-dark);
}

/* シェアボタン */
.share-btn {
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1d9bf0 0%, #0284c7 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.share-btn:hover {
  filter: brightness(1.08);
}

/* 嘘図鑑モーダル */
.zukan-card {
  max-width: 520px;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
}

.zukan-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-primary);
  margin-left: 6px;
}

.zukan-stats {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: left;
}

.zukan-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f3d4e0;
  padding-bottom: 6px;
}

.zukan-tab {
  background: #fdf2f6;
  border: 1px solid #f9ccd9;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6b5863;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.zukan-tab.active {
  background: var(--pink-primary);
  color: #fff;
  border-color: var(--pink-primary);
}

.zukan-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  max-height: 55dvh;
}

.zukan-item {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #f3d4e0;
  padding: 10px;
  text-align: left;
  border-left: 4.5px solid #ccc;
  transition: border-color 0.15s ease;
}

.zukan-item.is-lie {
  border-left-color: var(--hallu-rose);
}

.zukan-item.is-truth {
  border-left-color: var(--truth-teal);
}

.zukan-item.locked {
  border-left-color: #cbd5e1;
  background: #f8fafc;
  opacity: 0.75;
}

.zukan-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.zukan-item-cat {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--pink-dark);
}

.zukan-item-badge {
  font-size: 0.66rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}

.zukan-item-badge.lie-badge {
  background: #ffe4e6;
  color: #e11d48;
}

.zukan-item-badge.truth-badge {
  background: #ccfbf1;
  color: #0f766e;
}

.zukan-item-statement {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a1f2d;
  line-height: 1.45;
  margin-bottom: 6px;
}

.zukan-item-exp {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #555;
  background: #fdf5f8;
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 4px;
}

