@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  color-scheme: dark;
  font-family: "DM Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
  --page-bg: #070d18;
  --page-bg-deep: #0b1425;
  --page-glow: #183a69;
  --text: #f5f8ff;
  --muted: #9baecc;
  --muted-strong: #c6d3e7;
  --surface: rgba(18, 31, 53, 0.62);
  --surface-strong: rgba(27, 44, 73, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(194, 220, 255, 0.2);
  --line-strong: rgba(194, 220, 255, 0.38);
  --accent: #92b7ff;
  --accent-strong: #628dff;
  --accent-ink: #081225;
  --focus: #c4d7ff;
  --shadow: rgba(0, 0, 0, 0.42);
  --success: #5fe1ae;
  --radius-lg: 28px;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, var(--page-glow), transparent 39%),
    radial-gradient(circle at 4% 64%, rgba(250, 250, 252, 0.12), transparent 28%),
    linear-gradient(135deg, var(--page-bg), var(--page-bg-deep) 58%, #152845);
  transition: background 320ms ease, color 320ms ease;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.24;
}
body::before { top: 16%; right: -16rem; background: #4bbdff; }
body::after { bottom: -17rem; left: -13rem; background: #9d67ff; }
body[data-theme="day"] {
  color-scheme: light;
  --page-bg: #f0f0f0;
  --page-bg-deep: #f8fbff;
  --page-glow: #ffffff;
  --text: #12213a;
  --muted: #5c708d;
  --muted-strong: #3c5270;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --surface-soft: rgba(18, 55, 105, 0.05);
  --line: rgba(55, 91, 133, 0.2);
  --line-strong: rgba(55, 91, 133, 0.34);
  --accent: #3869cf;
  --accent-strong: #4d77dd;
  --accent-ink: #10234a;
  --focus: #2356c4;
  --shadow: rgba(52, 87, 130, 0.2);
  --success: #248f6c;
  --glass-bg: rgba(163, 159, 159, 0.02);
  --glass-border: rgba(117, 117, 117, 0.06);
  background:
    radial-gradient(circle at 50% -12%, #ffffff, transparent 42%),
    radial-gradient(circle at 96% 66%, rgba(76, 154, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #dbeaf8, #f8fbff 58%, #d8e7f6);
}
body[data-theme="day"]::before,
body[data-theme="day"]::after { opacity: 0.12; }
button { font: inherit; cursor: pointer; }
button:focus-visible,
dialog button:focus-visible,
.wheel:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.app-shell { width: min(100%, 1480px); min-height: 100vh; margin: 0 auto; padding: 0 28px 40px; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Nunito, "Microsoft YaHei", sans-serif; font-size: 21px; font-weight: 900; letter-spacing: 0.03em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#ff5a65, #f7c35e, #5de1bc, #5c80ff, #ff5a65); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(95, 144, 255, 0.34); }
.top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.text-button { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; color: var(--muted-strong); background: var(--surface); box-shadow: 0 8px 22px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease; }
.text-button:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-strong); transform: translateY(-1px); }
.text-button:active { transform: translateY(0) scale(0.98); }
.main-content { padding-top: 40px; }
.game-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.game-header h1 { margin: 0; color: var(--text); font-family: Nunito, "Microsoft YaHei", sans-serif; font-size: clamp(34px, 5vw, 64px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.stage-description { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.status-cluster { display: flex; flex: 0 0 auto; gap: 12px; }
.question-counter,
.timer { min-width: 126px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: var(--surface); box-shadow: 0 12px 28px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.question-counter { flex-direction: column; gap: 3px; 
}
.question-counter span,
.timer span { color: var(--muted); font-size: 12px; }
.question-counter strong { color: var(--text); font-size: 21px; line-height: 1; }
.timer strong { color: var(--text); font-variant-numeric: tabular-nums; font-size: 30px; line-height: 1; }
.timer span { align-self: flex-end; margin-bottom: 1px; }
.game-layout { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 48%, rgba(92, 145, 255, 0.1)); box-shadow: 0 28px 60px var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.wheel-panel { position: relative; width: 100%; min-height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 44px; }
.wheel-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 30%, rgba(95, 137, 255, 0.08)); }
.wheel { --inner-r: 0.5; --outer-r: 0.98; position: relative; z-index: 1; width: min(100%, 760px); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: transparent; box-shadow: 0 32px 92px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06); touch-action: none; overflow: visible; }
.wheel canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border-radius: 50%; image-rendering: auto; }
.wheel.hue-wheel::after { display: none; }
.time-track { position: absolute; top: 50%; left: 50%; z-index: 0; width: calc(100% + 22px); height: calc(100% + 22px); margin: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); transform: translate(-50%, -50%); pointer-events: none; overflow: visible; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.time-track > div { display: none; }
.time-track::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from -90deg, #ff4f6d 0deg, #ffd15c calc(var(--progress, 1) * 0.2turn), #5ee18b calc(var(--progress, 1) * 0.4turn), #4bc7ff calc(var(--progress, 1) * 0.6turn), #8b76ff calc(var(--progress, 1) * 0.8turn), #ff4f6d calc(var(--progress, 1) * 1turn), transparent calc(var(--progress, 1) * 1turn), transparent 1turn); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.wheel-center { position: absolute; top: 50%; left: 50%; z-index: 5; width: 46%; height: 46%; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 50%; color: var(--text); background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(7, 15, 30, 0.72)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 40px rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); pointer-events: auto; }
body[data-theme="day"] .wheel-center { background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(225, 237, 250, 0.7)); }
.center-view { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; text-align: center; }
.center-view[hidden] { display: none !important; }
.center-view:not([hidden]) { animation: center-view-in 220ms ease both; }
@keyframes center-view-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
#center-intro #wheel-message { display: none; }
#center-countdown { color: var(--text); font-size: clamp(44px, 8vw, 82px); font-variant-numeric: tabular-nums; font-weight: 900; line-height: 1; }
#center-result strong { color: var(--text); font-family: Nunito, "Microsoft YaHei", sans-serif; font-size: clamp(30px, 5vw, 62px); font-weight: 900; line-height: 1; }
#center-result small { display: block; margin-top: 5px; color: var(--muted); font-size: clamp(11px, 1.5vw, 15px); font-weight: 700; }
.center-swatches { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; }
.center-color-group { position: absolute; inset: 0; overflow: hidden; }
.center-color-group:first-child { clip-path: inset(0 0 50% 0); }
.center-color-group:last-child { clip-path: inset(50% 0 0 0); }
.center-color-group small { display: none; }
.center-color-group .swatch-row { position: absolute; inset: 0; display: flex; gap: 0; height: 100%; min-height: 0; }
.center-color-group .swatch-row:empty::before { display: none; }
.center-color-group .swatch { position: relative; flex: 1; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
.center-color-group .swatch::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%, rgba(0, 0, 0, 0.12)); }
#center-colors::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; z-index: 4; height: 1px; pointer-events: none; background: rgba(255, 255, 255, 0.56); box-shadow: 0 0 12px rgba(255, 255, 255, 0.24); }
.center-action { position: absolute; top: 50%; left: 50%; z-index: 8; min-width: 148px; margin: 0 !important; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 15px; padding: 14px 24px; color: var(--accent-ink); background: linear-gradient(135deg, #d4e1ff, #83a9ff); box-shadow: 0 12px 28px rgba(33, 67, 145, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.48); font-size: clamp(17px, 2vw, 24px); font-weight: 900; letter-spacing: 0.04em; transform: translate(-50%, -50%); transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease; }
.center-action:hover { filter: brightness(1.06); box-shadow: 0 16px 32px rgba(33, 67, 145, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.58); transform: translate(-50%, -52%); }
.center-action:active { transform: translate(-50%, -49%) scale(0.98); }
.wheel-center #center-result + .center-action { top: 69%; }
.center-share { position: absolute; top: 86%; left: 50%; z-index: 8; min-width: 124px; border-color: rgba(255, 255, 255, 0.3); color: var(--text); background: rgba(255, 255, 255, 0.12); transform: translate(-50%, -50%); }
.center-share:hover { background: rgba(255, 255, 255, 0.2); }
.picker-dot { position: absolute; z-index: 6; left: 50%; top: 8%; width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.52), 0 0 0 2px rgba(10, 22, 43, 0.25); transform: translate(-50%, -50%); pointer-events: none; }
.picker-markers { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.linked-dot { position: absolute; width: 19px; height: 19px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 11px rgba(0, 0, 0, 0.46), 0 0 0 2px rgba(8, 17, 31, 0.28); transform: translate(-50%, -50%); }
.wheel-hint { position: relative; z-index: 1; max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }

.footer-nav{
   padding: 0 40px 40px 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 10;
}

.stage-nav { 
  /* display: grid; 
  grid-template-columns: repeat(6, minmax(0, 1fr)); 
  gap: 10px; 
  margin-top: 20px;  */
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 6px;
    backdrop-filter: blur(10px);
    gap: 4px;
}
.stage-item {
   /* min-height: 76px; 
   border: 1px solid var(--line); 
   border-radius: 14px; padding: 12px; 
   color: var(--muted); 
   background: var(--surface); 
   box-shadow: 0 10px 24px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07); 
   transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; */
   
  width: 150px; 
  height: 20px;
  padding: 12px 24px;
  border-radius: 18px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  }
.stage-item span { display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
.stage-item strong { display: block; margin-top: 6px; color: var(--text); font-family: Nunito, "Microsoft YaHei", sans-serif; font-size: 16px; font-weight: 900; }
.stage-item.active {
  
  /* border-color: var(--accent); background: linear-gradient(135deg, rgba(119, 158, 255, 0.24), var(--surface-strong)); transform: translateY(-2px);  */
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.stage-item.done { border-color: rgba(95, 225, 174, 0.7); }
.calibrate-dialog { width: min(760px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 22px; padding: 28px; color: var(--text); background: var(--surface-strong); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.calibrate-dialog::backdrop { background: rgba(3, 8, 17, 0.7); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 0; font-family: Nunito, "Microsoft YaHei", sans-serif; font-size: 26px; }
.dialog-heading button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-soft); font-size: 27px; line-height: 1; }
.calibrate-dialog p { color: var(--muted-strong); line-height: 1.65; }
.calibration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.calibration-swatch { display: grid; place-items: center; height: 130px; border-radius: 14px; background: var(--outer); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.calibration-swatch::after { content: ""; width: 76%; height: 72%; background: var(--inner); }
.dialog-note { margin-bottom: 0; font-size: 14px; }

@media (max-width: 850px) {
  .app-shell { padding-inline: 20px; }
  .game-header { align-items: flex-start; flex-direction: column; }
  .status-cluster { width: 100%; }
  .question-counter,
  .timer { flex: 1; }
  .wheel-panel { min-height: 0; padding: 40px 28px; }
  .wheel { width: min(100%, 650px); }
  .stage-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .app-shell { padding: 0 14px 28px; }
  .topbar { min-height: 70px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 26px; height: 26px; }
  .top-actions { width: 100%; justify-content: stretch; }
  .top-actions .text-button { flex: 1; min-width: 0; padding: 8px 6px; font-size: 12px; }
  .main-content { padding-top: 28px; }
  .game-header h1 { font-size: 38px; }
  .stage-description { font-size: 14px; }
  .question-counter,
  .timer { min-width: 0; padding: 11px 10px; }
  .timer strong { font-size: 26px; }
  .game-layout { border-radius: 22px; }
  .wheel-panel { padding: 28px 16px; }
  .wheel { width: min(100%, 480px); }
  .wheel-hint { margin-top: 22px; font-size: 12px; }
  .center-action { min-width: 116px; padding: 11px 16px; font-size: 17px; }
  .center-share { min-width: 100px; padding: 8px 10px; font-size: 12px; }
  .picker-dot { width: 19px; height: 19px; border-width: 3px; }
  .linked-dot { width: 15px; height: 15px; border-width: 2px; }
  .stage-item { min-height: 20px; padding: 10px; }
  .stage-item strong { font-size: 14px; }
  .stage-item span { font-size: 11px; }
  .calibration-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* Reference composition: side information, centered wheel, bottom stage rail. */
@media (min-width: 851px) {
  .main-content {
    position: relative;
    padding-top: 34px;
  }

  .game-header {
    min-height: 148px;
    position: relative;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .game-header > div:first-child {
    padding-top: 22px;
  }

  .status-cluster {
    padding-top: 16px;
  }

  .game-layout {
    margin-top: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .wheel-panel {
    min-height: 640px;
    padding: 0 0 26px;
  }

  .wheel-panel::before {
    background: transparent;
  }

  .wheel {
    width: min(100%, 620px);
  }

  .wheel::before {
    content: "";
    position: absolute;
    inset: 9%;
    z-index: 0;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      #ff5268,
      #ffd35e,
      #5ee18b,
      #4bc7ff,
      #8b76ff,
      #ff52c7,
      #ff5268
    );
    filter: blur(42px);
    opacity: 0.24;
    pointer-events: none;
  }

  .wheel-hint {
    margin-top: 22px;
  }

  .stage-nav {
    margin-top: 14px;
  }
}

@media (max-width: 850px) {
  .game-layout {
    margin-top: 0;
  }

  .wheel::before {
    content: "";
    position: absolute;
    inset: 8%;
    z-index: 0;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      #ff5268,
      #ffd35e,
      #5ee18b,
      #4bc7ff,
      #8b76ff,
      #ff52c7,
      #ff5268
    );
    filter: blur(34px);
    opacity: 0.2;
    pointer-events: none;
  }
}


/* Language control */
.language-select {
  min-width: 104px;
  color: var(--muted-strong);
  color-scheme: dark;
}
.language-select option {
  color: #f5f8ff;
  background: #14233b;
}
body[data-theme="day"] .language-select {
  color-scheme: light;
}
body[data-theme="day"] .language-select option {
  color: #12213a;
  background: #ffffff;
}

@media (max-width: 520px) {
  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .top-actions .text-button {
    width: 100%;
  }

  .language-select {
    min-width: 0;
  }
}


.language-select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}


/* Color-assist mode: encode hue with shapes, following color.method.ac's model. */
body.color-assist .swatch-badge,
body.color-assist .picker-dot::after,
body.color-assist .linked-dot::after {
  display: none !important;
}

body.color-assist .center-color-group .swatch::before {
  display: none !important;
}

body.color-assist .wheel {
  outline: none;
}

body.color-assist .swatch,
body.color-assist .picker-dot,
body.color-assist .linked-dot {
  position: relative;
}

body.color-assist .swatch {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72) !important;
}

body.color-assist .assist-shape {
  position: absolute;
  z-index: 3;
  inset: 12%;
  display: block;
  pointer-events: none;
}

body.color-assist .picker-dot .assist-shape,
body.color-assist .linked-dot .assist-shape {
  inset: -50%;
}

body.color-assist .assist-shape svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.48));
}

body.color-assist .assist-shape polygon {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.color-assist .picker-dot .assist-shape polygon,
body.color-assist .linked-dot .assist-shape polygon {
  fill: rgba(8, 18, 36, 0.32);
  stroke: #ffffff;
  stroke-width: 4;
}

@media (max-width: 520px) {
  body.color-assist .assist-shape {
    inset: 10%;
  }

  body.color-assist .picker-dot .assist-shape,
  body.color-assist .linked-dot .assist-shape {
    inset: -44%;
  }
}
/* Focused layout refinements */
.top-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}



.game-header {
  min-height: 104px !important;
  margin-bottom: 8px !important;
}

.game-header > div:first-child {
  padding-top: 0 !important;
}

.game-header h1 {
  font-size: clamp(28px, 4vw, 48px) !important;
}

.stage-description {
  max-width: 460px;
  margin-top: 6px;
  font-size: 14px;
}

.status-cluster {
  padding-top: 0 !important;
}

.question-counter,
.timer {
  min-width: 108px;
  padding: 10px 13px;
}

.question-counter strong {
  font-size: 18px;
}

.timer strong {
  font-size: 26px;
}

.stage-nav {
  width: min(100%, 1120px);
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.stage-item {
  width: auto !important;
  min-width: 0;
  height: 44px !important;
  min-height: 0 !important;
  padding: 7px 11px !important;
  border-radius: 13px;
  gap: 7px;
  overflow: hidden;
}

.stage-item span {
  flex: 0 0 auto;
  font-size: 10px !important;
  white-space: nowrap;
}

.stage-item strong {
  min-width: 0;
  margin-top: 0 !important;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(12px, 1.2vw, 15px) !important;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-hint {
  display: none !important;
}

.wheel-center .center-action[hidden],
.wheel-center .center-share[hidden] {
  display: none !important;
}

.wheel-center .center-action {
  width: clamp(128px, 17%, 190px);
  min-width: 0 !important;
  height: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(12, 28, 62, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: clamp(16px, 2vw, 24px);
}

.wheel-center .center-action:hover {
  background: rgba(255, 255, 255, 0.24);
  filter: none;
  transform: translate(-50%, -52%) scale(1.03);
}

.wheel-center .center-action:active {
  transform: translate(-50%, -49%) scale(0.98);
}

.seo-content {
  width: min(100%, 1120px);
  margin: 76px auto 0;
  padding: 64px clamp(20px, 5vw, 72px) 76px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.seo-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.seo-heading h2 {
  margin: 8px 0 12px;
  font-family: Nunito, "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.seo-heading > p:last-child {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

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

.seo-card,
.seo-faq {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 58%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.seo-card h3,
.seo-faq h3 {
  margin: 6px 0 14px;
  font-size: 22px;
}

.seo-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.seo-card p,
.seo-card li,
.seo-faq p {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.72;
}

.seo-card ol {
  margin: 0;
  padding-left: 20px;
}

.seo-card li + li {
  margin-top: 8px;
}

.seo-faq {
  margin-top: 16px;
}

.seo-faq details {
  border-top: 1px solid var(--line);
}

.seo-faq details:first-of-type {
  margin-top: 16px;
}

.seo-faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
}

.seo-faq details[open] summary::after {
  content: "−";
}

.seo-faq details p {
  margin: 0 0 16px;
}

@media (min-width: 851px) {
  .wheel-panel {
    min-height: 820px !important;
  }

  .wheel {
    width: min(100%, 756px) !important;
  }
}

@media (max-width: 850px) {
  .stage-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wheel {
    width: min(100%, 532px) !important;
  }

  .seo-content {
    margin-top: 56px;
  }
}

@media (max-width: 520px) {

  .game-header {
    min-height: 94px !important;
  }

  .stage-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-item {
    height: 40px !important;
    padding: 7px 9px !important;
  }

  .stage-item strong {
    font-size: 13px !important;
  }

  .wheel {
    width: min(100%, calc(70vw - 22px)) !important;
  }

  .seo-content {
    margin-top: 42px;
    padding: 44px 0 56px;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-card,
  .seo-faq {
    padding: 20px;
  }
}