/* ============================================================
   木棋会 · 五子棋 — 三主题样式
   ============================================================ */

/* —— Theme: warm（默认） —— */
:root,
html[data-theme="warm"] {
  --bg: #F7F0E6;
  --panel: #FFF8F0;
  --panel-secondary: #F0E4D4;
  --board: #E2C49A;
  --wood: #6B4F3A;
  --primary: #C4784A;
  --primary-hover: #A8633A;
  --accent: #E07A5F;
  --success: #7A9E7E;
  --danger: #B85C5C;
  --text: #3D3429;
  --text-muted: #7A6E60;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --switch-off: #D4C4B0;
  --avatar-bg: #F0E4D4;
  --card-border: rgba(107, 79, 58, 0.06);
  --icon-tint: rgba(196, 120, 74, 0.12);
  --rule-bar-bg: rgba(226, 196, 154, 0.35);
  --action-hover: #FFF3E8;
}

/* —— Theme: morandi —— */
html[data-theme="morandi"] {
  --bg: #F0EBE5;
  --panel: #FAF7F2;
  --panel-secondary: #D8CFC4;
  --board: #E8D9B9;
  --wood: #7A6A5C;
  --primary: #A27E7E;
  --primary-hover: #8B6A6A;
  --accent: #E2B7A0;
  --success: #9CAF9C;
  --danger: #B08585;
  --text: #5C5650;
  --text-muted: #8A827A;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  --switch-off: #C8BFB4;
  --avatar-bg: #E4DBD0;
  --card-border: rgba(122, 106, 92, 0.08);
  --icon-tint: rgba(162, 126, 126, 0.14);
  --rule-bar-bg: rgba(216, 207, 196, 0.55);
  --action-hover: #F3EEE8;
}

/* —— Theme: tea —— */
html[data-theme="tea"] {
  --bg: #F5F1EA;
  --panel: #FFFFFF;
  --panel-secondary: #E8EDE8;
  --board: #DDB88C;
  --wood: #6B573F;
  --primary: #6B8F71;
  --primary-hover: #587A5E;
  --accent: #D4A373;
  --success: #7A9E7E;
  --danger: #B85C5C;
  --text: #2F3A32;
  --text-muted: #6A756C;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  --switch-off: #C8D0C6;
  --avatar-bg: #E4EBE4;
  --card-border: rgba(107, 87, 63, 0.08);
  --icon-tint: rgba(107, 143, 113, 0.14);
  --rule-bar-bg: rgba(221, 184, 140, 0.3);
  --action-hover: #F0F5F0;
}

/* —— Reset —— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  color: inherit;
}

/* —— Screens —— */
.app { min-height: 100%; }
.screen {
  display: none;
  opacity: 0;
  transition: opacity 200ms ease;
  min-height: 100vh;
}
.screen.active {
  display: block;
  opacity: 1;
}
.screen.fade-out { opacity: 0; }

/* —— Shared controls —— */
.icon-btn {
  width: 40px; height: 40px;
  min-width: 44px; min-height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 180ms, color 180ms;
}
.icon-btn:hover { background: rgba(107, 79, 58, 0.08); color: var(--text); }
.icon-btn.muted { color: var(--danger); opacity: 0.7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background 180ms, transform 150ms, opacity 180ms, border-color 180ms;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:disabled {
  background: #C9B5A4;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-outline {
  border: 1.5px solid var(--wood);
  color: var(--wood);
  background: transparent;
}
.btn-outline:hover { background: rgba(107, 79, 58, 0.06); }
.btn-danger-outline {
  border: 1.5px solid var(--danger);
  color: var(--danger);
  background: transparent;
  opacity: 0.85;
}
.btn-danger-outline:hover { background: rgba(184, 92, 92, 0.08); }
.btn-ghost {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--text); background: rgba(107, 79, 58, 0.06); }

.link-sm {
  color: var(--primary);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(107, 79, 58, 0.18);
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms;
}
.field:focus { border-color: var(--primary); }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: left;
}

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--wood);
  color: #FFF8F0;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  z-index: 2000;
  box-shadow: var(--shadow);
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Request banner（联机请求弹条） —— */
.req-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--panel);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-110%);
  transition: transform 240ms ease;
}
.req-banner.show { transform: translateY(0); }
.req-banner .req-text {
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.req-banner .req-actions { display: flex; gap: 8px; }
.req-banner .btn { padding: 8px 16px; font-size: 13px; min-height: 40px; }

/* —— Replay bar —— */
.replay-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 8px;
  width: 100%;
  max-width: 520px;
}
.replay-bar.visible { display: flex; }
.replay-bar .btn {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 10px;
  background: var(--bg);
  font-size: 18px;
  font-weight: 700;
}
.replay-bar .replay-info {
  font-size: 14px;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}
.replay-bar .btn-exit {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 12px;
}

/* ========== Home ========== */
#screen-home {
  position: relative;
  padding: 24px 20px 48px;
}
.home-top {
  position: absolute;
  top: 16px; right: 20px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.brand {
  text-align: center;
  padding: 48px 16px 40px;
}
.brand h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wood);
  margin-bottom: 10px;
}
.brand p {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.mode-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid var(--card-border);
  width: 100%;
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.mode-card .icon-wrap {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--icon-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.mode-card h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 8px;
}
.mode-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.home-join {
  max-width: 420px;
  margin: 28px auto 0;
  text-align: center;
}
.home-join-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.home-join-row .field { flex: 1; text-align: center; letter-spacing: 0.12em; }
.home-identity {
  max-width: 360px;
  margin: 24px auto 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.home-identity .home-name {
  flex: 1;
  max-width: none;
  margin: 0;
}
.home-name {
  max-width: 280px;
  margin: 24px auto 0;
}
.avatar-picker {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.avatar-opt {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  border: 2.5px solid transparent;
  background: var(--avatar-bg);
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
  box-shadow: 0 0 0 1px rgba(107, 79, 58, 0.12);
}
.avatar-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.avatar-opt:hover { transform: scale(1.04); }
.avatar-opt.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--icon-tint);
}

/* ========== Room ========== */
#screen-room {
  display: none;
  padding: 32px 20px 48px;
  align-items: center;
  justify-content: center;
}
#screen-room.active { display: flex; }
.room-card {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}
.room-card h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.room-code {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--wood);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 28px 0 24px;
}
.slot {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(107, 79, 58, 0.15);
  flex-shrink: 0;
}
.avatar img.avatar-img,
.avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}
.avatar.empty {
  border: 2px dashed rgba(107, 79, 58, 0.35);
  background: transparent;
  animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.45; border-color: rgba(107, 79, 58, 0.25); }
  50% { opacity: 0.9; border-color: rgba(196, 120, 74, 0.55); }
}
.slot-name { font-size: 14px; font-weight: 600; }
.slot-status {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
}
.dot-ready {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
}
.vs-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.rule-bar {
  background: var(--rule-bar-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.room-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.room-actions .btn { width: 100%; }
.room-waiting {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 20px;
}
.room-waiting .dots::after {
  content: "";
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ========== Game ========== */
#screen-game {
  display: none;
  padding: 20px 16px 28px;
}
#screen-game.active { display: block; }
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}
.side-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}
.player-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-card .avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
}
.player-card .player-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-card .name {
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-card .role {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 0;
}
.turn-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--icon-tint);
  border-radius: 6px;
  padding: 4px 6px;
  opacity: 0;
  transition: opacity 200ms;
  min-height: 22px;
  align-self: flex-start;
}
.turn-hint.visible {
  opacity: 1;
  animation: turnPulse 2s ease-in-out infinite;
}
.turn-hint.thinking {
  color: var(--text-muted);
  animation: turnPulse 1.2s ease-in-out infinite;
}
@keyframes turnPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.board-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.board-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  background: var(--board);
  border-radius: 6px;
  box-shadow: var(--shadow), inset 0 0 0 3px var(--wood);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}
.board-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.board-wrap.replay-mode { pointer-events: none; }
.board-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.board-meta .move-count { font-weight: 600; color: var(--text); }
.tag {
  background: rgba(107, 79, 58, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.action-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.action-col .btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 550;
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 10px;
}
.action-col .btn:hover:not(:disabled) { background: var(--action-hover); }
.action-col .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.action-col .btn-danger-outline {
  background: transparent;
  box-shadow: none;
}
.action-col .btn-exit-game {
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 12px;
}
.action-col .btn-exit-game:hover:not(:disabled) {
  background: rgba(107, 79, 58, 0.06);
  color: var(--text);
}
.hint-remain {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.mobile-bar { display: none; }
.mobile-actions { display: none; }

/* Hint flash marker */
@keyframes hintFlash {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}
.hint-marker {
  animation: hintFlash 0.7s ease-in-out 3;
  pointer-events: none;
}

/* ========== Modals ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 52, 41, 0.45);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  transform: scale(0.96);
  transition: transform 200ms;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 8px;
}
.modal .sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.win-preview-strip {
  margin: 0 auto 24px;
  width: 100%;
  max-width: 200px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--board);
  box-shadow: inset 0 0 0 2px rgba(107, 79, 58, 0.35),
              var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.win-preview {
  width: 140px;
  height: 40px;
  display: block;
}
.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-btns .btn { width: 100%; }

/* AI setup modal */
.choice-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.choice-chip {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(107, 79, 58, 0.2);
  background: var(--bg);
  font-size: 14px;
  font-weight: 550;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.choice-chip.selected {
  border-color: var(--primary);
  background: var(--icon-tint);
  color: var(--primary);
}
.section-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: left;
}

/* Settings */
.settings-section {
  text-align: left;
  margin-bottom: 22px;
}
.settings-section h3 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 12px;
  color: var(--text);
}
.theme-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.theme-card {
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 10px 8px;
  cursor: pointer;
  transition: border-color 150ms, transform 150ms;
  background: var(--bg);
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.selected { border-color: var(--primary); }
.theme-swatch {
  height: 36px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  overflow: hidden;
}
.theme-swatch span { flex: 1; }
.theme-card .theme-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.audio-row label {
  font-size: 13px;
  font-weight: 550;
  min-width: 48px;
}
.switch {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: var(--switch-off);
  position: relative;
  transition: background 180ms;
  flex-shrink: 0;
  cursor: pointer;
}
.switch.on { background: var(--success); }
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.switch.on::after { transform: translateX(18px); }
.vol-slider {
  flex: 1;
  accent-color: var(--primary);
  height: 4px;
  cursor: pointer;
}
.bgm-style-row {
  display: flex;
  gap: 8px;
  margin: -2px 0 14px;
  flex-wrap: wrap;
}
.bgm-style-chip {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(107, 79, 58, 0.2);
  background: var(--bg);
  font-size: 13px;
  font-weight: 550;
  color: var(--text-muted);
  transition: border-color 150ms, background 150ms, color 150ms;
}
.bgm-style-chip:hover {
  color: var(--text);
  border-color: rgba(107, 79, 58, 0.35);
}
.bgm-style-chip.selected {
  border-color: var(--primary);
  background: var(--icon-tint);
  color: var(--primary);
}

/* ========== Responsive ≤767px ========== */
@media (max-width: 767px) {
  .mode-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .room-card { padding: 28px 22px; }
  .room-code { font-size: 32px; letter-spacing: 0.2em; }
  .home-join-row { flex-direction: column; }
  .home-identity {
    flex-direction: column;
    align-items: center;
    max-width: 280px;
  }
  .avatar-picker { justify-content: center; }

  .game-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .player-card, .action-col, .desktop-only { display: none !important; }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px 14px;
    max-width: 100%;
    margin: 0 auto 12px;
  }
  .mobile-bar .side {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-bar .avatar { width: 36px; height: 36px; border-width: 1.5px; }
  .mobile-bar .turn-hint {
    font-size: 11px;
    padding: 4px 8px;
    min-height: 0;
  }
  .board-wrap { max-width: 100%; }
  .mobile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 12px 0 8px;
    margin-top: 4px;
    z-index: 10;
  }
  .mobile-actions .btn {
    flex: 1;
    min-width: 70px;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    background: var(--panel);
    box-shadow: var(--shadow);
    border-radius: 10px;
    font-weight: 550;
  }
  .mobile-actions .btn:disabled { opacity: 0.45; }
  .mobile-actions .btn-danger-outline {
    background: transparent;
    box-shadow: none;
  }
  .theme-cards { gap: 8px; }
  .modal { padding: 28px 20px 22px; }
}
