@import url("./assets/fonts/student-login-fonts.css");
@import url("./student/profile/assets/vendor/fonts/google-fonts.css");
@import url("./assets/fonts/brand-fonts.css");
@import url("./shared/styles/avatar-frame.css");

:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --ink: #13243b;
  --muted: #5b6678;
  --line: #d8dee8;
  --accent: #0f766e;
  --accent-2: #115e59;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #d8f7ec 0, transparent 40%),
    radial-gradient(circle at 100% 0, #e5eefc 0, transparent 35%),
    var(--bg);
}

.container {
  width: min(1100px, 94vw);
  margin: 28px auto 56px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(13, 35, 75, 0.05);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.row,
.col {
  display: flex;
  gap: 8px;
}

.row {
  align-items: center;
}

.col {
  flex-direction: column;
}

input,
select,
button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
}

input,
select {
  width: 100%;
  background: #fff;
}

button {
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

@media (hover: hover) {
  button:hover {
    background: var(--accent-2);
  }
}

.auth .row label {
  width: 90px;
  color: var(--muted);
}

.hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.portal-item {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

@media (hover: hover) {
  .portal-item:hover {
    background: #eef2f7;
  }
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li {
  margin: 8px 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.module-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.module-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  background: #dff6f3;
  border: 1px solid #b4e7e1;
  border-radius: 999px;
  padding: 3px 10px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  background: #f8fafc;
}

#output {
  margin: 0;
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  background: #0d1b2a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
}

.game-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.game-shell {
  padding: 18px;
}

.game-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.game-toolbar-main {
  flex: 1 1 320px;
}

.field-label,
.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.game-toolbar-row {
  align-items: stretch;
}

.game-toolbar-row input {
  flex: 1;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  min-width: min(100%, 360px);
}

.start-screen-page {
  min-height: 100vh;
  background: #0d0d0d;
}

.start-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #f6efe4;
}

.start-screen-video,
.start-screen-overlay {
  position: absolute;
  inset: 0;
}

.start-screen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.start-screen-overlay {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.34) 0%, rgba(10, 10, 10, 0.18) 26%, rgba(10, 10, 10, 0.55) 100%),
    radial-gradient(circle at center, rgba(255, 244, 214, 0.04) 0%, rgba(0, 0, 0, 0) 40%);
}

.start-screen-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 28px;
}

.start-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.start-brand,
.start-guest-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.start-brand {
  background: rgba(16, 14, 14, 0.46);
  border: 1px solid rgba(255, 238, 201, 0.26);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.start-guest-chip {
  background: rgba(125, 19, 19, 0.4);
  border: 1px solid rgba(255, 210, 168, 0.38);
  font-size: 13px;
  color: #ffe3be;
}

.start-copy {
  max-width: 520px;
  margin-top: auto;
  padding-top: 80px;
}

.start-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f2d2a0;
}

.start-copy h1 {
  margin: 0;
  font-size: clamp(48px, 11vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.06em;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(255, 184, 96, 0.18);
}

.start-subtitle {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 243, 222, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.start-actions {
  margin-top: 26px;
}

.start-primary-btn,
.start-glass-btn,
.start-login-panel button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 241, 219, 0.96);
  background: rgba(255, 244, 226, 0.14);
  border: 1px solid rgba(255, 231, 198, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 250, 239, 0.24);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.start-primary-btn {
  width: min(100%, 420px);
  min-height: 62px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (hover: hover) {
  .start-primary-btn:hover,
  .start-glass-btn:hover,
  .start-login-panel button:hover {
    transform: translateY(-1px);
    background: rgba(255, 245, 229, 0.2);
    border-color: rgba(255, 234, 205, 0.4);
    color: #fff8ee;
  }
}

.start-secondary-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.start-glass-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.start-footer-note {
  padding-top: 22px;
}

.start-footer-note span {
  display: inline-block;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.38);
  border: 1px solid rgba(255, 237, 207, 0.18);
  color: rgba(255, 242, 222, 0.88);
  font-size: 13px;
  line-height: 1.6;
}

.start-login-panel {
  width: min(100%, 460px);
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(13, 12, 12, 0.42);
  border: 1px solid rgba(255, 237, 207, 0.18);
  backdrop-filter: blur(10px);
}

.start-login-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff2db;
}

.start-login-panel input,
.start-login-panel button {
  min-height: 46px;
}

.start-login-panel input {
  background: rgba(255, 248, 240, 0.92);
  border-color: rgba(255, 221, 181, 0.35);
}

.start-login-panel button {
  width: 100%;
  border-radius: 14px;
  font-weight: 800;
}

.start-login-panel .hint {
  color: rgba(255, 241, 218, 0.82);
}

.start-login-panel #output {
  min-height: 120px;
  max-height: 220px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 237, 207, 0.12);
}

.stat-pill {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid #cfe2dd;
  background: linear-gradient(180deg, #f7fffd 0%, #eefaf7 100%);
}

.stat-pill span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-pill strong {
  font-size: 24px;
}

.game-stage {
  padding: 18px;
  background:
    radial-gradient(circle at right top, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfffe 100%);
}

.game-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.game-stage-head h2 {
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 6px;
}

.game-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.ghost-btn {
  background: #edf8f6;
  color: var(--accent-2);
  border: 1px solid #cce7e3;
}

@media (hover: hover) {
  .ghost-btn:hover {
    background: #dff3ef;
  }
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  transition: width 180ms ease;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-btn {
  text-align: left;
  padding: 16px 16px 14px;
  min-height: 96px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

@media (hover: hover) {
  .choice-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
    border-color: #9cd6cf;
    background: #ffffff;
  }
}

.choice-btn:disabled {
  cursor: default;
  opacity: 1;
}

.choice-btn .choice-index {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.choice-btn .choice-text {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}

.choice-btn.is-correct {
  background: #e9fbf4;
  border-color: #59c590;
}

.choice-btn.is-wrong {
  background: #fff1f0;
  border-color: #ef7f72;
}

.choice-btn.is-dimmed {
  opacity: 0.72;
}

.game-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #e3e9f0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-feedback.is-correct {
  background: #edfdf6;
  border-color: #a7e5bf;
  color: #13653f;
}

.game-feedback.is-wrong {
  background: #fff4f2;
  border-color: #f0b3a8;
  color: #a63f31;
}

.game-actions {
  margin-top: 16px;
}

.game-actions button:disabled {
  background: #a9b3c0;
}

.game-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 14px;
  margin-top: 14px;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.review-item strong,
.review-item span {
  display: block;
}

.review-item strong {
  margin-bottom: 4px;
}

.review-item span {
  color: var(--muted);
  font-size: 13px;
}

.review-item.is-correct {
  border-color: #9eddba;
  background: #f4fef8;
}

.review-item.is-wrong {
  border-color: #f0c0b8;
  background: #fff8f7;
}

.arcade-home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(255, 203, 112, 0.22), transparent 26%),
    radial-gradient(circle at 100% 10%, rgba(15, 118, 110, 0.16), transparent 20%),
    linear-gradient(180deg, #f6efe2 0%, #fff8ef 48%, #f2f8ff 100%);
}

.arcade-home-shell,
.student-hub-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.arcade-home-hero,
.student-hub-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(19, 36, 59, 0.08);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 240, 213, 0.92), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 247, 231, 0.94) 42%, rgba(243, 250, 255, 0.94) 100%);
  box-shadow: 0 24px 60px rgba(73, 52, 20, 0.12);
}

.arcade-home-nav,
.arcade-home-grid,
.arcade-home-stat-row,
.arcade-home-actions,
.arcade-home-links,
.arcade-home-panels,
.student-hub-topbar,
.student-hub-grid,
.student-hub-actions,
.student-hub-links,
.student-hub-panel-grid {
  display: flex;
  gap: 12px;
}

.arcade-home-nav,
.student-hub-topbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.arcade-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.arcade-home-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.arcade-home-brand strong,
.arcade-home-brand span {
  display: block;
}

.arcade-home-brand span,
.arcade-home-links a,
.student-hub-links a,
.student-hub-copy p,
.student-hub-sidecard p {
  color: #607083;
}

.arcade-home-links,
.student-hub-links {
  align-items: center;
  flex-wrap: wrap;
}

.arcade-home-links a,
.student-hub-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.arcade-home-grid,
.student-hub-grid,
.arcade-home-panels,
.student-hub-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.arcade-home-copy h1,
.student-hub-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.arcade-home-kicker,
.student-hub-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #a75c15;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.arcade-home-subtitle,
.student-hub-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
}

.arcade-home-actions,
.student-hub-actions {
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.arcade-home-primary,
.arcade-home-secondary,
.student-hub-primary,
.student-hub-secondary,
.student-hub-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
}

.arcade-home-primary,
.student-hub-primary {
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.arcade-home-secondary,
.student-hub-secondary,
.student-hub-back {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid rgba(19, 36, 59, 0.1);
}

.arcade-home-stat-row {
  margin-top: 30px;
  flex-wrap: wrap;
}

.arcade-home-stat,
.student-hub-sidecard,
.arcade-home-preview,
.arcade-home-panel,
.student-hub-panel {
  border: 1px solid rgba(19, 36, 59, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(19, 36, 59, 0.08);
}

.arcade-home-stat {
  min-width: 158px;
  padding: 16px 18px;
  border-radius: 20px;
}

.arcade-home-stat span,
.arcade-preview-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #68768a;
}

.arcade-home-stat strong {
  font-size: 28px;
}

.arcade-home-preview,
.arcade-home-panel,
.student-hub-sidecard,
.student-hub-panel {
  padding: 20px;
  border-radius: 26px;
}

.arcade-home-preview h2,
.arcade-home-panel h2,
.student-hub-sidecard h2,
.student-hub-panel h2 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.arcade-home-preview p,
.arcade-home-panel p,
.student-hub-panel p,
.student-hub-sidecard p {
  margin: 0;
  line-height: 1.7;
}

.arcade-preview-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.arcade-preview-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(19, 36, 59, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.arcade-preview-card strong,
.arcade-preview-card p {
  display: block;
}

.arcade-preview-card strong {
  margin-bottom: 6px;
}

.arcade-preview-card.is-accent {
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
}

.arcade-preview-card.is-accent span,
.arcade-preview-card.is-accent strong,
.arcade-preview-card.is-accent p {
  color: #fff;
}

.arcade-home-panels,
.student-hub-panel-grid {
  margin-top: 18px;
}

.student-hub-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 199, 110, 0.16), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(22, 163, 74, 0.12), transparent 22%),
    linear-gradient(180deg, #f5efe4 0%, #fffaf4 46%, #f4faff 100%);
}

.student-hub-steps {
  margin: 16px 0;
  padding-left: 22px;
}

.student-hub-steps li {
  margin: 10px 0;
  font-weight: 700;
}

.student-lobby-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.14), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(217, 119, 6, 0.14), transparent 22%),
    linear-gradient(180deg, #f6f1e8 0%, #fffaf2 48%, #eef7fb 100%);
}

.student-lobby-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 24px 0 60px;
}

.student-lobby-topbar,
.student-lobby-hero,
.student-lobby-section-head,
.student-lobby-range-grid,
.student-lobby-game-card,
.student-lobby-current,
.student-lobby-range-actions {
  display: flex;
  gap: 12px;
}

.student-lobby-topbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.student-lobby-hero {
  align-items: stretch;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid rgba(19, 36, 59, 0.09);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 236, 0.92) 44%, rgba(237, 248, 252, 0.94) 100%);
  box-shadow: 0 22px 46px rgba(47, 61, 82, 0.1);
}

.student-lobby-hero-main {
  min-width: 0;
}

.student-lobby-hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.student-lobby-hero p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #5f6f80;
  font-size: 17px;
  line-height: 1.8;
}

.student-lobby-current {
  width: min(360px, 100%);
  flex: 0 0 min(360px, 34%);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(19, 36, 59, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.student-lobby-current span,
.student-lobby-eyebrow,
.student-lobby-field-label,
.student-lobby-context,
.student-lobby-game-copy em {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.student-lobby-current strong {
  font-size: 22px;
  line-height: 1.3;
}

.student-lobby-link-btn,
.student-lobby-icon-btn,
.student-lobby-start,
.student-lobby-segment button,
.student-lobby-level-grid button,
.student-lobby-range-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.student-lobby-link-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #13243b;
  color: #fff;
}

.student-lobby-settings,
.student-lobby-range,
.student-lobby-games {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(19, 36, 59, 0.09);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(47, 61, 82, 0.08);
}

.student-lobby-settings[hidden] {
  display: none;
}

.student-lobby-section-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.student-lobby-section-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.12;
}

.student-lobby-eyebrow {
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.student-lobby-icon-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.08);
  color: #13243b;
}

.student-lobby-setting-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.student-lobby-setting-block {
  min-width: 0;
}

.student-lobby-field-label {
  display: block;
  margin-bottom: 8px;
}

.student-lobby-segment,
.student-lobby-level-grid {
  display: grid;
  gap: 10px;
}

.student-lobby-segment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-lobby-segment button,
.student-lobby-level-grid button,
.student-lobby-range-actions button {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(19, 36, 59, 0.12);
  background: #f8fafc;
  color: #13243b;
  font-weight: 800;
}

.student-lobby-segment button.is-active,
.student-lobby-level-grid button.is-active {
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
  color: #fff;
  border-color: transparent;
}

.student-lobby-level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-lobby-level-grid button.is-locked,
.student-lobby-game-card.is-locked {
  opacity: 0.74;
}

.student-lobby-level-grid button.is-locked {
  color: #8a6370;
  background: #fff1f2;
}

.student-lobby-range-grid {
  align-items: flex-end;
  flex-wrap: wrap;
}

.student-lobby-range-grid label {
  flex: 1 1 180px;
}

.student-lobby-range-grid select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(19, 36, 59, 0.14);
  background: #fff;
  color: #13243b;
  font-weight: 800;
}

.student-lobby-range-actions {
  flex: 2 1 380px;
  align-items: center;
  flex-wrap: wrap;
}

.student-lobby-range-actions button {
  flex: 1 1 120px;
  background: #f2f7f7;
}

.student-lobby-context {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef7f7;
  color: #0f766e;
}

.student-lobby-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.student-lobby-game-card {
  position: relative;
  min-height: 186px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(19, 36, 59, 0.1);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 61, 82, 0.08);
}

.student-lobby-game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  color: #fff;
}

.student-lobby-game-icon.is-cyan {
  background: linear-gradient(135deg, #0891b2, #0f766e);
}

.student-lobby-game-icon.is-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.student-lobby-game-icon.is-green {
  background: linear-gradient(135deg, #16a34a, #0f766e);
}

.student-lobby-game-icon.is-rose {
  background: linear-gradient(135deg, #e11d48, #be123c);
}

.student-lobby-game-icon.is-indigo {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.student-lobby-game-copy {
  min-width: 0;
  padding-right: 4px;
}

.student-lobby-game-copy h3 {
  margin: 6px 0 6px;
  font-size: 21px;
  line-height: 1.2;
}

.student-lobby-game-copy p {
  margin: 0 0 12px;
  color: #526274;
  line-height: 1.55;
}

.student-lobby-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 900;
}

.student-lobby-status.is-open {
  background: #dcfce7;
  color: #047857;
}

.student-lobby-start {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #13243b;
  color: #fff;
  font-weight: 900;
}

.student-lobby-game-card.is-locked .student-lobby-start {
  background: #e2e8f0;
  color: #475569;
}

@media (hover: hover) {
  .student-lobby-link-btn:hover,
  .student-lobby-start:hover {
    background: #0f766e;
  }

  .student-lobby-segment button:hover,
  .student-lobby-level-grid button:hover,
  .student-lobby-range-actions button:hover {
    background: #e8f3f3;
    color: #13243b;
  }

  .student-lobby-segment button.is-active:hover,
  .student-lobby-level-grid button.is-active:hover {
    background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
    color: #fff;
  }

  .student-lobby-game-card.is-locked .student-lobby-start:hover {
    background: #cbd5e1;
    color: #334155;
  }
}

.student-lobby-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(19, 36, 59, 0.95);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.student-lobby-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.game-entry-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 199, 110, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(22, 163, 74, 0.14), transparent 22%),
    linear-gradient(180deg, #f5efe4 0%, #fffaf4 46%, #f7fbff 100%);
}

.game-entry-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.game-entry-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(94, 77, 36, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 232, 186, 0.84), transparent 30%),
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(135deg, #fff6e9 0%, #fff9ef 45%, #f4fbff 100%);
  box-shadow: 0 24px 60px rgba(73, 52, 20, 0.12);
}

.game-entry-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.38;
  pointer-events: none;
}

.game-entry-glow-left {
  left: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(255, 198, 112, 0.68) 0%, rgba(255, 198, 112, 0) 70%);
}

.game-entry-glow-right {
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, rgba(14, 165, 233, 0) 70%);
}

.game-entry-nav,
.game-entry-grid,
.game-entry-nav-links,
.game-entry-actions,
.game-entry-stats,
.entry-lesson-pills,
.entry-mode-strip,
.entry-info-grid,
.game-entry-panel-head {
  display: flex;
  gap: 12px;
}

.game-entry-nav,
.game-entry-grid,
.game-entry-panel-head {
  justify-content: space-between;
}

.game-entry-nav {
  align-items: center;
  margin-bottom: 32px;
}

.game-entry-back,
.game-entry-nav-links a,
.game-entry-secondary {
  text-decoration: none;
  color: var(--ink);
}

.game-entry-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 36, 59, 0.09);
  font-weight: 700;
}

.game-entry-nav-links {
  align-items: center;
  flex-wrap: wrap;
}

.game-entry-nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #42526b;
}

.game-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.78fr);
  gap: 20px;
  align-items: stretch;
}

.game-entry-copy h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.game-entry-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #a75c15;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-entry-subtitle {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: #5e6776;
}

.game-entry-actions {
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.game-entry-tag-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.game-entry-tag-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 36, 59, 0.08);
  color: #516072;
  font-size: 13px;
  font-weight: 700;
}

.game-entry-primary,
.game-entry-secondary,
.lesson-pill {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
}

.game-entry-primary {
  min-width: 168px;
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.game-entry-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(19, 36, 59, 0.1);
  font-weight: 700;
}

.game-entry-stats {
  margin-top: 30px;
  flex-wrap: wrap;
}

.entry-stat-card,
.entry-mode-card,
.entry-info-card,
.game-entry-panel {
  border: 1px solid rgba(19, 36, 59, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.entry-stat-card {
  min-width: 158px;
  padding: 16px 18px;
  border-radius: 20px;
}

.entry-stat-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #68768a;
}

.entry-stat-card strong {
  font-size: 28px;
}

.game-entry-panel {
  padding: 20px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(19, 36, 59, 0.08);
}

.game-entry-panel-head {
  align-items: center;
}

.game-entry-panel h2 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.game-entry-panel p {
  margin: 0;
  color: #5f6876;
  line-height: 1.7;
}

.entry-lesson-picker {
  margin-top: 20px;
}

.entry-lesson-pills {
  margin-top: 12px;
  flex-wrap: wrap;
}

.lesson-pill {
  min-height: 42px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(19, 36, 59, 0.1);
}

.lesson-pill.is-active {
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.entry-panel-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fcff 0%, #fefaf3 100%);
  border: 1px solid rgba(19, 36, 59, 0.08);
}

.entry-panel-note p {
  margin: 0 0 10px;
  font-weight: 700;
  color: #1e354f;
}

.entry-panel-note span {
  display: block;
  color: #6a7483;
  font-size: 13px;
  line-height: 1.6;
}

.entry-mission-brief {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(19, 36, 59, 0.04);
  border: 1px solid rgba(19, 36, 59, 0.08);
}

.entry-mission-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b5a13;
}

.entry-mission-brief .plain-list {
  margin: 0;
}

.entry-mode-strip,
.entry-info-grid {
  margin-top: 18px;
}

.entry-mode-strip,
.entry-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-mode-card,
.entry-info-card {
  padding: 20px;
  border-radius: 24px;
}

.entry-mode-card.is-featured {
  background: linear-gradient(135deg, #13243b 0%, #0f766e 100%);
  color: #fff;
}

.entry-mode-card h2,
.entry-info-card h2 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.entry-mode-card p,
.entry-info-card p,
.entry-info-card li {
  margin: 0;
  color: #647184;
  line-height: 1.7;
}

.entry-mode-card.is-featured p {
  color: rgba(255, 255, 255, 0.84);
}

.entry-mode-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(19, 36, 59, 0.08);
  color: #8b5a13;
  font-weight: 800;
}

.entry-mode-card.is-featured .entry-mode-index {
  background: rgba(255, 255, 255, 0.14);
  color: #fff1c9;
}

.entry-battle-stage {
  margin-top: 18px;
  padding: 24px;
  border-radius: 28px;
}

@media (max-width: 760px) {
  .start-screen-content {
    padding: 18px 14px 22px;
  }

  .arcade-home-shell,
  .student-hub-shell,
  .student-lobby-shell {
    width: min(94vw, 100%);
    padding-top: 16px;
  }

  .start-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .start-primary-btn {
    width: 100%;
    font-size: 22px;
  }

  .start-login-panel {
    width: 100%;
  }

  .game-entry-shell {
    width: min(94vw, 100%);
    padding-top: 16px;
  }

  .game-entry-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .arcade-home-nav,
  .arcade-home-actions,
  .student-hub-topbar,
  .student-hub-actions,
  .student-lobby-topbar,
  .student-lobby-hero,
  .student-lobby-section-head,
  .game-entry-nav,
  .game-entry-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .arcade-home-links,
  .student-hub-links,
  .game-entry-nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .student-lobby-hero,
  .student-lobby-settings,
  .student-lobby-range,
  .student-lobby-games {
    padding: 18px;
    border-radius: 22px;
  }

  .student-lobby-current {
    width: 100%;
    flex-basis: auto;
  }

  .student-lobby-setting-grid,
  .student-lobby-segment,
  .student-lobby-level-grid {
    grid-template-columns: 1fr;
  }

  .student-lobby-game-card {
    min-height: 206px;
    padding-bottom: 70px;
  }

  .arcade-home-grid,
  .arcade-home-panels,
  .student-hub-grid,
  .student-hub-panel-grid,
  .game-entry-grid,
  .entry-mode-strip,
  .entry-info-grid {
    grid-template-columns: 1fr;
  }

  .entry-stat-card {
    min-width: 0;
    flex: 1 1 100%;
  }

  .game-hero,
  .game-stage-head {
    flex-direction: column;
    align-items: stretch;
  }

  .game-stats,
  .choice-grid,
  .game-summary-grid {
    grid-template-columns: 1fr;
  }
}

.listen-pick-page {
  min-height: 100vh;
  background: #fcf9f3;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: #1c1c18;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.listen-pick-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(252, 249, 243, 0.25), rgba(252, 249, 243, 0.92)),
    radial-gradient(circle at 50% 100%, rgba(220, 218, 212, 0.4), transparent 70%),
    url("./assets/game/difficulty-bg.webp")
      center/cover no-repeat;
}

.listen-pick-page[data-lpw-view="challenge"] .listen-pick-backdrop {
  background:
    radial-gradient(circle at center, rgba(28, 28, 24, 0.4) 0%, rgba(28, 28, 24, 0.85) 100%),
    url("./assets/game/challenge-bg.webp")
      center/cover no-repeat;
}

.ttl-game-topbar,
.listen-pick-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.84)),
    rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  box-shadow:
    inset 0 -1px 0 rgba(120, 38, 22, 0.08),
    0 14px 34px rgba(47, 34, 29, 0.1);
}

.ttl-game-topbar-left,
.listen-pick-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ttl-game-brand,
.listen-pick-brand {
  font-family: "TTL Brand Condensed", "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-block;
  line-height: 1.18;
  padding-block: 1px 2px;
  color: #980900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  font-synthesis: none;
}

.ttl-game-menu-wrap,
.listen-pick-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.ttl-game-nav-shell,
.listen-pick-nav-shell {
  position: relative;
}

.ttl-game-nav-toggle,
.listen-pick-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ttl-game-menu-btn,
.listen-pick-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(122, 36, 20, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 239, 229, 0.78)),
    rgba(255, 251, 246, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(52, 43, 37, 0.1);
  color: #647084;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ttl-game-menu-btn .material-symbols-outlined,
.listen-pick-menu-btn .material-symbols-outlined {
  font-size: 22px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

@media (hover: hover) {
  .ttl-game-menu-btn:hover,
  .listen-pick-menu-btn:hover {
    color: #980900;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 230, 0.9)),
      rgba(255, 251, 246, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 12px 28px rgba(152, 9, 0, 0.12);
  }
}

.ttl-game-menu-overlay,
.listen-pick-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 28, 24, 0.28);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttl-game-nav-toggle:checked ~ .ttl-game-menu-overlay,
.listen-pick-nav-toggle:checked ~ .listen-pick-menu-overlay,
.ttl-game-nav-toggle:checked ~ .ttl-game-menu-overlay,
.listen-pick-nav-toggle:checked ~ .ttl-game-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ttl-game-menu-backdrop,
.listen-pick-menu-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
}

.ttl-game-menu-sheet,
.listen-pick-menu-sheet {
  position: relative;
  width: min(100%, 392px);
  padding: 28px 24px 24px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(252, 249, 243, 0.96);
  box-shadow: 0 24px 52px rgba(28, 28, 24, 0.18);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ttl-game-nav-toggle:checked ~ .ttl-game-menu-overlay .ttl-game-menu-sheet,
.listen-pick-nav-toggle:checked ~ .listen-pick-menu-overlay .listen-pick-menu-sheet,
.ttl-game-nav-toggle:checked ~ .ttl-game-menu-overlay .listen-pick-menu-sheet,
.listen-pick-nav-toggle:checked ~ .ttl-game-menu-overlay .ttl-game-menu-sheet {
  transform: scale(1);
}

.ttl-game-menu-close,
.listen-pick-menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: #7f7d78;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  z-index: 2;
}

.ttl-game-menu-close .material-symbols-outlined,
.listen-pick-menu-close .material-symbols-outlined {
  display: block;
  font-size: 18px;
  line-height: 1;
  width: 18px;
  height: 18px;
  text-align: center;
}

.ttl-game-menu-seal,
.listen-pick-menu-seal {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.ttl-game-menu-seal-glow,
.listen-pick-menu-seal-glow {
  position: absolute;
  inset: 6px 50% auto auto;
  width: 72px;
  height: 72px;
  transform: translateX(50%);
  border-radius: 999px;
  background: rgba(152, 9, 0, 0.16);
  filter: blur(18px);
}

.ttl-game-menu-seal-avatar.avatar-container,
.listen-pick-menu-seal-avatar.avatar-container {
  --avatar-frame-size: 76px;
  --avatar-main-border: 1px solid rgba(152, 9, 0, 0.46);
  --avatar-main-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.78),
    0 16px 34px rgba(152, 9, 0, 0.18);
  margin: 0 auto;
}

.ttl-game-menu-seal-avatar.avatar-container .avatar-main,
.listen-pick-menu-seal-avatar.avatar-container .avatar-main {
  background: rgba(255, 255, 255, 0.92);
}

.ttl-game-menu-grid,
.listen-pick-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ttl-game-menu-tile,
.listen-pick-menu-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(28, 28, 24, 0.08);
  color: #1c1c18;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
  flex-wrap: nowrap;
  overflow: hidden;
}

@media (hover: hover) {
  .ttl-game-menu-tile:hover,
  .listen-pick-menu-tile:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14)),
      rgba(255, 255, 255, 0.12);
    border-color: rgba(152, 9, 0, 0.12);
  }
}

.ttl-game-menu-tile:active,
.listen-pick-menu-tile:active {
  transform: scale(0.98);
}

.ttl-game-menu-tile-icon,
.listen-pick-menu-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(240, 238, 232, 0.82);
  color: #6f6b66;
  flex: 0 0 auto;
}

@media (hover: hover) {
  .ttl-game-menu-tile:hover .ttl-game-menu-tile-icon,
  .listen-pick-menu-tile:hover .listen-pick-menu-tile-icon {
    background: #980900;
    color: #fff;
  }
}

.ttl-game-menu-tile-icon .material-symbols-outlined,
.listen-pick-menu-tile-icon .material-symbols-outlined {
  font-size: 22px;
}

.ttl-game-menu-tile-label,
.listen-pick-menu-tile-label {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  color: #1c1c18;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.ttl-game-topbar-actions,
.listen-pick-appbar-actions {
  --ttl-nav-action-size: 36px;
  --ttl-nav-lang-size: 28px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  transform: translateX(-10px);
}

.ttl-game-icon-btn,
.listen-pick-icon-btn {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: #647084;
  font-size: 13px;
  font-weight: 800;
}

.ttl-game-home-text,
.listen-pick-home-text {
  display: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

body[data-lpw-lang="cn"] .ttl-game-home-text[data-lang="cn"],
body[data-lpw-lang="cn"] .listen-pick-home-text[data-lang="cn"] {
  display: inline;
}

body[data-lpw-lang="vi"] .ttl-game-home-text[data-lang="vi"],
body[data-lpw-lang="vi"] .listen-pick-home-text[data-lang="vi"] {
  display: inline;
}

body:not([data-lpw-lang]) .ttl-game-home-text[data-lang="cn"],
body:not([data-lpw-lang]) .listen-pick-home-text[data-lang="cn"] {
  display: inline;
}

.ttl-game-lang-toggle,
.listen-pick-lang-toggle {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: var(--ttl-nav-action-size);
  padding: 0 3px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #980900;
  box-shadow: inset 0 0 0 1px rgba(152, 9, 0, 0.03);
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.ttl-game-back-toggle {
  width: auto;
  min-width: 48px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(152, 9, 0, 0.12);
  background: rgba(255, 251, 246, 0.78);
  color: #7b1c14;
  box-shadow: 0 8px 18px rgba(83, 50, 40, 0.08);
}

.ttl-game-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--ttl-nav-lang-size);
  width: var(--ttl-nav-lang-size);
  height: var(--ttl-nav-action-size);
}

.ttl-game-back-toggle,
.listen-pick-back-toggle {
  min-width: 64px;
  max-width: 92px;
}

.ttl-game-lang-pill,
.listen-pick-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Sans 3", "Manrope", sans-serif;
  min-width: 24px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ttl-game-lang-pill b[data-role="current"] {
  opacity: 1;
  color: #980900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
}

.ttl-game-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  display: grid;
  gap: 4px;
  min-width: 66px;
  padding: 6px;
  border: 1px solid rgba(152, 9, 0, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 235, 0.94)),
    rgba(255, 251, 246, 0.96);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 14px 30px rgba(72, 48, 42, 0.14);
}

.ttl-game-lang-menu[hidden] {
  display: none !important;
}

.ttl-game-lang-option {
  min-height: 28px;
  border: 1px solid rgba(152, 9, 0, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(123, 28, 20, 0.88);
  font-family: "Source Sans 3", "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ttl-game-lang-option.is-active {
  background: rgba(152, 9, 0, 0.12);
  color: #980900;
  border-color: rgba(152, 9, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.ttl-game-message-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ttl-nav-action-size);
  min-height: var(--ttl-nav-action-size);
  color: #7b1c14;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(152, 9, 0, 0.02);
  flex: 0 0 var(--ttl-nav-action-size);
  transform: translateX(-3px);
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ttl-game-message-btn .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.74));
}

.ttl-game-message-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 20px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(255, 251, 246, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, #d7252d, #b9141c);
  color: #fffaf6;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  letter-spacing: -0.03em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 5px 12px rgba(152, 9, 0, 0.22);
}

@media (hover: hover) {
  .ttl-game-lang-toggle:hover,
  .listen-pick-lang-toggle:hover,
  .ttl-game-message-btn:hover {
    background: rgba(255, 255, 255, 0.34);
    color: #980900;
    box-shadow: inset 0 0 0 1px rgba(152, 9, 0, 0.08);
  }
}

.ttl-game-back-toggle .ttl-game-lang-pill,
.listen-pick-back-toggle .listen-pick-lang-pill,
.ttl-game-back-toggle .listen-pick-lang-pill,
.listen-pick-back-toggle .ttl-game-lang-pill {
  gap: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttl-game-back-toggle .ttl-game-lang-pill b,
.listen-pick-back-toggle .listen-pick-lang-pill b,
.ttl-game-back-toggle .listen-pick-lang-pill b,
.listen-pick-back-toggle .ttl-game-lang-pill b {
  opacity: 1;
  color: #980900;
}

.ttl-game-lang-pill b,
.ttl-game-lang-pill i,
.listen-pick-lang-pill b,
.listen-pick-lang-pill i {
  font-style: normal;
  opacity: 0.42;
  transition: opacity 160ms ease, color 160ms ease;
}

.listen-pick-page[data-lpw-lang="cn"] .ttl-game-lang-pill b[data-lang="cn"],
.listen-pick-page[data-lpw-lang="cn"] .listen-pick-lang-pill b[data-lang="cn"],
.listen-pick-page[data-lpw-lang="en"] .ttl-game-lang-pill b[data-lang="en"],
.listen-pick-page[data-lpw-lang="en"] .listen-pick-lang-pill b[data-lang="en"],
.listen-pick-page[data-lpw-lang="vi"] .ttl-game-lang-pill b[data-lang="vi"],
.listen-pick-page[data-lpw-lang="vi"] .listen-pick-lang-pill b[data-lang="vi"] {
  opacity: 1;
  color: #980900;
}

.ttl-game-avatar,
.listen-pick-avatar {
  display: block;
  flex: 0 0 var(--ttl-nav-action-size);
  width: var(--ttl-nav-action-size);
  height: var(--ttl-nav-action-size);
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #980900;
  box-shadow: 0 8px 18px rgba(152, 9, 0, 0.16);
  text-decoration: none;
}

.ttl-game-avatar.avatar-container,
.listen-pick-avatar.avatar-container {
  --avatar-frame-size: var(--ttl-nav-action-size);
  --avatar-main-border: 1px solid rgba(152, 9, 0, 0.58);
  --avatar-main-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.74),
    0 10px 22px rgba(152, 9, 0, 0.14);
  display: flex;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ttl-game-avatar img,
.listen-pick-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:root {
  --ttl-topbar-accent: var(--tl-primary, #980900);
  --ttl-topbar-accent-container: var(--tl-primary-container, #c21807);
  --ttl-topbar-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.84)),
    rgba(255, 255, 255, 0.76);
  --ttl-topbar-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 239, 229, 0.78)),
    rgba(255, 251, 246, 0.76);
  --ttl-topbar-floating-surface: rgba(252, 249, 243, 0.96);
  --ttl-topbar-menu-tile-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  --ttl-topbar-menu-tile-hover-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  --ttl-topbar-icon-bg: rgba(240, 238, 232, 0.82);
  --ttl-topbar-control-bg: rgba(255, 255, 255, 0.16);
  --ttl-topbar-control-hover-bg: rgba(255, 255, 255, 0.34);
  --ttl-topbar-text: #647084;
  --ttl-topbar-strong-text: #1c1c18;
  --ttl-topbar-muted-text: #7f7d78;
  --ttl-topbar-brand: var(--ttl-topbar-accent);
  --ttl-topbar-on-accent: #fffaf6;
  --ttl-topbar-border: rgba(122, 36, 20, 0.08);
  --ttl-topbar-border-strong: color-mix(in srgb, var(--ttl-topbar-accent) 18%, transparent);
  --ttl-topbar-shadow: 0 14px 34px rgba(47, 34, 29, 0.1);
  --ttl-topbar-float-shadow: 0 24px 52px rgba(28, 28, 24, 0.18);
  --ttl-topbar-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  --ttl-topbar-icon-filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
  --ttl-topbar-badge-border: rgba(255, 251, 246, 0.96);
}

.ttl-game-nav-shell,
.listen-pick-nav-shell {
  --ttl-topbar-accent: var(--tl-primary, #980900);
  --ttl-topbar-accent-container: var(--tl-primary-container, #c21807);
}

:root[data-theme="dark"],
body[data-theme="dark"] {
  --ttl-topbar-bg:
    linear-gradient(180deg, rgba(19, 27, 44, 0.88), rgba(12, 17, 30, 0.78)),
    rgba(12, 17, 30, 0.72);
  --ttl-topbar-surface:
    linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.72)),
    rgba(15, 23, 42, 0.7);
  --ttl-topbar-floating-surface: rgba(15, 23, 42, 0.94);
  --ttl-topbar-menu-tile-bg:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.07)),
    rgba(15, 23, 42, 0.36);
  --ttl-topbar-menu-tile-hover-bg:
    linear-gradient(180deg, rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.1)),
    rgba(30, 41, 59, 0.46);
  --ttl-topbar-icon-bg: rgba(148, 163, 184, 0.12);
  --ttl-topbar-control-bg: rgba(148, 163, 184, 0.1);
  --ttl-topbar-control-hover-bg: rgba(148, 163, 184, 0.18);
  --ttl-topbar-text: #cbd5e1;
  --ttl-topbar-strong-text: #f8fafc;
  --ttl-topbar-muted-text: #94a3b8;
  --ttl-topbar-brand: color-mix(in srgb, var(--ttl-topbar-accent) 70%, #ffffff 30%);
  --ttl-topbar-border: rgba(148, 163, 184, 0.14);
  --ttl-topbar-border-strong: color-mix(in srgb, var(--ttl-topbar-accent) 34%, transparent);
  --ttl-topbar-shadow: 0 16px 38px rgba(2, 6, 23, 0.34);
  --ttl-topbar-float-shadow: 0 26px 58px rgba(0, 0, 0, 0.38);
  --ttl-topbar-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  --ttl-topbar-icon-filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
  --ttl-topbar-badge-border: rgba(15, 23, 42, 0.95);
}

.ttl-game-topbar,
.listen-pick-appbar {
  background: var(--ttl-topbar-bg);
  box-shadow:
    inset 0 -1px 0 var(--ttl-topbar-border),
    var(--ttl-topbar-shadow);
}

.ttl-game-brand,
.listen-pick-brand {
  color: var(--ttl-topbar-brand);
  text-shadow: var(--ttl-topbar-text-shadow);
}

.ttl-game-menu-btn,
.listen-pick-menu-btn {
  border-color: var(--ttl-topbar-border);
  background: var(--ttl-topbar-surface);
  color: var(--ttl-topbar-text);
}

.ttl-game-menu-btn .material-symbols-outlined,
.listen-pick-menu-btn .material-symbols-outlined,
.ttl-game-message-btn .material-symbols-outlined {
  filter: var(--ttl-topbar-icon-filter);
}

.ttl-game-menu-overlay,
.listen-pick-menu-overlay {
  background: color-mix(in srgb, var(--ttl-topbar-strong-text) 24%, transparent);
}

.ttl-game-menu-sheet,
.listen-pick-menu-sheet {
  border-color: var(--ttl-topbar-border);
  background: var(--ttl-topbar-floating-surface);
  box-shadow: var(--ttl-topbar-float-shadow);
}

.ttl-game-menu-close,
.listen-pick-menu-close {
  color: var(--ttl-topbar-muted-text);
}

.ttl-game-menu-seal-glow,
.listen-pick-menu-seal-glow {
  background: color-mix(in srgb, var(--ttl-topbar-accent) 18%, transparent);
}

.ttl-game-menu-seal-avatar.avatar-container,
.listen-pick-menu-seal-avatar.avatar-container {
  --avatar-main-border: 1px solid color-mix(in srgb, var(--ttl-topbar-accent) 50%, transparent);
  --avatar-main-shadow:
    0 0 0 3px color-mix(in srgb, var(--ttl-topbar-floating-surface) 84%, transparent),
    0 16px 34px color-mix(in srgb, var(--ttl-topbar-accent) 18%, transparent);
}

.ttl-game-menu-seal-avatar.avatar-container .avatar-main,
.listen-pick-menu-seal-avatar.avatar-container .avatar-main {
  background: color-mix(in srgb, var(--ttl-topbar-floating-surface) 92%, transparent);
}

.ttl-game-menu-tile,
.listen-pick-menu-tile {
  border-color: var(--ttl-topbar-border);
  background: var(--ttl-topbar-menu-tile-bg);
  color: var(--ttl-topbar-strong-text);
}

.ttl-game-menu-tile-icon,
.listen-pick-menu-tile-icon {
  background: var(--ttl-topbar-icon-bg);
  color: var(--ttl-topbar-text);
}

.ttl-game-menu-tile-label,
.listen-pick-menu-tile-label,
.ttl-game-icon-btn,
.listen-pick-icon-btn {
  color: var(--ttl-topbar-strong-text);
}

.ttl-game-lang-toggle,
.listen-pick-lang-toggle,
.ttl-game-message-btn {
  background: var(--ttl-topbar-control-bg);
  color: var(--ttl-topbar-brand);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ttl-topbar-accent) 8%, transparent);
}

.ttl-game-back-toggle {
  border-color: var(--ttl-topbar-border-strong);
  background: color-mix(in srgb, var(--ttl-topbar-floating-surface) 78%, transparent);
  color: var(--ttl-topbar-brand);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ttl-topbar-accent) 10%, transparent);
}

.ttl-game-lang-pill b[data-role="current"],
.ttl-game-back-toggle .ttl-game-lang-pill b,
.listen-pick-back-toggle .listen-pick-lang-pill b,
.ttl-game-back-toggle .listen-pick-lang-pill b,
.listen-pick-back-toggle .ttl-game-lang-pill b,
.listen-pick-page[data-lpw-lang="cn"] .ttl-game-lang-pill b[data-lang="cn"],
.listen-pick-page[data-lpw-lang="cn"] .listen-pick-lang-pill b[data-lang="cn"],
.listen-pick-page[data-lpw-lang="en"] .ttl-game-lang-pill b[data-lang="en"],
.listen-pick-page[data-lpw-lang="en"] .listen-pick-lang-pill b[data-lang="en"],
.listen-pick-page[data-lpw-lang="vi"] .ttl-game-lang-pill b[data-lang="vi"],
.listen-pick-page[data-lpw-lang="vi"] .listen-pick-lang-pill b[data-lang="vi"] {
  color: var(--ttl-topbar-brand);
  text-shadow: var(--ttl-topbar-text-shadow);
}

.ttl-game-lang-menu {
  border-color: var(--ttl-topbar-border-strong);
  background: var(--ttl-topbar-floating-surface);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--ttl-topbar-accent) 14%, transparent);
}

.ttl-game-lang-option {
  border-color: var(--ttl-topbar-border);
  background: color-mix(in srgb, var(--ttl-topbar-floating-surface) 76%, transparent);
  color: var(--ttl-topbar-text);
}

.ttl-game-lang-option.is-active {
  border-color: color-mix(in srgb, var(--ttl-topbar-accent) 24%, transparent);
  background: color-mix(in srgb, var(--ttl-topbar-accent) 14%, transparent);
  color: var(--ttl-topbar-brand);
}

.ttl-game-message-badge {
  border-color: var(--ttl-topbar-badge-border);
  background: linear-gradient(180deg, var(--ttl-topbar-accent-container), var(--ttl-topbar-accent));
  color: var(--ttl-topbar-on-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 5px 12px color-mix(in srgb, var(--ttl-topbar-accent) 26%, transparent);
}

.ttl-game-avatar,
.listen-pick-avatar {
  border-color: var(--ttl-topbar-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ttl-topbar-accent) 18%, transparent);
}

.ttl-game-avatar.avatar-container,
.listen-pick-avatar.avatar-container {
  --avatar-main-border: 1px solid color-mix(in srgb, var(--ttl-topbar-accent) 58%, transparent);
  --avatar-main-shadow:
    0 0 0 2px color-mix(in srgb, var(--ttl-topbar-floating-surface) 78%, transparent),
    0 10px 22px color-mix(in srgb, var(--ttl-topbar-accent) 18%, transparent);
}

@media (hover: hover) {
  .ttl-game-menu-btn:hover,
  .listen-pick-menu-btn:hover,
  .ttl-game-lang-toggle:hover,
  .listen-pick-lang-toggle:hover,
  .ttl-game-message-btn:hover {
    background: var(--ttl-topbar-control-hover-bg);
    color: var(--ttl-topbar-brand);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ttl-topbar-accent) 12%, transparent);
  }

  .ttl-game-menu-tile:hover,
  .listen-pick-menu-tile:hover {
    border-color: var(--ttl-topbar-border-strong);
    background: var(--ttl-topbar-menu-tile-hover-bg);
  }

  .ttl-game-menu-tile:hover .ttl-game-menu-tile-icon,
  .listen-pick-menu-tile:hover .listen-pick-menu-tile-icon {
    background: var(--ttl-topbar-accent);
    color: var(--ttl-topbar-on-accent);
  }
}

.listen-pick-shell {
  position: relative;
  z-index: 10;
  width: min(100%, 780px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 76px 20px 32px;
}

.listen-pick-view {
  display: none;
}

.listen-pick-view.is-active {
  display: block;
}

.listen-pick-hero-copy {
  padding-top: 48px;
  text-align: center;
}

.listen-pick-hero-copy h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(48px, 14vw, 72px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.listen-pick-hero-line {
  width: 64px;
  height: 2px;
  margin: 12px auto 10px;
  background: rgba(152, 9, 0, 0.6);
}

.listen-pick-hero-sub {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(92, 64, 59, 0.78);
}

.listen-pick-intro {
  margin: 18px auto 0;
  max-width: 420px;
  color: #5c403b;
  line-height: 1.8;
}

.listen-pick-auth-note {
  margin: 28px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(246, 243, 237, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #5c403b;
  font-size: 13px;
  line-height: 1.7;
}

.listen-pick-difficulty-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
}

.listen-pick-difficulty-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px 17px;
  border-radius: 20px;
  border: 1px solid rgba(152, 9, 0, 0.18);
  background: rgba(239, 245, 241, 0.96);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
    url("./assets/game/parchment-texture.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: screen, overlay;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 30px rgba(44, 47, 51, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.listen-pick-difficulty-card[data-difficulty="easy"] {
  background:
    linear-gradient(180deg, rgba(242, 248, 244, 0.98), rgba(232, 240, 235, 0.95)),
    url("./assets/game/parchment-texture.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: screen, overlay;
  border-color: rgba(152, 9, 0, 0.14);
}

.listen-pick-difficulty-card[data-difficulty="medium"] {
  background:
    linear-gradient(180deg, rgba(252, 249, 243, 0.99), rgba(244, 239, 229, 0.96)),
    url("./assets/game/parchment-texture.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: screen, overlay;
  border-color: rgba(152, 9, 0, 0.22);
}

.listen-pick-difficulty-card[data-difficulty="hard"] {
  background:
    linear-gradient(180deg, rgba(238, 244, 240, 0.98), rgba(226, 234, 229, 0.95)),
    url("./assets/game/parchment-texture.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: screen, overlay;
  border-color: rgba(152, 9, 0, 0.16);
}

@media (hover: hover) {
  .listen-pick-difficulty-card:hover {
    transform: translateY(-2px);
    border-color: rgba(152, 9, 0, 0.22);
  }
}

.listen-pick-difficulty-card.is-recommended {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(152, 9, 0, 0.12),
    0 18px 34px rgba(44, 47, 51, 0.14);
}

.listen-pick-difficulty-card.is-recommended[data-difficulty="medium"] {
  background:
    linear-gradient(180deg, rgba(251, 249, 244, 0.98), rgba(245, 241, 232, 0.95)),
    url("./assets/game/parchment-texture.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: screen, overlay;
}

.listen-pick-difficulty-card.is-loading {
  justify-content: center;
}

.listen-pick-difficulty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(240, 243, 239, 0.96);
  box-shadow: inset 0 0 0 1px rgba(152, 9, 0, 0.14);
  font-size: 24px;
  color: #aa180f;
}

.listen-pick-difficulty-card[data-difficulty="easy"] .listen-pick-difficulty-icon {
  background: rgba(236, 240, 236, 0.96);
}

.listen-pick-difficulty-card[data-difficulty="medium"] .listen-pick-difficulty-icon {
  background: rgba(246, 239, 231, 0.98);
  box-shadow: inset 0 0 0 1px rgba(152, 9, 0, 0.2);
}

.listen-pick-difficulty-card[data-difficulty="hard"] .listen-pick-difficulty-icon {
  background: rgba(233, 238, 234, 0.95);
}

.listen-pick-difficulty-main {
  flex: 1;
}

.listen-pick-difficulty-main h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 7px;
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  color: #120d0b;
  line-height: 1.1;
}

.listen-pick-difficulty-main h3 span {
  font-family: "Source Sans 3", "Manrope", sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(108, 100, 92, 0.78);
}

.listen-pick-difficulty-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #a11c10;
  line-height: 1.4;
}

.listen-pick-difficulty-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.listen-pick-difficulty-meta .material-symbols-outlined {
  font-size: 13px;
  opacity: 0.68;
}

.listen-pick-difficulty-card p {
  margin: 0;
  color: rgba(145, 39, 26, 0.86);
  line-height: 1.45;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.listen-pick-difficulty-badge {
  position: absolute;
  left: 50%;
  bottom: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 3px 13px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #980900;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(152, 9, 0, 0.22);
}

.listen-pick-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 28, 24, 0.4);
  backdrop-filter: blur(8px);
}

.listen-pick-modal[hidden] {
  display: none;
}

.listen-pick-modal.is-open {
  display: flex;
}

.listen-pick-modal-card {
  width: min(100%, 380px);
  padding: 28px;
  text-align: center;
  border-radius: 28px;
  background: rgba(252, 249, 243, 0.9);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 0 2px rgba(152, 9, 0, 0.12),
    0 24px 60px rgba(28, 28, 24, 0.18);
}

.listen-pick-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(152, 9, 0, 0.05);
  border: 2px solid rgba(152, 9, 0, 0.1);
  color: #980900;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
}

.listen-pick-modal-card h2,
.listen-pick-review-header h2 {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
}

.listen-pick-modal-card p {
  margin: 0;
  color: #5c403b;
}

.listen-pick-modal-card strong {
  display: block;
  margin-top: 14px;
  font-family: "Noto Serif SC", serif;
  font-size: 42px;
  color: #980900;
}

.listen-pick-modal-card span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(92, 64, 59, 0.5);
}

.listen-pick-modal-card button,
.listen-pick-stage-actions button,
.listen-pick-result-actions button,
.listen-pick-bottom-actions button,
.listen-pick-secondary-btn {
  width: 100%;
  margin-top: 14px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
}

.listen-pick-modal-card .is-ghost,
.listen-pick-stage-actions .is-ghost,
.listen-pick-bottom-actions .is-ghost {
  background: transparent;
  color: rgba(152, 9, 0, 0.7);
}

.listen-pick-save-modal-card {
  width: min(100%, 420px);
}

.listen-pick-save-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.listen-pick-save-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(152, 9, 0, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #1c1c18;
  padding: 12px 14px;
}

.listen-pick-save-form input:focus {
  outline: 2px solid rgba(152, 9, 0, 0.14);
  border-color: rgba(152, 9, 0, 0.3);
}

.listen-pick-save-output {
  min-height: 72px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(28, 28, 24, 0.72);
  color: #f8f3eb;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.ttl-login-prompt-modal,
.ttl-login-prompt-toast {
  position: fixed;
  z-index: 120;
  color: #4c221e;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

.ttl-login-prompt-modal[hidden],
.ttl-login-prompt-toast[hidden] {
  display: none;
}

.ttl-login-prompt-modal.is-open {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(28, 24, 20, 0.38);
  backdrop-filter: blur(10px);
}

.ttl-login-prompt-toast.is-open {
  right: 18px;
  bottom: 18px;
  display: block;
  width: min(360px, calc(100vw - 36px));
}

.ttl-login-prompt-modal-card,
.ttl-login-prompt-toast-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 239, 229, 0.72)),
    rgba(252, 249, 243, 0.78);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(152, 9, 0, 0.08),
    0 24px 60px rgba(28, 24, 20, 0.2);
}

.ttl-login-prompt-toast-card {
  width: 100%;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(152, 9, 0, 0.08),
    0 16px 42px rgba(28, 24, 20, 0.18);
}

.ttl-login-prompt-modal-card.is-strong {
  width: min(100%, 470px);
  border-color: rgba(152, 9, 0, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 220, 160, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(255, 238, 222, 0.82)),
    rgba(252, 249, 243, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(152, 9, 0, 0.14),
    0 28px 72px rgba(120, 30, 18, 0.28);
}

.ttl-login-prompt-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(76, 34, 30, 0.56);
  font-size: 22px;
  line-height: 1;
}

.ttl-login-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(152, 9, 0, 0.08);
  color: #980900;
}

.ttl-login-prompt-modal-card.is-strong .ttl-login-prompt-icon {
  width: 54px;
  height: 54px;
  background:
    linear-gradient(135deg, rgba(152, 9, 0, 0.14), rgba(255, 204, 128, 0.22)),
    rgba(152, 9, 0, 0.08);
  box-shadow: 0 10px 24px rgba(152, 9, 0, 0.16);
}

.ttl-login-prompt-icon .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.ttl-login-prompt-copy {
  min-width: 0;
  padding-right: 16px;
}

.ttl-login-prompt-copy strong {
  display: block;
  margin: 0 0 5px;
  color: #8f0800;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}

.ttl-login-prompt-modal-card.is-strong .ttl-login-prompt-copy strong {
  font-size: 21px;
}

.ttl-login-prompt-copy p {
  margin: 0;
  color: rgba(76, 34, 30, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.ttl-login-prompt-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 10px;
}

.ttl-login-prompt-primary,
.ttl-login-prompt-secondary {
  min-height: 42px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.ttl-login-prompt-primary {
  border: 1px solid rgba(152, 9, 0, 0.14);
  background: #980900;
  color: #fff8f1;
  box-shadow: 0 10px 22px rgba(152, 9, 0, 0.22);
}

.ttl-login-prompt-modal-card.is-strong .ttl-login-prompt-primary {
  min-height: 46px;
  background: linear-gradient(135deg, #980900, #bd2b1c);
  box-shadow: 0 14px 30px rgba(152, 9, 0, 0.3);
}

.ttl-login-prompt-secondary {
  border: 1px solid rgba(152, 9, 0, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: rgba(127, 20, 12, 0.76);
}

.ttl-dynamic-login-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  color: #2c1f1b;
}

.ttl-dynamic-login-modal[hidden] {
  display: none;
}

.ttl-dynamic-login-card {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(152, 9, 0, 0.08),
    0 28px 72px rgba(28, 24, 20, 0.28);
}

.ttl-dynamic-login-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ttl-dynamic-login-head p {
  margin: 0 0 8px;
  color: #b22222;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.ttl-dynamic-login-head h2 {
  margin: 0;
  color: #2c1f1b;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.14;
}

.ttl-dynamic-login-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #5b4340;
}

.ttl-dynamic-login-close .material-symbols-outlined {
  font-size: 22px;
}

.ttl-dynamic-login-desc {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(152, 9, 0, 0.1);
  border-left: 4px solid rgba(178, 34, 34, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #4c332d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.ttl-dynamic-login-desc.is-pending {
  color: #7b5800;
}

.ttl-dynamic-login-desc.is-success {
  border-color: rgba(22, 125, 74, 0.2);
  border-left-color: rgba(22, 125, 74, 0.72);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.68));
  color: #24523b;
}

.ttl-dynamic-login-desc.is-error {
  border-color: rgba(178, 34, 34, 0.22);
  border-left-color: rgba(178, 34, 34, 0.78);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 255, 255, 0.68));
  color: #b22222;
}

.ttl-dynamic-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ttl-dynamic-login-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #2c1f1b;
  font-size: 15px;
  font-weight: 700;
}

.ttl-dynamic-login-password-field {
  position: relative;
}

.ttl-dynamic-login-password-field input {
  padding-right: 54px;
}

.ttl-dynamic-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: rgba(76, 34, 30, 0.62);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.ttl-dynamic-login-password-toggle:hover,
.ttl-dynamic-login-password-toggle:focus-visible {
  color: rgba(76, 34, 30, 0.92);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.ttl-dynamic-login-password-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.ttl-dynamic-login-password-toggle .material-symbols-outlined {
  font-size: 21px;
}

.ttl-dynamic-login-form input:focus {
  outline: 2px solid rgba(178, 34, 34, 0.16);
  border-color: rgba(178, 34, 34, 0.38);
}

.ttl-dynamic-login-submit,
.ttl-dynamic-login-register,
.ttl-dynamic-login-guest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  border: 1px solid rgba(178, 34, 34, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: rgba(76, 34, 30, 0.82);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(28, 24, 20, 0.1);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  cursor: pointer;
}

.ttl-dynamic-login-submit:hover,
.ttl-dynamic-login-register:hover,
.ttl-dynamic-login-guest:hover,
.ttl-dynamic-login-submit:focus-visible,
.ttl-dynamic-login-register:focus-visible,
.ttl-dynamic-login-guest:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(178, 34, 34, 0.24);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 32px rgba(28, 24, 20, 0.14);
  outline: none;
}

.ttl-dynamic-login-submit:active,
.ttl-dynamic-login-register:active,
.ttl-dynamic-login-guest:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 18px rgba(28, 24, 20, 0.1);
}

.ttl-dynamic-login-submit {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.3);
  color: #2c1f1b;
  box-shadow: 0 14px 30px rgba(28, 24, 20, 0.12);
}

.ttl-dynamic-login-submit:hover,
.ttl-dynamic-login-submit:focus-visible {
  background: rgba(178, 34, 34, 0.18);
  color: #2c1f1b;
}

.ttl-dynamic-login-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.ttl-dynamic-login-submit .material-symbols-outlined {
  color: #b22222;
  font-size: 28px;
}

.ttl-dynamic-login-guest {
  background: rgba(255, 255, 255, 0.4);
  color: rgba(127, 20, 12, 0.72);
}

.ttl-dynamic-login-register {
  background: rgba(255, 255, 255, 0.56);
  color: #b22222;
}

@media (max-width: 560px) {
  .ttl-login-prompt-modal.is-open {
    align-items: flex-end;
    padding: 12px;
  }

  .ttl-login-prompt-toast.is-open {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .ttl-login-prompt-modal-card,
  .ttl-login-prompt-toast-card {
    border-radius: 22px;
    padding: 15px;
  }

  .ttl-login-prompt-copy strong {
    font-size: 16px;
  }

  .ttl-login-prompt-copy p {
    font-size: 12px;
  }

  .ttl-dynamic-login-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .ttl-dynamic-login-card {
    border-radius: 26px;
    padding: 18px;
  }

  .ttl-dynamic-login-head h2 {
    font-size: 24px;
  }
}

.listen-pick-progress-shell {
  position: relative;
  padding-top: 80px;
  padding-bottom: 16px;
}

.listen-pick-stage-metrics {
  position: absolute;
  right: 0;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(246, 243, 237, 0.28);
  backdrop-filter: blur(10px);
  color: rgba(152, 9, 0, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.listen-pick-stage-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.listen-pick-stage-metrics strong {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #980900;
}

.listen-pick-stage-metrics i {
  width: 1px;
  height: 10px;
  background: rgba(152, 9, 0, 0.22);
}

.listen-pick-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  color: #fcf9f3;
}

.listen-pick-progress-head span:first-child {
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listen-pick-progress-head span:last-child {
  font-size: 10px;
  font-style: italic;
  color: rgba(252, 249, 243, 0.74);
}

.listen-pick-audio-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 6px;
}

.ttl-combo-system,
.listen-pick-combo-system {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 260ms ease;
}

.ttl-combo-system[data-stage="0"],
.listen-pick-combo-system[data-stage="0"] {
  opacity: 1;
}

.ttl-combo-system[data-stage="0"],
.ttl-combo-system[data-stage="1"],
.ttl-combo-system[data-stage="2"],
.ttl-combo-system[data-stage="3"],
.ttl-combo-system[data-stage="4"],
.listen-pick-combo-system[data-stage="0"],
.listen-pick-combo-system[data-stage="1"],
.listen-pick-combo-system[data-stage="2"],
.listen-pick-combo-system[data-stage="3"],
.listen-pick-combo-system[data-stage="4"] {
  opacity: 1;
}

.ttl-combo-burst-anchor,
.listen-pick-combo-burst-anchor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttl-combo-effects,
.listen-pick-combo-effects {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttl-combo-core-circle,
.listen-pick-combo-core-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, #ff2e1f 0%, #920800 100%);
  box-shadow: 0 0 35px rgba(255, 46, 31, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.85);
  transition: transform 480ms ease, background 480ms ease, border 480ms ease, box-shadow 480ms ease;
}

.ttl-combo-gold-shimmer,
.listen-pick-core-gold-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
  background-size: 200% 100%;
  animation: gold-trail 1.2s infinite linear;
  opacity: 0.3;
}

.ttl-combo-ink-overlay,
.listen-pick-core-ink-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  mix-blend-mode: multiply;
}

.ttl-combo-text-wrapper,
.listen-pick-combo-text-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ttl-combo-number,
.listen-pick-core-combo-number {
  font-family: "Noto Serif SC", serif;
  font-size: 72px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(to bottom, #fff7ad 0%, #ffd700 45%, #b8860b 55%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
  opacity: 1;
}

.ttl-combo-label,
.listen-pick-core-combo-label {
  margin-top: 6px;
  font-family: "Noto Serif SC", serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  opacity: 1;
}

.ttl-combo-number.is-burst,
.listen-pick-core-combo-number.is-burst {
  animation: combo-burst 0.3s cubic-bezier(0.1, 0.9, 0.2, 1.2) forwards;
}

.ttl-combo-system[data-stage="1"] .ttl-combo-core-circle,
.listen-pick-combo-system[data-stage="1"] .listen-pick-combo-core-circle {
  transform: scale(0.85);
  background: radial-gradient(circle, #333 0%, #000 100%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ttl-combo-system[data-stage="2"] .ttl-combo-core-circle,
.listen-pick-combo-system[data-stage="2"] .listen-pick-combo-core-circle {
  transform: scale(1);
  background: radial-gradient(circle, #c21807 0%, #600 100%);
  box-shadow: 0 0 35px rgba(194, 24, 7, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ttl-combo-system[data-stage="3"] .ttl-combo-core-circle,
.listen-pick-combo-system[data-stage="3"] .listen-pick-combo-core-circle {
  transform: scale(1.1);
  background: radial-gradient(circle, #ff2e1f 0%, #920800 100%);
  box-shadow: 0 0 50px rgba(255, 46, 31, 0.9), inset 0 0 20px rgba(255, 215, 0, 0.4);
  border: 3px solid #ffd700;
}

.ttl-combo-system[data-stage="4"] .ttl-combo-core-circle,
.listen-pick-combo-system[data-stage="4"] .listen-pick-combo-core-circle {
  transform: scale(1.24);
  background: radial-gradient(circle, #ff2e1f 0%, #400200 100%);
  box-shadow: 0 0 66px rgba(255, 46, 31, 1), 0 0 30px rgba(255, 215, 0, 0.8);
  border: 4px solid #ffd700;
}

.ttl-combo-core-circle.is-combo-burst,
.listen-pick-combo-core-circle.is-combo-burst {
  animation: combo-burst 0.3s cubic-bezier(0.1, 0.9, 0.2, 1.2) forwards;
}

.ttl-combo-system[data-stage="1"] .ttl-combo-label,
.listen-pick-combo-system[data-stage="1"] .listen-pick-core-combo-label {
  color: rgba(255, 255, 255, 0.6);
}

.ttl-combo-system[data-stage="2"] .ttl-combo-label,
.listen-pick-combo-system[data-stage="2"] .listen-pick-core-combo-label {
  color: #fff;
}

.ttl-combo-system[data-stage="3"] .ttl-combo-label,
.ttl-combo-system[data-stage="4"] .ttl-combo-label,
.listen-pick-combo-system[data-stage="3"] .listen-pick-core-combo-label,
.listen-pick-combo-system[data-stage="4"] .listen-pick-core-combo-label {
  color: #ffd700;
}

.ttl-combo-system[data-stage="0"] .ttl-combo-core-circle,
.listen-pick-combo-system[data-stage="0"] .listen-pick-combo-core-circle {
  transform: scale(0.8);
  background: radial-gradient(circle, #2b2b2b 0%, #0d0d0d 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ttl-combo-system[data-stage="0"] .ttl-combo-label,
.listen-pick-combo-system[data-stage="0"] .listen-pick-core-combo-label {
  color: rgba(255, 255, 255, 0.54);
}

.ttl-combo-system[data-stage="0"] .ttl-combo-number,
.ttl-combo-system[data-stage="1"] .ttl-combo-number,
.ttl-combo-system[data-stage="2"] .ttl-combo-number,
.ttl-combo-system[data-stage="3"] .ttl-combo-number,
.ttl-combo-system[data-stage="4"] .ttl-combo-number,
.ttl-combo-system[data-stage="0"] .ttl-combo-label,
.ttl-combo-system[data-stage="1"] .ttl-combo-label,
.ttl-combo-system[data-stage="2"] .ttl-combo-label,
.ttl-combo-system[data-stage="3"] .ttl-combo-label,
.ttl-combo-system[data-stage="4"] .ttl-combo-label,
.listen-pick-combo-system[data-stage="0"] .listen-pick-core-combo-number,
.listen-pick-combo-system[data-stage="1"] .listen-pick-core-combo-number,
.listen-pick-combo-system[data-stage="2"] .listen-pick-core-combo-number,
.listen-pick-combo-system[data-stage="3"] .listen-pick-core-combo-number,
.listen-pick-combo-system[data-stage="4"] .listen-pick-core-combo-number,
.listen-pick-combo-system[data-stage="0"] .listen-pick-core-combo-label,
.listen-pick-combo-system[data-stage="1"] .listen-pick-core-combo-label,
.listen-pick-combo-system[data-stage="2"] .listen-pick-core-combo-label,
.listen-pick-combo-system[data-stage="3"] .listen-pick-core-combo-label,
.listen-pick-combo-system[data-stage="4"] .listen-pick-core-combo-label {
  opacity: 1;
}

.tier1-ink {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #222 0%, transparent 70%);
  animation: ink-drop 0.8s ease-out forwards;
  pointer-events: none;
}

.tier2-bloom {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #bd1303 0%, #600 50%, transparent 80%);
  animation: cinnabar-bloom 0.6s ease-out forwards;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.tier3-chi {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid #ffd700;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: chi-shimmer 1s ease-in-out forwards;
  pointer-events: none;
}

.tier4-masterpiece {
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle, rgba(255, 46, 31, 0.2) 0%, rgba(255, 215, 0, 0.15) 40%, transparent 70%);
  animation: kuangcao-flash 0.5s ease-out forwards;
  pointer-events: none;
}

.listen-pick-relisten-row {
  display: flex;
  justify-content: center;
}

.listen-pick-relisten-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(252, 249, 243, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(145, 111, 105, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.08);
  color: #7b5800;
}

.listen-pick-relisten-btn .material-symbols-outlined {
  font-size: 18px;
}

.listen-pick-relisten-btn i {
  width: 1px;
  height: 14px;
  background: rgba(230, 189, 182, 0.8);
}

.listen-pick-relisten-btn > span:not(.material-symbols-outlined),
.listen-pick-relisten-btn strong {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.listen-pick-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 14vh, 180px);
}

.listen-pick-word-card {
  min-height: 114px;
  padding: 12px 10px;
  text-align: center;
  border-radius: 16px;
  background: rgba(252, 249, 243, 0.86);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 -4px 0 rgba(145, 111, 105, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.12);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

@media (hover: hover) {
  .listen-pick-word-card:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
      inset 0 -4px 0 rgba(152, 9, 0, 0.5),
      0 12px 24px rgba(0, 0, 0, 0.14);
  }
}

.listen-pick-word-card strong,
.listen-pick-word-card span,
.listen-pick-word-card em {
  display: block;
}

.listen-pick-word-card strong {
  font-family: "Noto Serif SC", serif;
  font-size: 30px;
  line-height: 1.1;
  color: #5c403b;
}

.listen-pick-word-card span {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(123, 88, 0, 0.72);
}

.listen-pick-word-card em {
  margin-top: 4px;
  font-size: 11px;
  font-style: italic;
  color: rgba(92, 64, 59, 0.7);
}

.listen-pick-word-card.is-placeholder {
  grid-column: 1 / -1;
}

.listen-pick-word-card.is-correct {
  background: rgba(237, 253, 246, 0.9);
  box-shadow:
    inset 0 -4px 0 rgba(89, 197, 144, 0.6),
    0 10px 22px rgba(0, 0, 0, 0.1);
}

.listen-pick-word-card.is-wrong {
  background: rgba(255, 244, 242, 0.9);
  box-shadow:
    inset 0 -4px 0 rgba(239, 127, 114, 0.6),
    0 10px 22px rgba(0, 0, 0, 0.1);
}

.listen-pick-word-card.is-dimmed {
  opacity: 0.68;
}

.listen-pick-mentor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(252, 249, 243, 0.82);
  box-shadow:
    inset 4px 0 0 #980900,
    0 14px 30px rgba(0, 0, 0, 0.14);
}

.listen-pick-mentor-card.is-correct {
  box-shadow:
    inset 4px 0 0 #3e8a55,
    0 14px 30px rgba(0, 0, 0, 0.14);
}

.listen-pick-mentor-card.is-wrong {
  box-shadow:
    inset 4px 0 0 #ba1a1a,
    0 14px 30px rgba(0, 0, 0, 0.14);
}

.listen-pick-mentor-card.is-playing {
  box-shadow:
    inset 4px 0 0 #7b5800,
    0 14px 30px rgba(0, 0, 0, 0.14);
}

.listen-pick-mentor-avatar {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

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

.listen-pick-mentor-copy p {
  margin: 0;
  color: #5c403b;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.listen-pick-mentor-copy span {
  display: block;
  margin-top: 6px;
  color: #980900;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.listen-pick-stage-actions,
.listen-pick-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.listen-pick-stage-actions {
  align-items: flex-start;
  margin-top: 12px;
}

.listen-pick-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "save save"
    "play review";
  gap: 10px;
  margin-top: 18px;
}

.listen-pick-result-actions > * {
  margin-top: 0;
  width: 100%;
}

#lpwSaveProgressBtn {
  grid-area: save;
}

#lpwPlayAgainBtn {
  grid-area: play;
}

#lpwOpenReviewBtn {
  grid-area: review;
}

.listen-pick-stage-actions {
  justify-content: flex-start;
}

.listen-pick-stage-actions button {
  max-width: 160px;
}

#lpwBackToDifficultyBtn {
  width: auto;
  min-width: 112px;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(152, 9, 0, 0.18);
  background: rgba(248, 243, 235, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 20px rgba(44, 47, 51, 0.08);
  color: #7f140c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

@media (hover: hover) {
  #lpwBackToDifficultyBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(152, 9, 0, 0.28);
    background: rgba(251, 246, 239, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 10px 22px rgba(152, 9, 0, 0.1);
  }
}

#lpwBackToDifficultyBtn::before {
  content: "‹";
  margin-right: 6px;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1;
}

.listen-pick-result-hero {
  padding-top: 40px;
  text-align: center;
}

.listen-pick-result-head,
#lpwResultHeroHead {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: end;
  justify-content: center;
  column-gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.listen-pick-result-score {
  position: relative;
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 60px;
  font-weight: 900;
  color: #980900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.listen-pick-result-score span {
  margin-left: 4px;
  font-size: 22px;
  font-weight: 400;
  opacity: 0.4;
}

.listen-pick-result-badge,
#lpwEvaluationBadge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(123, 88, 0, 0.1);
  border: 1px solid rgba(123, 88, 0, 0.18);
  color: #7b5800;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
  align-self: center;
}

.listen-pick-result-mentor-line {
  max-width: 420px;
  margin: 6px auto 0;
  color: rgba(90, 31, 24, 0.82);
  font-size: 10px;
  line-height: 1.45;
}

.listen-pick-earned-card {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 189, 182, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.listen-pick-earned-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdc34d 0%, #c21807 100%);
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  box-shadow: 0 10px 20px rgba(194, 24, 7, 0.14);
}

.listen-pick-earned-card h3 {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(92, 64, 59, 0.74);
}

.listen-pick-earned-card p {
  margin: 6px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  color: #1c1c18;
}

.listen-pick-earned-link {
  min-height: auto;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: #980900;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .listen-pick-earned-link:hover {
    background: transparent;
    color: #7f0700;
  }
}

.listen-pick-earned-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(4px, 1.6vw, 10px);
  margin-top: 14px;
}

.listen-pick-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.result-ad-slot {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed rgba(152, 9, 0, 0.18);
  color: #74453d;
  text-align: left;
}

.result-ad-slot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(122, 57, 44, 0.08);
  color: #8f271d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-ad-slot strong {
  display: inline;
  margin-top: 0;
  margin-left: 8px;
  color: #5a1f18;
  font-size: 13px;
  font-weight: 800;
}

.result-ad-slot p {
  margin: 6px 0 0;
  color: rgba(90, 31, 24, 0.78);
  font-size: 11px;
  line-height: 1.6;
}

.listen-pick-stat-card {
  min-height: 60px;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(246, 243, 237, 0.92);
  box-shadow: inset 0 -2px 0 rgba(230, 189, 182, 0.4);
}

.listen-pick-stat-card span {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #5c403b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.listen-pick-stat-card strong {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  color: #980900;
}

.listen-pick-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(152, 9, 0, 0.35);
  background: rgba(252, 249, 243, 0.82);
  color: #980900;
  font-size: 14px;
  font-weight: 800;
}

.listen-pick-secondary-btn.is-muted {
  border-color: rgba(145, 111, 105, 0.3);
  color: #5c403b;
}

.listen-pick-footer-note {
  margin-top: 14px;
  text-align: center;
  color: #916f69;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.listen-pick-earned-item {
  --achievement-accent: #c21807;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(104px, 18vw, 142px);
  padding: clamp(8px, 1.8vw, 14px) clamp(4px, 1.3vw, 10px) clamp(8px, 1.6vw, 12px);
  border-radius: clamp(12px, 2.6vw, 16px);
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid color-mix(in srgb, var(--achievement-accent) 18%, rgba(230, 189, 182, 0.2));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.listen-pick-earned-item.is-empty {
  background: rgba(246, 243, 237, 0.88);
}

.listen-pick-earned-item.is-locked {
  background: rgba(236, 235, 232, 0.78);
  border-color: rgba(145, 111, 105, 0.12);
  box-shadow: none;
}

.listen-pick-earned-item .listen-pick-earned-icon {
  width: clamp(34px, 8.6vw, 52px);
  height: clamp(34px, 8.6vw, 52px);
  margin: 0 0 clamp(6px, 1.6vw, 10px);
  font-size: clamp(14px, 3.4vw, 20px);
  overflow: hidden;
  background: linear-gradient(135deg, #fdc34d 0%, var(--achievement-accent) 100%);
}

.listen-pick-earned-item .listen-pick-earned-icon img,
.listen-pick-achievement-modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listen-pick-earned-item.is-locked .listen-pick-earned-icon {
  background: linear-gradient(135deg, #d4d1cb 0%, #9f9a93 100%);
  box-shadow: none;
}

.listen-pick-earned-item strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(11px, 2.7vw, 16px);
  color: #1c1c18;
  line-height: 1.25;
}

.listen-pick-earned-item span {
  display: block;
  margin-top: clamp(4px, 1vw, 6px);
  font-size: clamp(8px, 2vw, 10px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #7b5d56;
}

.listen-pick-achievement-modal-card {
  width: min(100%, 520px);
}

.listen-pick-achievement-modal-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-height: min(52vh, 520px);
  overflow: auto;
  text-align: left;
}

.listen-pick-achievement-modal-item {
  --achievement-accent: #c21807;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid color-mix(in srgb, var(--achievement-accent) 18%, rgba(230, 189, 182, 0.22));
}

.listen-pick-achievement-modal-item.is-locked {
  background: rgba(236, 235, 232, 0.82);
  border-color: rgba(145, 111, 105, 0.12);
}

.listen-pick-achievement-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 22vw, 120px);
  height: clamp(72px, 22vw, 120px);
  flex: 0 0 clamp(72px, 22vw, 120px);
  border-radius: 999px;
  background: linear-gradient(135deg, #fdc34d 0%, var(--achievement-accent) 100%);
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 8vw, 44px);
}

.listen-pick-achievement-modal-item.is-locked .listen-pick-achievement-modal-icon {
  background: linear-gradient(135deg, #d4d1cb 0%, #9f9a93 100%);
}

.listen-pick-achievement-modal-copy strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.15;
  color: #1c1c18;
}

.listen-pick-achievement-modal-copy span,
.listen-pick-achievement-modal-copy em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.34;
  color: #7b5d56;
  font-style: normal;
  letter-spacing: 0.01em;
  text-transform: none;
}

.listen-pick-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 78px;
  margin-bottom: 20px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(246, 243, 237, 0.92);
  box-shadow: inset 0 0 40px rgba(123, 88, 0, 0.05);
}

.listen-pick-review-header p,
.listen-pick-review-header span {
  margin: 0;
  color: #7b5800;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listen-pick-review-header span {
  display: block;
  margin-top: 6px;
  color: #5c403b;
  letter-spacing: 0;
  text-transform: none;
}

.listen-pick-review-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 4px solid rgba(152, 9, 0, 0.1);
  color: #980900;
  font-family: "Noto Serif SC", serif;
}

.listen-pick-review-list {
  display: grid;
  gap: 14px;
}

.review-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 -2px 0 rgba(152, 9, 0, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.06);
}

.review-item strong,
.review-item span {
  display: block;
}

.review-item strong {
  margin-bottom: 6px;
}

.review-item span {
  color: #5c403b;
  line-height: 1.7;
}

.review-item.is-correct {
  box-shadow:
    inset 0 -2px 0 rgba(62, 138, 85, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.06);
}

.review-item.is-wrong {
  box-shadow:
    inset 0 -2px 0 rgba(186, 26, 26, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.06);
}

.listen-pick-review-mentor {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 136px;
}

.listen-pick-review-mentor img {
  width: 128px;
  max-width: 32vw;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(28, 28, 24, 0.12));
}

.listen-pick-review-mentor div {
  flex: 1;
  margin-bottom: 32px;
  padding: 14px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(246, 243, 237, 0.95);
  box-shadow:
    inset 4px 0 0 #980900,
    0 10px 20px rgba(28, 28, 24, 0.08);
}

.listen-pick-review-mentor p {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1.7;
}

.listen-pick-bottom-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: rgba(252, 249, 243, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 -18px 36px rgba(28, 28, 24, 0.08);
}

.listen-pick-bottom-actions button {
  margin-top: 0;
}

.listen-pick-bottom-actions button:first-child {
  flex: 1;
}

.listen-pick-bottom-actions button:last-child {
  flex: 1.5;
}

#lpwReviewView {
  padding-bottom: 160px;
}

@keyframes ink-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(var(--lpw-combo-scale, 1));
    box-shadow:
      inset 0 -2px 0 rgba(145, 111, 105, 0.12),
      0 24px 48px rgba(0, 0, 0, 0.24);
  }
  50% {
    transform: scale(calc(var(--lpw-combo-scale, 1) + 0.04));
    box-shadow:
      inset 0 -2px 0 rgba(145, 111, 105, 0.12),
      0 20px 36px rgba(152, 9, 0, 0.22);
  }
}

@keyframes equalizer-bounce {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.78;
  }
  35% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.84;
  }
}

@keyframes combo-burst {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  30% {
    transform: scale(1.15);
    opacity: 1;
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ink-drop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes cinnabar-bloom {
  0% {
    transform: scale(0.5);
    opacity: 0;
    filter: blur(4px);
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
    filter: blur(0);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes chi-shimmer {
  0% {
    transform: rotate(0deg) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(180deg) scale(2.5);
    opacity: 0;
  }
}

@keyframes kuangcao-flash {
  0% {
    transform: scale(0.4) rotate(-5deg);
    filter: brightness(3);
    opacity: 0.8;
  }
  20% {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.8) rotate(10deg);
    filter: brightness(1);
    opacity: 0;
  }
}

@keyframes gold-trail {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (min-width: 781px) {
  .listen-pick-shell {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .ttl-game-topbar,
  .listen-pick-appbar {
    padding: 6px 10px;
  }

  .ttl-game-topbar-left,
  .listen-pick-topbar-left {
    gap: 8px;
    min-width: 0;
  }

  .ttl-game-brand,
  .listen-pick-brand {
    max-width: 34vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 1.18;
  }

  .ttl-game-topbar-actions,
  .listen-pick-appbar-actions {
    --ttl-nav-action-size: 32px;
    --ttl-nav-lang-size: 26px;
    gap: 10px;
    min-width: 0;
  }

  .ttl-game-icon-btn,
  .listen-pick-icon-btn {
    width: 32px;
    min-height: 32px;
    font-size: 12px;
  }

  .ttl-game-message-btn .material-symbols-outlined {
    font-size: 19px;
  }

  .ttl-game-message-badge {
    top: 0;
    right: 0;
    min-width: 18px;
    height: 15px;
    font-size: 8px;
    line-height: 13px;
  }

  .ttl-game-lang-toggle,
  .listen-pick-lang-toggle {
    min-width: 0;
    max-width: none;
    min-height: var(--ttl-nav-action-size);
    padding: 0 2px;
    flex-shrink: 0;
    overflow: visible;
  }

  .ttl-game-lang-pill,
  .listen-pick-lang-pill {
    min-width: 23px;
    font-size: 13px;
    letter-spacing: 0.035em;
  }

  .ttl-game-lang-menu {
    min-width: 60px;
    padding: 5px;
    border-radius: 10px;
  }

  .ttl-game-lang-option {
    min-height: 24px;
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .ttl-game-back-toggle,
  .listen-pick-back-toggle {
    min-width: 44px;
    max-width: 64px;
    padding: 0 4px;
    flex-shrink: 1;
    overflow: hidden;
  }

  .ttl-game-menu-btn,
  .listen-pick-menu-btn {
    width: 32px;
    min-height: 32px;
  }

  .ttl-game-menu-overlay,
  .listen-pick-menu-overlay {
    padding: 20px;
  }

  .ttl-game-menu-sheet,
  .listen-pick-menu-sheet {
    width: min(100%, 356px);
    padding: 26px 20px 20px;
    border-radius: 28px;
  }

  .ttl-game-back-toggle .ttl-game-lang-pill,
  .listen-pick-back-toggle .listen-pick-lang-pill {
    font-size: 8px;
  }

  .ttl-game-avatar,
  .listen-pick-avatar {
    flex-basis: var(--ttl-nav-action-size);
    width: var(--ttl-nav-action-size);
    height: var(--ttl-nav-action-size);
  }

  .listen-pick-shell {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 74px;
  }

  .listen-pick-options-grid {
    grid-template-columns: 1fr;
  }

  .listen-pick-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listen-pick-result-head,
  #lpwResultHeroHead {
    column-gap: 8px;
  }

  .listen-pick-result-score {
    font-size: 50px;
  }

  .listen-pick-result-score span {
    font-size: 17px;
  }

  .listen-pick-result-badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .listen-pick-result-mentor-line {
    max-width: 100%;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  .listen-pick-stat-card {
    min-height: 54px;
    padding: 6px 7px;
  }

  .listen-pick-stat-card span {
    font-size: 12px;
  }

  .listen-pick-stat-card strong {
    font-size: 16px;
  }

  .listen-pick-stat-card strong {
    font-size: 15px;
  }

  .listen-pick-review-header {
    padding: 18px;
  }

  .listen-pick-earned-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .listen-pick-earned-item {
    min-height: 100px;
    padding: 8px 4px 8px;
  }

  .listen-pick-earned-item .listen-pick-earned-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    font-size: 14px;
  }

  .listen-pick-earned-item strong {
    font-size: 11px;
    line-height: 1.15;
  }

  .listen-pick-earned-item span {
    font-size: 8px;
    line-height: 1.2;
  }

  .ttl-combo-system,
  .listen-pick-combo-system {
    width: 142px;
    height: 142px;
  }

  .ttl-combo-core-circle,
  .listen-pick-combo-core-circle {
    width: 52px;
    height: 52px;
  }

  .ttl-combo-number,
  .listen-pick-core-combo-number {
    font-size: 34px;
  }

  .ttl-combo-label,
  .listen-pick-core-combo-label {
    top: calc(50% + 20px);
    font-size: 9px;
    letter-spacing: 0.34em;
  }

  .listen-pick-stage-metrics {
    right: 0;
    bottom: -4px;
    max-width: 100%;
    padding: 5px 8px;
    font-size: 9px;
  }

  .listen-pick-review-mentor {
    gap: 10px;
  }

  .listen-pick-review-mentor img {
    width: 92px;
  }

  .listen-pick-bottom-actions {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #lpwBackToDifficultyBtn {
    min-width: 102px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (max-width: 359px) {
  .listen-pick-earned-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 320px) {
  .listen-pick-earned-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
