/* 屏幕布局：home / 地图 / 组队 / 图鉴 / 绘本 / 对局 / 战棋 / 结算 —— 深空配色 */

#app { display: flex; flex-direction: column; padding: 12px 18px; gap: 10px; overflow-y: auto; }

.logo { text-align: center; font-size: 30px; color: #38bdf8; letter-spacing: 6px; margin: 6px 0; text-shadow: 0 0 18px #38bdf8aa; }
.profile-chip { text-align: center; color: #fbbf24; font-size: 16px; }
.screen-head { display: flex; align-items: center; gap: 10px; }
.screen-title { font-size: 22px; color: #38bdf8; margin: 4px 0; flex: 1; }

.btn {
  border: 2px solid #38bdf8; background: rgba(56, 189, 248, .08);
  color: #f8fafc; border-radius: 14px; padding: 10px 16px;
  font-size: 17px; cursor: pointer;
}
.btn:active { transform: scale(.96); background: rgba(56, 189, 248, .22); }
.btn-primary { background: linear-gradient(135deg, #f59e0b, #fbbf24); border-color: #fbbf24; color: #1e293b; font-weight: 700; }
.btn-ghost { border-color: #64748b; color: #cbd5e1; }
.btn-wide { width: 100%; margin-bottom: 8px; }

.subject-grid { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.subject-card {
  width: 200px; padding: 20px 10px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(160deg, rgba(56,189,248,.16), rgba(11,17,32,.9));
  border: 2px solid #38bdf8; text-align: center;
}
.subject-card:active { transform: scale(.95); }
.subject-emoji { font-size: 44px; }
.subject-name { font-size: 20px; color: #f8fafc; margin-top: 6px; }
.home-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.profile-list, .profile-form { max-width: 420px; margin: 0 auto; width: 100%; }
.profile-form { display: flex; gap: 8px; margin-top: 10px; }
.input { flex: 1; border: 2px solid #64748b; border-radius: 12px; background: #0f172a; color: #f8fafc; padding: 10px 12px; font-size: 17px; }

.zone-title { color: #fbbf24; font-size: 19px; margin: 14px 0 6px; }
.level-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.level-card {
  min-width: 140px; max-width: 220px; flex: 1; padding: 12px; border-radius: 14px;
  background: rgba(56,189,248,.1); border: 2px solid #38bdf8; color: #f8fafc;
  font-size: 16px; cursor: pointer; text-align: center;
}
.level-card:active { transform: scale(.95); }
.level-card.locked { border-color: #475569; background: rgba(71,85,105,.15); color: #64748b; cursor: not-allowed; }
.level-card.marathon-card { border-color: #fbbf24; }
.level-name { font-size: 16px; }
.level-meta { font-size: 13px; color: #cbd5e1; margin-top: 4px; }

.team-slots { display: flex; gap: 12px; justify-content: center; }
.team-slot {
  width: 90px; height: 110px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  border: 2px dashed #64748b; color: #64748b; font-size: 26px;
}
.team-slot.filled { border-style: solid; border-color: #fbbf24; color: #fbbf24; font-size: 18px; }
.team-pool { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }

.tab-row { display: flex; gap: 8px; }
.tab { border: 2px solid #64748b; background: transparent; color: #cbd5e1; border-radius: 12px; padding: 8px 14px; font-size: 16px; cursor: pointer; }
.tab.active { border-color: #fbbf24; color: #fbbf24; }
.collection-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.collect-card {
  width: 130px; padding: 12px 6px; text-align: center; border-radius: 14px;
  background: linear-gradient(160deg, rgba(251,191,36,.12), rgba(11,17,32,.9));
  border: 2px solid #fbbf24; color: #f8fafc; cursor: pointer;
}
.card-emoji { font-size: 36px; }
.card-name { font-size: 15px; margin-top: 4px; }

.book-list { display: flex; flex-direction: column; gap: 8px; max-width: 480px; margin: 0 auto; width: 100%; }
.book-page {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: rgba(248,250,252,.96); border-radius: 18px; margin: 10px auto; max-width: 560px; width: 100%; padding: 30px 20px;
}
.book-text { font-size: 30px; color: #1e293b; letter-spacing: 4px; text-align: center; }

.play-head { display: flex; align-items: center; gap: 10px; }
.play-title { color: #fbbf24; font-size: 19px; flex: 1; }
.play-view { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.prompt { font-size: 34px; color: #f8fafc; text-align: center; text-shadow: 0 0 14px #38bdf8aa; }
.stage { min-height: 260px; width: 100%; display: flex; align-items: center; justify-content: center; }
.finisher-tip { font-size: 24px; color: #fbbf24; }
.finisher-zone { width: 320px; height: 220px; }

.maze-tip { font-size: 20px; color: #fbbf24; }
.maze-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  background: rgba(56,189,248,.06); padding: 16px; border-radius: 16px;
}
.maze-cell {
  height: 64px; border-radius: 12px; border: 2px solid #38bdf8;
  background: rgba(11,17,32,.9); color: #f8fafc; font-size: 26px; cursor: pointer;
}
.maze-cell:active { transform: scale(.93); }
.maze-cell.visited { border-color: #475569; color: #64748b; }
.maze-cell.end { border-color: #f43f5e; }

.settle-mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(2,6,23,.82);
  display: flex; align-items: center; justify-content: center;
}
.settle-card {
  background: #0f172a; border: 2px solid #fbbf24; border-radius: 20px;
  padding: 26px 30px; text-align: center; max-width: 520px;
}
.settle-title { font-size: 26px; color: #fbbf24; }
.settle-sub { color: #cbd5e1; margin: 8px 0 16px; }
.capsule-row { display: flex; gap: 14px; }
.capsule {
  border: 2px solid #38bdf8; background: rgba(56,189,248,.1); border-radius: 16px;
  padding: 16px 14px; color: #f8fafc; cursor: pointer; min-width: 110px;
}
.capsule-emoji { font-size: 40px; }
.capsule-name { font-size: 15px; margin-top: 6px; }

.practice-form { display: grid; gap: 14px; width: min(440px, 100%); margin: auto; }
.practice-label { display: grid; gap: 6px; }
.practice-form select { width: 100%; }
.practice-review { display: flex; align-items: center; gap: 8px; }
.practice-review input { width: 22px; height: 22px; accent-color: #38bdf8; }
.practice-progress { color: #cbd5e1; }
.practice-result { text-align: center; margin: auto; }
.choice-with-items { display: grid; justify-items: center; gap: 16px; }
.choice-prompt-items {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 320px; font-size: 24px;
}
.memory-board {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  width: min(420px, 100%);
}
.memory-card {
  min-height: 70px; padding: 8px; border: 2px solid #38bdf8; border-radius: 14px;
  background: #1e3a5f; color: #f8fafc; font-size: clamp(17px, 4vw, 25px);
  overflow-wrap: anywhere; cursor: pointer;
}
.memory-card[aria-pressed="true"] { background: #0f172a; border-color: #fbbf24; }
.memory-card.matched { border-color: #4ade80; cursor: default; }
