:root {
  --ink:#161a2b;
  --muted:#647087;
  --purple:#7f5af0;
  --purple-dark:#6540d8;
  --yellow:#ffde59;
  --green:#2cb67d;
  --red:#ef695a;
  --blue:#40a9ed;
  --line:#171923;
  --shadow:4px 5px 0 var(--line);
}

* {
  box-sizing:border-box;
}

html {
  min-height:100%;
  scroll-behavior:smooth;
}

body {
  margin:0;
  color:var(--ink);
  font-family:'Nunito',system-ui,sans-serif;
  background:#fff;
  background-image:radial-gradient(#dbe0e8 1.3px,transparent 1.3px);
  background-size:25px 25px;
}

button,input {
  font:inherit;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
  opacity:.6;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid var(--purple);
  outline-offset:5px;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  color:var(--ink);
}

.site-header {
  max-width:1184px;
  margin:auto;
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 32px;
  gap:20px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:26px;
  font-weight:1000;
  letter-spacing:-1px;
}

.brand-dot {
  color:var(--purple);
}

.brand-symbol {
  position:relative;
  display:grid;
  place-items:center;
  width:47px;
  height:47px;
  background:var(--purple);
  color:white;
  border:3px solid var(--line);
  border-radius:13px 13px 13px 3px;
  box-shadow:3px 3px 0 var(--line);
  font-size:31px;
  line-height:1;
}

.brand-symbol span {
  position:absolute;
  right:-9px;
  bottom:-6px;
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  background:var(--yellow);
  border:2px solid var(--line);
  border-radius:6px;
  color:var(--ink);
  font-size:14px;
  transform:rotate(-10deg);
}

nav {
  display:flex;
  align-items:center;
  gap:25px;
}

.nav-link {
  border:0;
  background:transparent;
  font-size:14px;
  font-weight:900;
  min-height:44px;
}

.record-button {
  border:2px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:9px 15px;
  font-size:14px;
  font-weight:900;
  box-shadow:3px 3px 0 var(--line);
  min-height:44px;
}

.record-button>span:first-child {
  color:var(--purple);
  margin-right:5px;
  font-size:21px;
}

#app {
  max-width:1184px;
  margin:0 auto;
  padding:24px 32px 48px;
}

.home-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  align-items:center;
  gap:60px;
  padding:32px 0 48px;
}

.eyebrow {
  font-size:11px;
  font-weight:1000;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

.intro-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:2px solid var(--line);
  border-radius:30px;
  padding:8px 13px;
  background:#fff7d8;
  box-shadow:2px 3px 0 var(--line);
  font-size:11px;
  font-weight:1000;
  letter-spacing:.8px;
}

.intro-badge .spark {
  font-size:17px;
  color:#8c6b00;
}

.home-heading {
  font-size:clamp(46px,5.4vw,70px);
  letter-spacing:-2.8px;
  line-height:1.04;
  font-weight:1000;
  margin:24px 0 23px;
}

.marked {
  position:relative;
  display:inline-block;
  z-index:0;
  white-space:nowrap;
}

.marked:after {
  content:'';
  position:absolute;
  bottom:3px;
  left:-3px;
  right:-7px;
  height:21px;
  background:var(--yellow);
  z-index:-1;
  transform:rotate(-2deg);
  border-radius:3px;
}

.home-copy {
  font-size:17px;
  line-height:1.7;
  font-weight:700;
  color:var(--muted);
  max-width:410px;
  margin:0 0 28px;
}

.home-copy strong {
  color:var(--ink);
  font-weight:900;
}

.primary-button,.secondary-button,.pass-button {
  border:2px solid var(--line);
  border-radius:14px;
  min-height:54px;
  padding:13px 21px;
  font-weight:1000;
  font-size:16px;
  box-shadow:var(--shadow);
  display:inline-flex;
  gap:16px;
  align-items:center;
  justify-content:center;
  transition:transform .15s,box-shadow .15s;
}

.primary-button {
  background:var(--purple);
  color:#fff;
}

.primary-button:hover {
  background:var(--purple-dark);
  transform:translate(-1px,-2px);
  box-shadow:5px 7px 0 var(--line);
}

.primary-button:active,.secondary-button:active,.pass-button:active {
  transform:translate(3px,3px);
  box-shadow:1px 2px 0 var(--line);
}

.primary-button>span {
  font-size:23px;
}

.secondary-button {
  background:#fff;
}

.pass-button {
  background:var(--yellow);
}

.start-button {
  min-width:242px;
  justify-content:space-between;
}

.under-cta {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  margin:16px 0 0;
}

.under-cta .dot {
  height:7px;
  width:7px;
  border-radius:50%;
  background:var(--green);
}

.home-art {
  position:relative;
}

.wheel-card {
  border:3px solid var(--line);
  border-radius:28px;
  background:#f5f1ff;
  box-shadow:7px 8px 0 var(--line);
  padding:16px;
  position:relative;
}

.wheel {
  position:relative;
  width:100%;
  aspect-ratio:1;
  max-width:450px;
  margin:auto;
}

.letter {
  position:absolute;
  left:var(--x);
  top:var(--y);
  transform:translate(-50%,-50%);
  width:7.7%;
  aspect-ratio:1;
  display:grid;
  place-items:center;
  border:2px solid var(--line);
  border-radius:50%;
  font-size:clamp(11px,1.4vw,16px);
  font-weight:1000;
  background:#fff;
  box-shadow:1px 2px 0 var(--line);
  z-index:2;
}

.letter.correct {
  background:var(--green);
  color:#fff;
}

.letter.wrong {
  background:var(--red);
  color:#fff;
}

.letter.passed {
  background:var(--yellow);
}

.letter.active {
  background:var(--purple);
  color:#fff;
  box-shadow:0 0 0 4px #d7c8fc,2px 3px 0 var(--line);
}

.wheel-center {
  position:absolute;
  inset:25%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
}

.wheel-word {
  font-size:54px;
  font-weight:1000;
  letter-spacing:-3px;
  line-height:1;
}

.wheel-word .accent {
  color:var(--purple);
}

.wheel-small {
  font-size:12px;
  letter-spacing:1.5px;
  font-weight:1000;
  color:var(--muted);
  margin-top:10px;
}

.wheel-tag {
  border:2px solid var(--line);
  background:var(--yellow);
  padding:7px 12px;
  border-radius:9px;
  font-size:11px;
  font-weight:1000;
  transform:rotate(-5deg);
  margin-top:15px;
}

.wheel-caption {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#fff;
  border:2px solid var(--line);
  border-radius:13px;
  padding:12px;
  font-size:12px;
  font-weight:900;
  margin:4px 0 2px;
}

.wheel-caption span {
  color:var(--purple);
  font-size:18px;
}

.sticker {
  position:absolute;
  z-index:4;
  display:grid;
  place-items:center;
  border:2px solid var(--line);
  box-shadow:3px 3px 0 var(--line);
  background:var(--yellow);
  border-radius:12px;
  font-size:12px;
  font-weight:1000;
  padding:9px 15px;
  transform:rotate(8deg);
  right:-14px;
  top:-17px;
}

.little-star {
  position:absolute;
  left:-23px;
  bottom:26px;
  font-size:43px;
  color:var(--purple);
  text-shadow:2px 2px 0 var(--line);
  transform:rotate(-10deg);
}

.feature-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  padding-top:26px;
  border-top:2px dashed #d9dce5;
}

.feature {
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px 16px;
  background:#fff;
  border:2px solid var(--line);
  border-radius:17px;
  box-shadow:3px 4px 0 var(--line);
}

.feature-icon {
  width:47px;
  height:47px;
  display:grid;
  place-items:center;
  border:2px solid var(--line);
  border-radius:12px;
  font-weight:1000;
  font-size:22px;
  flex-shrink:0;
}

.feature:nth-child(1) .feature-icon {
  background:#e9e2ff;
  color:var(--purple);
}

.feature:nth-child(2) .feature-icon {
  background:#fff3c5;
}

.feature:nth-child(3) .feature-icon {
  background:#e2f5ee;
  color:#168052;
}

.feature strong {
  display:block;
  font-size:14px;
  font-weight:1000;
}

.feature p {
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin:3px 0 0;
}

.site-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  max-width:1184px;
  padding:20px 32px 30px;
  margin:auto;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

.prototype-note {
  white-space:nowrap;
}

.game-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:7px 0 26px;
}

.back-button {
  border:0;
  background:transparent;
  font-weight:900;
  min-height:44px;
  padding:0;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.game-pill {
  background:#fff;
  border:2px solid var(--line);
  border-radius:25px;
  padding:8px 14px;
  font-size:11px;
  letter-spacing:1px;
  font-weight:1000;
}

.game-layout {
  display:grid;
  grid-template-columns:.95fr 1.1fr;
  gap:36px;
  align-items:start;
}

.game-wheel-card {
  background:#fff;
  border:3px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow);
  padding:20px;
}

.game-wheel-card .wheel {
  max-width:370px;
}

.game-wheel-card .letter {
  font-size:14px;
}

.current-center-letter {
  font-size:clamp(70px,8vw,110px);
  line-height:1;
  font-weight:1000;
  color:var(--purple);
}

.current-center-sub {
  font-size:11px;
  letter-spacing:1px;
  font-weight:900;
  color:var(--muted);
  margin-top:9px;
}

.legend {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:10px;
  font-weight:900;
  color:var(--muted);
  margin:15px 0 7px;
}

.legend span {
  display:flex;
  align-items:center;
  gap:5px;
}

.legend i {
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:50%;
}

.green-dot {
  background:var(--green);
}

.red-dot {
  background:var(--red);
}

.yellow-dot {
  background:var(--yellow);
}

.game-counts {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  border-top:2px solid #eef0f5;
  margin-top:20px;
  padding-top:18px;
  text-align:center;
}

.game-counts strong {
  display:block;
  font-size:24px;
  font-weight:1000;
}

.game-counts span {
  font-size:10px;
  font-weight:900;
  color:var(--muted);
}

.game-counts>div:nth-child(1) strong {
  color:#168052;
}

.game-counts>div:nth-child(2) strong {
  color:#cd4839;
}

.game-counts>div:nth-child(3) strong {
  color:#997300;
}

.timer-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 17px;
}

.round-label {
  font-size:12px;
  font-weight:900;
  letter-spacing:1px;
  color:var(--muted);
}

.timer {
  display:flex;
  align-items:center;
  gap:10px;
  border:2px solid var(--line);
  border-radius:12px;
  background:var(--yellow);
  padding:8px 14px;
  box-shadow:3px 3px 0 var(--line);
  font-size:23px;
  font-weight:1000;
  font-variant-numeric:tabular-nums;
  min-width:115px;
  justify-content:center;
}

.timer.low {
  background:#ffe6df;
  color:#b33525;
}

.clock-symbol {
  width:20px;
  height:20px;
  border:2px solid currentColor;
  border-radius:50%;
  position:relative;
  display:inline-block;
}

.clock-symbol:after {
  content:'';
  position:absolute;
  width:5px;
  height:6px;
  left:7px;
  top:3px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
}

.question-card {
  border:3px solid var(--line);
  border-radius:25px;
  background:#fff;
  box-shadow:6px 7px 0 var(--line);
  overflow:hidden;
}

.question-top {
  background:#eee8ff;
  border-bottom:2px solid var(--line);
  padding:17px 23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.letter-label {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:1000;
  font-size:14px;
}

.small-letter {
  width:40px;
  height:42px;
  display:grid;
  place-items:center;
  background:var(--purple);
  color:#fff;
  border:2px solid var(--line);
  border-radius:10px;
  font-size:24px;
  box-shadow:2px 2px 0 var(--line);
}

.question-count {
  font-size:11px;
  font-weight:900;
  color:var(--muted);
  white-space:nowrap;
}

.question-body {
  padding:27px 25px 25px;
}

.question-text {
  font-weight:900;
  font-size:25px;
  line-height:1.5;
  letter-spacing:-.5px;
  margin:0 0 30px;
  min-height:112px;
}

.answer-label {
  font-size:11px;
  font-weight:1000;
  letter-spacing:1px;
  display:block;
  margin-bottom:9px;
}

.answer-input {
  width:100%;
  border:2px solid var(--line);
  background:#fafaff;
  border-radius:13px;
  padding:15px 16px;
  font-size:20px;
  font-weight:900;
  color:var(--ink);
  min-height:58px;
}

.answer-input::placeholder {
  font-size:16px;
  font-weight:700;
  color:#9298aa;
}

.answer-actions {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:13px;
  margin:16px 0 15px;
}

.keyboard-hint {
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-align:center;
  margin:0;
}

.keyboard-hint kbd {
  font:inherit;
  border:1px solid #cdd2de;
  border-radius:4px;
  background:#f6f7fb;
  padding:1px 5px;
}

.feedback {
  font-size:13px;
  font-weight:900;
  padding:13px 15px;
  border-radius:12px;
  background:#fff;
  border:2px solid #dfe3ec;
  margin:17px 0 0;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:8px;
}

.feedback.success {
  background:#e9f8ef;
  border-color:#b0dfc6;
  color:#15663f;
}

.feedback.error {
  background:#fff0ed;
  border-color:#f0c0b8;
  color:#a73528;
}

.feedback.pass {
  background:#fff9dc;
  border-color:#eddf9b;
  color:#705600;
}

.tiny-note {
  font-size:11px;
  color:var(--muted);
  font-weight:700;
  text-align:center;
  margin:19px 0 0;
}

.result-header {
  text-align:center;
  margin:20px auto 30px;
  max-width:650px;
}

.result-sticker {
  display:inline-flex;
  padding:8px 15px;
  background:var(--yellow);
  border:2px solid var(--line);
  border-radius:12px;
  box-shadow:3px 3px 0 var(--line);
  font-size:12px;
  font-weight:1000;
  transform:rotate(-3deg);
}

.result-header h1 {
  font-size:clamp(35px,5vw,53px);
  font-weight:1000;
  letter-spacing:-1.8px;
  margin:22px 0 10px;
}

.result-header p {
  color:var(--muted);
  font-weight:700;
}

.result-layout {
  display:grid;
  grid-template-columns:300px 1fr;
  gap:28px;
  align-items:start;
}

.result-summary {
  border:3px solid var(--line);
  border-radius:23px;
  background:#f1ecff;
  box-shadow:var(--shadow);
  padding:24px;
  text-align:center;
}

.big-score {
  font-size:64px;
  font-weight:1000;
  letter-spacing:-2px;
  line-height:1.15;
  color:var(--purple);
}

.score-label {
  font-size:11px;
  letter-spacing:2px;
  font-weight:1000;
  margin-bottom:17px;
}

.result-summary .game-counts {
  border-color:#dcd4f2;
  margin-bottom:24px;
}

.result-summary .primary-button {
  width:100%;
  font-size:14px;
  padding:12px;
}

.home-again {
  border:0;
  background:none;
  min-height:44px;
  font-weight:900;
  font-size:12px;
  margin-top:12px;
  text-decoration:underline;
  text-underline-offset:4px;
}

.answers-title {
  margin:0 0 12px;
  font-size:20px;
  font-weight:1000;
}

.review-list {
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.review-item {
  display:flex;
  align-items:flex-start;
  gap:13px;
  border:2px solid var(--line);
  border-radius:14px;
  padding:15px;
  background:#fff;
}

.review-letter {
  flex-shrink:0;
  width:33px;
  height:36px;
  display:grid;
  place-items:center;
  border:2px solid var(--line);
  border-radius:9px;
  background:#f2f3f8;
  font-weight:1000;
  font-size:17px;
}

.review-letter.correct {
  background:#dbf3e7;
  color:#12643d;
}

.review-letter.wrong {
  background:#ffe5df;
  color:#a73427;
}

.review-letter.passed {
  background:#fff2ba;
}

.review-content {
  min-width:0;
  flex:1;
}

.review-content-top {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:6px;
}

.review-answer {
  font-size:14px;
  font-weight:1000;
  overflow-wrap:anywhere;
}

.review-status {
  font-size:10px;
  font-weight:900;
  color:var(--muted);
}

.review-content p {
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  line-height:1.5;
  margin:5px 0 0;
}

.review-content .your-guess {
  color:#b34436;
}

.full-width {
  width:100%;
}

dialog {
  border:3px solid var(--line);
  border-radius:24px;
  padding:25px;
  box-shadow:7px 8px 0 var(--line);
  color:var(--ink);
  background:#fff;
  max-width:480px;
  width:calc(100% - 36px);
  max-height:calc(100dvh - 50px);
  overflow:auto;
}

dialog::backdrop {
  background:#18162980;
  backdrop-filter:blur(4px);
}

.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}

.dialog-heading .eyebrow {
  color:var(--purple);
}

.close-button {
  border:2px solid var(--line);
  border-radius:10px;
  width:44px;
  height:44px;
  flex-shrink:0;
  background:#fff;
  font-size:25px;
  line-height:1;
}

.dialog-heading+h2 {
  font-weight:1000;
  font-size:29px;
  line-height:1.2;
  letter-spacing:-.7px;
  margin:16px 0 20px;
}

.how-list {
  padding:0;
  margin:0 0 22px;
  list-style:none;
  display:grid;
  gap:18px;
}

.how-list li {
  display:flex;
  align-items:flex-start;
  gap:13px;
}

.how-list li>span {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:34px;
  height:36px;
  border:2px solid var(--line);
  border-radius:9px;
  background:#fff1b5;
  font-size:12px;
  font-weight:1000;
}

.how-list strong {
  font-size:14px;
  font-weight:900;
}

.how-list p,dialog>p {
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  line-height:1.6;
  margin:4px 0 0;
}

.dialog-note {
  font-size:11px!important;
  border-top:1px solid #e0e3ec;
  padding-top:14px;
  margin-bottom:20px!important;
}

.record-empty {
  padding:22px 0 30px;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  font-weight:700;
}

.record-item {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #e0e3ec;
  padding:13px 0;
  font-size:13px;
  font-weight:800;
}

.record-item strong {
  color:var(--purple);
  white-space:nowrap;
}

.record-item small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:3px;
}

#records-content {
  margin-bottom:23px;
}

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

.dialog-actions button {
  flex:1;
  font-size:13px;
  padding:12px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(min-width:1000px) {
  .home-grid {
    min-height:590px;
  }
  .home-heading {
    font-size:73px;
  }
  .question-text {
    min-height:126px;
  }
}

@media(max-width:800px) {
  .site-header {
    padding:22px 24px;
    min-height:95px;
  }
  .brand {
    font-size:23px;
  }
  nav {
    gap:14px;
  }
  #app {
    padding:18px 24px 35px;
  }
  .home-grid {
    gap:30px;
    padding:20px 0 40px;
  }
  .home-heading {
    font-size:49px;
    letter-spacing:-1.8px;
  }
  .home-copy {
    font-size:15px;
  }
  .start-button {
    min-width:210px;
  }
  .feature-strip {
    gap:12px;
  }
  .feature {
    padding:14px 11px;
    gap:10px;
  }
  .feature-icon {
    width:37px;
    height:39px;
    font-size:18px;
  }
  .feature strong {
    font-size:12px;
  }
  .feature p {
    font-size:11px;
  }
  .wheel-word {
    font-size:40px;
  }
  .wheel-small {
    font-size:9px;
  }
  .wheel-tag {
    font-size:9px;
    padding:5px 8px;
  }
  .sticker {
    right:-8px;
    font-size:10px;
  }
  .game-layout {
    gap:23px;
    grid-template-columns:.85fr 1fr;
  }
  .game-wheel-card {
    padding:12px;
  }
  .question-body {
    padding:23px 18px;
  }
  .question-text {
    font-size:21px;
  }
  .question-top {
    padding:14px 17px;
  }
  .answer-actions {
    gap:10px;
  }
  .answer-actions button {
    padding:12px;
    font-size:14px;
  }
  .game-wheel-card .letter {
    font-size:11px;
  }
  .result-layout {
    grid-template-columns:250px 1fr;
  }
  .site-footer {
    padding:20px 24px;
  }
}

@media(max-width:620px) {
  .site-header {
    padding:22px 20px 15px;
    min-height:90px;
  }
  .brand {
    gap:10px;
    font-size:23px;
  }
  .brand-symbol {
    width:37px;
    height:39px;
    font-size:26px;
    border-radius:10px 10px 10px 3px;
  }
  .brand-symbol span {
    width:18px;
    height:18px;
    font-size:11px;
    right:-7px;
  }
  .nav-link {
    font-size:11px;
  }
  .record-button {
    padding:6px 10px;
    box-shadow:2px 2px 0 var(--line);
    font-size:12px;
  }
  .record-button>span:first-child {
    font-size:18px;
    margin:0;
  }
  .record-button>span:last-child {
    display:none;
  }
  nav {
    gap:10px;
  }
  #app {
    padding:12px 20px 30px;
  }
  .home-grid {
    grid-template-columns:1fr;
    gap:40px;
    padding:10px 0 30px;
  }
  .home-intro {
    text-align:center;
  }
  .intro-badge {
    font-size:10px;
    padding:7px 12px;
  }
  .home-heading {
    font-size:54px;
    letter-spacing:-2.3px;
    margin:22px 0 18px;
  }
  .home-copy {
    font-size:15px;
    line-height:1.7;
    margin:0 auto 23px;
    max-width:340px;
  }
  .marked:after {
    height:16px;
  }
  .start-button {
    min-width:260px;
    text-align:left;
  }
  .under-cta {
    justify-content:center;
    font-size:11px;
  }
  .home-art {
    max-width:390px;
    width:100%;
    margin:0 auto;
  }
  .wheel-card {
    padding:13px;
    border-radius:24px;
    box-shadow:5px 6px 0 var(--line);
  }
  .letter {
    font-size:12px;
  }
  .wheel-word {
    font-size:48px;
  }
  .wheel-small {
    font-size:10px;
  }
  .wheel-tag {
    font-size:10px;
  }
  .wheel-caption {
    font-size:11px;
    padding:10px;
  }
  .sticker {
    font-size:10px;
    right:-4px;
    top:-13px;
    padding:7px 11px;
  }
  .little-star {
    left:-12px;
    bottom:20px;
    font-size:31px;
  }
  .feature-strip {
    grid-template-columns:1fr;
    border:0;
    padding-top:0;
    gap:12px;
  }
  .feature {
    padding:14px 17px;
    gap:15px;
  }
  .feature-icon {
    width:42px;
    height:43px;
    font-size:17px;
    white-space:nowrap;
    letter-spacing:-1px;
  }
  .feature strong {
    font-size:14px;
  }
  .feature p {
    font-size:12px;
  }
  .site-footer {
    padding:10px 20px 26px;
    flex-direction:column;
    text-align:center;
    gap:7px;
    font-size:10px;
  }
  .game-top {
    margin:2px 0 16px;
  }
  .game-pill {
    font-size:9px;
    padding:7px 10px;
  }
  .back-button {
    font-size:12px;
  }
  .game-layout {
    grid-template-columns:1fr;
    gap:22px;
  }
  .game-wheel-card {
    padding:9px 12px 12px;
    border-width:2px;
    box-shadow:3px 4px 0 var(--line);
  }
  .game-wheel-card .wheel {
    max-width:245px;
  }
  .game-wheel-card .letter {
    font-size:10px;
    border-width:1.7px;
    box-shadow:1px 1px 0 var(--line);
  }
  .current-center-letter {
    font-size:72px;
  }
  .current-center-sub {
    font-size:9px;
  }
  .game-wheel-card .legend {
    margin:8px 0;
    font-size:9px;
    gap:12px;
  }
  .game-counts {
    padding-top:11px;
    margin-top:12px;
  }
  .game-counts strong {
    font-size:21px;
  }
  .game-counts span {
    font-size:9px;
  }
  .game-panel {
    order:-1;
  }
  .game-panel .timer-row {
    margin-bottom:13px;
  }
  .timer {
    font-size:20px;
    min-width:101px;
    padding:6px 12px;
  }
  .round-label {
    font-size:10px;
  }
  .question-card {
    border-width:2px;
    border-radius:20px;
    box-shadow:4px 5px 0 var(--line);
  }
  .question-top {
    padding:12px 15px;
  }
  .small-letter {
    width:33px;
    height:35px;
    font-size:21px;
  }
  .letter-label {
    font-size:12px;
    gap:10px;
  }
  .question-body {
    padding:19px 17px;
  }
  .question-text {
    font-size:21px;
    line-height:1.45;
    min-height:88px;
    margin-bottom:20px;
  }
  .answer-input {
    font-size:19px;
    min-height:53px;
    padding:12px;
  }
  .answer-label {
    font-size:10px;
  }
  .answer-actions {
    margin:13px 0;
    gap:12px;
  }
  .answer-actions button {
    min-height:49px;
  }
  .keyboard-hint {
    font-size:10px;
  }
  .feedback {
    font-size:12px;
    margin-top:13px;
    min-height:44px;
    padding:10px;
  }
  .tiny-note {
    font-size:10px;
    margin-top:14px;
  }
  .result-header {
    margin-top:14px;
  }
  .result-layout {
    grid-template-columns:1fr;
    gap:28px;
  }
  .result-summary {
    padding:21px;
  }
  .big-score {
    font-size:55px;
  }
  .result-summary .game-counts {
    max-width:280px;
    margin:0 auto 20px;
    padding-top:16px;
  }
  .result-summary .primary-button {
    max-width:290px;
  }
  .score-label {
    margin-bottom:17px;
  }
  .review-item {
    padding:13px;
    gap:11px;
  }
  .review-answer {
    font-size:13px;
  }
  .review-content p {
    font-size:11px;
  }
  .dialog-actions {
    flex-direction:column;
  }
  dialog {
    padding:21px;
  }
  .dialog-heading+h2 {
    font-size:26px;
  }
  .close-button {
    width:44px;
    height:44px;
  }
}

@media(max-width:360px) {
  .site-header {
    padding:18px 15px;
  }
  .brand {
    font-size:20px;
  }
  #app {
    padding:10px 15px 25px;
  }
  .home-heading {
    font-size:47px;
  }
  .home-copy {
    font-size:14px;
  }
  .nav-link {
    font-size:10px;
  }
  .home-grid {
    gap:36px;
  }
  .question-text {
    font-size:19px;
  }
  .game-pill {
    font-size:8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

/* The game clock starts only after this preparation screen. */
.countdown-card {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  margin: 20px auto 36px;
  padding: clamp(22px, 5vw, 40px);
  text-align: center;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--line);
}
.countdown-card .intro-badge { font-size: 11px; }
.countdown-card h1 { margin: 20px 0 6px; font-size: clamp(32px, 7vw, 46px); letter-spacing: -1.5px; font-weight: 1000; }
.countdown-card h1 > span { color: var(--purple); }
.countdown-intro { margin: 0; color: #64748b; font-weight: 800; }
.countdown-stage { position: relative; height: 252px; margin: 22px 0 0; }
.countdown-ring { position: absolute; width: 226px; height: 226px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 2px dashed #d9d0fb; border-radius: 50%; }
.countdown-ring i { position: absolute; top: 50%; left: calc(50% - 2px); width: 4px; height: 9px; background: #b49af7; border-radius: 3px; transform: rotate(var(--turn)) translateY(-120px); transform-origin: 2px 0; }
.countdown-value { position: relative; width: 178px; height: 178px; display: grid; place-items: center; margin: -215px auto 37px; border: 3px solid var(--line); border-radius: 45px; background: var(--purple); color: white; box-shadow: 7px 8px 0 var(--line); transform: rotate(-5deg); }
.countdown-number { display: block; font-size: 112px; font-weight: 1000; line-height: 1; transform: rotate(5deg); animation: countdown-pop .65s cubic-bezier(.2,.8,.2,1) both; }
.countdown-number.ready { font-size: 39px; color: #ffe45e; }
.countdown-spark { position: absolute; color: #ffe45e; font-size: 48px; -webkit-text-stroke: 1.5px var(--line); animation: countdown-float 1.8s ease-in-out infinite alternate; }
.spark-one { left: 4%; top: 4%; transform: rotate(-12deg); }
.spark-two { right: 2%; bottom: 8%; color: #28b88a; animation-delay: -.9s; }
.countdown-orbit { position: absolute; z-index: 1; display: grid; place-items: center; width: 44px; height: 46px; border: 3px solid var(--line); border-radius: 12px; font-size: 25px; font-weight: 1000; box-shadow: 3px 3px 0 var(--line); }
.orbit-a { left: 10%; bottom: 7%; background: #ffe45e; transform: rotate(-14deg); }
.orbit-z { right: 8%; top: 3%; background: #a9e5fa; transform: rotate(12deg); }
.countdown-caption { position: relative; min-height: 44px; margin: 0; font-weight: 900; font-size: 17px; }
.countdown-steps { display: flex; justify-content: center; gap: 12px; margin: 10px 0 18px; }
.countdown-steps span { display: grid; place-items: center; width: 35px; height: 35px; border: 2px solid var(--line); border-radius: 50%; font-weight: 1000; background: #f0eef5; color: #6b7280; transition: background .2s, transform .2s; }
.countdown-steps .current { background: #ffe45e; color: var(--line); transform: scale(1.12); box-shadow: 2px 2px 0 var(--line); }
.countdown-steps .done { background: #28b88a; color: #10251f; }
.countdown-note { margin: 0 0 10px; color: #64748b; font-size: 13px; font-weight: 700; }
.countdown-card > .back-button { min-height: 44px; }
@keyframes countdown-pop { 0% { opacity: 0; transform: rotate(5deg) scale(.65); } 55% { opacity: 1; transform: rotate(5deg) scale(1.08); } 100% { opacity: 1; transform: rotate(5deg) scale(1); } }
@keyframes countdown-float { from { translate: 0 -4px; } to { translate: 0 6px; } }
@media (max-width: 400px) { .countdown-card { padding: 22px 16px; } .countdown-stage { margin-top: 12px; } .countdown-card .intro-badge { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .countdown-number, .countdown-spark { animation: none; } .countdown-steps span { transition: none; } }

.answer-input[aria-invalid="true"] { border-color: #c93434; }
#answer-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.finish-round { margin-left: auto; color: #a82d3b; min-height: 44px; }
@media (max-width: 620px) {
  body[data-screen="game"] .site-header,
  body[data-screen="game"] .site-footer { display: none; }
  body[data-screen="game"] #app { padding: max(8px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)); }
  body[data-screen="game"] .game-top { margin: 0 0 6px; gap: 10px; }
  body[data-screen="game"] .back-button { min-height: 44px; padding: 8px; }
  .game-top .game-pill { margin-left: auto; }
  .game-layout { gap: 12px; }
  .game-panel .timer-row { margin-bottom: 8px; }
  .question-top { padding: 9px 12px; }
  .question-body { padding: 14px; }
  .question-text { font-size: 20px; line-height: 1.35; min-height: 54px; margin-bottom: 14px; overflow-wrap: anywhere; }
  .answer-input { font-size: 18px; min-height: 52px; }
  .answer-actions { margin: 10px 0 0; gap: 10px; }
  .answer-actions button { min-height: 52px; touch-action: manipulation; }
  .keyboard-hint { margin: 14px 0 0; line-height: 1.5; }
  .feedback { margin-top: 10px; min-height: 40px; }
  .game-panel > .tiny-note { display: none; }
  .game-wheel-card { padding: 12px; }
  .game-wheel-card .wheel {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
  }
  .game-wheel-card .wheel .letter {
    position: static;
    transform: none;
    width: 100%;
    height: 24px;
    border-radius: 7px;
    font-size: 11px;
    box-shadow: none;
  }
  .game-wheel-card .wheel .letter.active { outline: 2px solid var(--purple); outline-offset: 1px; }
  .game-wheel-card .wheel-center,
  .game-wheel-card .legend { display: none; }
  .game-wheel-card .game-counts { display: flex; justify-content: space-around; margin-top: 10px; padding-top: 8px; }
  .game-wheel-card .game-counts > div { display: flex; gap: 6px; align-items: baseline; }
  .game-wheel-card .game-counts strong { font-size: 17px; }
}
@media (max-width: 620px) and (max-height: 540px) {
  body[data-screen="game"] .game-top { margin-bottom: 2px; }
  .question-body { padding: 10px 12px; }
  .question-text { min-height: 0; font-size: 18px; margin-bottom: 8px; }
  .question-top { padding: 6px 12px; }
  .keyboard-hint { display: none; }
  .feedback { padding: 8px; margin-top: 8px; min-height: 0; }
}

.home-description { color: var(--purple-dark); font-size: 16px; font-weight: 900; margin: -4px 0 14px; }
.home-guide { padding: 44px 0; border-top: 2px solid #e5e7eb; }
.section-intro { max-width: 690px; }
.home-guide h2, .home-faq h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 12px 0 16px; font-weight: 1000; }
.section-intro > p, .guide-steps p, .home-faq p, .guide-page p { color: #475569; line-height: 1.8; }
.guide-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-steps li { background: white; border: 2px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 4px 4px 0 var(--line); }
.guide-steps li > span { font-size: 22px; color: var(--purple); font-weight: 1000; }
.guide-steps h3 { font-size: 18px; margin: 12px 0 8px; }
.guide-steps p { font-size: 14px; margin: 0; }
.guide-link { display: inline-flex; gap: 10px; align-items: center; color: var(--purple-dark); font-weight: 900; min-height: 44px; text-underline-offset: 4px; }
.home-faq { padding: 16px 0 24px; }
.home-faq details { background: white; padding: 18px 20px; border: 2px solid #dde1e8; border-radius: 16px; margin: 12px 0; }
.home-faq summary { cursor: pointer; font-weight: 900; line-height: 1.6; }
.home-faq details p { margin: 14px 0 0; font-size: 15px; }
.no-script-note { padding: 16px; border: 2px solid #111; background: #fff2b6; border-radius: 12px; }
.guide-page { max-width: 820px; margin: 0 auto; padding: 24px 28px 64px; }
.guide-heading { margin: 28px 0 36px; }
.guide-heading h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -1px; }
.guide-page section { margin: 30px 0; }
.guide-page h2 { font-size: 24px; line-height: 1.3; }
.guide-play { margin-top: 20px; text-decoration: none; }
.site-footer a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .home-description { font-size: 14px; line-height: 1.6; }
  .guide-steps { grid-template-columns: 1fr; gap: 14px; }
  .home-guide { padding: 28px 0; }
  .guide-page { padding: 16px 20px 40px; }
  .guide-page .guide-heading { margin-top: 18px; }
  .guide-page .primary-button { font-size: 14px; }
  .guide-page + .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}


/* Homepage: a compact introduction and a clearer play area. */
.home-grid {
  grid-template-columns: 1.12fr 1fr;
  min-height: 0;
  gap: 44px;
  padding: 30px 0 52px;
}
.home-heading {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -2.6px;
  margin: 24px 0 22px;
}
.home-heading .marked { white-space: normal; }
.home-heading .marked:after { bottom: 4px; height: 17px; }
.home-grid .home-copy { max-width: 450px; margin-bottom: 24px; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.home-rules-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.home-rules-link:hover { color: var(--purple-dark); }
.home-art .wheel-card { background: #f7f4ff; padding: 20px; border-radius: 30px; }
.wheel-preview-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid #dcd4f1; font-size: 11px; font-weight: 900; letter-spacing: .6px; }
.wheel-preview-heading > span:first-child { color: var(--purple-dark); }
.wheel-preview-heading > span:last-child { color: #586177; letter-spacing: 0; }
.home-art .wheel-caption { background: white; border: 1px solid #ded7ee; box-shadow: none; border-radius: 12px; font-size: 12px; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #168052; flex-shrink: 0; }
.home-art .sticker { right: -10px; top: -15px; transform: rotate(7deg); }
.home-art .little-star { left: -16px; bottom: 34px; }
.feature-strip { padding: 0 0 42px; border-top: 0; gap: 16px; }
.feature { box-shadow: 2px 3px 0 var(--line); }
.home-guide { padding-top: 38px; }
.guide-steps li { position: relative; border-color: #ddd6ee; box-shadow: none; border-radius: 18px; }
.guide-steps li > span { display: grid; place-items: center; width: 38px; height: 38px; background: #eee8fc; border-radius: 12px; font-size: 17px; }
.home-faq { max-width: 820px; margin: 0 auto; padding-top: 28px; }
.home-faq h2 { margin-bottom: 22px; }
.home-faq details { border-width: 1px; border-color: #d8dce5; }
.home-faq details[open] { background: #f8f5ff; border-color: #b7a2ee; }
@media (min-width: 621px) and (max-width: 900px) {
  .home-grid { gap: 24px; }
  .home-heading { font-size: 46px; letter-spacing: -1.7px; }
  .home-actions { gap: 10px; }
  .home-art .wheel-card { padding: 14px; }
  .wheel-preview-heading { font-size: 9px; gap: 6px; }
}
@media (max-width: 620px) {
  .home-grid { grid-template-columns: 1fr; padding: 12px 0 28px; gap: 32px; }
  .home-heading { font-size: clamp(37px, 10.6vw, 52px); letter-spacing: -1.8px; margin: 20px 0 18px; }
  .home-grid .intro-badge { font-size: 9px; letter-spacing: .7px; }
  .home-description { font-size: 12px; }
  .home-grid .home-copy { font-size: 14px; line-height: 1.7; margin: 0 auto 22px; }
  .home-copy br { display: none; }
  .home-actions { flex-direction: column; gap: 8px; }
  .home-actions .start-button { width: 100%; min-width: 0; }
  .home-rules-link { font-size: 12px; min-height: 40px; }
  .home-grid .under-cta { margin-top: 8px; }
  .home-art { max-width: 330px; }
  .home-art .wheel-card { padding: 14px; border-radius: 24px; }
  .wheel-preview-heading { font-size: 10px; padding-bottom: 10px; margin-bottom: 8px; }
  .home-art .wheel-caption { font-size: 10px; padding: 10px 6px; }
  .feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 28px; }
  .feature { flex-direction: column; text-align: center; padding: 12px 5px; gap: 8px; border-width: 1.5px; border-radius: 14px; box-shadow: 2px 2px 0 var(--line); }
  .feature-icon { width: 38px; height: 34px; font-size: 16px; border-radius: 9px; white-space: nowrap; }
  .feature:first-child .feature-icon { font-size: 14px; letter-spacing: -.5px; }
  .feature strong { font-size: 11px; line-height: 1.5; display: block; }
  .feature p { display: none; }
  .home-guide { padding-top: 26px; }
  .guide-steps li { padding: 20px; }
  .home-faq { padding-top: 20px; }
}

/* Center the alphabet card against the question-and-answer card. */
@media (min-width: 621px) {
  .game-wheel-card { margin-top: max(0px, var(--wheel-top, 69px)); }
}


.sound-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: white; font-size: 12px; font-weight: 900; }
.sound-toggle[aria-pressed="true"] { color: var(--purple-dark); background: #f3eeff; }
.sound-toggle svg { flex-shrink: 0; }
.game-top .finish-round { margin-left: 0; }
@media (max-width: 620px) {
  .sound-toggle { width: 44px; padding: 8px; margin-left: 0; flex-shrink: 0; }
  .sound-toggle > span { display: none; }
}


.round-reminder { position: fixed; z-index: 20; top: max(18px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff5c6; border: 2px solid var(--line); border-radius: 18px; box-shadow: 4px 5px 0 var(--line); pointer-events: none; }
.round-reminder[hidden] { display: none; }
.reminder-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); font-size: 24px; font-weight: 1000; }
.round-reminder strong, .round-reminder div > span { display: block; }
.round-reminder strong { font-size: 17px; margin-bottom: 3px; }
.round-reminder div > span { font-size: 12px; line-height: 1.6; color: #51452b; font-weight: 800; }
@media (max-width: 620px) {
  .round-reminder { padding: 12px; gap: 10px; }
  .round-reminder strong { font-size: 15px; }
  .round-reminder div > span { font-size: 11px; }
  .reminder-icon { width: 34px; height: 34px; font-size: 20px; }
}


/* Native phone keyboard: keep the question and actions in the visible area. */
.mobile-timer { display: none; }
@media (max-width: 620px) {
  body[data-screen="game"] .game-top { gap: 8px; margin-bottom: 10px; }
  body[data-screen="game"] .game-pill { display: none; }
  .mobile-timer { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; min-width: 78px; min-height: 40px; padding: 5px 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--yellow); font-size: 18px; font-weight: 1000; font-variant-numeric: tabular-nums; }
  .mobile-timer.low { color: #a82d3b; background: #ffe6df; }
  .game-panel .timer-row { display: none; }
  .game-panel { order: 0; }
  .game-wheel-card { order: -1; padding: 9px 10px; border-radius: 16px; }
  .game-wheel-card .wheel { gap: 4px; }
  .game-wheel-card .wheel .letter { height: 22px; font-size: 10px; border-radius: 6px; }
  .game-wheel-card .wheel .letter.active { background: var(--purple); color: white; outline: 2px solid var(--purple); outline-offset: 1px; }
  .game-wheel-card .game-counts { margin-top: 7px; padding-top: 5px; }
  .game-wheel-card .game-counts strong { font-size: 15px; }
  .game-layout { gap: 10px; }
  .question-count { font-size: 9px; }
  .keyboard-hint { display: none; }
  .answer-actions { grid-template-columns: minmax(0, 1fr) minmax(96px, .6fr); }
  .answer-actions button { min-height: 54px; }
  .question-text { font-size: 20px; line-height: 1.4; }
  .answer-input { font-size: 18px; }
  .answer-input::placeholder { font-size: 14px; }
  body[data-screen="game"][data-keyboard-open="true"] #app { position: fixed; top: var(--game-viewport-top, 0px); left: 0; width: 100%; max-width: none; height: var(--game-viewport-height, 100dvh); padding: 5px 12px 9px; overflow-y: auto; overscroll-behavior-y: contain; }
  body[data-keyboard-open="true"] .game-top { margin-bottom: 6px; }
  body[data-keyboard-open="true"] .game-wheel-card { display: block; width: 100%; padding: 6px 8px; margin: 0; box-shadow: 2px 2px 0 var(--line); }
  body[data-keyboard-open="true"] .game-wheel-card .wheel { gap: 3px; }
  body[data-keyboard-open="true"] .game-wheel-card .letter { height: 18px; font-size: 10px; border-radius: 4px; }
  body[data-keyboard-open="true"] .game-wheel-card .game-counts { display: none; }
  body[data-keyboard-open="true"] .game-layout { display: flex; flex-direction: column; gap: 7px; }
  body[data-keyboard-open="true"] .game-panel { display: flex; flex-direction: column; height: auto; min-height: 0; }
  body[data-keyboard-open="true"] .question-card { flex: none; min-height: 0; display: flex; flex-direction: column; box-shadow: 3px 4px 0 var(--line); }
  body[data-keyboard-open="true"] .question-top { padding: 4px 10px; flex-shrink: 0; }
  body[data-keyboard-open="true"] .small-letter { width: 24px; height: 25px; font-size: 17px; border-radius: 7px; }
  body[data-keyboard-open="true"] .question-body { display: flex; flex-direction: column; min-height: 0; padding: 10px; }
  body[data-keyboard-open="true"] .question-text { flex: none; min-height: 0; height: auto; max-height: none; margin: 0 0 10px; overflow: visible; font-size: 18px; line-height: 1.35; letter-spacing: -.25px; }
  body[data-keyboard-open="true"] .answer-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body[data-keyboard-open="true"] .answer-input { min-height: 44px; padding: 8px 12px; flex-shrink: 0; }
  body[data-keyboard-open="true"] .answer-actions { flex-shrink: 0; margin-top: 8px; }
  body[data-keyboard-open="true"] .answer-actions button { min-height: 44px; padding: 8px 12px; }
  body[data-keyboard-open="true"] .feedback { flex-shrink: 0; min-height: 0; padding: 7px 10px; margin-top: 8px; font-size: 11px; line-height: 1.5; }
  body[data-keyboard-open="true"] .round-reminder { top: calc(var(--game-viewport-top, 0px) + 4px); padding: 7px 10px; gap: 8px; }
  body[data-keyboard-open="true"] .round-reminder strong { display: none; }
  body[data-keyboard-open="true"] .reminder-icon { width: 28px; height: 28px; font-size: 18px; }
}


.result-scoreline { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.result-scoreline .score-label { margin: 0; text-align: left; line-height: 1.7; letter-spacing: 1px; }
.result-actions { display: grid; gap: 10px; }
.result-actions .home-again { margin: 0; }
.review-controls { display: flex; gap: 6px; border: 1px solid #dcd6e9; border-radius: 14px; background: white; padding: 5px; }
.review-controls button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 900; }
.review-controls button[aria-pressed="true"] { color: white; background: var(--purple-dark); }
.review-controls button > span { border-radius: 6px; padding: 2px 6px; background: #eee8fc; color: var(--purple-dark); font-size: 11px; }
.review-controls button[aria-pressed="true"] > span { color: white; background: #ffffff26; }
.review-count { margin: 10px 0 16px; color: #586177; font-size: 12px; line-height: 1.6; }
.review-empty { border-radius: 14px; padding: 18px; background: #e5f5ed; color: #12643d; font-weight: 800; line-height: 1.6; }
.review-item[hidden] { display: none; }
.review-item[data-status="correct"] .review-status { color: #12643d; }
.review-item[data-status="wrong"] .review-status { color: #a73427; }
.review-item[data-status="passed"] .review-status { color: #866200; }
@media (max-width: 620px) {
  body[data-screen="results"] .site-header { min-height: 76px; padding-top: 16px; padding-bottom: 12px; }
  body[data-screen="results"] #app { padding-top: 6px; }
  .result-header { margin: 8px 0 20px; }
  .result-sticker { font-size: 9px; padding: 7px 10px; }
  .result-header h1 { font-size: 31px; letter-spacing: -1px; margin: 16px 0 10px; line-height: 1.15; }
  .result-header p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
  .result-layout { gap: 28px; }
  .result-summary { padding: 16px; border-radius: 20px; }
  .result-scoreline { margin-bottom: 10px; }
  .result-scoreline .big-score { font-size: 48px; }
  .result-summary .game-counts { padding: 10px 0 0; margin: 0 auto 16px; max-width: none; }
  .result-summary .game-counts strong { font-size: 23px; }
  .result-summary .game-counts span { font-size: 9px; }
  .result-actions { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 12px; }
  .result-actions .primary-button { min-height: 50px; max-width: none; font-size: 13px; gap: 10px; }
  .result-actions .home-again { min-height: 50px; font-size: 12px; }
  .answers-title { font-size: 22px; margin-bottom: 14px; }
  .review-controls { position: sticky; top: 8px; z-index: 2; box-shadow: 0 3px 14px #1719230d; }
  .review-item { padding: 14px 12px; gap: 12px; border: 1px solid #dce0e7; border-radius: 16px; }
  .review-letter { width: 34px; height: 36px; }
  .review-content-top { display: block; }
  .review-answer { display: block; font-size: 16px; line-height: 1.4; }
  .review-status { display: inline-block; font-size: 11px; margin-top: 4px; }
  .review-content p { font-size: 13px; line-height: 1.65; margin-top: 9px; }
  .review-content .your-guess { background: #fff0ec; padding: 7px 9px; border-radius: 8px; overflow-wrap: anywhere; }
  .review-content .accepted-answers { font-size: 12px; }
}


.dialog-body > h2 { font-weight: 1000; font-size: 29px; line-height: 1.2; letter-spacing: -.7px; margin: 16px 0 20px; }
.dialog-body > p { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.6; margin: 4px 0 0; }
@media (max-width: 620px) {
  dialog[open] { display: flex; flex-direction: column; width: 100%; max-width: none; max-height: min(88dvh, calc(var(--game-viewport-height, 100dvh) - 16px)); margin: auto 0 0; padding: 12px 18px max(18px, env(safe-area-inset-bottom)); border-width: 2px; border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -5px 24px #1719231a; overflow: hidden; animation: mobile-sheet-in .18s ease-out; }
  dialog[open]::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 5px; background: #d7d1e4; margin: 0 auto 12px; flex-shrink: 0; }
  .dialog-heading { flex-shrink: 0; padding: 0 4px 8px; }
  .dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 4px; }
  .dialog-body > h2 { font-size: 28px; margin: 10px 0 20px; }
  .dialog-body > p, .how-list p { font-size: 14px; line-height: 1.7; }
  .how-list { gap: 20px; margin-bottom: 18px; }
  .how-list strong { font-size: 15px; line-height: 1.5; }
  .dialog-footer { flex-shrink: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6e1ed; }
  .dialog-footer .primary-button { min-height: 52px; }
  .dialog-actions { margin-top: 0; flex-direction: row; gap: 10px; }
  .dialog-actions button { min-height: 52px; font-size: 12px; padding: 10px; }
  #records-content { margin-bottom: 8px; }
  .record-item { padding: 14px 0; font-size: 14px; line-height: 1.5; }
  .record-item small { font-size: 12px; }
}
@keyframes mobile-sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }


.answer-field { position: relative; flex-shrink: 0; }
.answer-field .answer-input { display: block; padding-right: 56px; }
.answer-input[aria-invalid="true"] { border-color: #bc3c31; background: #fff8f6; }
.answer-input[aria-invalid="true"]:focus-visible { outline-color: #bc3c31; }
.clear-answer { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #687086; font-size: 25px; line-height: 1; touch-action: manipulation; }
.clear-answer:hover { color: var(--purple-dark); background: #eee8fc; }
.clear-answer:disabled { visibility: hidden; }
@media (max-width: 620px) {
  body[data-keyboard-open="true"] .answer-field .answer-input { padding-right: 54px; }
  .clear-answer { font-size: 24px; }
}


.mode-shell { display: block; width: 100%; }
.mode-picker { display: grid; gap: 14px; width: 100%; margin-bottom: 12px; }
.mode-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px 12px; padding: 16px; border: 2px solid var(--line); border-radius: 18px; box-shadow: 3px 4px 0 var(--line); text-align: left; }
.daily-mode { background: #f0eaff; }
.practice-mode { background: white; }
.mode-icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--yellow); border: 2px solid var(--line); border-radius: 10px; font-size: 23px; font-weight: 1000; }
.practice-mode .mode-icon { background: #e5f5ed; color: #12643d; }
.mode-card strong { font-size: 20px; font-weight: 1000; }
.mode-card p { color: #586177; font-size: 13px; line-height: 1.6; margin: 5px 0 0; }
.mode-card .mode-start { grid-column: 1 / -1; width: 100%; min-height: 48px; font-size: 14px; justify-content: space-between; box-shadow: 2px 3px 0 var(--line); }
.mode-message { padding: 12px 14px; border: 1px solid #c6b4f0; border-radius: 12px; background: #f8f5ff; font-size: 13px; line-height: 1.6; text-align: left; }
.mode-message.error { color: #a73427; background: #fff3ef; border-color: #efb8ac; }
.mode-message[hidden] { display: none; }
@media (max-width: 620px) {
  .home-grid .home-art { display: none; }
  .home-grid { padding-bottom: 20px; gap: 0; }
  .home-intro .home-copy { margin-bottom: 20px; }
  .mode-card { padding: 14px; gap: 10px; border-radius: 16px; }
  .mode-card strong { font-size: 19px; }
  .mode-card p { font-size: 13px; }
  .mode-card .mode-start { min-height: 50px; }
  .mode-shell .home-rules-link { justify-content: center; width: 100%; }
  .home-grid .under-cta { font-size: 10px; line-height: 1.5; }
}


.round-ready-card { max-width: 520px; margin: 30px auto; padding: 32px 24px; text-align: center; background: #fff; border: 3px solid var(--line); border-radius: 26px; box-shadow: 5px 6px 0 var(--line); }
.round-ready-card h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 14px; }
.round-ready-card p { color: var(--muted); font-weight: 700; line-height: 1.6; margin: 0 0 24px; }
.round-ready-card > .back-button { margin-top: 14px; min-height: 44px; }
.ready-letters { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.ready-letters span { display: grid; place-items: center; width: 56px; height: 60px; border: 2px solid var(--line); border-radius: 14px; background: var(--purple); color: white; font-size: 32px; font-weight: 1000; box-shadow: 3px 3px 0 var(--line); }
.ready-letters span:nth-child(2) { background: var(--yellow); color: var(--ink); transform: translateY(-8px); }
.ready-letters span:nth-child(3) { background: #d7f4e8; color: var(--ink); }
@media (max-width: 620px) { .round-ready-card { margin: 12px auto; padding: 26px 20px; } .round-ready-card .primary-button { min-height: 54px; } }


.result-share { text-align: left; padding: 20px; margin: 0 0 24px; background: #f1ecff; border: 2px solid var(--line); border-radius: 18px; }
.share-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--purple-dark); }
.share-eyebrow { font-size: 10px; font-weight: 1000; letter-spacing: .7px; }
.share-card-heading > span:last-child { font-size: 25px; font-weight: 1000; }
.result-share h2 { font-size: 26px; line-height: 1.2; margin: 8px 0; font-weight: 1000; letter-spacing: -.7px; }
.share-invitation { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: #586177; font-weight: 700; }
.share-letter-grid { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.share-tile { display: grid; place-items: center; height: 24px; border: 1px solid #17192355; border-radius: 5px; font-size: 10px; font-weight: 1000; }
.share-tile.correct, .share-legend i.correct { background: #bcebd8; color: #115938; }
.share-tile.wrong, .share-legend i.wrong { background: #ffc5bb; color: #86281b; }
.share-tile.passed, .share-legend i.passed { background: #ffe577; color: #684d00; }
.share-tile.pending, .share-legend i.pending { background: #fff; color: #697185; }
.share-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 18px; font-size: 10px; font-weight: 800; color: #586177; }
.share-legend span { display: inline-flex; align-items: center; gap: 4px; }
.share-legend i { width: 9px; height: 9px; border: 1px solid #17192344; border-radius: 3px; }
.result-share .share-main { width: 100%; max-width: none; min-height: 52px; font-size: 15px; justify-content: center; gap: 12px; }
.share-copy { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 8px; background: transparent; border: 0; color: var(--purple-dark); font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.share-note { text-align: center; font-size: 10px; font-weight: 700; color: #657086; line-height: 1.5; margin: 12px 0 0; }
.share-status { margin: 12px 0 0; color: #264d3c; font-size: 12px; line-height: 1.5; font-weight: 800; }
.share-manual { display: block; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid #bcb0df; border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; user-select: text; }
.share-manual[hidden], .share-status[hidden] { display: none; }
@media (max-width: 620px) { .result-share { padding: 14px 12px; margin: 0 0 18px; border-radius: 16px; } .result-share h2 { font-size: 23px; } .share-invitation { font-size: 12px; margin-bottom: 14px; } .share-letter-grid { gap: 3px; } .share-tile { font-size: 9px; height: 23px; border-radius: 4px; } .share-legend { gap: 8px; margin-bottom: 14px; font-size: 9px; } }


/* A shared tile-based drawing style, independent of system emoji fonts. */
.ui-icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; overflow: visible; }
.mode-icon .ui-icon { width: 25px; height: 25px; }
.feature-icon .ui-icon { width: 25px; height: 25px; }
.intro-badge > .ui-icon { width: 20px; height: 20px; }
.theme-choice > span { display: grid; place-items: center; }
.theme-choice .ui-icon { width: 28px; height: 28px; }
.record-button > span:first-child { display: inline-flex; align-items: center; }
.record-button .ui-icon { width: 21px; height: 21px; }
.mobile-timer > .ui-icon { width: 19px; height: 19px; }
.share-card-heading > .ui-icon { width: 23px; height: 23px; }
.primary-button > .ui-icon,.secondary-button > .ui-icon,.pass-button > .ui-icon { width: 21px; height: 21px; }
.home-rules-link > .ui-icon { width: 17px; height: 17px; }
@media (max-width: 620px) { .feature-icon .ui-icon { width: 23px; height: 23px; } .intro-badge > .ui-icon { width: 16px; height: 16px; } }

/* Shared challenge and question-report surfaces. */
.challenge-card { margin: 20px 0; padding: 22px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 3px 4px 0 var(--line); }
.challenge-card h2 { font-size: 25px; line-height: 1.25; margin: 12px 0; }
.challenge-card p { line-height: 1.6; }
.challenge-card label, #question-report-form label, .challenge-invite label { display: block; font-weight: 800; font-size: 13px; margin: 16px 0 8px; }
.challenge-card label small, .challenge-invite label small { color: var(--muted); font-weight: 600; }
.community-input { width: 100%; min-width: 0; box-sizing: border-box; padding: 14px 12px; border: 2px solid #c7bfdc; border-radius: 12px; color: var(--ink); background: #faf9ff; font: inherit; font-size: 16px; }
textarea.community-input { resize: vertical; }
.challenge-card .primary-button, .challenge-invite .primary-button { margin-top: 14px; }
.challenge-note { font-size: 12px; color: var(--muted); }
.challenge-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.challenge-comparison > div { padding: 15px 8px; background: #f4f0fc; border-radius: 14px; text-align: center; overflow-wrap: anywhere; }
.challenge-comparison span, .challenge-comparison small, .challenge-comparison strong { display: block; }
.challenge-comparison strong { font-size: 35px; color: var(--purple-dark); }
.challenge-comparison small { font-size: 11px; color: var(--muted); }
.challenge-invite { max-width: 600px; margin: 25px auto; }
.invite-score strong { display: block; font-size: 62px; color: var(--purple-dark); line-height: 1.2; }
.invite-score span { color: var(--muted); }
.challenge-ranking { margin: 25px 0; text-align: left; }
.challenge-ranking h2 { font-size: 21px; }
.challenge-rank { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #dcd7e5; overflow-wrap: anywhere; }
.report-question-button { display: inline-flex; background: transparent; color: var(--purple-dark); font: inherit; font-size: 12px; font-weight: 800; border: 0; padding: 8px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.report-question-button:disabled { color: var(--muted); text-decoration: none; }
.report-context { padding: 14px; background: #f5f1ff; border-radius: 12px; overflow-wrap: anywhere; font-size: 13px; }
#question-report-form .dialog-body > small { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; }
#report-status, #challenge-status { font-size: 13px; overflow-wrap: anywhere; }
.my-challenges { max-width: 1100px; margin: 28px auto; padding: 0 20px; }
.my-challenges h2 { font-size: 21px; }
.my-challenges button { margin: 5px; font-size: 12px; }
.admin-page { max-width: 960px; margin: 30px auto; padding: 0 20px 50px; }
.admin-page h1 { font-size: clamp(28px,5vw,46px); line-height: 1.2; }
.admin-toolbar { display: flex; gap: 15px; justify-content: space-between; align-items: end; margin: 22px 0; }
.admin-toolbar label { flex: 1; max-width: 400px; }
.admin-report-heading { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.admin-report time { font-size: 12px; color: var(--muted); }
.admin-report blockquote { margin: 18px 0; padding: 15px; background: #fff5d6; border-left: 4px solid var(--yellow); border-radius: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
@media(max-width:620px) { .challenge-card { padding: 18px 14px; } .challenge-card h2 { font-size: 23px; } .admin-toolbar { align-items: stretch; flex-direction: column; } .admin-page { padding: 0 14px 35px; } }
.challenge-card [hidden], .admin-page [hidden] { display: none !important; }

/* Small contextual help in the first round; keep it beside the relevant controls. */
.first-round-guide { margin: 6px 0 0; color: var(--purple-dark); font-size: 12px; line-height: 1.45; font-weight: 700; }
.first-round-guide.pass-guide { margin: -7px 0 12px; text-align: right; color: var(--muted); }
.first-round-guide[hidden], .round-return-notice[hidden] { display: none; }
.round-return-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #c9bedf; border-radius: 10px; background: #f5f1ff; color: #4d3283; font-size: 12px; line-height: 1.5; font-weight: 800; }
.round-return-notice.error { background: #fff0ed; border-color: #f0c0b8; color: #a73528; }
.round-return-notice button { flex-shrink: 0; min-height: 44px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: inherit; }
@media(max-width:620px) {
  .first-round-guide { font-size: 11px; }
  .first-round-guide.pass-guide { margin: 5px 0 0; }
  .round-return-notice { flex-shrink: 0; padding: 6px 10px; font-size: 11px; }
  body[data-keyboard-open="true"] .first-round-guide { font-size: 10px; margin-top: 4px; }
}

/* Hand preference only changes the mobile play controls. */
.hand-toggle { display: none; }
.hand-settings-link { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 8px 12px; margin: 12px 0 4px; border: 1px solid #d6d0e3; border-radius: 12px; background: #fff; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; }
.hand-settings-link strong { color: var(--purple-dark); }
.hand-settings-link .ui-icon { width: 18px; height: 18px; }
.ready-hand-settings { margin: 0 auto 16px; }
.hand-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 22px 0 16px; }
.hand-options button { min-height: 52px; padding: 12px; border: 2px solid #d6d0e3; border-radius: 12px; background: #f7f5fc; color: var(--ink); font: inherit; font-weight: 900; }
.hand-options button[aria-pressed="true"] { border-color: var(--purple-dark); background: #eee8ff; color: var(--purple-dark); box-shadow: 0 0 0 1px var(--purple-dark); }
.hand-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.65fr); gap: 14px; padding: 14px; border: 1px dashed #bfb6d4; border-radius: 14px; }
.hand-preview span { padding: 14px 8px; border: 2px solid var(--line); border-radius: 10px; text-align: center; font-size: 14px; font-weight: 900; }
.hand-preview-answer { color: #fff; background: var(--purple); }
.hand-preview-pass { background: var(--yellow); color: #171923; }
html[data-hand="right"] .hand-preview { grid-template-columns: minmax(0,.65fr) minmax(0,1fr); }
html[data-hand="right"] .hand-preview-pass { grid-column: 1; grid-row: 1; }
html[data-hand="right"] .hand-preview-answer { grid-column: 2; grid-row: 1; }
#hand-status { margin: 12px 0 8px; font-size: 13px; font-weight: 800; color: var(--purple-dark); }
.hand-note { font-size: 12px; line-height: 1.6; color: var(--muted); }
@media(max-width:620px) {
  .hand-toggle { display: inline-grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--purple-dark); box-shadow: 2px 3px 0 var(--line); }
  .hand-toggle .ui-icon { width: 20px; height: 20px; }
  .answer-actions { gap: 14px; }
  html[data-hand="right"] .answer-actions { grid-template-columns: minmax(96px,.6fr) minmax(0,1fr); }
  html[data-hand="right"] .first-round-guide.pass-guide { text-align: left; }
}
@media(max-width:360px) {
  body[data-screen="game"] .game-top { gap: 4px; }
  body[data-screen="game"] .game-top .back-button { padding: 4px; font-size: 11px; }
  .game-top .mobile-timer { min-width: 72px; padding: 4px; gap: 4px; font-size: 16px; }
  .game-top .mobile-timer .ui-icon { width: 16px; height: 16px; }
}

/* Daily results are public summaries; private game data stays on the server. */
.daily-mode .daily-ranking-link { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #c9bce4; border-radius: 10px; background: #fff9; color: var(--purple-dark); font: inherit; font-size: 13px; font-weight: 900; }
.daily-mode .daily-ranking-link .ui-icon { width: 18px; height: 18px; }
.daily-public-note { grid-column: 1 / -1; color: var(--muted); line-height: 1.5; font-size: 11px; }
.daily-result-ranking { text-align: left; border: 2px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 22px; background: #fffaf0; }
.daily-result-ranking h2 { font-size: 23px; line-height: 1.2; margin: 10px 0; }
.daily-result-ranking p { font-size: 13px; color: var(--muted); line-height: 1.6; }
#daily-ranking-dialog { width: min(600px,calc(100% - 24px)); }
#daily-ranking-dialog [hidden] { display: none !important; }
.daily-ranking-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 8px 0 18px; color: var(--muted); }
.daily-ranking-meta strong { font-size: 16px; color: var(--purple-dark); }
.daily-ranking-meta span { font-size: 12px; }
.daily-your-score { display: flex; gap: 12px; align-items: center; padding: 14px; background: #eee8ff; border: 2px solid var(--purple); border-radius: 14px; margin-bottom: 18px; }
.daily-your-score div > span { display: block; margin-top: 4px; font-size: 12px; }
.daily-nickname { margin: 0 0 18px; }
.daily-nickname label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 900; }
.daily-nickname > div { display: flex; gap: 10px; }
.daily-nickname > div button { min-height: 48px; padding: 8px 12px; }
.daily-nickname small { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.daily-nickname p, .daily-rank-help, .daily-rank-rules, #daily-ranking-status { font-size: 12px; line-height: 1.6; color: var(--muted); }
.daily-rank-empty { font-size: 14px; line-height: 1.6; background: #f7f5fc; padding: 18px; border-radius: 12px; }
.daily-rank-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 9px; }
.daily-rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border: 1px solid #dcd6e9; border-radius: 12px; background: #fff; }
.daily-rank-row.is-mine { border: 2px solid var(--purple); background: #f5f1ff; }
.daily-rank-number { min-width: 32px; color: var(--purple-dark); font-size: 21px; font-weight: 1000; font-variant-numeric: tabular-nums; }
.daily-rank-player { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.daily-rank-player > strong { display: block; font-size: 14px; line-height: 1.4; }
.daily-rank-player > strong small { font-size: 10px; color: var(--purple-dark); }
.daily-rank-player > span { display: block; font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 3px; }
.daily-rank-points { font-size: 20px; text-align: right; color: var(--purple-dark); }
.daily-rank-points small { display: block; font-size: 10px; color: var(--muted); }
@media(max-width:620px) { #daily-ranking-dialog { width: 100%; } .daily-rank-row { gap: 8px; padding: 11px 8px; } .daily-rank-number { min-width: 27px; font-size: 19px; } .daily-rank-points { font-size: 18px; } .daily-result-ranking { padding: 16px 12px; } }
