/* =========================================================
   メンヘラを救え - プロトタイプ スタイルシート
   ========================================================= */

:root {
  --bg-color: #160e20;
  --shell-pink: #f4a4d0;
  --shell-pink-dark: #c972a6;
  --shell-border: #3d2247;
  --lcd-bg: #f6e9f5;
  --lcd-dark: #331c40;
  --lcd-mid: #8e619e;
  --accent-pink: #e62e8a;
  --accent-purple: #7a49a5;
  --line-bg: #7494c0;
  --line-green: #8de055;
  --font-pixel: 'DotGothic16', 'MS Gothic', monospace;
  --font-sans: 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #2c213a 0%, var(--bg-color) 70%);
  color: #fff;
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.app-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---------------------------------------------------------
   携帯ゲーム機（たまごっち風）シェル
   --------------------------------------------------------- */
.device-shell {
  width: 100%;
  background: linear-gradient(145deg, #ffd7e6 0%, var(--shell-pink) 45%, var(--shell-pink-dark) 100%);
  border: 4px solid var(--shell-border);
  border-radius: 44px 44px 56px 56px;
  padding: 18px 20px 24px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    inset 0 4px 10px rgba(255, 255, 255, 0.7),
    inset 0 -6px 12px rgba(139, 76, 101, 0.35);
  position: relative;
}

.device-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 8px;
}

.led-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6b535c;
  border: 2px solid #4a353d;
  transition: background 0.2s, box-shadow 0.2s;
}

.led-indicator.alert {
  background: #ff2a55;
  box-shadow: 0 0 12px #ff2a55, 0 0 20px #ff2a55;
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.device-logo {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--shell-border);
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.device-version {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--shell-border);
  opacity: 0.8;
}

/* ---------------------------------------------------------
   液晶画面エリア
   --------------------------------------------------------- */
.lcd-bezel {
  background: #3d2c35;
  padding: 10px;
  border-radius: 18px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}

.lcd-screen {
  background-color: var(--lcd-bg);
  background-image:
    linear-gradient(rgba(42, 51, 38, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 51, 38, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--lcd-dark);
  font-family: var(--font-pixel);
  border-radius: 10px;
  padding: 10px;
  border: 2px solid #232b20;
  transition: filter 0.3s;
}

/* メンタル低下時の液晶演出 */
.lcd-screen.glitch-mode {
  background-color: #cfc6d6;
  filter: contrast(1.15);
}

.lcd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 2px dashed var(--lcd-mid);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.notif-badge {
  background: #d9264d;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 2px 8px;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  cursor: pointer;
  animation: shake 1.2s infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(0); }
}

.character-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#pixel-canvas {
  width: 136px;
  height: 136px;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid var(--lcd-mid);
  border-radius: 8px;
}

.speech-bubble {
  width: 100%;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--lcd-dark);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* パラメータバー */
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 2px dashed var(--lcd-mid);
  padding-top: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
}

.stat-bar-bg {
  height: 10px;
  background: rgba(42, 51, 38, 0.18);
  border: 1px solid var(--lcd-dark);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  width: 50%;
  transition: width 0.3s ease;
}

.stat-bar.mental { background: #4caf50; }
.stat-bar.depend { background: #e91e63; }
.stat-bar.trust  { background: #2196f3; }
.stat-bar.stamina { background: #ff9800; }

.stat-val {
  text-align: right;
}

/* ---------------------------------------------------------
   お世話コマンドボタン
   --------------------------------------------------------- */
.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.cmd-btn {
  background: #fff5f9;
  border: 2px solid var(--shell-border);
  border-radius: 14px;
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #4a2334;
  box-shadow: 0 3px 0 var(--shell-border);
  transition: transform 0.08s, box-shadow 0.08s;
}

.cmd-btn:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--shell-border);
}

.cmd-icon {
  font-size: 1.2rem;
}

.cmd-title {
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  font-weight: bold;
}

.cmd-sub {
  font-size: 0.68rem;
  color: #8b5c70;
}

/* 物理3ボタン（たまごっち風） */
.hardware-buttons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 4px;
}

.hw-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #f2dbe4);
  border: 3px solid var(--shell-border);
  color: var(--shell-border);
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shell-border);
  transition: transform 0.08s, box-shadow 0.08s;
}

.hw-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--shell-border);
}

.hw-btn small {
  font-size: 0.65rem;
}

/* ---------------------------------------------------------
   開発・検証用ミニバー
   --------------------------------------------------------- */
.debug-panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.debug-title {
  font-size: 0.72rem;
  color: #cbbcd4;
  margin-bottom: 8px;
}

.debug-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.debug-actions button {
  background: #362a47;
  color: #f3e8ff;
  border: 1px solid #6b538a;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.75rem;
  cursor: pointer;
}

.debug-actions button:hover {
  background: #4b3a63;
}

/* ---------------------------------------------------------
   モーダル共通
   --------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 16, 0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 100;
  backdrop-filter: blur(3px);
}

.hidden {
  display: none !important;
}

/* ---------------------------------------------------------
   ギャップ演出：LINE風チャット画面
   --------------------------------------------------------- */
.phone-frame {
  width: 100%;
  max-width: 390px;
  height: 82vh;
  max-height: 660px;
  background: var(--line-bg);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 3px solid #222;
}

.phone-header {
  background: #273246;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-back {
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 8px;
}

.phone-title-wrap {
  text-align: center;
}

.phone-title-wrap strong {
  display: block;
  font-size: 1rem;
}

.phone-title-wrap small {
  font-size: 0.72rem;
  color: #a8c0e0;
}

.chat-body {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.chat-msg.her {
  align-self: flex-start;
  background: #ffffff;
  color: #1f1f1f;
  border-top-left-radius: 4px;
}

.chat-msg.me {
  align-self: flex-end;
  background: var(--line-green);
  color: #1a2414;
  border-top-right-radius: 4px;
}

.chat-msg.system {
  align-self: center;
  background: rgba(0, 0, 0, 0.3);
  color: #eef3fa;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.chat-time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: 3px;
  text-align: right;
}

.chat-choices {
  background: #f5f6f8;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #d4dae3;
}

.choice-btn {
  background: #ffffff;
  color: #222;
  border: 2px solid #5c7aa8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.choice-btn:hover {
  background: #e9f0fb;
}

/* ---------------------------------------------------------
   エンディング＆Xシェアカードモーダル
   --------------------------------------------------------- */
.ending-card {
  width: 100%;
  max-width: 440px;
  background: #22192e;
  border: 2px solid #ff7aa8;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.ending-badge {
  display: inline-block;
  background: var(--accent-pink);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ending-title {
  font-family: var(--font-pixel);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #ffd7e6;
}

.ending-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e6dcee;
  margin-bottom: 14px;
}

.result-card-preview {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#share-card-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.ending-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #444;
}

.btn-secondary {
  background: var(--accent-pink);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #e6dcee;
  border: 1px solid #6b538a;
}


/* =========================================================
   v1.0 追加スタイル：タイトル画面・図鑑・演出・フッター
   ========================================================= */

/* タイトル画面オーバーレイ */
.title-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #352147 0%, #140e1c 75%);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.title-box {
  width: 100%;
  max-width: 420px;
  background: rgba(34, 25, 46, 0.92);
  border: 3px solid #f8c6d8;
  border-radius: 28px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.title-badge {
  display: inline-block;
  background: var(--accent-pink);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.title-main {
  font-family: var(--font-pixel);
  font-size: 2.1rem;
  color: #ffd7e6;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-shadow: 0 3px 0 #8b4c65;
}

.title-catch {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #e6dcee;
  margin-bottom: 22px;
}

.title-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-title-start {
  background: linear-gradient(135deg, #ff4d8d, #d81b60);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #880e4f;
  transition: transform 0.08s;
}

.btn-title-start:active {
  transform: translateY(3px);
}

.btn-title-sub {
  background: #36264a;
  color: #ffd7e6;
  border: 2px solid #8b4c65;
  border-radius: 12px;
  padding: 11px;
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  cursor: pointer;
}

.btn-title-sub:hover {
  background: #483363;
}

.title-rules {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #cbbcd4;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 音量切替ボタン */
.sound-toggle {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--shell-border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* キャラエリアのフローティング数値演出 */
.canvas-wrap {
  position: relative;
  display: inline-block;
}

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-text {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  animation: floatUp 1.1s ease-out forwards;
}

.float-text.plus { color: #1b5e20; }
.float-text.minus { color: #b71c1c; }

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -34px); }
}

/* 画面シェイク演出（地雷・連投通知時） */
.device-shell.shake-hard {
  animation: hardShake 0.38s ease-in-out;
}

@keyframes hardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(8px) rotate(1deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* フッター */
.app-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #cbbcd4;
}

.footer-link {
  background: none;
  border: none;
  color: #ffd7e6;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

.footer-sep {
  opacity: 0.4;
}

/* エンディング図鑑モーダル */
.gallery-card {
  width: 100%;
  max-width: 420px;
  max-height: 84vh;
  background: #22192e;
  border: 2px solid #f8c6d8;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-title {
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  color: #ffd7e6;
  text-align: center;
}

.gallery-sub {
  font-size: 0.8rem;
  color: #cbbcd4;
  text-align: center;
}

.gallery-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}

.gallery-item.unlocked {
  border-color: #ff7aa8;
  background: rgba(255, 77, 141, 0.12);
}

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

.gallery-item-badge {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #444;
  color: #fff;
}

.gallery-item-name {
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  color: #fff;
}

.gallery-item-desc {
  font-size: 0.76rem;
  color: #cbbcd4;
  line-height: 1.45;
}


/* =========================================================
   v1.1 追加スタイル：操作ガイド・クリア目標タグ
   ========================================================= */
.guide-banner {
  background: #3d2247;
  color: #ffd7ef;
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 8px;
  border: 1px solid #e62e8a;
}

.goal-header {
  font-size: 0.72rem;
  color: #6b357d;
  font-weight: bold;
  margin-bottom: 2px;
}

.stat-row {
  grid-template-columns: 112px 1fr 28px;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.goal-tag {
  font-size: 0.62rem;
  background: rgba(122, 73, 165, 0.16);
  color: #5b2c78;
  padding: 1px 4px;
  border-radius: 4px;
}

.goal-tag.ok {
  background: #2e7d32;
  color: #ffffff;
}

.goal-tag.danger {
  background: #c62828;
  color: #ffffff;
}


/* =========================================================
   v1.2 追加スタイル：高解像度表紙イラスト
   ========================================================= */
.title-box {
  padding: 0 0 22px;
  overflow: hidden;
}

.title-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 3px solid #f8c6d8;
  margin-bottom: 14px;
}

.title-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.title-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 28, 0.94) 5%, rgba(20, 14, 28, 0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 14px;
}

.title-cover-overlay .title-main {
  margin-bottom: 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 2px 0 #8b4c65;
}

.title-catch,
.title-menu,
.title-rules {
  margin-left: 20px;
  margin-right: 20px;
}


/* =========================================================
   v1.3 追加スタイル：LINE着信バナー・エンディング一枚絵
   ========================================================= */
.incoming-line-btn {
  width: 100%;
  background: linear-gradient(135deg, #06c755, #00a040);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.45);
  animation: pulseLine 1s infinite alternate;
}

@keyframes pulseLine {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.ending-card {
  max-height: 90vh;
  overflow-y: auto;
}

.ending-cg-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
  background: #120c1a;
}

.ending-cg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   v1.4 追加スタイル：限定公開用 合言葉ロック画面
   ========================================================= */
.lock-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #2a183b 0%, #100a17 80%);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lock-box {
  width: 100%;
  max-width: 360px;
  background: rgba(34, 25, 46, 0.96);
  border: 2px solid #f8c6d8;
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lock-title {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: #ffd7e6;
  margin-bottom: 8px;
}

.lock-desc {
  font-size: 0.82rem;
  color: #cbbcd4;
  margin-bottom: 16px;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lock-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #8b4c65;
  background: #1a1224;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
}

.lock-input:focus {
  outline: none;
  border-color: #ff4d8d;
}

.lock-error {
  color: #ff5252;
  font-size: 0.8rem;
  margin-top: 10px;
}


/* =========================================================
   v1.5 追加スタイル：相槌タイミングミニゲーム
   ========================================================= */
.minigame-card {
  width: 100%;
  max-width: 400px;
  background: #22192e;
  border: 3px solid #f8c6d8;
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.mg-title {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  color: #ffd7e6;
  margin-bottom: 10px;
}

.mg-talk {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 10px;
}

.mg-hint {
  font-size: 0.76rem;
  color: #cbbcd4;
  margin-bottom: 12px;
}

.mg-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: var(--font-pixel);
  margin-bottom: 4px;
}

.mg-lbl-cold { color: #ff5252; }
.mg-lbl-good { color: #69f0ae; }
.mg-lbl-sweet { color: #ff80ab; }

.mg-bar-wrap {
  position: relative;
  width: 100%;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #ffffff;
  display: flex;
  margin-bottom: 18px;
  background: #1a1224;
}

.mg-zone-cold {
  width: 42%;
  background: linear-gradient(90deg, #b71c1c, #e53935);
}

.mg-zone-good {
  width: 16%;
  background: #00e676;
  box-shadow: 0 0 12px #00e676;
}

.mg-zone-sweet {
  width: 42%;
  background: linear-gradient(90deg, #ec407a, #880e4f);
}

.mg-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 4px #000;
  left: 0%;
  transform: translateX(-50%);
}
