/* ============================================================
   style.css (v5 - mobile-first rewrite)
   ============================================================ */
:root {
  --bg: #16130f;
  --bg-vignette: #201a12;
  --board-light: #e7c07f;
  --board-dark: #cf9f56;
  --board-line: #6b4423;
  --frame: #3a2a18;
  --frame-shadow: #0b0906;
  --piece-face: #f4e8d0;
  --piece-face-edge: #d8c399;
  --piece-ink: #241a0d;
  --accent: #b6392a;
  --accent-soft: rgba(182, 57, 42, 0.18);
  --accent-dim: rgba(182, 57, 42, 0.09);
  --ink-cream: #efe4cc;
  --ink-dim: #a99b86;
  --panel: #211b13;
  --panel-border: #4a3a25;
  --font-display: 'Shippori Mincho', serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  --premium-gold: #ffd700;
  /* 盤面のサイズ: ビューポート幅から余白を引いた値 */
  --board-size: min(90vw, 480px);
  --cell-size: calc(var(--board-size) / 9);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-vignette) 0%, var(--bg) 60%);
  color: var(--ink-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 8px 60px;
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-areas: "top top" "board log";
  gap: 12px 16px;
}

/* ---------- ヘッダー ---------- */
.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--ink-cream);
}
.logo span { color: var(--accent); font-style: normal; }

.controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.move-counter {
  font-family: var(--font-display); font-size: 12px;
  color: var(--ink-dim); padding: 3px 8px;
  border: 1px solid var(--panel-border); border-radius: 6px;
}
.move-counter span { color: var(--ink-cream); font-weight: 700; }

.btn {
  background: var(--accent); color: #fff2ea; border: none;
  border-radius: 6px; padding: 7px 12px; font-family: var(--font-body);
  font-weight: 700; font-size: 12px; letter-spacing: 0.03em;
  cursor: pointer; transition: filter 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover { color: var(--ink-cream); border-color: var(--ink-dim); }
.btn-premium {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
  color: #fff; border: none;
}
.btn-online {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-online:hover { background: var(--accent-soft); }

/* ---------- 盤エリア ---------- */
.board-area {
  grid-area: board;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.side-panel {
  width: 100%;
  max-width: var(--board-size);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-panel--top { flex-direction: row; }
.side-panel--bottom { flex-direction: row; }

.player-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
  color: var(--ink-cream);
  flex-shrink: 0;
}
.status-pill {
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; background: transparent;
  color: var(--ink-dim); border: 1px solid var(--panel-border); min-width: 10px;
}
.status-pill.turn { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.status-pill.check { background: var(--accent); color: #fff; border-color: var(--accent); }

.hand {
  flex: 1;
  min-height: 44px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: 6px;
  display: flex; align-items: center; gap: 4px; padding: 4px 6px; flex-wrap: wrap;
  overflow: hidden;
}

.hand-piece {
  position: relative;
  width: var(--cell-size);
  height: calc(var(--cell-size) * 1.1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hand-piece.selected .piece-shape { outline: 2px solid var(--accent); outline-offset: 2px; }
.hand-piece .count {
  position: absolute; bottom: -2px; right: -2px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 999px; padding: 1px 4px; line-height: 1.3;
}
.hand-empty { color: var(--ink-dim); font-size: 11px; padding: 0 4px; }

/* ---------- 座標 + 評価バー ---------- */
.board-with-coords {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: calc(var(--board-size) + 40px);
}

.coord-files {
  display: flex;
  justify-content: space-around;
  padding: 0 14px 0 20px;
  font-family: var(--font-display); font-size: 10px;
  color: var(--ink-dim);
  width: 100%;
  max-width: calc(var(--board-size) + 40px);
}
.coord-ranks {
  display: flex; flex-direction: column; justify-content: space-around;
  padding: 14px 0; font-family: var(--font-display); font-size: 10px;
  color: var(--ink-dim); width: 14px; flex-shrink: 0; text-align: center;
}

.eval-bar-wrap {
  width: 8px; flex-shrink: 0; border-radius: 4px; overflow: hidden;
  background: var(--accent); border: 1px solid var(--panel-border); position: relative;
}
.eval-bar-sente {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--ink-cream); transition: height 0.4s ease; height: 50%;
}

/* ---------- 盤面 ---------- */
.board-wrap {
  position: relative;
  padding: 10px;
  background: linear-gradient(180deg, var(--frame), #2a1d10);
  border-radius: 8px;
  box-shadow: 0 12px 30px -8px var(--frame-shadow), 0 0 0 1px #000;
  flex-shrink: 0;
}

.board {
  display: grid;
  grid-template-columns: repeat(9, var(--cell-size));
  grid-template-rows: repeat(9, var(--cell-size));
  background: linear-gradient(135deg, var(--board-light), var(--board-dark));
  border: 2px solid var(--board-line);
  width: var(--board-size);
  height: var(--board-size);
}

.cell {
  position: relative;
  border: 1px solid var(--board-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: var(--cell-size);
  height: var(--cell-size);
  overflow: hidden;
}

.cell.highlight::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: rgba(182, 57, 42, 0.25); border: 2px solid var(--accent);
  pointer-events: none;
}
.cell.selected { box-shadow: inset 0 0 0 2px var(--accent); }
.cell.last-move { box-shadow: inset 0 0 0 2px rgba(182,57,42,0.55); }
.cell.last-from { background: rgba(182,57,42,0.10); }

/* 将棋の駒 */
.piece-shape {
  width: 82%;
  height: 88%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--piece-face), var(--piece-face-edge));
  clip-path: polygon(50% 0%, 92% 22%, 100% 100%, 0% 100%, 8% 22%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  user-select: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}
.piece-shape.gote { transform: rotate(180deg); }
.piece-shape .label {
  font-family: var(--font-display); font-weight: 700;
  color: var(--piece-ink); line-height: 1; text-align: center; white-space: pre;
  font-size: calc(var(--cell-size) * 0.42);
  pointer-events: none;
}
.piece-shape.promoted .label { color: var(--accent); }
.piece-shape.king .label { font-weight: 700; }

/* ---------- 棋譜パネル ---------- */
.log-panel {
  grid-area: log; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 10px; max-height: 600px; overflow-y: auto;
}
.log-panel h2 {
  font-family: var(--font-display); font-size: 13px; margin: 0 0 6px;
  color: var(--ink-cream); border-bottom: 1px solid var(--panel-border); padding-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.move-log {
  margin: 0; padding: 0 0 0 16px; font-size: 11px;
  color: var(--ink-dim); line-height: 1.8;
}
.move-log li::marker { color: var(--ink-dim); font-size: 10px; }
.move-log li.mine { color: var(--ink-cream); }

.btn-kif {
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--panel-border); border-radius: 4px;
  padding: 2px 6px; font-size: 10px; font-family: var(--font-body); cursor: pointer;
  flex-shrink: 0;
}
.btn-kif:hover { color: var(--ink-cream); border-color: var(--ink-dim); }

/* ---------- モーダル（共通） ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(10, 8, 5, 0.72);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 20px 22px; text-align: center; min-width: 240px;
  max-width: 92vw; max-height: 90vh; overflow-y: auto;
}
.modal-card p {
  font-family: var(--font-display); font-size: 15px; margin: 0 0 14px;
  color: var(--ink-cream); white-space: pre-line;
}
.modal-actions { display: flex; gap: 8px; justify-content: center; }

.online-badge {
  font-size: 10px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 3px 8px; background: var(--accent-soft);
}

.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--accent);
  color: var(--ink-cream); padding: 8px 16px; border-radius: 8px;
  font-size: 12px; z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: toast-in-out 4s ease forwards;
}
@keyframes toast-in-out {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  10%, 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

.modal-card--online { min-width: 280px; max-width: 340px; }
.room-code {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  letter-spacing: 0.15em; color: var(--accent); text-align: center;
  padding: 8px 0; margin: 4px 0;
}
.online-hint { font-size: 12px; color: var(--ink-dim); text-align: center; margin: 4px 0 0; }
.online-divider {
  text-align: center; font-size: 11px; color: var(--ink-dim);
  margin: 14px 0; position: relative;
}
.online-divider::before, .online-divider::after {
  content: ""; position: absolute; top: 50%; width: 40%;
  height: 1px; background: var(--panel-border);
}
.online-divider::before { left: 0; }
.online-divider::after { right: 0; }
.join-row { display: flex; gap: 8px; justify-content: center; }
.join-row input {
  width: 90px; text-align: center; font-size: 18px;
  letter-spacing: 0.2em; background: var(--bg); color: var(--ink-cream);
  border: 1px solid var(--panel-border); border-radius: 6px; padding: 6px;
  font-family: var(--font-display);
}
.online-error {
  font-size: 12px; color: var(--accent); text-align: center; margin: 10px 0 0;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 700px) {
  :root {
    --board-size: min(92vw, 400px);
  }
  .app {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "board" "log";
    padding: 8px 6px 40px;
  }
  .log-panel { max-height: 160px; }
  .hand-piece { width: var(--cell-size); height: calc(var(--cell-size) * 1.1); }
  .coord-files { font-size: 8px; }
  .coord-ranks { font-size: 8px; width: 12px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .eval-bar-sente { transition: none; }
  .piece-shape { transition: none; }
}

/* ---------- ニックネーム入力 ---------- */
.nickname-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; justify-content: center;
}
.nickname-input {
  background: var(--bg); color: var(--ink-cream);
  border: 1px solid var(--panel-border); border-radius: 6px;
  padding: 6px 10px; font-family: var(--font-body); font-size: 13px;
  width: 130px;
}
.nickname-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ---------- ロビー ---------- */
.lobby-section {
  margin-top: 14px; border-top: 1px solid var(--panel-border); padding-top: 12px;
}
.lobby-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.btn-lobby-refresh {
  background: transparent; border: 1px solid var(--panel-border); color: var(--ink-dim);
  border-radius: 4px; padding: 2px 8px; cursor: pointer; font-size: 14px;
}
.btn-lobby-refresh:hover { color: var(--ink-cream); border-color: var(--ink-dim); }
.lobby-list {
  max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px;
}
.lobby-empty {
  font-size: 12px; color: var(--ink-dim); text-align: center; padding: 8px 0;
}
.lobby-room {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--panel-border);
  border-radius: 6px; padding: 5px 8px;
}

/* ---------- チャット ---------- */
.chat-area {
  width: 100%; max-width: var(--board-size);
  border: 1px solid var(--panel-border); border-radius: 8px;
  background: var(--panel); overflow: hidden; margin-top: 4px;
}
.chat-messages {
  height: 100px; overflow-y: auto; padding: 6px 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.chat-msg {
  display: flex; gap: 5px; align-items: baseline; font-size: 11px;
}
.chat-name {
  font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 10px;
}
.chat-text {
  background: var(--bg); border-radius: 4px; padding: 2px 6px;
  color: var(--ink-cream); max-width: 80%; word-break: break-word;
}
.chat-input-row {
  display: flex; gap: 0; border-top: 1px solid var(--panel-border);
}
.chat-input {
  flex: 1; background: transparent; border: none; padding: 7px 8px;
  color: var(--ink-cream); font-family: var(--font-body); font-size: 12px;
  outline: none;
}
.btn-chat {
  background: var(--accent); color: #fff2ea; border: none;
  padding: 7px 12px; font-family: var(--font-body); font-size: 11px;
  font-weight: 700; cursor: pointer;
}
.btn-chat:hover { filter: brightness(1.12); }

/* ---------- プレイヤータグ em (ニックネーム) ---------- */
.player-tag em {
  font-style: normal; color: var(--accent); font-size: 12px; font-weight: 400;
}

/* ============================================================
   プレミアム設定 追加スタイル
   ============================================================ */
.settings-select {
  background: var(--bg); color: var(--ink-cream);
  border: 1px solid var(--panel-border); border-radius: 6px;
  padding: 4px 8px; font-family: var(--font-body); font-size: 12px;
  cursor: pointer; min-width: 100px;
}
.settings-select:focus { outline: 2px solid var(--accent); }

.settings-btn {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: #ccc;
  padding: 5px 9px; border-radius: 6px; cursor: pointer; font-size: 1em; line-height: 1;
  transition: background 0.2s;
}
.settings-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.settings-modal-card { max-width: 400px; width: 92%; max-height: 80vh; overflow-y: auto; }
.settings-section { margin-bottom: 16px; }
.settings-section-title { font-size: 0.75em; color: #888; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #eee; }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 0.85em; }
.settings-label small { display: block; font-size: 0.78em; color: #888; margin-top: 2px; }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 22px; transition: 0.3s; }
.toggle-slider:before { position: absolute; content: ''; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: #e74c3c; }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }

.settings-row.premium-locked { opacity: 0.45; pointer-events: none; position: relative; }
.premium-lock-badge {
  font-size: 9px; background: linear-gradient(45deg,#ffd700,#ff8c00);
  color: #fff; border-radius: 4px; padding: 1px 4px; margin-left: 5px;
  font-weight: 700; vertical-align: middle; white-space: nowrap;
}

/* ---------- 持ち時間表示 ---------- */
.clock-wrap {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: var(--board-size); padding: 4px 0;
}
.clock-box {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--ink-cream); background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: 6px;
  padding: 3px 10px; letter-spacing: 0.06em; min-width: 80px; text-align: center;
}
.clock-box.active { color: var(--accent); border-color: var(--accent); }
.clock-box.low { color: #e74c3c; border-color: #e74c3c; animation: clock-blink 1s step-end infinite; }
@keyframes clock-blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ---------- 駒移動アニメーション ---------- */
@keyframes piece-move {
  0%   { transform: scale(1.15) translateY(-3px); opacity: 0.7; }
  100% { transform: scale(1) translateY(0);       opacity: 1; }
}
.piece-shape.moving { animation: piece-move 0.18s ease-out forwards; }
.piece-shape.gote.moving { animation: piece-move-gote 0.18s ease-out forwards; }
@keyframes piece-move-gote {
  0%   { transform: rotate(180deg) scale(1.15) translateY(-3px); opacity: 0.7; }
  100% { transform: rotate(180deg) scale(1) translateY(0); opacity: 1; }
}

/* ---------- 王手エフェクト ---------- */
@keyframes check-flash {
  0%,100% { box-shadow: inset 0 0 0 3px rgba(231,76,60,0); }
  50%      { box-shadow: inset 0 0 0 3px rgba(231,76,60,0.9); }
}
.cell.check-king { animation: check-flash 0.6s ease 3; }

/* ---------- 勝利エフェクト ---------- */
.victory-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.victory-text {
  font-family: var(--font-display); font-size: 56px; font-weight: 700;
  color: #ffd700; text-shadow: 0 0 30px rgba(255,215,0,0.8), 0 4px 12px rgba(0,0,0,0.6);
  animation: victory-anim 2.5s ease forwards;
}
@keyframes victory-anim {
  0%   { opacity: 0; transform: scale(0.5); }
  20%  { opacity: 1; transform: scale(1.1); }
  40%  { transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

/* ---------- ダークモード / ライトモード ---------- */
body.theme-light {
  --bg: #f5f0e8; --bg-vignette: #ede5d5;
  --board-light: #e7c07f; --board-dark: #cf9f56;
  --frame: #8b6340; --frame-shadow: rgba(0,0,0,0.2);
  --piece-face: #f4e8d0; --piece-face-edge: #d8c399;
  --piece-ink: #241a0d; --accent: #b6392a; --accent-soft: rgba(182,57,42,0.12);
  --ink-cream: #2c1f0e; --ink-dim: #6b5540;
  --panel: #fff9f0; --panel-border: #d4b896;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-vignette) 0%, var(--bg) 60%);
}

/* ---------- 盤面テーマ ---------- */
body.board-theme-kuro .board-wrap { background: linear-gradient(180deg, #1a1a1a, #0d0d0d); }
body.board-theme-kuro .board { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); --board-line: #444; }
body.board-theme-washi .board { background: linear-gradient(135deg, #f0e8d0, #e0d0b0); --board-line: #9b8060; }
body.board-theme-ao .board { background: linear-gradient(135deg, #c8dff0, #a0c4e0); --board-line: #5080a0; }

/* ---------- 駒デザイン ---------- */
body.piece-style-en .piece-shape .label { font-family: monospace; font-size: calc(var(--cell-size) * 0.28) !important; letter-spacing: 0; }
body.piece-style-brush .piece-shape .label { font-family: var(--font-display); font-style: italic; }

/* ---------- 盤面サイズ ---------- */
body.board-size-small { --board-size: min(75vw, 360px); }
body.board-size-large { --board-size: min(98vw, 580px); }

/* ---------- チャットスタンプ ---------- */
.stamp-bar {
  display: flex; gap: 5px; padding: 3px 6px; border-top: 1px solid var(--panel-border);
  flex-wrap: wrap;
}
.stamp-btn {
  background: var(--bg); border: 1px solid var(--panel-border); border-radius: 4px;
  color: var(--ink-cream); font-size: 11px; padding: 2px 6px; cursor: pointer;
}
.stamp-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- プレミアムバッジ（ニックネーム横） ---------- */
.premium-badge {
  background: linear-gradient(45deg, #ffd700, #ff8c00); color: #fff;
  padding: 2px 8px; border-radius: 12px; font-size: 0.65em; font-weight: bold;
  margin-left: 5px; vertical-align: middle; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.nick-premium-badge {
  font-size: 9px; background: linear-gradient(45deg,#ffd700,#ff8c00);
  color: #fff; border-radius: 3px; padding: 1px 4px; font-weight: 700;
  vertical-align: middle; margin-left: 4px;
}

/* ---------- 対局履歴モーダル ---------- */
.history-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.history-item {
  background: var(--bg); border: 1px solid var(--panel-border); border-radius: 6px;
  padding: 7px 10px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.history-item-info { color: var(--ink-dim); font-size: 10px; }
.history-item-result { font-weight: 700; color: var(--accent); }

/* ---------- 解析結果 ---------- */
.analysis-card { background: #fff; border-radius: 8px; padding: 12px; margin-top: 8px; border: 1px solid #ddd; }
.analysis-title { font-weight: bold; color: #2c3e50; margin-bottom: 6px; font-size: 0.9em; border-left: 4px solid #3498db; padding-left: 6px; }
.analysis-text { font-size: 0.82em; color: #333 !important; line-height: 1.5; margin-bottom: 10px; background: #f0f4f8; padding: 8px; border-radius: 4px; border: 1px solid #e0e6ed; }
.analysis-summary { font-weight: bold; color: #27ae60; margin-bottom: 12px; text-align: center; font-size: 0.95em; }
.score-indicator { font-size: 0.85em; font-weight: bold; margin-bottom: 4px; text-align: right; }
.score-plus { color: #e74c3c; }
.score-minus { color: #2980b9; }

/* ---------- 観戦モード ---------- */
.spectate-badge {
  font-size: 10px; color: #27ae60; border: 1px solid #27ae60;
  border-radius: 999px; padding: 2px 6px; background: rgba(39,174,96,0.1);
}

/* ---------- プレミアム関連 ---------- */
.premium-btn { background: linear-gradient(45deg, #f1c40f, #f39c12); color: white; border: none; }
.premium-btn:hover { background: linear-gradient(45deg, #f39c12, #e67e22); }
.ltc-address-box { background: #f8f9fa; border: 1px solid #dee2e6; padding: 8px; border-radius: 4px; font-family: monospace; font-size: 0.8em; word-break: break-all; margin: 8px 0; color: #333; }
.amount-highlight { font-size: 1.3em; color: #e67e22; font-weight: bold; text-align: center; margin: 8px 0; }
.payment-status-text { font-size: 0.85em; color: #666; margin-bottom: 8px; text-align: center; }
.side-modal-title { font-size: 1.1em; font-weight: bold; margin-bottom: 12px !important; }
.side-modal-sub { font-size: 0.85em; color: var(--ink-dim); margin: 6px 0 !important; }
.premium-section { border-top: 1px dashed #ccc; margin-top: 16px; padding-top: 12px; }
.premium-result-extras { border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 12px; }
