/* Shared application rhythm. Header styling remains unchanged. */
.st-modifiers { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid var(--st-border); }
.st-modifier-switch { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; cursor: pointer; line-height: 1.5; }
.st-modifier-switch input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--st-primary); }
.st-modifier-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.st-modifier-times .st-field { min-width: 0; }
#questionTimer { font-variant-numeric: tabular-nums; }
#questionTimer.is-urgent { color: var(--st-danger); border-color: currentColor; }
body.st-catalog-page::before, body.st-play-page::before { display: none; }
body.st-catalog-page .st-hero { padding: 28px 0 20px; }
body.st-catalog-page .st-title-xl { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -0.025em; }
body.st-catalog-page .st-public-command-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
body.st-catalog-page .st-app-promo-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--st-surface); color: var(--st-text); box-shadow: none; border-radius: 16px; }
body.st-catalog-page .st-app-promo-card::after,
body.st-catalog-page .st-app-promo-card .st-text-body { display: none; }
body.st-catalog-page .st-app-promo-card .st-title-sm { color: var(--st-text); font-size: 1rem; }
body.st-catalog-page .st-app-promo-card .st-btn { min-width: 0; background: var(--st-primary-soft); color: var(--st-primary-strong); box-shadow: none; }
body.st-catalog-page .st-search-card,
body.st-catalog-page .st-quiz-card,
body.st-play-page .st-quiz-panel,
body.st-play-page .st-question-card { border-radius: 18px; box-shadow: none; background: var(--st-surface); }
body.st-catalog-page .st-quiz-card:hover { transform: translateY(-2px); box-shadow: var(--st-shadow-xs); }
body.st-catalog-page .st-quiz-card__top-accent { height: 3px; background: var(--st-primary); }
body.st-play-page .st-mode-card { box-shadow: none; background: var(--st-surface-2); }
body.st-play-page .st-mode-toggle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.st-play-page .st-mode-option { min-width: 0; padding: 14px 10px; gap: 10px; }
body.st-play-page .st-mode-option__icon { width: 28px; height: 28px; flex-shrink: 0; }
body.st-play-page .st-text-body,
body.st-play-page .st-text-muted { line-height: 1.7; }
@media (max-width: 600px) {
  .st-modifier-times { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.st-catalog-page .st-app-promo-card { flex-wrap: wrap; }
  body.st-play-page .st-quiz-panel, body.st-play-page .st-question-card { padding: 20px 16px; }
}

:root {
  color-scheme: light;
  --st-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --st-radius-xs: 10px;
  --st-radius-sm: 14px;
  --st-radius-md: 18px;
  --st-radius-lg: 24px;
  --st-radius-xl: 30px;

  --st-space-1: 4px;
  --st-space-2: 8px;
  --st-space-3: 12px;
  --st-space-4: 16px;
  --st-space-5: 20px;
  --st-space-6: 24px;
  --st-space-7: 32px;
  --st-space-8: 40px;
  --st-space-9: 48px;
  --st-space-10: 56px;

  --st-border-width: 1px;
  --st-ring-width: 3px;

  --st-shadow-xs: 0 1px 2px rgba(11, 23, 36, 0.06);
  --st-shadow-sm: 0 8px 24px rgba(21, 101, 192, 0.08);
  --st-shadow-md: 0 16px 44px rgba(21, 101, 192, 0.12);
  --st-shadow-lg: 0 26px 70px rgba(21, 101, 192, 0.15);

  --st-z-header: 40;
  --st-z-drawer: 60;
  --st-z-toast: 80;
  --st-z-modal: 100;

  --st-duration-fast: 160ms;
  --st-duration-normal: 220ms;
  --st-duration-slow: 320ms;
  --st-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --st-primary: #1E88E5;
  --st-primary-strong: #1565C0;
  --st-primary-soft: #E3F2FD;
  --st-secondary: #00BFA5;
  --st-secondary-soft: #E0F2F1;

  --st-bg: #F3F6FB;
  --st-bg-elevated: #FFFFFF;
  --st-bg-elevated-2: #F7FBFF;
  --st-bg-soft: #F6FBFD;
  --st-surface: #FFFFFF;
  --st-surface-2: #F8FBFF;
  --st-surface-3: #EEF6FF;
  --st-surface-inverse: #0B1724;

  --st-text: #111827;
  --st-text-2: #3B4654;
  --st-text-3: #667587;
  --st-text-soft: #8795A5;
  --st-text-on-primary: #FFFFFF;

  --st-border: rgba(30, 136, 229, 0.16);
  --st-border-strong: rgba(30, 136, 229, 0.26);
  --st-divider: rgba(17, 24, 39, 0.08);

  --st-overlay: rgba(11, 23, 36, 0.46);
  --st-highlight: rgba(21, 101, 192, 0.18);
  --st-highlight-2: rgba(21, 101, 192, 0.1);

  --st-success: #18A957;
  --st-success-bg: #E5FFEF;
  --st-success-stroke: rgba(24, 169, 87, 0.2);

  --st-warning: #F6A400;
  --st-warning-bg: #FFF6DE;
  --st-warning-stroke: rgba(246, 164, 0, 0.2);

  --st-info: #00A7F0;
  --st-info-bg: #E3F6FF;
  --st-info-stroke: rgba(0, 167, 240, 0.2);

  --st-danger: #FF3B30;
  --st-danger-bg: #FFE7E7;
  --st-danger-stroke: rgba(255, 59, 48, 0.22);

  --st-penalty: #FF2D8D;
  --st-penalty-bg: #FFE6F2;
  --st-penalty-stroke: rgba(255, 45, 141, 0.22);

  --st-chip-green: #2FCA68;
  --st-chip-blue-1: #1DA1F2;
  --st-chip-yellow: #FBBF24;
  --st-chip-blue-2: #4668E5;
  --st-chip-red-1: #EF4444;
  --st-chip-red-2: #F43F5E;

  --st-difficulty-beginner-bg: #E0F7E9;
  --st-difficulty-beginner-text: #006644;
  --st-difficulty-beginner-stroke: #CAF0D8;

  --st-difficulty-intermediate-bg: #FFF4D6;
  --st-difficulty-intermediate-text: #A66A00;
  --st-difficulty-intermediate-stroke: #FDEAB6;

  --st-difficulty-advanced-bg: #FCE4EC;
  --st-difficulty-advanced-text: #AD1457;
  --st-difficulty-advanced-stroke: #FBD3E1;

  --st-difficulty-expert-bg: #EDE7F6;
  --st-difficulty-expert-text: #4527A0;
  --st-difficulty-expert-stroke: #E1DBED;

  --st-results-grad-start: rgba(56, 189, 248, 0.08);
  --st-results-grad-center: rgba(56, 189, 248, 0.04);
  --st-results-grad-end: rgba(56, 189, 248, 0);
  --st-results-stroke: rgba(56, 189, 248, 0.14);

  --st-results-halo-start: rgba(56, 189, 248, 0.18);
  --st-results-halo-end: rgba(56, 189, 248, 0);

  --st-shimmer-base: rgba(140, 173, 200, 0.24);
  --st-shimmer-highlight: rgba(255, 255, 255, 0.58);

  --st-shell-max: 1320px;
  --st-content-max: 1100px;
  --st-reading-max: 860px;
  --st-list-sidebar: 300px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --st-primary: #90CAF9;
  --st-primary-strong: #64B5F6;
  --st-primary-soft: #1565C0;
  --st-secondary: #4DD0C6;
  --st-secondary-soft: #00695C;

  --st-bg: #020617;
  --st-bg-elevated: #0B1120;
  --st-bg-elevated-2: #171F29;
  --st-bg-soft: #0F141A;
  --st-surface: #0B1120;
  --st-surface-2: #171F29;
  --st-surface-3: #1E2935;
  --st-surface-inverse: #E5E7EB;

  --st-text: #E5E7EB;
  --st-text-2: #C5D0DC;
  --st-text-3: #9AABBC;
  --st-text-soft: #7E90A2;
  --st-text-on-primary: #0B1724;

  --st-border: rgba(144, 202, 249, 0.18);
  --st-border-strong: rgba(144, 202, 249, 0.28);
  --st-divider: rgba(255, 255, 255, 0.08);

  --st-overlay: rgba(0, 0, 0, 0.54);
  --st-highlight: rgba(66, 165, 245, 0.22);
  --st-highlight-2: rgba(66, 165, 245, 0.12);

  --st-success: #67E08A;
  --st-success-bg: #04382C;
  --st-success-stroke: rgba(103, 224, 138, 0.22);

  --st-warning: #FFC233;
  --st-warning-bg: #3E3008;
  --st-warning-stroke: rgba(255, 194, 51, 0.22);

  --st-info: #34C6FF;
  --st-info-bg: #0D2749;
  --st-info-stroke: rgba(52, 198, 255, 0.24);

  --st-danger: #FF5A52;
  --st-danger-bg: #331518;
  --st-danger-stroke: rgba(255, 90, 82, 0.24);

  --st-penalty: #FF5FB0;
  --st-penalty-bg: #351027;
  --st-penalty-stroke: rgba(255, 95, 176, 0.24);

  --st-chip-green: #2FCF7A;
  --st-chip-blue-1: #1A91D9;
  --st-chip-yellow: #E7AE20;
  --st-chip-blue-2: #3E5BDD;
  --st-chip-red-1: #D94141;
  --st-chip-red-2: #E03A55;

  --st-difficulty-beginner-bg: #1B3C32;
  --st-difficulty-beginner-text: #A5D6A7;
  --st-difficulty-beginner-stroke: #234D40;

  --st-difficulty-intermediate-bg: #4E3B12;
  --st-difficulty-intermediate-text: #FFD54F;
  --st-difficulty-intermediate-stroke: #624918;

  --st-difficulty-advanced-bg: #4A2C3D;
  --st-difficulty-advanced-text: #F48FB1;
  --st-difficulty-advanced-stroke: #5D384D;

  --st-difficulty-expert-bg: #2C245C;
  --st-difficulty-expert-text: #B39DDB;
  --st-difficulty-expert-stroke: #332C6F;

  --st-results-grad-start: rgba(255, 255, 255, 0.1);
  --st-results-grad-center: rgba(255, 255, 255, 0.05);
  --st-results-grad-end: rgba(255, 255, 255, 0);
  --st-results-stroke: rgba(255, 255, 255, 0.12);

  --st-results-halo-start: rgba(255, 255, 255, 0.18);
  --st-results-halo-end: rgba(255, 255, 255, 0);

  --st-shimmer-base: rgba(60, 173, 204, 0.24);
  --st-shimmer-highlight: rgba(255, 255, 255, 0.14);

  --st-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.28);
  --st-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.28);
  --st-shadow-md: 0 18px 48px rgba(0, 0, 0, 0.34);
  --st-shadow-lg: 0 26px 72px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--st-font-sans);
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top center, var(--st-highlight-2), transparent 36%),
    var(--st-bg);
  color: var(--st-text);
  font-family: var(--st-font-sans);
  line-height: 1.5;
}

body.st-lock-scroll {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

input,
textarea,
select,
button {
  outline: none;
}

::selection {
  background: var(--st-highlight);
}

.st-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.st-hidden {
  display: none !important;
}

.st-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.st-container {
  width: min(100% - 40px, var(--st-shell-max));
  margin-inline: auto;
}

.st-container--content {
  width: min(100% - 40px, var(--st-content-max));
  margin-inline: auto;
}

.st-container--reading {
  width: min(100% - 40px, var(--st-reading-max));
  margin-inline: auto;
}

.st-section {
  padding-block: var(--st-space-8);
}

.st-stack-xs > * + * {
  margin-top: var(--st-space-2);
}

.st-stack-sm > * + * {
  margin-top: var(--st-space-3);
}

.st-stack-md > * + * {
  margin-top: var(--st-space-4);
}

.st-stack-lg > * + * {
  margin-top: var(--st-space-5);
}

.st-stack-xl > * + * {
  margin-top: var(--st-space-6);
}

.st-header {
  position: sticky;
  top: 0;
  z-index: var(--st-z-header);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--st-surface) 92%, transparent);
  border-bottom: 1px solid var(--st-divider);
  box-shadow: var(--st-shadow-xs);
}

.st-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-4);
}

.st-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-3);
  min-width: 0;
}

.st-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--st-text-on-primary);
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-strong));
  box-shadow: var(--st-shadow-sm);
  font-weight: 900;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  object-fit: cover;
}

.st-brand__text {
  min-width: 0;
}

.st-brand__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--st-text);
}

.st-brand__subtitle {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--st-text-3);
}

.st-header__actions {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
}

.st-surface {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
}

.st-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
  border-radius: 18px;
}

.st-card--soft {
  background: var(--st-surface-2);
}

.st-card--tight {
  padding: var(--st-space-4);
}

.st-card--regular {
  padding: var(--st-space-5);
}

.st-card--spacious {
  padding: var(--st-space-6);
}

.st-title-xl {
  margin: 0;
  font-size: clamp(1.8rem, 2.7vw, 2.55rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.st-title-lg {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.st-title-md {
  margin: 0;
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  line-height: 1.18;
  font-weight: 800;
}

.st-title-sm {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 750;
}

.st-text-body {
  margin: 0;
  font-size: 0.98rem;
  color: var(--st-text-2);
}

.st-text-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--st-text-3);
}

.st-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-2);
  min-height: 34px;
  width: fit-content;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--st-primary-soft);
  border: 1px solid var(--st-border);
  color: var(--st-primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.st-divider {
  height: 1px;
  background: var(--st-divider);
}

.st-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 750;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition:
    transform var(--st-duration-fast) var(--st-ease),
    background-color var(--st-duration-fast) var(--st-ease),
    color var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease),
    box-shadow var(--st-duration-fast) var(--st-ease),
    opacity var(--st-duration-fast) var(--st-ease);
  user-select: none;
}

.st-btn:hover {
  transform: translateY(-1px);
}

.st-btn:active {
  transform: translateY(0);
}

.st-btn:focus-visible,
.st-icon-btn:focus-visible,
.st-input:focus-visible,
.st-select:focus-visible,
.st-textarea:focus-visible,
.st-chip-toggle:focus-visible,
.st-switch:focus-visible,
.st-order-item:focus-visible {
  box-shadow: 0 0 0 var(--st-ring-width) var(--st-highlight);
}

.st-btn[disabled],
.st-btn[aria-disabled="true"] {
  background: var(--st-surface-3);
  color: var(--st-text-soft);
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.st-btn--primary {
  color: var(--st-text-on-primary);
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-strong));
  box-shadow: var(--st-shadow-sm);
}

.st-btn--secondary {
  color: var(--st-primary);
  background: var(--st-primary-soft);
  border-color: var(--st-border);
}

.st-btn--ghost {
  color: var(--st-text);
  background: transparent;
  border-color: var(--st-border);
}

.st-btn--danger {
  color: #fff;
  background: linear-gradient(135deg, var(--st-danger), color-mix(in srgb, var(--st-danger) 72%, #000));
  box-shadow: var(--st-shadow-sm);
}

.st-btn--wide {
  width: 100%;
}

.st-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  color: var(--st-text-2);
  box-shadow: var(--st-shadow-xs);
  transition:
    transform var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease),
    background-color var(--st-duration-fast) var(--st-ease),
    color var(--st-duration-fast) var(--st-ease);
}

.st-icon-btn:hover {
  color: var(--st-primary);
  border-color: var(--st-border-strong);
  transform: translateY(-1px);
}

.st-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-4);
  flex-wrap: wrap;
}

.st-toolbar__group {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  flex-wrap: wrap;
  min-width: 0;
}

.st-pill {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  color: var(--st-text-2);
  font-size: 0.84rem;
  font-weight: 750;
}

.st-pill--success {
  background: var(--st-success-bg);
  color: var(--st-success);
  border-color: var(--st-success-stroke);
}

.st-pill--warning {
  background: var(--st-warning-bg);
  color: color-mix(in srgb, var(--st-warning) 82%, #000);
  border-color: var(--st-warning-stroke);
}

.st-pill--danger {
  background: var(--st-danger-bg);
  color: var(--st-danger);
  border-color: var(--st-danger-stroke);
}

.st-pill--info {
  background: var(--st-info-bg);
  color: var(--st-info);
  border-color: var(--st-info-stroke);
}

.st-pill--penalty {
  background: var(--st-penalty-bg);
  color: var(--st-penalty);
  border-color: var(--st-penalty-stroke);
}

.st-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-2);
}

.st-chip {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  background: var(--st-surface-2);
  color: var(--st-text-2);
  border: 1px solid var(--st-border);
}

.st-chip--difficulty-beginner {
  background: var(--st-difficulty-beginner-bg);
  color: var(--st-difficulty-beginner-text);
  border-color: var(--st-difficulty-beginner-stroke);
}

.st-chip--difficulty-intermediate {
  background: var(--st-difficulty-intermediate-bg);
  color: var(--st-difficulty-intermediate-text);
  border-color: var(--st-difficulty-intermediate-stroke);
}

.st-chip--difficulty-advanced {
  background: var(--st-difficulty-advanced-bg);
  color: var(--st-difficulty-advanced-text);
  border-color: var(--st-difficulty-advanced-stroke);
}

.st-chip--difficulty-expert {
  background: var(--st-difficulty-expert-bg);
  color: var(--st-difficulty-expert-text);
  border-color: var(--st-difficulty-expert-stroke);
}

.st-chip-toggle {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  color: var(--st-text-2);
  font-size: 0.85rem;
  font-weight: 750;
  transition:
    background-color var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease),
    color var(--st-duration-fast) var(--st-ease);
}

.st-chip-toggle[aria-pressed="true"],
.st-chip-toggle.is-active {
  background: var(--st-primary-soft);
  border-color: var(--st-primary);
  color: var(--st-primary-strong);
}

.st-field,
.st-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-label {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--st-text-2);
}

.st-select-wrap {
  position: relative;
}

.st-select-wrap--header {
  min-width: 136px;
}

.st-select-wrap .st-label {
  display: block;
  margin-bottom: 0;
}

.st-input,
.st-select,
.st-textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  color: var(--st-text);
  padding: 0 16px;
  transition:
    border-color var(--st-duration-fast) var(--st-ease),
    background-color var(--st-duration-fast) var(--st-ease),
    box-shadow var(--st-duration-fast) var(--st-ease);
}

.st-textarea {
  min-height: 124px;
  padding: 14px 16px;
  resize: vertical;
}

.st-input::placeholder,
.st-textarea::placeholder {
  color: var(--st-text-soft);
}

.st-input:focus,
.st-select:focus,
.st-textarea:focus {
  border-color: var(--st-primary);
  box-shadow: 0 0 0 var(--st-ring-width) var(--st-highlight);
}

.st-select {
  appearance: none;
  padding-right: 44px;
}

.st-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: calc(50% + 12px);
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--st-text-3);
  border-bottom: 2px solid var(--st-text-3);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.st-header__actions .st-select-wrap::after {
  top: 50%;
}

.st-switch {
  position: relative;
  width: 58px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  transition:
    background-color var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease),
    box-shadow var(--st-duration-fast) var(--st-ease);
}

.st-switch__thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-strong));
  transform: translateX(0);
  transition: transform var(--st-duration-normal) var(--st-ease);
  box-shadow: var(--st-shadow-xs);
}

.st-switch[aria-pressed="true"] .st-switch__thumb,
.st-switch.is-active .st-switch__thumb {
  transform: translateX(24px);
}

.st-hero {
  padding-top: var(--st-space-6);
  padding-bottom: var(--st-space-5);
}

.st-public-hero__copy {
  max-width: 760px;
}

.st-public-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.st-public-catalog-section {
  padding-top: 0;
}

.st-banner {
  padding: 16px 18px;
  border-radius: var(--st-radius-md);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-xs);
}

.st-banner--info {
  background: var(--st-info-bg);
  border-color: var(--st-info-stroke);
}

.st-banner--error {
  background: var(--st-danger-bg);
  border-color: var(--st-danger-stroke);
}

.st-banner--success {
  background: var(--st-success-bg);
  border-color: var(--st-success-stroke);
}

.st-empty,
.st-error,
.st-loading-panel {
  padding: var(--st-space-8) var(--st-space-5);
  border-radius: var(--st-radius-lg);
  text-align: center;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
}

.st-empty__icon,
.st-error__icon,
.st-loading-panel__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--st-space-4);
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--st-surface-3);
  color: var(--st-primary);
}

.st-grid {
  display: grid;
  gap: var(--st-space-5);
}

.st-grid--cards {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.st-grid--cards > * {
  grid-column: span 6;
  display: flex;
  min-width: 0;
}

.st-list-shell {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.st-sidebar {
  position: sticky;
  top: 94px;
}

.st-sidebar .st-card {
  box-shadow: var(--st-shadow-xs);
}

.st-quiz-card {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
  border-radius: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--st-duration-fast) var(--st-ease),
    box-shadow var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease);
}

.st-quiz-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--st-shadow-md);
  border-color: var(--st-border-strong);
}

.st-quiz-card__top-accent {
  height: 3px;
  width: 100%;
  background: var(--st-primary);
  opacity: 0.9;
}

.st-quiz-card__body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.st-quiz-card__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
  font-weight: 800;
  color: var(--st-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-quiz-card__description {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--st-text-2);
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-quiz-card__title.is-empty-hint,
.st-quiz-card__description.is-empty-hint {
  color: var(--st-text-soft);
  font-style: italic;
}

.st-quiz-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 30px;
}

.st-quiz-card__divider {
  height: 1px;
  margin: 0 18px;
  background: var(--st-border);
}

.st-quiz-card__divider.is-hidden {
  display: none;
}

.st-quiz-card__footer {
  padding: 14px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.st-quiz-card__footer-meta {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--st-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-quiz-card__footer-meta strong {
  color: var(--st-text);
  font-weight: 800;
}

.st-quiz-card__likes {
  flex: 0 0 auto;
}

.st-chip--compact {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.75rem;
  border-radius: 16px;
}

.st-chip--count {
  min-width: 38px;
  justify-content: center;
}

.st-chip--ai {
  padding-inline: 10px;
}

.st-chip--likes {
  gap: 6px;
  padding-inline: 10px;
}

.st-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.92em;
}

.st-chip--hidden {
  display: none !important;
}

.st-quiz-card-skeleton {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--st-radius-lg);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
  display: flex;
  flex-direction: column;
}

.st-quiz-card-skeleton__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.st-quiz-card-skeleton__footer {
  padding: 14px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.st-quiz-card-skeleton__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.st-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--st-surface-3);
  overflow: hidden;
  border: 1px solid var(--st-border);
}

.st-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--st-primary), var(--st-primary-strong));
  transition: width var(--st-duration-slow) var(--st-ease);
}

.st-quiz-shell {
  padding-top: var(--st-space-6);
  padding-bottom: var(--st-space-9);
}

.st-quiz-layout {
  display: grid;
  gap: var(--st-space-5);
}

.st-quiz-panel {
  padding: var(--st-space-6);
  border-radius: var(--st-radius-lg);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
}

.st-quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-4);
  flex-wrap: wrap;
}

.st-question-card {
  padding: clamp(20px, 2vw, 32px);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
}

.st-question-card__eyebrow {
  margin-bottom: var(--st-space-3);
}

.st-question-card__title {
  margin: 0;
  font-size: clamp(1.34rem, 2vw, 1.82rem);
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.st-answer-stack {
  display: grid;
  gap: var(--st-space-3);
}

.st-answer-option {
  min-height: 66px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-xs);
  color: var(--st-text);
  text-align: left;
  transition:
    transform var(--st-duration-fast) var(--st-ease),
    background-color var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease),
    box-shadow var(--st-duration-fast) var(--st-ease);
}

.st-answer-option:hover {
  transform: translateY(-1px);
  border-color: var(--st-primary);
}

.st-answer-option.is-selected {
  background: var(--st-primary-soft);
  border-color: var(--st-primary);
  border-width: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--st-primary) 24%, transparent);
}

.st-answer-option.is-correct {
  background: var(--st-success-bg);
  border-color: var(--st-success);
}

.st-answer-option.is-incorrect {
  background: var(--st-danger-bg);
  border-color: var(--st-danger);
}

.st-answer-option.is-disabled {
  opacity: 0.9;
  pointer-events: none;
}

.st-answer-option__index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--st-surface-3);
  color: var(--st-text-2);
  font-size: 0.84rem;
  font-weight: 850;
}

.st-answer-option__text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  line-height: 1.35;
}

.st-answer-option__state {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity var(--st-duration-fast) var(--st-ease), transform var(--st-duration-fast) var(--st-ease);
}

.st-answer-option__state.is-visible {
  opacity: 1;
  transform: scale(1);
}

.st-answer-option__state.is-correct {
  color: #fff;
  background: var(--st-success);
}

.st-answer-option__state.is-incorrect {
  color: #fff;
  background: var(--st-danger);
}

.st-feedback-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.st-feedback-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.st-feedback-card__icon--correct { background: var(--st-success); }
.st-feedback-card__icon--incorrect { background: var(--st-danger); }
.st-feedback-card__icon--hint { background: var(--st-warning); }

.st-feedback-card__content {
  min-width: 0;
}

.st-feedback-card__content .st-text-body {
  margin-top: 5px;
}

.st-feedback-card--correct {
  background: var(--st-success-bg);
  border-color: var(--st-success-stroke);
}

.st-feedback-card--incorrect {
  background: var(--st-danger-bg);
  border-color: var(--st-danger-stroke);
}

.st-feedback-card--hint {
  background: var(--st-info-bg);
  border-color: var(--st-info-stroke);
}

.st-order-stack {
  display: grid;
  gap: 12px;
}

.st-order-item {
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-xs);
  cursor: grab;
  user-select: none;
}

.st-order-item:active {
  cursor: grabbing;
}

.st-order-item.is-dragging {
  opacity: 0.72;
  box-shadow: var(--st-shadow-md);
  border-color: var(--st-primary);
}

.st-order-item.is-correct {
  background: var(--st-success-bg);
  border-color: var(--st-success);
}

.st-order-item.is-incorrect {
  background: var(--st-danger-bg);
  border-color: var(--st-danger);
}

.st-order-item__index {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--st-surface-3);
  color: var(--st-text-2);
  font-size: 0.82rem;
  font-weight: 850;
}

.st-order-item__text {
  min-width: 0;
  font-weight: 700;
  line-height: 1.35;
}

.st-order-item__controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.st-order-item__move {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--st-border);
  background: var(--st-surface-2);
  color: var(--st-text-3);
  font-size: 1rem;
  font-weight: 800;
}

.st-order-item__move:hover,
.st-order-item__move:focus-visible {
  color: var(--st-primary-strong);
  border-color: var(--st-primary);
  background: var(--st-primary-soft);
}

.st-sentence-board {
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed var(--st-border-strong);
  background: var(--st-surface-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.st-sentence-board.is-correct {
  background: var(--st-success-bg);
  border-color: var(--st-success);
}

.st-sentence-board.is-incorrect {
  background: var(--st-danger-bg);
  border-color: var(--st-danger);
}

.st-sentence-token {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  color: var(--st-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    transform var(--st-duration-fast) var(--st-ease),
    background-color var(--st-duration-fast) var(--st-ease),
    border-color var(--st-duration-fast) var(--st-ease),
    color var(--st-duration-fast) var(--st-ease);
}

.st-sentence-token:hover {
  transform: translateY(-1px);
  border-color: var(--st-primary);
}

.st-sentence-token.is-correct {
  background: var(--st-success-bg);
  border-color: var(--st-success);
}

.st-sentence-token.is-incorrect {
  background: var(--st-danger-bg);
  border-color: var(--st-danger);
}

.st-matching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.st-matching-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.st-matching-column__label {
  margin: 0;
  padding-inline: 4px;
  color: var(--st-text-3);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.st-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding-top: var(--st-space-4);
}

.st-action-bar__inner {
  padding: 12px;
  border-radius: 22px 22px 0 0;
  background: color-mix(in srgb, var(--st-bg) 92%, transparent);
  border-top: 1px solid var(--st-divider);
  backdrop-filter: blur(16px);
}

.st-action-bar__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--st-space-3);
}

.st-action-bar__grid > *:first-child {
  grid-column: span 4;
}

.st-action-bar__grid > *:last-child {
  grid-column: span 8;
}

.st-results-wrap {
  padding-top: var(--st-space-6);
  padding-bottom: var(--st-space-8);
}

.st-results-card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 22px;
  border-radius: var(--st-radius-lg);
  background:
    linear-gradient(180deg, var(--st-results-grad-start), var(--st-results-grad-center), var(--st-results-grad-end)),
    var(--st-surface);
  border: 1px solid var(--st-results-stroke);
  box-shadow: var(--st-shadow-md);
}

.st-results-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.st-results-score {
  width: fit-content;
  min-width: 144px;
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: 18px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-xs);
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.55rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.st-results-meta {
  text-align: center;
}

.st-results-stats {
  padding: 18px;
  border-radius: 18px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
}

.st-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.st-stat-chip {
  min-height: 86px;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.st-stat-chip__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.st-stat-chip__body {
  min-width: 0;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--st-surface);
}

.st-stat-chip__label {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--st-text-3);
  line-height: 1.35;
}

.st-stat-chip__value {
  min-width: 0;
  margin-top: 4px;
  color: var(--st-text);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.st-stat-chip--green {
  background: var(--st-chip-green);
}

.st-stat-chip--yellow {
  background: var(--st-chip-yellow);
}

.st-stat-chip--blue-1 {
  background: var(--st-chip-blue-1);
}

.st-stat-chip--blue-2 {
  background: var(--st-chip-blue-2);
}

.st-stat-chip--red-1 {
  background: var(--st-chip-red-1);
}

.st-stat-chip--red-2 {
  background: var(--st-chip-red-2);
}

.st-footer-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--st-bg) 92%, transparent);
  border-top: 1px solid var(--st-divider);
  backdrop-filter: blur(16px);
}

.st-footer-actions__inner {
  padding: 10px 8px;
  display: flex;
  gap: var(--st-space-3);
}

.st-footer-actions__inner > * {
  flex: 1 1 0;
}

.st-legal {
  padding-top: var(--st-space-7);
  padding-bottom: var(--st-space-8);
}

.st-paper {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--st-radius-lg);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
}

.st-paper h1,
.st-paper h2,
.st-paper h3 {
  margin-top: 0;
  color: var(--st-text);
}

.st-paper p,
.st-paper li {
  color: var(--st-text-2);
}

.st-open-shell {
  min-height: calc(100dvh - 74px);
  display: grid;
  place-items: center;
  padding: var(--st-space-7) 0;
}

.st-open-card {
  width: min(100%, 600px);
  padding: var(--st-space-6);
  border-radius: var(--st-radius-xl);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-md);
}

.st-skeleton {
  position: relative;
  overflow: hidden;
  background: var(--st-shimmer-base);
}

.st-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--st-shimmer-highlight) 48%,
    transparent 100%
  );
  animation: st-shimmer 1.35s infinite;
}

.st-skeleton--text {
  height: 14px;
  border-radius: 999px;
}

.st-skeleton--title {
  height: 24px;
  border-radius: 999px;
}

.st-skeleton--chip {
  height: 28px;
  width: 88px;
  border-radius: 999px;
}

.st-skeleton--card {
  height: 220px;
  border-radius: var(--st-radius-lg);
}

.st-skeleton--option {
  height: 66px;
  border-radius: 18px;
}

.st-skeleton--pill {
  height: 52px;
  border-radius: 18px;
}

.st-skeleton--circle {
  width: 84px;
  height: 84px;
  border-radius: 999px;
}

.st-fade-in {
  animation: st-fade-in var(--st-duration-slow) var(--st-ease);
}

.st-slide-up {
  animation: st-slide-up var(--st-duration-slow) var(--st-ease);
}

@keyframes st-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes st-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes st-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .st-public-command-grid {
    grid-template-columns: 1fr;
  }

  .st-list-shell {
    grid-template-columns: 1fr;
  }

  .st-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .st-grid--cards > * {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .st-container,
  .st-container--content,
  .st-container--reading {
    width: min(100% - 22px, var(--st-shell-max));
  }

  .st-header__inner {
    min-height: 64px;
    gap: var(--st-space-3);
  }

  .st-brand__subtitle {
    display: none;
  }

  .st-hero {
    padding-top: var(--st-space-6);
    padding-bottom: var(--st-space-4);
  }

  .st-public-command-grid {
    gap: 14px;
  }

  .st-list-shell {
    gap: 16px;
  }

  .st-sidebar .st-card {
    border-radius: 18px;
  }

  .st-question-card,
  .st-quiz-panel,
  .st-card--spacious,
  .st-card--regular {
    padding: var(--st-space-5);
  }

  .st-results-grid {
    grid-template-columns: 1fr;
  }

  .st-action-bar__grid {
    grid-template-columns: 1fr;
  }

  .st-action-bar__grid > *:first-child,
  .st-action-bar__grid > *:last-child {
    grid-column: auto;
  }

  .st-footer-actions__inner {
    flex-direction: column;
  }

  .st-quiz-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-quiz-card__footer-meta {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .st-matching-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .st-matching-grid .st-answer-stack {
    gap: 8px;
  }

  .st-matching-grid .st-answer-option {
    min-height: 62px;
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .st-matching-grid .st-answer-option__text {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .st-matching-grid .st-answer-option__state {
    width: 24px;
    height: 24px;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  body {
    background: var(--st-bg);
  }

  .st-container,
  .st-container--content,
  .st-container--reading {
    width: min(100% - 18px, var(--st-shell-max));
  }

  .st-header {
    border-bottom-color: transparent;
  }

  .st-header__inner {
    min-height: 58px;
  }

  .st-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .st-brand__title {
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .st-header__actions {
    gap: 6px;
  }

  .st-select-wrap--header {
    min-width: 98px;
  }

  .st-select-wrap--header .st-select {
    min-height: 40px;
    padding-inline: 12px 34px;
    border-radius: 14px;
    font-size: 0.8rem;
  }

  .st-switch {
    width: 52px;
    height: 32px;
  }

  .st-switch__thumb {
    width: 22px;
    height: 22px;
  }

  .st-switch[aria-pressed="true"] .st-switch__thumb,
  .st-switch.is-active .st-switch__thumb {
    transform: translateX(20px);
  }

  .st-title-xl {
    font-size: 1.55rem;
    line-height: 1.14;
  }

  .st-text-body {
    font-size: 0.94rem;
  }

  .st-card--spacious,
  .st-card--regular {
    padding: 15px;
    border-radius: 18px;
  }

  .st-toolbar {
    gap: 10px;
  }

  .st-toolbar__group {
    width: 100%;
  }

  .st-toolbar__group .st-chip-toggle,
  .st-toolbar__group .st-pill {
    flex: 1 1 auto;
  }

  .st-chip-toggle,
  .st-pill {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.8rem;
  }

  .st-grid--cards {
    gap: 12px;
  }

  .st-quiz-card,
  .st-quiz-card-skeleton {
    border-radius: 16px;
  }

  .st-quiz-card__body {
    padding: 15px;
  }

  .st-quiz-card__footer {
    padding: 12px 15px 15px;
  }

  .st-quiz-card__title {
    font-size: 0.95rem;
  }

  .st-icon-btn {
    width: 38px;
    height: 38px;
  }

  .st-btn {
    min-height: 46px;
    padding: 0 16px;
  }

  .st-answer-option {
    min-height: 60px;
    padding: 12px 14px;
  }

  .st-results-card {
    padding: 22px 16px 18px;
  }

  .st-results-score {
    min-width: 128px;
  }

  .st-select-wrap::after {
    right: 14px;
  }
}

/* 2026 experience refresh — intentionally scoped below the existing header. */
.st-catalog-page main,
.st-play-page main,
.st-open-page main {
  position: relative;
  isolation: isolate;
}

.st-catalog-page main::before,
.st-play-page main::before,
.st-open-page main::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 74px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--st-primary) 13%, transparent), transparent 25rem),
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--st-secondary) 10%, transparent), transparent 24rem),
    linear-gradient(180deg, color-mix(in srgb, var(--st-surface) 58%, transparent), transparent 28rem);
}

.st-catalog-page .st-hero {
  padding: clamp(34px, 6vw, 76px) 0 26px;
  background: transparent;
}

.st-public-hero__copy {
  max-width: 780px;
}

.st-catalog-page .st-title-xl {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.st-catalog-page .st-public-hero__copy .st-text-body {
  max-width: 700px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
}

.st-public-command-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.st-search-card,
.st-app-promo-card {
  border-radius: 26px;
  box-shadow: 0 18px 55px rgba(20, 68, 116, 0.1);
}

.st-search-card {
  background: color-mix(in srgb, var(--st-surface) 96%, var(--st-primary-soft));
}

.st-search-card .st-input {
  min-height: 60px;
  border-radius: 17px;
  padding-inline: 20px;
  font-size: 1rem;
  background: var(--st-surface);
  box-shadow: inset 0 0 0 1px transparent;
}

.st-search-card .st-input:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-primary) 14%, transparent);
}

.st-app-promo-card {
  position: relative;
  overflow: hidden;
  color: var(--st-text);
  border-color: transparent;
  background: linear-gradient(145deg, #172554 0%, #174ea6 56%, #0ea5a4 130%);
}

.st-app-promo-card::after {
  content: "T";
  position: absolute;
  right: -18px;
  bottom: -46px;
  color: rgba(255, 255, 255, 0.09);
  font-size: 11rem;
  font-weight: 950;
  line-height: 1;
  transform: rotate(-8deg);
}

.st-app-promo-card > * {
  position: relative;
  z-index: 1;
}

.st-app-promo-card .st-title-sm,
.st-app-promo-card .st-text-body {
  color: #fff;
}

.st-app-promo-card .st-text-body {
  color: rgba(255, 255, 255, 0.78);
}

.st-app-promo-card .st-btn--primary {
  color: #15305d;
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

.st-public-catalog-section {
  padding-top: 22px;
}

.st-catalog-page .st-list-shell {
  gap: 30px;
}

.st-catalog-page .st-sidebar .st-card {
  border-radius: 24px;
  box-shadow: 0 12px 38px rgba(20, 68, 116, 0.07);
}

.st-catalog-page .st-grid--cards {
  gap: 18px;
}

.st-pagination-area {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.st-load-more-control {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 6px;
}

.st-load-more-button {
  min-width: min(100%, 220px);
  background: var(--st-surface);
}

.st-catalog-page .st-quiz-card {
  position: relative;
  border-color: color-mix(in srgb, var(--st-border) 78%, transparent);
  border-radius: 22px;
  box-shadow: 0 10px 35px rgba(20, 68, 116, 0.07);
}

.st-catalog-page .st-quiz-card:hover,
.st-catalog-page .st-quiz-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--st-primary) 42%, transparent);
  box-shadow: 0 20px 48px rgba(20, 68, 116, 0.14);
}

.st-catalog-page .st-quiz-card__top-accent {
  width: 44px;
  height: 5px;
  margin: 18px 0 0 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
}

.st-catalog-page .st-quiz-card__title {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.st-play-page .st-quiz-shell {
  padding-top: clamp(24px, 4vw, 48px);
}

.st-play-page .st-container--content {
  width: min(100% - 40px, 980px);
}

.st-play-page .st-quiz-panel,
.st-play-page .st-question-card {
  border-color: color-mix(in srgb, var(--st-border) 78%, transparent);
  box-shadow: 0 18px 60px rgba(20, 68, 116, 0.09);
}

.st-play-page .st-quiz-intro-panel {
  overflow: hidden;
  position: relative;
  padding: clamp(26px, 4vw, 44px);
}

.st-play-page .st-quiz-intro-panel::after {
  content: "?";
  position: absolute;
  top: 48px;
  right: 34px;
  z-index: 0;
  color: color-mix(in srgb, var(--st-primary) 7%, transparent);
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 950;
  line-height: 0.75;
  pointer-events: none;
}

.st-play-page .st-quiz-intro-panel > * {
  position: relative;
  z-index: 1;
}

.st-play-page .st-question-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
}

.st-play-page .st-question-card__eyebrow .st-label {
  color: var(--st-primary-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-play-page .st-answer-stack {
  gap: 12px;
}

.st-play-page .st-answer-option,
.st-play-page .st-order-item {
  min-height: 70px;
  border-radius: 17px;
  box-shadow: none;
}

.st-play-page .st-answer-option:hover,
.st-play-page .st-answer-option:focus-visible,
.st-play-page .st-order-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 68, 116, 0.09);
}

.st-play-page .st-answer-option__index,
.st-play-page .st-order-item__index {
  border-radius: 11px;
  background: color-mix(in srgb, var(--st-primary-soft) 72%, var(--st-surface));
}

.st-play-page .st-action-bar__inner,
.st-play-page .st-footer-actions {
  border: 1px solid var(--st-border);
  box-shadow: 0 -12px 36px rgba(20, 68, 116, 0.08);
}

.st-play-page .st-results-card {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--st-secondary) 20%, transparent), transparent 42%),
    linear-gradient(155deg, color-mix(in srgb, var(--st-primary-soft) 55%, var(--st-surface)), var(--st-surface));
}

.st-play-page .st-results-score {
  padding: 18px 28px;
  border-radius: 22px;
  color: var(--st-primary-strong);
  font-size: clamp(2.5rem, 7vw, 4rem);
}

.st-open-page .st-open-shell {
  padding: clamp(30px, 7vw, 80px) 0;
}

.st-open-page .st-open-card {
  overflow: hidden;
  position: relative;
  width: min(100%, 680px);
  padding: clamp(26px, 5vw, 48px);
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(20, 68, 116, 0.14);
}

.st-open-page .st-open-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
}

.st-open-page .st-open-card .st-kicker {
  margin-inline: auto;
}

.st-open-page #openResolvedMeta {
  padding-bottom: 4px;
}

.st-open-page #openResolvedView > .st-card,
.st-open-page #openErrorView > .st-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--st-surface-2);
  box-shadow: none;
}

.st-btn--primary {
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-strong));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--st-primary) 22%, transparent);
}

.st-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--st-primary) 28%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .st-catalog-page .st-quiz-card,
  .st-play-page .st-answer-option,
  .st-play-page .st-order-item,
  .st-btn {
    transition: none;
  }
}

@media (max-width: 760px) {
  .st-catalog-page .st-title-xl {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .st-public-command-grid {
    grid-template-columns: 1fr;
  }

  .st-play-page .st-container--content {
    width: min(100% - 22px, 980px);
  }

  .st-play-page .st-quiz-intro-panel::after {
    right: -12px;
    opacity: 0.72;
  }
}

@media (max-width: 520px) {
  .st-catalog-page .st-hero {
    padding-top: 30px;
  }

  .st-search-card,
  .st-app-promo-card,
  .st-open-page .st-open-card {
    border-radius: 22px;
  }

  .st-play-page .st-question-card {
    border-radius: 22px;
  }
}

/* App-aligned questionnaire flow */
.st-play-page .st-quiz-intro-panel::after {
  content: none;
}

.st-play-page .st-quiz-intro-panel {
  padding: clamp(22px, 3vw, 34px);
}

.st-quiz-intro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.st-quiz-intro-meta .st-text-muted {
  margin: 0;
}

.st-mode-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--st-border);
  border-radius: 20px;
  background: var(--st-surface-2);
}

.st-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.st-mode-option {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--st-text);
  text-align: left;
  border: 1px solid var(--st-border);
  border-radius: 16px;
  background: var(--st-surface);
  transition: border-color var(--st-duration-fast) var(--st-ease), background-color var(--st-duration-fast) var(--st-ease), transform var(--st-duration-fast) var(--st-ease);
}

.st-mode-option:hover,
.st-mode-option:focus-visible {
  border-color: var(--st-primary);
  transform: translateY(-1px);
}

.st-mode-option.is-selected {
  border: 2px solid var(--st-primary);
  background: var(--st-primary-soft);
}

.st-mode-option__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--st-primary) 14%, var(--st-surface));
  color: var(--st-primary-strong);
  font-size: 1.08rem;
  font-weight: 900;
}

.st-mode-option strong,
.st-mode-option small {
  display: block;
}

.st-mode-option strong {
  font-size: 0.96rem;
}

.st-mode-option small {
  margin-top: 3px;
  color: var(--st-text-3);
  font-size: 0.78rem;
  line-height: 1.3;
}

.st-mode-description {
  margin: 0;
  min-height: 42px;
  color: var(--st-text-2);
  font-size: 0.9rem;
  line-height: 1.48;
}

.st-screen-nav {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.st-icon-back {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--st-border);
  border-radius: 13px;
  background: var(--st-surface-2);
  color: var(--st-text);
  font-weight: 760;
}

.st-icon-back:hover,
.st-icon-back:focus-visible {
  color: var(--st-primary-strong);
  border-color: var(--st-primary);
}

.st-screen-nav__title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--st-text-2);
  font-weight: 780;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-question-hint {
  padding: 14px 16px;
  border: 1px solid var(--st-info-stroke);
  border-radius: 16px;
  background: var(--st-info-bg);
}

.st-question-hint summary {
  cursor: pointer;
  color: var(--st-primary-strong);
  font-weight: 800;
}

.st-question-hint .st-text-body {
  margin: 10px 0 0;
}

.st-results-nav {
  margin-bottom: 14px;
}

.st-results-nav > :last-child {
  grid-column: 3;
}

.st-btn--compact {
  min-height: 42px;
  padding: 0 14px;
}

.st-results-mode-row {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.st-results-score-block {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.st-results-score-block > .st-label {
  color: var(--st-text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-play-page .st-results-card {
  border-radius: 24px;
  background: var(--st-surface);
}

.st-play-page .st-results-score {
  background: color-mix(in srgb, var(--st-primary-soft) 65%, var(--st-surface));
  border-color: color-mix(in srgb, var(--st-primary) 35%, var(--st-border));
}

.st-results-card__content > .st-stack-sm {
  gap: 10px;
}

.st-results-card #resultsMessage {
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.6;
}

.st-share-status {
  margin: 14px auto 0;
  padding: 10px 14px;
  width: fit-content;
  max-width: 100%;
  color: var(--st-success);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.st-share-status.is-error {
  color: var(--st-danger);
}

@media (min-width: 761px) {
  .st-play-page #quizQuestionView {
    max-width: 900px;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .st-mode-toggle {
    grid-template-columns: 1fr;
  }

  .st-mode-description {
    min-height: 0;
  }

  .st-screen-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .st-screen-nav__title {
    text-align: right;
  }

  .st-results-nav {
    grid-template-columns: 1fr 1fr;
  }

  .st-results-nav > :last-child {
    grid-column: 2;
  }

  .st-play-page .st-quiz-shell {
    padding-top: 14px;
  }

  .st-play-page .st-quiz-panel,
  .st-play-page .st-question-card {
    box-shadow: none;
  }

  .st-footer-actions__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-footer-actions__inner > :last-child {
    grid-column: 1 / -1;
  }

  .st-play-page .st-results-card {
    padding: 24px 18px;
  }

  .st-results-card__content {
    gap: 20px;
  }

  .st-results-stats {
    padding: 10px;
  }

  .st-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .st-stat-chip {
    min-height: 78px;
    padding: 8px;
    gap: 6px;
  }

  .st-stat-chip__icon {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .st-stat-chip__body {
    padding: 8px;
  }

  .st-stat-chip__label {
    font-size: 0.75rem;
  }

  .st-stat-chip__value {
    font-size: 1.15rem;
  }
}
