﻿:root {
  --pink: #fd9ec3;
  --blue: #0058a3;
  --blue-dark: #00376a;
  --cream: #fff6fb;
  --mint: #e9f7ff;
  --text: #102030;
  --shadow: 0 20px 45px rgba(0, 31, 86, 0.18);
}

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

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #ffe4f1 0%, #ffd4e8 40%, #f7faff 80%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(0px);
  z-index: 0;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #fd9ec3 0%, #ffbdd9 60%, transparent 70%);
  top: -120px;
  left: -120px;
}

.shape-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #9ad0ff 0%, #c9e9ff 55%, transparent 70%);
  bottom: -220px;
  right: -160px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #ffd6a5 0%, #ffe8c7 50%, transparent 70%);
  top: 40%;
  right: 12%;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.app-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-block .tag {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.title-block h1 {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 32px;
  color: var(--blue);
  margin: 4px 0 6px;
}

.subtitle {
  color: #415066;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.content.single {
  grid-template-columns: 1fr;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.game-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 55%, #fdf3f8 100%);
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.game-card::before {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(253, 158, 195, 0.35) 0%, rgba(253, 158, 195, 0) 70%);
  top: -120px;
  right: -80px;
}

.game-card::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 88, 163, 0.18) 0%, rgba(0, 88, 163, 0) 70%);
  bottom: -100px;
  left: -60px;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.score-box {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--pink), #ffd0e4);
  color: #fff;
  text-align: center;
}

.score-box strong {
  font-size: 28px;
}

.progress-box {
  flex: 1;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6a7a8a;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e8f1ff;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #55a3ff);
  transition: width 0.4s ease;
}

.question-area {
  padding: 12px 0 16px;
}

.question-index {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.question-title {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 15px;
  background: #f2f7ff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.option:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.option.selected {
  border-color: var(--pink);
  background: #ffe7f2;
}

.option.correct {
  border-color: #33c46d;
  background: #e5f8ee;
  color: #1d6f3c;
}

.option.incorrect {
  border-color: #ff7a7a;
  background: #ffe7e7;
  color: #9f2d2d;
}

.answer-reveal {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px dashed #c7d9f1;
  display: none;
}

.answer-reveal .source {
  margin-top: 6px;
  font-size: 13px;
  color: #55677a;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--blue);
  color: #fff;
}

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

.btn.ghost {
  background: #e8f1ff;
  color: var(--blue-dark);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.side-panel {
  display: grid;
  gap: 20px;
}

.rules-card h3,
.record-card h3 {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 12px;
}

.rules {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #425266;
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce8f3, #e5f2ff);
}

.mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
}

.mic::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 18px;
  border-radius: 6px;
  background: #fff;
  top: 8px;
  left: 12px;
}

.equalizer {
  display: flex;
  gap: 4px;
}

.equalizer span {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--blue-dark);
  animation: eq 1s infinite ease-in-out;
}

.equalizer span:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.equalizer span:nth-child(3) { animation-delay: 0.3s; height: 10px; }
.equalizer span:nth-child(4) { animation-delay: 0.45s; height: 18px; }

@keyframes eq {
  0%, 100% { height: 8px; }
  50% { height: 18px; }
}

.mini-text p {
  font-size: 12px;
  color: #6a7a8a;
}

.mini-text strong {
  color: var(--blue-dark);
}

.record-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: #425266;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

.record-item {
  background: #f6f9ff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #e2ebff;
}

.record-item strong {
  color: var(--blue-dark);
}

.result-card {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.result-body .app {
  max-width: 980px;
}

.result-page-card {
  margin-top: 32px;
}

.result-time {
  margin-top: 8px;
  font-size: 13px;
  color: #6a7a8a;
}

.result-info h2 {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 24px;
  color: var(--blue);
}

.result-score {
  margin-top: 6px;
  font-size: 16px;
}

.result-score strong {
  color: var(--blue-dark);
  font-size: 22px;
}

.result-level {
  margin-top: 6px;
  font-size: 16px;
  color: var(--blue-dark);
}

.result-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #6a7a8a;
}

.result-actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: 1fr;
  }
  .content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .app {
    padding: 20px 16px 40px;
  }
  .card {
    padding: 20px;
  }
  .title-block h1 {
    font-size: 26px;
  }
  .question-title {
    font-size: 18px;
  }
  .card-top {
    flex-direction: column;
    align-items: stretch;
  }
  .score-box {
    width: 100%;
  }
  .podcast-pill {
    flex-direction: column;
    align-items: center;
  }
  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
