:root {
  --ten-pink: #ff4f78;
  --ten-mint: #55d6b0;
  --ten-blue: #6878ff;
  --ten-panel: rgba(9, 15, 29, 0.94);
  --ten-soft: rgba(255, 255, 255, 0.035);
  --ten-border: rgba(167, 184, 220, 0.18);
}

.ten-page,
.ten-page button,
.ten-page input {
  font-family: "Montserrat", sans-serif;
}

.ten-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 6% 18%, rgba(255, 63, 113, 0.1), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(81, 109, 255, 0.1), transparent 26rem),
    #060a12;
}

.ten-page-shell { min-height: 100vh; }

.ten-root {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 124px;
}

.ten-loading {
  min-height: 52vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted, #9ba6be);
}

.ten-loading span,
.ten-logo {
  width: 68px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 21px;
  display: grid;
  place-content: center;
  color: #fff;
  background: linear-gradient(145deg, #ff4f78 0 48%, #6476ff 52% 100%);
  box-shadow: 0 14px 34px rgba(61, 45, 112, 0.28), inset 0 1px rgba(255, 255, 255, 0.24);
  font-weight: 900;
}

.ten-logo {
  grid-template-columns: auto auto;
  align-items: baseline;
  padding: 10px;
  flex: 0 0 auto;
}

.ten-logo b { font-size: 27px; line-height: 1; }
.ten-logo span { font-size: 12px; line-height: 1; }

.ten-welcome {
  position: relative;
  width: 100%;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 111, 145, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 79, 120, 0.13), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(101, 119, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 16, 34, 0.99), rgba(9, 14, 27, 0.99) 55%, rgba(25, 16, 47, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.ten-welcome::before,
.ten-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.ten-welcome::before {
  width: 360px;
  height: 360px;
  top: -270px;
  left: 22%;
  border: 1px solid rgba(255, 120, 161, 0.16);
  box-shadow: 0 0 90px rgba(255, 79, 120, 0.08);
}

.ten-welcome::after {
  width: 430px;
  height: 190px;
  right: -230px;
  bottom: -98px;
  border: 1px solid rgba(123, 113, 255, 0.2);
  transform: rotate(-14deg);
}

.ten-welcome__exit {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  display: inline-flex;
  min-width: 68px;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(225, 207, 255, 0.16);
  border-radius: 11px;
  background: rgba(39, 39, 67, 0.66);
  color: rgba(249, 242, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.ten-welcome__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.ten-welcome__hero,
.ten-welcome__controls {
  position: relative;
  min-width: 0;
  min-height: 486px;
  border: 1px solid rgba(220, 207, 255, 0.12);
  border-radius: 26px;
}

.ten-welcome__hero {
  display: grid;
  grid-template-rows: auto minmax(145px, 1fr) auto;
  gap: 18px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 60%, rgba(111, 101, 255, 0.14), transparent 31%),
    radial-gradient(circle at 13% 14%, rgba(255, 92, 138, 0.1), transparent 30%),
    linear-gradient(155deg, rgba(43, 22, 49, 0.78), rgba(15, 19, 36, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.ten-welcome__hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ten-pink), #a56dff 58%, transparent 94%);
  box-shadow: 0 0 30px rgba(255, 79, 120, 0.35);
}

.ten-welcome__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 58px;
}

.ten-welcome__copy p {
  margin: 0;
  color: #92f0d0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ten-welcome__copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.99;
  text-wrap: balance;
}

.ten-welcome__copy > span {
  max-width: 48ch;
  color: rgba(221, 220, 239, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.52;
}

.ten-welcome__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 172px;
}

.ten-welcome__halo {
  position: relative;
  z-index: 2;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(170, 132, 255, 0.15);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 100, 255, 0.16), transparent 68%);
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.015), 0 0 55px rgba(111, 91, 255, 0.14);
}

.ten-welcome__halo::before,
.ten-welcome__halo::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 124, 162, 0.1);
  border-radius: 50%;
}

.ten-welcome__halo::before { inset: 24px; }
.ten-welcome__halo::after { inset: 48px; }

.ten-welcome__halo .ten-logo {
  position: relative;
  z-index: 2;
  width: 88px;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(51, 28, 108, 0.42), 0 0 32px rgba(255, 80, 124, 0.12), inset 0 1px rgba(255, 255, 255, 0.18);
}

.ten-welcome__preview {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 5px;
  min-height: 78px;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(226, 211, 255, 0.13);
  border-radius: 17px;
  background: rgba(8, 12, 23, 0.76);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.ten-welcome__preview--perfect { transform: rotate(-2.5deg); }
.ten-welcome__preview--catch { transform: rotate(2.5deg); }

.ten-welcome__preview span {
  color: rgba(198, 201, 225, 0.58);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.ten-welcome__preview strong {
  color: #f9f8ff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.22;
}

.ten-welcome__preview--perfect strong { color: #98ecd0; }
.ten-welcome__preview--catch strong { color: #ff9fb7; }

.ten-welcome__facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ten-welcome__facts > span {
  display: grid;
  min-height: 58px;
  place-content: center;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(220, 209, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.ten-welcome__facts strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.ten-welcome__facts small {
  color: rgba(202, 204, 226, 0.6);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.15;
}

.ten-welcome__controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 120, 0.1), transparent 36%),
    linear-gradient(160deg, rgba(34, 27, 51, 0.9), rgba(11, 15, 28, 0.97));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.ten-welcome__controls-head {
  display: grid;
  gap: 4px;
}

.ten-welcome__controls-head strong {
  color: #fff;
  font-size: 1.23rem;
  font-weight: 900;
  line-height: 1.12;
}

.ten-welcome__controls-head span {
  color: rgba(207, 204, 226, 0.62);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ten-welcome__steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ten-welcome__steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 209, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.ten-welcome__steps li:nth-child(2) {
  background: linear-gradient(100deg, rgba(83, 43, 89, 0.22), rgba(255, 255, 255, 0.018));
}

.ten-welcome__steps b {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 127, 162, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(210, 67, 113, 0.13), rgba(102, 88, 220, 0.13));
  color: #ffafc3;
  font-size: 1.05rem;
  font-weight: 900;
}

.ten-welcome__steps li > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ten-welcome__steps strong {
  color: #fff;
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1.15;
}

.ten-welcome__steps small {
  color: rgba(204, 204, 224, 0.63);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.35;
}

.ten-welcome__start {
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding: 12px 20px;
  border: 1px solid rgba(255, 156, 184, 0.56);
  border-radius: 17px;
  background: linear-gradient(135deg, #ff557f, #c9539e 52%, #7073ff);
  box-shadow: 0 15px 34px rgba(204, 61, 119, 0.24), inset 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
}

.ten-welcome__start:hover,
.ten-welcome__start:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ten-welcome__note {
  margin: -6px 0 0;
  color: rgba(198, 198, 219, 0.5);
  font-size: 0.63rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.ten-hero,
.ten-resume,
.ten-setup-panel,
.ten-game-toolbar,
.ten-empty {
  border: 1px solid var(--ten-border);
  background: var(--ten-panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.ten-hero {
  min-height: 126px;
  margin-bottom: 12px;
  padding: 20px 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
}

.ten-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 79, 120, 0.1);
}

.ten-hero > div:last-child { position: relative; z-index: 1; min-width: 0; }
.ten-hero > div:last-child > span,
.ten-resume span {
  display: block;
  color: #8de8c9;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ten-hero h1 {
  margin: 4px 0;
  color: #fff;
  font-size: clamp(27px, 4.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ten-hero p,
.ten-setup-panel__head p {
  margin: 0;
  color: #96a2b8;
  font-size: 14px;
  line-height: 1.45;
}

.ten-resume {
  margin-bottom: 12px;
  padding: 13px 15px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ten-resume strong,
.ten-resume small { display: block; }
.ten-resume strong { margin: 3px 0 2px; color: #fff; font-size: 16px; }
.ten-resume small { color: #8f9bb0; font-size: 12px; }
.ten-resume > div:last-child { display: flex; gap: 7px; }
.ten-resume .action-btn { min-height: 40px; padding-inline: 13px; }

.ten-setup-panel {
  padding: 20px;
  border-radius: 24px;
}

.ten-setup-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 17px;
}

.ten-setup-panel__head > div { min-width: 0; }
.ten-setup-panel__head h1 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ten-back {
  min-width: 76px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ten-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #aab5c9;
  font-size: 13px;
  font-weight: 800;
}

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

.ten-subject-card,
.ten-category-card {
  color: #fff;
  text-align: left;
  border: 1px solid var(--ten-border);
  background: var(--ten-soft);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ten-subject-card:hover,
.ten-category-card:hover { transform: translateY(-1px); }

.ten-subject-card {
  min-height: 94px;
  padding: 13px 46px 13px 13px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  position: relative;
}

.ten-subject-card > span {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(101, 119, 255, 0.16);
  color: #aeb8ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ten-subject-card:nth-child(2) > span { background: rgba(255, 79, 120, 0.14); color: #ff9db4; }
.ten-subject-card strong { align-self: end; font-size: 17px; line-height: 1.15; }
.ten-subject-card small { margin-top: 3px; color: #8d99ae; font-size: 12px; }
.ten-subject-card i {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 25px;
  height: 25px;
  translate: 0 -50%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.ten-subject-card.is-selected { border-color: rgba(85, 214, 176, 0.68); background: rgba(36, 123, 103, 0.13); box-shadow: inset 3px 0 var(--ten-mint); }
.ten-subject-card.is-selected i { color: #072219; background: var(--ten-mint); }

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

.ten-category-card {
  position: relative;
  inset: auto;
  left: auto;
  width: 100%;
  height: auto;
  min-height: 64px;
  z-index: auto;
  opacity: 1;
  transform: none;
  padding: 10px 42px 10px 10px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ten-category-card.is-locked { min-height: 76px; border-color: rgba(255, 214, 102, .22); }
.ten-category-premium { top: 7px; right: 10px; font-size: 8px; }
.ten-category-card.is-locked .ten-category-title { padding-right: 34px; }
.ten-category-card.is-selected { border-color: rgba(85, 214, 176, 0.62); background: rgba(36, 123, 103, 0.12); }
.ten-category-card__emoji { width: 26px; height: 26px; margin-top: 2px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, 0.055); font-size: 17px; }
.ten-category-card__copy { min-width: 0; }
.ten-category-card__copy strong,
.ten-category-card__copy small { display: block; }
.ten-category-card__copy strong { font-size: 14px; line-height: 1.2; }
.ten-category-card__copy small { margin-top: 3px; color: #9ca7bb; font-size: 11px; line-height: 1.3; }
.ten-category-add {
  position: absolute;
  top: 11px;
  right: 10px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #96a2ba;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 900;
}
.ten-category-card.is-locked .ten-category-add { top: 34px; color: #ffd480; background: rgba(255, 180, 68, 0.1); }
.ten-category-card.is-selected .ten-category-add { color: #bcf4e3; background: rgba(85, 214, 176, 0.12); font-size: 18px; line-height: 1; }

.ten-count > span,
.ten-player-field > label { display: block; margin-bottom: 7px; color: #9aa6be; font-size: 12px; font-weight: 800; }
.ten-count > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ten-count button {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--ten-border);
  border-radius: 13px;
  background: var(--ten-soft);
  color: #9da8bc;
  font-size: 15px;
  font-weight: 900;
}
.ten-count button.is-selected { color: #071d17; background: var(--ten-mint); border-color: var(--ten-mint); }
.ten-player-list { display: grid; gap: 10px; margin-top: 16px; }
.ten-player-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.ten-player-field input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid var(--ten-border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  padding: 0 14px;
  background: var(--ten-soft);
  color: #fff;
  outline: 0;
  font-size: 15px;
  font-weight: 650;
}
.ten-player-field input:focus { border-color: rgba(85, 214, 176, 0.68); box-shadow: 0 0 0 3px rgba(85, 214, 176, 0.07); }
.ten-player-done {
  height: 50px;
  min-width: 82px;
  border: 1px solid var(--ten-border);
  border-radius: 0 14px 14px 0;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #8994a9;
  font-size: 12px;
  font-weight: 900;
}
.ten-player-done.is-ready { color: #071d17; background: var(--ten-mint); border-color: var(--ten-mint); }

.ten-notice { min-height: 17px; margin: 10px 0 0; color: #ff9daf; font-size: 12px; text-align: center; }
.ten-setup-panel__actions { margin-top: 15px; }
.ten-setup-panel__actions .action-btn { width: 100%; min-height: 50px; }

.ten-game-card-wrap {
  width: min(100%, 820px);
  margin: 0 auto;
}

.ten-game-toolbar {
  margin-bottom: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ten-game-meta { min-width: 0; display: grid; gap: 3px; }
.ten-game-meta strong { color: #bdc7d8; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.ten-game-meta > span { color: #8996ac; font-size: 10px; }

.ten-game-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ten-game-actions button {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--ten-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #bdc7d8;
  font-size: 11px;
  font-weight: 850;
}
.ten-game-actions button:last-child { color: #ff93aa; border-color: rgba(255, 79, 120, 0.22); background: rgba(113, 25, 54, 0.1); }

.ten-question-card {
  min-height: clamp(210px, 31svh, 270px);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(145deg, #b52556, #73244f 55%, #303776);
  box-shadow: 0 15px 38px rgba(39, 22, 69, 0.27), inset 0 1px rgba(255, 255, 255, 0.18);
}
.ten-question-card p { margin: 0 0 13px; color: #ffd6e0; font-size: clamp(15px, 3.7vw, 20px); line-height: 1.2; font-weight: 900; }
.ten-turn-badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid rgba(141, 232, 201, .55);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(8, 45, 39, .95), rgba(12, 31, 45, .9));
  box-shadow: 0 4px 14px rgba(4, 15, 25, .18), inset 0 1px rgba(255, 255, 255, .08);
  text-align: left;
}
.ten-turn-badge__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #8de8c9; box-shadow: 0 0 0 4px rgba(141, 232, 201, .12); }
.ten-turn-badge__copy { min-width: 0; display: grid; gap: 2px; }
.ten-turn-badge__copy > span { color: #a1efd6; font-size: 9px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.ten-turn-badge__copy strong { color: #fff; font-size: 21px; line-height: 1.15; font-weight: 850; overflow-wrap: anywhere; }
.ten-question-copy { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ten-question-card h1 { margin: 0; max-width: 660px; font-size: clamp(22px, 5vw, 33px); line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
.ten-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.ten-answer {
  min-height: 57px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
}
.ten-answer span { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.11); font-size: 16px; font-weight: 900; }
.ten-answer strong { font-size: clamp(14px, 3.5vw, 16px); }
.ten-answer--yes { background: linear-gradient(145deg, #299877, #19795f); }
.ten-answer--no { background: linear-gradient(145deg, #a92a55, #792140); }

.ten-history { display: grid; gap: 10px; margin-top: 22px; }
.ten-history__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.ten-history__head h2 { margin: 0; color: #f3f5fa; font-size: 18px; line-height: 1.3; }
.ten-history__totals { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; font-weight: 700; }
.ten-history__totals span:first-child { color: #8de8c9; }
.ten-history__totals span:last-child { color: #ff9db6; }
.ten-history__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ten-history-item { min-width: 0; padding: 12px 14px; border: 1px solid rgba(85, 214, 176, .22); border-radius: 14px; background: rgba(85, 214, 176, .035); overflow-wrap: anywhere; }
.ten-history-item--disagree { border-color: rgba(255, 79, 120, .22); background: rgba(255, 79, 120, .035); }
.ten-history-item__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.ten-history-item__head > strong { min-width: 0; color: #f3f5fa; font-size: 13px; }
.ten-history-choice { flex-shrink: 0; color: #8de8c9; font-size: 12px; font-weight: 800; }
.ten-history-choice i { font-style: normal; }
.ten-history-item--disagree .ten-history-choice { color: #ff9db6; }
.ten-history-item p { margin: 8px 0 0; color: #bdc7d8; font-size: 13px; line-height: 1.45; }
.ten-history-item p > span { display: block; margin-bottom: 2px; color: #97a4b9; font-size: 11px; }
.ten-history__empty { margin: 0; color: #97a4b9; font-size: 13px; line-height: 1.4; }
.ten-history__earlier summary { width: fit-content; min-height: 44px; padding: 12px 0; color: #bdc7d8; font-size: 12px; font-weight: 700; cursor: pointer; }
.ten-history__earlier summary:focus-visible { outline: 2px solid var(--ten-mint); outline-offset: 3px; border-radius: 4px; }

.ten-category-modal__dialog { width: min(680px, calc(100% - 20px)); max-height: min(820px, calc(100svh - 24px)); overflow: auto; padding: 20px; }
.ten-category-modal__dialog .ten-category-grid { margin: 16px 0; }
.ten-category-modal__dialog > .action-btn { width: 100%; min-height: 50px; }
.ten-category-modal__dialog .ten-notice { margin: 0 0 10px; }
.ten-category-modal__dialog .premium-gate-modal__head p { color: #929db3; line-height: 1.45; }

.ten-premium-modal { z-index: 2600; }

.ten-confirm { width: min(500px, calc(100% - 20px)); display: grid; gap: 11px; }
.ten-confirm h3 { margin: 0; color: #fff; font-size: 25px; }
.ten-confirm > p:not(.hero-panel__eyebrow) { color: #97a2b8; line-height: 1.5; }
.ten-danger-btn { color: #fff; background: rgba(139, 31, 65, 0.3); border-color: rgba(255, 79, 120, 0.35); }

.ten-empty { min-height: min(520px, calc(100svh - 210px)); padding: 28px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ten-empty h1 { margin: 20px 0 8px; color: #fff; font-size: clamp(26px, 6vw, 38px); line-height: 1.06; }
.ten-empty p { max-width: 500px; color: #95a1b7; line-height: 1.5; }
.ten-empty .action-btn { width: min(100%, 400px); min-height: 50px; margin-top: 8px; }

@media (max-width: 980px) {
  .ten-welcome__layout { grid-template-columns: 1fr; }
  .ten-welcome__hero,
  .ten-welcome__controls { min-height: 0; }
}

@media (max-width: 720px) {
  .ten-premium-modal {
    place-items: start center;
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top, 0px) + 8px) 10px max(10px, env(safe-area-inset-bottom, 0px) + 8px);
    overflow: hidden;
  }
  .ten-premium-modal .premium-gate-modal__dialog {
    width: min(100%, 680px);
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 16px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ten-root { width: calc(100% - 20px); padding-top: 10px; }
  .ten-welcome {
    padding: 16px;
    border-radius: 23px;
  }

  .ten-welcome__exit {
    top: 12px;
    right: 12px;
    min-width: 62px;
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 0.64rem;
  }

  .ten-welcome__layout {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .ten-welcome__hero,
  .ten-welcome__controls { min-height: 0; }

  .ten-welcome__hero {
    grid-template-rows: auto 104px auto;
    gap: 10px;
    padding: 3px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ten-welcome__hero::before { display: none; }

  .ten-welcome__copy {
    gap: 6px;
    padding-right: 54px;
  }

  .ten-welcome__copy p {
    font-size: 0.59rem;
    letter-spacing: 0.16em;
  }

  .ten-welcome__copy h1 { font-size: 2rem; }

  .ten-welcome__copy > span {
    font-size: 0.7rem;
    line-height: 1.42;
  }

  .ten-welcome__visual {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 7px;
    min-height: 104px;
  }

  .ten-welcome__halo {
    width: 112px;
    height: 112px;
  }

  .ten-welcome__halo::before { inset: 18px; }
  .ten-welcome__halo::after { inset: 37px; }

  .ten-welcome__halo .ten-logo {
    width: 64px;
    border-radius: 18px;
  }

  .ten-welcome__halo .ten-logo b { font-size: 23px; }

  .ten-welcome__preview {
    min-height: 56px;
    gap: 3px;
    padding: 8px;
    border-radius: 13px;
  }

  .ten-welcome__preview span {
    font-size: 0.43rem;
    letter-spacing: 0.08em;
  }

  .ten-welcome__preview strong { font-size: 0.58rem; }

  .ten-welcome__facts { gap: 6px; }

  .ten-welcome__facts > span {
    min-height: 45px;
    gap: 2px;
    padding: 6px;
    border-radius: 12px;
  }

  .ten-welcome__facts strong { font-size: 0.8rem; }
  .ten-welcome__facts small { font-size: 0.5rem; }

  .ten-welcome__controls {
    gap: 9px;
    padding: 13px;
    border-radius: 20px;
  }

  .ten-welcome__controls-head { gap: 2px; }
  .ten-welcome__controls-head strong { font-size: 1rem; }
  .ten-welcome__controls-head span { font-size: 0.64rem; }
  .ten-welcome__steps { gap: 7px; }

  .ten-welcome__steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 15px;
  }

  .ten-welcome__steps b {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .ten-welcome__steps strong { font-size: 0.78rem; }

  .ten-welcome__steps small {
    font-size: 0.57rem;
    line-height: 1.28;
  }

  .ten-welcome__start {
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 0.86rem;
  }

  .ten-welcome__note {
    margin-top: -4px;
    font-size: 0.53rem;
  }
  .ten-hero { min-height: 106px; padding: 15px; border-radius: 19px; gap: 13px; }
  .ten-logo { width: 60px; border-radius: 18px; }
  .ten-logo b { font-size: 23px; }
  .ten-hero h1 { font-size: 25px; }
  .ten-hero p { font-size: 12px; }
  .ten-resume { align-items: stretch; flex-direction: column; }
  .ten-resume > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .ten-setup-panel { padding: 16px 13px; border-radius: 20px; }
  .ten-setup-panel__head { margin-bottom: 14px; gap: 10px; }
  .ten-setup-panel__head h1 { font-size: 25px; }
  .ten-setup-panel__head p { font-size: 12px; }
  .ten-back { min-width: 68px; height: 37px; padding: 0 11px; border-radius: 12px; }
  .ten-subject-grid,
  .ten-category-grid { grid-template-columns: 1fr; }
  .ten-count > div { gap: 4px; }
  .ten-count button { height: 41px; border-radius: 11px; font-size: 14px; }
  .ten-player-list { gap: 8px; margin-top: 13px; }
  .ten-player-field input,
  .ten-player-done { height: 47px; }
  .ten-player-done { min-width: 76px; }
  .ten-setup-panel__actions { margin-top: 13px; }
  .ten-setup-panel__actions .action-btn { min-height: 48px; }
  .ten-game-toolbar { margin-bottom: 8px; padding: 9px 10px; border-radius: 16px; }
  .ten-game-actions button { min-height: 36px; padding: 0 9px; border-radius: 11px; font-size: 10px; }
  .ten-question-card { min-height: clamp(174px, 28svh, 220px); padding: 14px 15px 18px; border-radius: 20px; gap: 12px; }
  .ten-turn-badge { padding: 7px 11px; border-radius: 12px; }
  .ten-turn-badge__copy strong { font-size: 20px; }
  .ten-question-card p { margin-bottom: 10px; font-size: 15px; }
  .ten-question-card h1 { font-size: clamp(20px, 5.6vw, 27px); }
  .ten-answer-grid { margin-top: 8px; gap: 7px; }
  .ten-answer { min-height: 52px; border-radius: 15px; }
  .ten-category-modal__dialog { padding: 17px 12px; }
}

@media (max-width: 390px) {
  .ten-root { width: calc(100% - 16px); }
  .ten-setup-panel { padding-inline: 11px; }
  .ten-hero h1 { font-size: 23px; }
  .ten-game-actions button { padding-inline: 8px; }
  .ten-question-card { min-height: 165px; }
}

@media (max-height: 680px) and (max-width: 720px) {
  .ten-root { padding-top: 7px; }
  .ten-game-toolbar { margin-bottom: 6px; }
  .ten-question-card { min-height: 148px; padding-block: 15px; }
  .ten-question-card h1 { font-size: clamp(18px, 5.1vw, 24px); }
  .ten-answer-grid { margin-top: 6px; }
  .ten-answer { min-height: 46px; }
}

:root[data-theme='light'] .ten-page {
  background: linear-gradient(160deg, #f7f9ff, #fdf5f8);
}
:root[data-theme='light'] .ten-welcome {
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 79, 120, 0.08), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(101, 119, 255, 0.1), transparent 34%),
    linear-gradient(145deg, #fff, #f7f7ff 55%, #fff6fa);
  border-color: rgba(118, 101, 180, 0.18);
}
:root[data-theme='light'] .ten-welcome__hero {
  background: linear-gradient(155deg, rgba(255, 243, 248, 0.92), rgba(244, 247, 255, 0.96));
}
:root[data-theme='light'] .ten-welcome__controls {
  background: linear-gradient(160deg, rgba(255, 247, 251, 0.96), rgba(244, 247, 255, 0.98));
}
:root[data-theme='light'] .ten-welcome__preview { background: rgba(255, 255, 255, 0.9); }
:root[data-theme='light'] .ten-welcome__copy h1,
:root[data-theme='light'] .ten-welcome__facts strong,
:root[data-theme='light'] .ten-welcome__controls-head strong,
:root[data-theme='light'] .ten-welcome__steps strong { color: #172033; }
:root[data-theme='light'] .ten-welcome__copy > span,
:root[data-theme='light'] .ten-welcome__controls-head span,
:root[data-theme='light'] .ten-welcome__steps small,
:root[data-theme='light'] .ten-welcome__facts small { color: #647089; }
@media (max-width: 720px) {
  :root[data-theme='light'] .ten-welcome__hero { background: transparent; }
}
:root[data-theme='light'] .ten-hero,
:root[data-theme='light'] .ten-resume,
:root[data-theme='light'] .ten-setup-panel,
:root[data-theme='light'] .ten-game-toolbar,
:root[data-theme='light'] .ten-empty { background: rgba(255, 255, 255, 0.92); }
:root[data-theme='light'] .ten-hero h1,
:root[data-theme='light'] .ten-resume strong,
:root[data-theme='light'] .ten-setup-panel__head h1,
:root[data-theme='light'] .ten-subject-card,
:root[data-theme='light'] .ten-category-card,
:root[data-theme='light'] .ten-game-meta strong { color: #172033; }
:root[data-theme='light'] .ten-game-meta > span { color: #647089; }
:root[data-theme='light'] .ten-category-premium { color: #80560b; background: rgba(222, 171, 44, .18); }
:root[data-theme='light'] .ten-category-card__copy small,
:root[data-theme='light'] .ten-category-add { color: #647089; }
:root[data-theme='light'] .ten-category-card.is-selected .ten-category-add { color: #14765a; }
:root[data-theme='light'] .ten-category-card.is-locked .ten-category-add { color: #80560b; }
:root[data-theme='light'] .ten-history__head h2,
:root[data-theme='light'] .ten-history-item__head > strong { color: #172033; }
:root[data-theme='light'] .ten-history-item p,
:root[data-theme='light'] .ten-history__earlier summary { color: #46536c; }
:root[data-theme='light'] .ten-history-item p > span,
:root[data-theme='light'] .ten-history__empty { color: #647089; }
:root[data-theme='light'] .ten-history-choice,
:root[data-theme='light'] .ten-history__totals span:first-child { color: #14765a; }
:root[data-theme='light'] .ten-history-item--disagree .ten-history-choice,
:root[data-theme='light'] .ten-history__totals span:last-child { color: #b02e54; }
