:root {
  --ink: #172033;
  --muted: #768094;
  --orange: #ff6a3d;
  --cream: #fff9f1;
  --blue: #2d6cf5;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  min-height: -webkit-fill-available;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; }
button {
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  opacity: .62;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

.app {
  --page-pad-x: 18px;
  --page-pad-top: 22px;
  --page-pad-bottom: 32px;
  position: relative;
  width: min(100%, 480px);
  margin: auto;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  min-height: 100dvh;
  padding: var(--page-pad-top) var(--page-pad-x) max(var(--page-pad-bottom), env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: visible;
}
.hidden { display: none !important; }
.version-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 112px);
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  z-index: 3;
}
.version-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.changelog-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #172033;
  color: white;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 22px #1720331f;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.home-team-link {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.brand { font-weight: 900; letter-spacing: 0; }
.brand i { color: var(--orange); font-style: normal; }
.eyebrow {
  font-size: 13px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#welcome {
  min-height: auto;
  display: flex;
  flex-direction: column;
}
.hero { padding-top: 54px; }
.hero h1 {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 8px 0 8px;
}
.brand-title {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  line-height: 0;
}
.brand-title img {
  display: block;
  width: 100%;
  height: auto;
}
.hero p {
  margin: 0;
  line-height: 1.45;
  color: var(--muted);
  font-size: 14px;
}
.howto-image {
  display: block;
  width: calc(100% + (var(--page-pad-x) * 2));
  height: auto;
  aspect-ratio: 900 / 520;
  margin: 14px calc(var(--page-pad-x) * -1);
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-shadow: 0 12px 26px #30221110;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px #3022110c;
}
#welcome .card label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.input {
  width: 100%;
  border: 1px solid #e8e4dd;
  background: #fffdf9;
  border-radius: 12px;
  padding: 13px;
  outline: 0;
}
.input:focus { border-color: var(--orange); }
.primary {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  box-shadow: 0 7px 0 #d84a26;
}
.primary:active { transform: translateY(4px); box-shadow: 0 3px 0 #d84a26; }
.primary:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}
.share {
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf6;
  color: #30405f;
  font-weight: 700;
  box-shadow: 0 6px 16px #1720330a;
}
.share:active {
  transform: translateY(2px);
  box-shadow: 0 3px 10px #1720330a;
}
.history-open {
  background: #172033;
  border-color: #172033;
  color: #fff;
  font-weight: 900;
}
.history-open:active {
  box-shadow: 0 3px 10px #17203318;
}
.back-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #172033;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.back-link {
  width: fit-content;
  margin: 0 0 24px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.steps { display: flex; gap: 8px; margin: 28px 0 18px; }
.step { height: 7px; flex: 1; border-radius: 9px; background: #ede9e1; }
.step.on { background: var(--orange); }
#quiz {
  min-height: calc(100vh - var(--page-pad-top) - var(--page-pad-bottom));
  min-height: calc(100svh - var(--page-pad-top) - var(--page-pad-bottom));
  min-height: calc(100dvh - var(--page-pad-top) - var(--page-pad-bottom));
  display: flex;
  flex-direction: column;
}
.game-title { display: flex; justify-content: space-between; align-items: center; }
.question { font-weight: 800; font-size: 19px; }
.question-cue {
  width: fit-content;
  min-width: 132px;
  margin: 0 auto 22px;
  border: 1px solid #ffe0d0;
  border-radius: 999px;
  padding: 10px 22px;
  background: #fff;
  color: var(--orange);
  text-align: center;
  box-shadow: 0 12px 28px #30221110;
}
.question-cue b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}
.question-cue.cue-pop {
  animation: cue-pop .62s ease;
}
@keyframes cue-pop {
  0% { transform: translateY(-8px) scale(.94); opacity: .35; }
  55% { transform: translateY(0) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.quiz-focus {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 24px;
}
.sound-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(220px, 34svh, 400px);
  max-height: 430px;
  margin: 0 auto;
  border: 1px solid #e7edf7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 18px 42px #17203314;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}
.sound-badge {
  min-width: 122px;
  border-radius: 999px;
  padding: 10px 18px;
  background: #172033;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px #17203320;
}
.sound-stage span {
  display: none;
}
.sound-stage.stage-shift {
  animation: stage-shift .62s ease;
}
.sound-stage.audio-playing .sound-wave i {
  animation-play-state: running;
}
.sound-stage.audio-playing {
  border-color: #ffcfb9;
  background: linear-gradient(180deg, #fff9f1 0%, #fff1e8 100%);
}
.sound-stage.audio-loading {
  border-color: #cfe0ff;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}
.sound-stage.audio-loading .sound-badge {
  background: var(--blue);
}
.sound-stage.audio-needs-action {
  border-color: #ff9a7a;
  background: linear-gradient(180deg, #fff8f4 0%, #fff0e8 100%);
}
.sound-stage.audio-needs-action .sound-badge {
  background: var(--orange);
}
.sound-stage.audio-playing .sound-badge {
  background: var(--orange);
}
.sound-wave {
  position: relative;
  width: 128px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.sound-wave::before,
.sound-wave::after {
  content: "";
  position: absolute;
  inset: -16px -24px;
  border: 2px solid #ff6a3d55;
  border-radius: 999px;
  opacity: 0;
  transform: scale(.72);
  pointer-events: none;
}
.sound-stage.audio-playing .sound-wave::before,
.sound-stage.audio-playing .sound-wave::after {
  animation: sound-ripple 1.25s ease-out infinite;
}
.sound-stage.audio-playing .sound-wave::after {
  animation-delay: .42s;
}
.sound-wave i {
  width: 12px;
  height: 28px;
  border-radius: 999px;
  background: var(--orange);
  animation: wave 820ms ease-in-out infinite;
  animation-play-state: paused;
}
.sound-wave i:nth-child(2) { height: 48px; animation-delay: 80ms; background: #2d6cf5; }
.sound-wave i:nth-child(3) { height: 64px; animation-delay: 160ms; background: #172033; }
.sound-wave i:nth-child(4) { height: 46px; animation-delay: 240ms; background: #2d6cf5; }
.sound-wave i:nth-child(5) { height: 30px; animation-delay: 320ms; }
@keyframes stage-shift {
  0% { transform: translateY(12px) scale(.98); opacity: .45; }
  60% { transform: translateY(0) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes wave {
  0%, 100% { transform: scaleY(.48); }
  50% { transform: scaleY(1); }
}
@keyframes sound-ripple {
  0% { opacity: .72; transform: scale(.72); }
  100% { opacity: 0; transform: scale(1.22); }
}
.playback-notice {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #eee1d6;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 12px 28px #17203310;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.playback-notice.notice-loading {
  border-color: #cfe0ff;
  background: #f4f8ff;
  color: #1c55bc;
}
.playback-notice.notice-playing {
  border-color: #ffd1bd;
  background: #fff7f1;
  color: #bd4b27;
}
.playback-notice.notice-ready {
  border-color: #d9ead5;
  background: #f5fbf2;
  color: #315f2d;
}
.playback-notice.notice-warning {
  border-color: #ffb99f;
  background: #fff1e8;
  color: #c74420;
}
.replay {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  background: #fff7f1;
  border: 1px solid #ffd8c6;
  color: #a9462a;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 15px;
}
.replay.attention {
  border-color: #ff6a3d;
  background: #fff1e8;
  color: #c74420;
  box-shadow: 0 8px 22px #ff6a3d24;
  animation: replay-pulse 1.1s ease-in-out infinite;
}
@keyframes replay-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.answer-area {
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 14px 20px 24px;
  padding-bottom: max(18px, calc(12px + env(safe-area-inset-bottom)));
  background: #fffdf9;
  border-top: 1px solid #f0e8df;
  box-shadow: 0 -10px 22px #17203308;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.answer-wrap { max-width: 480px; margin: auto; }
.replay-zone {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8df;
}
.record {
  width: 100%;
  height: 64px;
  border-radius: 17px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  font-size: 17px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.record.recording { background: #d94f3b; animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: .7; } }
.switch {
  color: var(--blue);
  font-size: 13px;
  text-align: center;
  margin: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #17203366;
}
.modal-card {
  position: relative;
  width: min(100%, 430px);
  max-height: min(78vh, 620px);
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid #eee1d6;
  border-radius: 18px;
  box-shadow: 0 24px 80px #17203333;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #f0e8df;
}
.modal-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.modal-head b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}
.modal-head button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  background: #172033;
  color: white;
  font-size: 21px;
  line-height: 1;
}
.changelog-list,
.history-content {
  max-height: calc(min(78vh, 620px) - 70px);
  overflow: auto;
  padding: 4px 18px 18px;
}
.changelog-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0e8df;
}
.changelog-item:last-child { border-bottom: 0; }
.changelog-item b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.changelog-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feedback { text-align: center; padding-top: 14vh; }
.result-icon { font-size: 70px; }
.feedback h1 { font-size: 34px; margin: 15px; }
.feedback p { color: var(--muted); }
.next { margin-top: 30px; }
.summary-page h1 {
  margin: 12px 0 16px;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}
.result-stage {
  overflow: hidden;
  background: #fff;
  border: 1px solid #efe6db;
  border-radius: 24px;
  box-shadow: 0 18px 42px #30221112;
}
.result-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  background: #f3eee8;
}
.result-art-bg {
  position: absolute;
  inset: -34px;
  width: calc(100% + 68px);
  height: calc(100% + 68px);
  object-fit: cover;
  filter: blur(24px) saturate(1.18);
  opacity: .68;
  transform: scale(1.05);
}
.result-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff3 0%, #17203312 58%, #17203333 100%);
}
.result-art-main {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(78%, 292px);
  height: min(82%, 306px);
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  border: 8px solid #fffdf9;
  border-radius: 20px;
  box-shadow: 0 18px 38px #17203333;
}
.result-copy {
  padding: 18px 20px 22px;
  text-align: center;
}
.score {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--orange);
  line-height: 1;
}
.score small { font-size: 20px; letter-spacing: 0; }
.result-name {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.result-quote {
  margin: 14px auto 0;
  max-width: 360px;
  min-height: 58px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.42;
}
.result-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.answer-review,
.ranking {
  margin-top: 18px;
}
.answer-review > b,
.ranking > b {
  display: block;
  font-size: 15px;
}
.rank-note {
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.review-row {
  display: grid;
  grid-template-columns: 58px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f1eee9;
}
.review-row:last-child,
.rank-row:last-child {
  border-bottom: 0;
}
.review-row b {
  font-size: 13px;
}
.review-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}
.review-row i {
  justify-self: end;
  min-width: 44px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}
.review-row.correct i {
  background: #e8f7ef;
  color: #137a42;
}
.review-row.wrong i {
  background: #fff0eb;
  color: #c94c2b;
}
.empty-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.history-progress {
  margin: 14px 0 16px;
  padding: 16px;
  border: 1px solid #efe6db;
  border-radius: 16px;
  background: #fff;
}
.history-progress strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--orange);
}
.history-progress span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.history-meter {
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  background: #f0e8df;
  overflow: hidden;
}
.history-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--orange);
}
.history-section-title {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 15px;
}
.history-round {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f1eee9;
}
.history-round:last-child { border-bottom: 0; }
.history-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3eee8;
  box-shadow: 0 8px 20px #17203314;
}
.history-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.history-round time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.history-round b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}
.history-accuracy {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}
.rank-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f1eee9;
  align-items: center;
}
.rank-row.current {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #ffd6c4;
  border-radius: 14px;
  background: #fff7f1;
  box-shadow: 0 10px 24px #ff6a3d16;
}
.rank-row b { font-size: 14px; }
.rank-row span { color: var(--muted); font-size: 13px; }
.current-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 1px;
}
.finish { text-align: center; padding-top: 26px; }
.finish h1 { font-size: 36px; letter-spacing: 0; }
.finish .result-stage { margin-top: 18px; }
.finish #finishRank {
  display: block;
  margin-top: 14px;
  font-size: 15px;
}
.summary-page .primary { margin-top: 16px; }

@media (max-width: 520px) {
  .app {
    width: 100%;
  }
  .howto-image {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
  .sound-stage {
    min-height: clamp(190px, 31svh, 340px);
    max-height: 360px;
  }
  .quiz-focus {
    min-height: 0;
  }
}

@media (max-width: 380px) {
  .app { --page-pad-x: 16px; }
  .version-chip { top: 14px; left: 14px; }
  .home-team-link { top: 14px; right: 14px; }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: 32px; }
  .howto-image {
    width: 100vw;
    margin: 12px calc(50% - 50vw);
    border-radius: 0;
  }
  #welcome .card { padding: 14px; }
  .input,
  .primary { padding: 12px; }
  .sound-stage {
    min-height: clamp(170px, 29svh, 310px);
    max-height: 330px;
  }
  .summary-page h1 { font-size: 32px; }
  .result-art { min-height: 226px; }
  .result-art-main {
    width: min(80%, 248px);
    height: min(82%, 260px);
    border-width: 6px;
  }
  .score { font-size: 58px; }
  .result-quote {
    min-height: 52px;
    font-size: 18px;
  }
}

@media (max-width: 520px) and (max-height: 760px) {
  .app {
    --page-pad-top: 16px;
    --page-pad-bottom: 24px;
  }
  .version-chip {
    top: 12px;
    left: 12px;
    gap: 6px;
    font-size: 11px;
  }
  .home-team-link {
    top: 12px;
    right: 12px;
    height: 26px;
    font-size: 11px;
  }
  .changelog-icon {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
  .hero {
    padding-top: 42px;
  }
  .brand-title {
    margin-bottom: 8px;
  }
  .hero p {
    font-size: 13px;
    line-height: 1.36;
  }
  .howto-image {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #welcome .card {
    padding: 14px;
  }
  #welcome .card label {
    margin-bottom: 5px;
  }
  .input {
    padding: 11px 12px;
  }
  .primary {
    margin-top: 8px;
    padding: 12px;
  }
  .share {
    margin-top: 6px;
    padding: 10px 12px;
  }
  .steps {
    margin: 18px 0 12px;
  }
  .quiz-focus {
    min-height: 0;
    gap: 11px;
    padding: 10px 0 16px;
  }
  .sound-stage {
    min-height: clamp(160px, 27svh, 300px);
    max-height: 315px;
    gap: 9px;
  }
  .sound-wave {
    height: 58px;
  }
  .replay {
    padding: 10px 20px;
  }
  .answer-area {
    padding: 12px 16px 20px;
    padding-bottom: max(15px, calc(9px + env(safe-area-inset-bottom)));
  }
  .replay-zone {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .record {
    height: 56px;
  }
  .switch {
    margin: 8px;
  }
}

@media (max-width: 520px) and (max-height: 660px) {
  .app {
    --page-pad-top: 12px;
    --page-pad-bottom: 18px;
  }
  .hero {
    padding-top: 38px;
  }
  .hero p {
    font-size: 12px;
    line-height: 1.32;
  }
  .howto-image {
    margin-top: 8px;
    margin-bottom: 8px;
  }
  #welcome .card {
    padding: 12px;
  }
  .input {
    padding: 10px 11px;
    border-radius: 10px;
  }
  .primary {
    padding: 11px;
    border-radius: 10px;
  }
  .sound-stage {
    min-height: clamp(140px, 24svh, 250px);
    max-height: 270px;
  }
  .sound-badge {
    min-width: 108px;
    font-size: 19px;
    padding: 9px 15px;
  }
  .sound-wave {
    width: 112px;
    height: 50px;
  }
  .sound-wave i {
    width: 10px;
    height: 22px;
  }
  .sound-wave i:nth-child(2) { height: 38px; }
  .sound-wave i:nth-child(3) { height: 50px; }
  .sound-wave i:nth-child(4) { height: 36px; }
  .sound-wave i:nth-child(5) { height: 24px; }
  .sound-stage span {
    font-size: 13px;
  }
  .quiz-focus {
    min-height: 0;
    gap: 9px;
    padding: 6px 0 10px;
  }
  .playback-notice {
    min-height: 52px;
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 16px;
  }
  .replay {
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }
  .replay-zone {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .record {
    height: 52px;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 95px;
  transform: translateX(-50%);
  background: #172033;
  color: white;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  z-index: 7;
}

.team-page {
  padding-top: 32px;
}
.team-panel {
  margin-top: 38px;
}
.team-panel h1 {
  margin: 10px 0 22px;
  font-size: 42px;
  line-height: 1.08;
}
.team-list {
  display: grid;
  gap: 12px;
}
.team-list div {
  background: #fff;
  border: 1px solid #efe6db;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px #3022110c;
}
.team-list span,
.team-list small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.team-list b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
}
.team-list small {
  margin-top: 7px;
  line-height: 1.45;
}
.model-panel {
  margin-top: 26px;
  padding-bottom: 28px;
}
.model-list {
  display: grid;
  gap: 10px;
}
.model-row {
  background: #fff;
  border: 1px solid #e7edf7;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px #1720330a;
}
.model-row span,
.model-row small,
.model-row strong {
  display: block;
}
.model-row span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}
.model-row b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}
.model-row strong {
  margin-top: 4px;
  color: #2d6cf5;
  font-size: 13px;
  line-height: 1.35;
}
.model-row small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
