/* 字体定义见 /fonts/subset.css：按 unicode-range 分片，浏览器只下载用到的字块。 */
.club-dialog {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 35px 30px 30px;
  border: 1px solid #efdee6;
  border-radius: 22px;
  background: #fffcfd;
  color: #604655;
  box-shadow: 0 24px 100px #75425922;
  font-family: LXGW, serif;
}
.club-dialog::backdrop {background:#4c2b3f55;backdrop-filter:blur(5px);}
.club-dialog h2 {font-family:KinryoTitle,LXGW,serif;font-size:26px;font-weight:400;text-align:center;margin:3px 0 28px;line-height:1.5;}
.club-close {position:absolute;right:12px;top:10px;border:0;background:transparent;color:#a0788c;font:24px/1 sans-serif;padding:6px 10px;min-height:36px;z-index:2;}
.club-form {display:grid;gap:22px;}
.club-id label {display:flex;align-items:baseline;justify-content:space-between;font-size:17px;margin-bottom:9px;}
.club-id small {color:#a08794;font-size:13px;}
.club-id input {width:100%;box-sizing:border-box;background:white;border:1px solid #ead6e0;border-radius:9px;font:18px LXGW,serif;color:#604655;min-height:46px;padding:10px 13px;}
.club-qr {width:min(100%,270px);height:auto;justify-self:center;background:white;border-radius:12px;}
.club-form .primary {width:100%;border:0;background:#b94370;color:white;font:18px LXGW,serif;min-height:49px;border-radius:10px;}
.club-error {margin:0;color:#ae315d;font-size:14px;}
.club-welcome {min-height:320px;text-align:center;padding-top:65px;overflow:hidden;}
.club-welcome h2 {font-size:29px;max-width:290px;margin:18px auto 30px;position:relative;z-index:1;outline:none;}
.welcome-star {font:60px/1 serif;color:#c1648b;}
.club-fireworks {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;}
@media(max-height:660px) {.club-dialog {padding:25px 24px 22px;}.club-dialog h2 {margin-bottom:16px;font-size:23px;}.club-form {gap:14px;}.club-qr {width:210px;}}
:root[data-surface="front"] {
  --green: #bb527d;
  --muted: #886476;
  --border: #eedee6;
  background: #fcf6f9;
  color: #604655;
  font-family: LXGW, "Microsoft YaHei", serif;
  font-synthesis: none;
}
[data-surface="front"] body {
  background:
    radial-gradient(ellipse at 15% 0%, #f9e7ef80, transparent 48%), #fcf6f9;
  min-height: 100dvh;
}
[data-surface="front"] header {
  height: 84px;
  background: transparent;
  border-bottom: 0;
  position: relative;
}
[data-surface="front"] .top {
  max-width: 1160px;
  padding: 0 36px;
  margin: auto;
}
[data-surface="front"] .brand {
  font-family: KinryoTitle, LXGW, serif;
  font-size: 23px;
  font-weight: 400;
  color: #ac5678;
  letter-spacing: 2px;
}
[data-surface="front"] .brand small,
[data-surface="front"] .role-tag {
  display: none;
}
[data-surface="front"] .quiet {
  font-size: 14px;
  color: #96657e;
  border: 0;
  padding: 8px 0;
  min-height: 36px;
}
[data-surface="front"] main {
  max-width: 1088px;
  margin: 0 auto;
  padding: 54px 36px 72px;
  min-height: calc(100dvh - 84px);
}
[data-surface="front"] main.narrow {
  max-width: 820px;
  padding-top: 38px;
}
[data-surface="front"] h1,
[data-surface="front"] h2,
[data-surface="front"] .score {
  font-family: KinryoTitle, LXGW, serif;
  font-weight: 400;
  letter-spacing: 1px;
}
[data-surface="front"] h1 {
  font-size: 38px;
  color: #735263;
  margin: 0 0 36px;
}
[data-surface="front"] h2 {
  font-size: 23px;
  color: #735263;
}
[data-surface="front"] p,
[data-surface="front"] button,
[data-surface="front"] input,
[data-surface="front"] select,
[data-surface="front"] textarea {
  font-family: LXGW, serif;
  font-weight: 400;
}
[data-surface="front"] button {
  min-height: 46px;
  border-color: #ead5df;
  border-radius: 10px;
  font-size: 17px;
  color: #9a6d83;
  padding: 11px 22px;
  background: #fffafc;
}
[data-surface="front"] button:hover {
  background: #fbeaf1;
  border-color: #d698b4;
}
[data-surface="front"] button:active {
  background: #f4d8e5;
}
[data-surface="front"] button.primary {
  background: #bb527d;
  border-color: #bb527d;
  color: #fff;
  box-shadow: 0 4px 0 #b94f7718;
}
[data-surface="front"] button.primary:hover {
  background: #bf537d;
  border-color: #bf537d;
}
[data-surface="front"] button:disabled {
  opacity: 0.4;
}
[data-surface="front"] :focus-visible {
  outline-color: #df8ead;
  outline-offset: 4px;
}
[data-surface="front"] .page-heading {
  margin-bottom: 36px;
}
[data-surface="front"] .page-heading h1 {
  margin: 0;
}
[data-surface="front"] .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
[data-surface="front"] .activity {
  min-height: 278px;
  border-radius: 18px;
  border: 1px solid #eedee6;
  background: #fffcfd;
  padding: 30px;
  box-shadow: 0 12px 32px #b27b9608;
}
[data-surface="front"] .activity::before {
  display: none;
}
[data-surface="front"] .activity .mode {
  color: #c984a3;
  font-family: KinryoTitle, LXGW, serif;
  font-size: 14px;
  letter-spacing: 3px;
}
[data-surface="front"] .activity h2 {
  font-size: 27px;
  margin: 27px 0 36px;
  line-height: 1.5;
}
[data-surface="front"] .activity .row {
  gap: 10px;
}
[data-surface="front"] .activity .row small {
  font-size: 15px;
  color: #b28e9f;
  margin-bottom: 14px;
}
[data-surface="front"] .badge {
  background: #f9e9f0;
  border-color: #f0d7e3;
  color: #bd7092;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 400;
  padding: 5px 12px;
}
[data-surface="front"] .badge.off {
  color: #b9a6b1;
  background: #f7f0f4;
  border-color: #eee4ea;
}
[data-surface="front"] .card {
  background: #fffdfd;
  border-color: #eedee6;
  border-radius: 16px;
  box-shadow: 0 8px 28px #ad7c9505;
}
[data-surface="front"] label {
  font-family: LXGW, serif;
  font-size: 17px;
  font-weight: 400;
  color: #8c687b;
  margin-bottom: 12px;
}
[data-surface="front"] label small {
  font-size: 13px;
  margin-left: 7px;
  color: #bda5b2;
}
[data-surface="front"] input,
[data-surface="front"] select {
  height: 50px;
  border-color: #eedde6;
  border-radius: 9px;
  background: #fffafc;
  font-size: 17px;
  padding: 12px 15px;
  color: #735263;
}
[data-surface="front"] input::placeholder {
  color: #c6adba;
}
[data-surface="front"] input:hover,
[data-surface="front"] select:hover {
  border-color: #d9a4bc;
}
[data-surface="front"] #profile {
  padding: 32px;
  gap: 27px;
}
[data-surface="front"] #profile > button {
  justify-self: stretch;
  margin-top: 8px;
}
[data-surface="front"] #back,
[data-surface="front"] #board-back {
  padding-left: 0;
  background: transparent;
  border: 0;
  margin-bottom: 16px;
  color: #b38a9e;
}
[data-surface="front"] .question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
[data-surface="front"] .question-head h2 {
  font-size: 19px;
  margin: 0;
}
[data-surface="front"] .question-head button {
  border: 0;
  background: transparent;
  font-size: 14px;
  padding: 7px 0;
  color: #96657e;
  min-height: 36px;
}
[data-surface="front"] .question-sheet {
  border: 1px solid #efdee7;
  background: #fffdfd;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 14px 36px #a56a8506;
}
[data-surface="front"] .question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: #94657d;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
[data-surface="front"] .question-sheet h1 {
  font-family: LXGW, serif;
  font-size: 28px;
  line-height: 1.65;
  color: #654757;
  letter-spacing: 0.3px;
  margin: 28px 0 30px;
  min-height: 80px;
}
[data-surface="front"] .progress {
  height: 3px;
  margin: 20px 0 0;
  background: #f5e8ef;
}
[data-surface="front"] .progress-fill {
  background: #df9fba;
}
[data-surface="front"] .option {
  font-size: 19px;
  min-height: 67px;
  padding: 16px 19px;
  margin: 12px 0;
  border-radius: 11px;
  border: 1px solid #eddee5;
  background: #fffdfd;
  gap: 16px;
  color: #816373;
  box-shadow: none;
}
[data-surface="front"] .option:hover {
  background: #fdf3f7;
  border-color: #dda5bd;
}
[data-surface="front"] .option.selected {
  background: #fcecf3;
  border-color: #d77c9f;
  box-shadow: inset 0 0 0 1px #d77c9f40;
  color: #aa5078;
}
[data-surface="front"] .letter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 400;
  border-color: #e9cfdd;
  color: #9f6e86;
  background: #fff;
}
[data-surface="front"] .selected .letter {
  background: #d879a0;
  border-color: #d879a0;
  color: #fff;
}
[data-surface="front"] .question-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
[data-surface="front"] .question-actions .primary {
  min-width: 154px;
}
[data-surface="front"] .question-actions small {
  font-size: 14px;
  color: #94657d;
}
[data-surface="front"] .challenge-meter {
  display: flex;
  align-items: center;
  gap: 16px;
}
[data-surface="front"] .lives {
  display: inline-flex;
  gap: 5px;
}
[data-surface="front"] .life {
  width: 9px;
  height: 9px;
  background: #df9dbb;
  border-radius: 50%;
}
[data-surface="front"] .life.lost {
  background: #eadde4;
}
[data-surface="front"] .feedback {
  margin: 20px 0 0;
  padding: 14px 18px;
  background: #fbf0f5;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #b2849b;
}
[data-surface="front"] .correct {
  color: #748f88;
}
[data-surface="front"] .wrong {
  color: #c5688d;
}
[data-surface="front"] .score {
  font-size: 82px;
  color: #ce6b94;
  line-height: 1.3;
  margin: 12px 0 20px;
}
[data-surface="front"] .score small {
  font-family: LXGW, serif;
  font-size: 17px;
  color: #bb95a7;
}
[data-surface="front"] .review h3 {
  font-family: LXGW, serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
}
[data-surface="front"] .review p {
  font-size: 16px;
  color: #ac8499;
}
[data-surface="front"] .center p {
  font-size: 17px;
}
[data-surface="front"] .center h1 {
  margin-bottom: 10px;
}
[data-surface="front"] th {
  background: #fdf4f8;
  color: #b28b9f;
  font-size: 15px;
  font-weight: 400;
}
[data-surface="front"] td {
  font-size: 17px;
  color: #946b82;
  border-color: #f3e6ed;
}
[data-surface="front"] tbody tr:hover {
  background: #fef7fa;
}
[data-surface="front"] .empty {
  color: #bba2b1;
  font-size: 16px;
}
[data-surface="front"] .login {
  margin: 7vh auto;
}
[data-surface="front"] .login h1 {
  font-size: 34px;
}
[data-surface="front"] .login .card {
  padding: 30px;
}
[data-surface="front"] .login > a {
  color: #b48aa0;
  font-size: 15px;
}
[data-surface="front"] dialog {
  border-color: #ecd5e1;
  color: #856274;
  background: #fffbfd;
  border-radius: 14px;
  font-family: LXGW, serif;
}
[data-surface="front"] dialog::backdrop {
  background: #76506740;
}
[data-surface="front"] dialog h2 {
  font-size: 24px;
}
[data-surface="front"] #toast {
  background: #b65e85;
  font-family: LXGW, serif;
  font-size: 16px;
}
[data-surface="front"] #connection {
  background: #f9e7ef;
  color: #ac6988;
}
@media (max-width: 600px) {
  [data-surface="front"] header {
    height: 70px;
  }
  [data-surface="front"] .top {
    padding: 0 22px;
  }
  [data-surface="front"] .brand {
    font-size: 21px;
  }
  [data-surface="front"] main,
  [data-surface="front"] main.narrow {
    padding: 26px 20px 46px;
    min-height: calc(100dvh - 70px);
  }
  [data-surface="front"] h1 {
    font-size: 31px;
  }
  [data-surface="front"] .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  [data-surface="front"] .activity {
    min-height: 235px;
    padding: 25px;
  }
  [data-surface="front"] .activity h2 {
    margin: 23px 0 25px;
    font-size: 26px;
  }
  [data-surface="front"] .question-sheet {
    padding: 24px 20px;
    border-radius: 15px;
  }
  [data-surface="front"] .question-sheet h1 {
    font-size: 24px;
    min-height: 92px;
    margin: 24px 0 26px;
  }
  [data-surface="front"] .question-head h2 {
    font-size: 17px;
  }
  [data-surface="front"] .question-meta {
    font-size: 13px;
  }
  [data-surface="front"] .option {
    font-size: 18px;
    padding: 15px 14px;
    min-height: 63px;
    gap: 12px;
  }
  [data-surface="front"] .question-actions {
    gap: 9px;
  }
  [data-surface="front"] .question-actions button {
    padding: 11px 15px;
    font-size: 16px;
  }
  [data-surface="front"] .question-actions .primary {
    min-width: 126px;
  }
  [data-surface="front"] #profile {
    padding: 25px 22px;
  }
  [data-surface="front"] .feedback {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 领域与难度标识，装饰不参与布局和点击。 */
[data-surface="front"] .interest-picker {border:0;padding:0;margin:0;min-width:0;}
[data-surface="front"] .interest-picker legend {display:flex;width:100%;justify-content:space-between;padding:0;margin:0 0 15px;color:#80576b;font-size:18px;}
[data-surface="front"] #interest-count {font-size:14px;color:#ab8096;font-variant-numeric:tabular-nums;}
[data-surface="front"] .interest-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
[data-surface="front"] .interest-chip {min-width:0;min-height:45px;padding:10px 8px;border:1px solid #eedfe7;border-radius:10px;background:#fffafc;color:#886578;font:15px LXGW,serif;line-height:1.35;box-shadow:none;}
[data-surface="front"] .interest-chip[aria-pressed="true"] {background:#f5e2ec;border-color:#d68aab;color:#a33d6b;box-shadow:inset 0 0 0 1px #d68aab;}
[data-surface="front"] .interest-chip:disabled {opacity:.4;cursor:default;}
[data-surface="front"] .question-sheet {position:relative;overflow:hidden;isolation:isolate;transition:background-color .2s;}
[data-surface="front"] .question-sheet > :not(.difficulty-decoration) {position:relative;z-index:1;}
[data-surface="front"] .question-sheet[data-difficulty="1"] {background:#fffdfb;}
[data-surface="front"] .question-sheet[data-difficulty="2"] {background:#fffafb;}
[data-surface="front"] .question-sheet[data-difficulty="3"] {background:#fdfaff;}
[data-surface="front"] .question-sheet[data-difficulty="4"] {background:#f9fbff;}
[data-surface="front"] .question-sheet[data-difficulty="5"] {background:#fff9fc;}
[data-surface="front"] .question-difficulty {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#9a7489;font-size:14px;}
[data-surface="front"] .difficulty-badge {display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;border-radius:20px;background:#fbefd9;color:#bd8b3f;font:16px/1.15 LXGW,serif;letter-spacing:2px;}
[data-surface="front"] [data-difficulty="3"] .difficulty-badge,[data-surface="front"] [data-difficulty="4"] .difficulty-badge {background:#eee6f7;color:#a27abd;}
[data-surface="front"] [data-difficulty="5"] .difficulty-badge {background:#f8dfeb;color:#bc628e;}
[data-surface="front"] .difficulty-decoration {position:absolute;inset:0;z-index:0;pointer-events:none;user-select:none;overflow:hidden;color:#d793b0;opacity:.15;}
[data-surface="front"] .difficulty-decoration span {position:absolute;font-family:LXGW,serif;font-weight:400;line-height:1;}
[data-surface="front"] .decoration-0 {right:-13px;top:60px;font-size:135px;transform:rotate(15deg);}
[data-surface="front"] .decoration-1 {left:-18px;bottom:12px;font-size:105px;transform:rotate(-13deg);}
[data-surface="front"] .decoration-2 {right:34px;bottom:5px;font-size:78px;}
[data-surface="front"] .decoration-3 {left:30px;top:7px;font-size:48px;transform:rotate(-25deg);}
[data-surface="front"] .decoration-4 {right:155px;top:28px;font-size:38px;transform:rotate(18deg);}
@media(max-width:600px) {
 [data-surface="front"] .interest-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 [data-surface="front"] .interest-chip {min-height:44px;font-size:14px;}
 [data-surface="front"] .question-difficulty {font-size:12px;gap:8px;}
 [data-surface="front"] .difficulty-badge {font-size:14px;letter-spacing:1px;}
 [data-surface="front"] .question-meta:has(.question-difficulty) {flex-wrap:wrap;gap:10px;}
}
.test-entry-target {width:100%;}
.test-entry-target > button {width:100%;}
.test-entry-target > button:disabled {pointer-events:none;}
.test-run-badge {display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;font:13px LXGW,serif;color:#a7668a;background:#f6e8f1;border:1px solid #ead2e1;border-radius:7px;padding:4px 8px;margin:0 8px 0 0;}
.question-head h2 .test-run-badge {margin-left:12px;}
.test-password-dialog {width:min(360px,calc(100vw - 36px));box-sizing:border-box;border:1px solid #ead2e1;border-radius:17px;background:#fffcfd;color:#604655;}
.test-password-dialog h2 {font-family:KinryoTitle,LXGW,serif;font-weight:400;}
.test-password-error {color:#b94370;font:14px LXGW,serif;margin:0;}
[data-surface="front"] .interest-search {width:100%;box-sizing:border-box;margin:0 0 14px;}
[data-surface="front"] .interest-chip[hidden] {display:none;}
.emoji-sheet {background:#fffafc;border:1px solid #eedee6;border-radius:16px;overflow:hidden;}
.emoji-sheet img {display:block;width:100%;height:auto;object-fit:contain;max-height:62vh;}
.emoji-answer {font:24px KinryoTitle,LXGW,serif;text-align:center;color:#ac5678;padding:18px;}
.emoji-guess {display:flex;gap:12px;margin-top:22px;}
.emoji-guess input {flex:1;min-width:0;}
.host-emoji-image {width:100%;max-height:50vh;object-fit:contain;border-radius:10px;}
.emoji-player {padding:12px 0;border-bottom:1px solid #eedee6;overflow-wrap:anywhere;}
@media(max-width:600px){.emoji-guess {flex-wrap:wrap;}.emoji-guess button {width:100%;}}
.emoji-reveal-dialog,.emoji-grade-dialog {width:min(480px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #ead4e0;border-radius:18px;background:#fffafd;color:#684859;padding:30px;font-family:LXGW,serif;}
.emoji-reveal-dialog::backdrop,.emoji-grade-dialog::backdrop {background:#54314755;backdrop-filter:blur(4px);}
.emoji-reveal-dialog h2,.emoji-grade-dialog h2 {font-family:KinryoTitle,LXGW,serif;font-weight:400;font-size:23px;}
.emoji-score-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0;}
.emoji-score-grid button {font:24px LXGW,serif;min-height:55px;border:1px solid #ead4e0;border-radius:10px;background:#fff;color:#9c5c7c;}
.emoji-score-grid .score-ten {grid-column:1/-1;min-height:90px;font-size:42px;color:#fff;background:#b94370;border-color:#b94370;}
.emoji-score-grid .score-zero {grid-column:1/-1;min-height:44px;font-size:20px;background:#f6f1f4;color:#886578;}
[data-surface="front"] .result-return {min-width:180px;font-variant-numeric:tabular-nums;}
.hosted-meta {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0 12px;font-size:14px;color:#997080;}
.hosted-stars {color:#c67b99;letter-spacing:3px;white-space:nowrap;}
.hosted-stage {position:relative;border:1px solid #eedee6;border-radius:16px;overflow:hidden;background:#fffafc;}
.hosted-stage[hidden],.hosted-stage [hidden] {display:none;}
.hosted-stage[data-presentation="portrait"] {background:radial-gradient(ellipse at 50% 70%,#f5dfeb 0,transparent 65%),#fffafc;}
.hosted-stage[data-presentation="portrait"] img {height:56vh;max-height:620px;width:100%;object-fit:contain;padding:18px;box-sizing:border-box;}
.hosted-stage[data-presentation="scene"] img {aspect-ratio:16/9;width:100%;object-fit:contain;background:#342c35;}
.hosted-stage blockquote {margin:0;padding:clamp(48px,8vw,88px) clamp(24px,5vw,56px);font:clamp(24px,3.5vw,34px)/1.8 LXGW,serif;text-align:center;min-height:180px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;}
.hosted-stage[data-presentation="quote"]::before {content:'“';position:absolute;left:20px;top:4px;font:90px/1 Georgia,serif;color:#efd5e1;pointer-events:none;}
.hosted-stage[data-difficulty="3"],.hosted-stage[data-difficulty="4"],.hosted-stage[data-difficulty="5"] {box-shadow:inset 0 0 45px #f1d5e559;}
.hosted-stage [data-retry] {display:block;margin:16px auto;}
.hosted-waiting {text-align:center;padding:72px 20px;color:#997080;border:1px solid #eedee6;border-radius:16px;background:#fffafc;}
.hosted-waiting[hidden] {display:none;}
.hosted-actions {display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;position:sticky;bottom:12px;padding:12px;background:#fffafcf2;border:1px solid #eedee6;border-radius:14px;z-index:2;}
.hosted-actions button {min-height:52px;}
.hosted-setup .interest-grid {margin:8px 0;}
.hosted-bank-editor summary {cursor:pointer;}
@media(max-width:650px){.hosted-actions {grid-template-columns:1fr 1fr;bottom:6px;}.hosted-actions .primary {grid-column:1/-1;}.hosted-setup .interest-chip {min-height:46px;}}
.music-listening{display:grid;place-items:center;min-height:220px;font:100px LXGW,serif;color:#bf7596;}
