/* ================================================================ общие правила режимов */
body:not([data-theme="classic"]) > .topbar,
body:not([data-theme="classic"]) > #classicHome { display: none; }
body[data-theme="a"] { background: #5b2a86; }
body[data-theme="b"] { background: #141a3d; }
body[data-theme="c"] { background: #0f0b16; }
body:not([data-theme="classic"]) { background-image: none; }
#themeHome { min-height: 1px; }
/* общее правило section{max-width:1180px} из styles.css — только для «Классики» */
:where(#themeHome) section { max-width: none; margin: 0; padding: 0; }

/* общий нижний футер с выбором дизайна */
.site-foot {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--ink-2); font: 600 14px/1.5 'Nunito', system-ui, sans-serif; text-align: center;
}
.site-foot-text { margin: 0; }
.site-foot a { color: inherit; }
body:not([data-theme="classic"]) .site-foot { border-top-color: #ffffff1f; color: #ffffffb3; font-family: 'Montserrat', system-ui, sans-serif; }
body[data-theme="a"] .site-foot { background: #46206a; }
body[data-theme="b"] .site-foot { background: #0d1030; }
body[data-theme="c"] .site-foot { background: #0b0811; }
.theme-switch {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(20, 14, 30, .9); color: #fff; font: 700 14px 'Nunito', system-ui, sans-serif; max-width: 100%;
}
body:not([data-theme="classic"]) .theme-switch { background: #ffffff14; border: 1px solid #ffffff22; }
.theme-switch .ts-label { padding: 0 8px 0 10px; opacity: .75; }
.theme-switch button, .theme-switch a { display: inline-flex; align-items: center; border: 0; border-radius: 999px; padding: 9px 14px; background: transparent; color: #fff; font: inherit; cursor: pointer; white-space: nowrap; min-height: 40px; text-decoration: none; }
.theme-switch a:hover { background: #ffffff1f; }
.theme-switch a.on { background: #fff; color: #1a1226; }
.theme-switch a:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
@media (max-width: 480px) {
  .theme-switch { border-radius: 18px; }
  .theme-switch .ts-label { width: 100%; text-align: center; padding: 4px 0 2px; }
  .theme-switch a { padding: 8px 12px; font-size: 13px; }
}

/* модальные окна под цвет режима */
body[data-theme="a"] { --orange: #ff2fae; --orange-d: #c0007f; --plum: #5b2a86; }
body[data-theme="b"] { --orange: #f0a400; --orange-d: #b37a00; --plum: #1f2760; }
body[data-theme="c"] { --orange: #ff8a1f; --orange-d: #d06500; --plum: #2b1f45; }

/* ================================================================ A · Мастер-класс */
.ta { --tp: #5b2a86; --tp-d: #46206a; --ty: #ffe14d; --tpk: #ff2fae; --tl: #b6ff3b; --tb: #5aa9ff; --tv: #a76bff; --tink: #1d1430;
  color: #fff; font-family: 'Montserrat', system-ui, sans-serif; background: var(--tp); overflow-x: hidden; }
.ta-hero-wrap { position: relative; overflow: hidden; }
.ta-rub { position: absolute; right: -60px; top: -40px; font: 900 900px/.8 'Montserrat'; color: rgba(255, 255, 255, .07); pointer-events: none; user-select: none; }
.ta-coin { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--ty); color: var(--tink); display: grid; place-items: center; font: 900 22px 'Montserrat'; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); z-index: 1; }
.ta-coin-v { width: 32px; height: 32px; font-size: 15px; background: var(--tv); color: #fff; }
.ta-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; padding: 22px 48px; font-weight: 700; }
.ta-logo { font: 900 22px/0.9 'Montserrat'; color: var(--tl); text-transform: uppercase; letter-spacing: -.02em; margin-right: auto; }
.ta-nav a { color: #fff; text-decoration: none; opacity: .85; }
.ta-nav a:hover { opacity: 1; }
.ta-pill { background: var(--ty); color: var(--tink); padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; }
.ta-hero { position: relative; z-index: 2; min-height: 600px; padding: 10px 48px 60px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; max-width: 1280px; margin: 0 auto; }
.ta-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ta-tag { display: inline-block; padding: 10px 26px 14px; border-radius: 16px; font: 800 clamp(34px, 4.6vw, 62px)/1.05 'Montserrat'; color: var(--tp-d); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.ta-tag.ta-y { background: var(--ty); color: var(--tink); transform: rotate(-1.5deg); }
.ta-tag.ta-w { background: #fff; transform: rotate(1deg) translateX(30px); }
.ta-tag.ta-p { background: var(--tpk); color: #fff; transform: rotate(-1deg) translateX(14px); }
.ta-tag-s { font-size: clamp(24px, 3vw, 34px) !important; padding: 8px 20px 10px !important; transform: none !important; }
.ta-ribbon { margin: 26px 0 0 -10px; display: inline-flex; align-items: center; gap: 16px; background: var(--tink); padding: 12px 30px; font: 800 20px 'Montserrat'; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.ta-ribbon b { color: var(--ty); }
.ta-meta { margin: 26px 0 0; font-weight: 700; font-size: 18px; }
.ta-meta b { color: var(--ty); font-size: 22px; }
.ta-cta, .ta-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ta-btn { font: 800 17px 'Montserrat'; padding: 16px 26px; border-radius: 16px; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; transition: transform .12s; }
.ta-btn:hover { transform: translateY(-2px); }
.ta-btn:active { transform: translateY(3px); }
.ta-btn-y { background: var(--ty); color: var(--tink); box-shadow: 0 6px 0 #c9a800; }
.ta-btn-w { background: #fff; color: var(--tp-d); box-shadow: 0 6px 0 #c8b8dc; }
.ta-btn-o { background: transparent; color: #fff; border: 3px solid rgba(255, 255, 255, .6); }
.ta-btn.is-lock { background: var(--tpk); color: #fff; box-shadow: 0 6px 0 #a1006a; }
.ta-btn.is-off, .ta-btn:disabled { opacity: .45; cursor: default; transform: none; }
.ta-phone { justify-self: center; width: min(400px, 100%); background: #fff; border-radius: 34px; padding: 14px; transform: rotate(3deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); position: relative; cursor: pointer; transition: transform .25s; }
.ta-phone:hover { transform: rotate(0) scale(1.02); }
.ta-phone img { width: 100%; border-radius: 22px; display: block; }
.ta-sticker { position: absolute; left: -46px; bottom: 60px; background: var(--tpk); color: #fff; font: 800 16px 'Montserrat'; padding: 12px 16px; border-radius: 14px; transform: rotate(-6deg); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.ta-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; border-radius: 50%; background: var(--ty); color: var(--tink); display: grid; place-items: center; font-size: 34px; padding-left: 6px; box-shadow: 0 6px 0 #c9a800; }
.ta-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 48px 50px; max-width: 1280px; margin: 0 auto; }
.ta-flow div { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 16px; font-weight: 700; }
.ta-flow span { display: block; font-size: 28px; margin-bottom: 6px; }
.ta-sec { padding: 60px 48px; background: var(--tp-d); }
.ta-sec-alt { background: var(--tp); }
.ta-sec > * { max-width: 1184px; margin-left: auto; margin-right: auto; }
.ta-sec-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.ta-chip { display: inline-block; background: var(--tink); padding: 8px 22px; font: 800 14px 'Montserrat'; letter-spacing: .08em; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); }
.ta-sec-title { font: 800 28px 'Montserrat'; }
.ta-sec-topic { opacity: .75; font-weight: 600; }
.ta-sec-prog { margin-left: auto; background: rgba(255, 255, 255, .12); padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.ta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; }
.ta-sec-alt .ta-grid { grid-template-columns: .8fr 1.2fr; }
.ta-sec-alt .ta-grid > :first-child { order: 2; }
.ta-q-title { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ta-q-lead { opacity: .92; font-weight: 600; font-size: 17px; line-height: 1.5; margin: 6px 0 18px; }
.ta-opt { width: 100%; display: flex; align-items: center; gap: 16px; background: #fff; color: var(--tink); padding: 14px 18px; border-radius: 14px; margin-bottom: 10px; font: 700 16px 'Montserrat'; text-align: left; border: 3px solid transparent; cursor: pointer; transition: transform .15s; }
.ta-opt:hover { transform: translateX(6px); }
.ta-opt.is-picked { border-color: var(--ty); box-shadow: 0 0 0 4px rgba(255, 225, 77, .35); }
.ta-opt i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; }
.ta-opt i.ta-y { background: var(--ty); color: var(--tink); }
.ta-opt i.ta-p { background: var(--tpk); color: #fff; }
.ta-opt i.ta-v { background: var(--tv); color: #fff; }
.ta-opt i.ta-b { background: var(--tb); color: var(--tink); }
.ta-conclusion { margin-top: 14px; background: var(--tink); border-radius: 14px; padding: 16px 20px; font-weight: 600; line-height: 1.5; }
.ta-conclusion b { color: var(--ty); display: block; }
.ta-conclusion small { opacity: .7; }
.ta-conclusion.is-hidden { display: none; }
.ta-board { background: #2f5a3e; border: 10px solid #c98a4b; border-radius: 12px; padding: 22px; position: relative; box-shadow: 0 16px 30px rgba(0, 0, 0, .3); }
.ta-board small { color: var(--ty); font-weight: 800; letter-spacing: .08em; }
.ta-board p { font: 800 24px/1.3 'Montserrat'; margin: 10px 0 0; }
.ta-pawc { position: absolute; right: -24px; top: -24px; width: 58px; height: 58px; border-radius: 50%; background: var(--tpk); display: grid; place-items: center; font-size: 26px; border: 4px solid #fff; }
.ta-strip { position: relative; display: block; width: 100%; margin-top: 20px; padding: 0; border-radius: 18px; overflow: hidden; border: 5px solid #fff; height: 240px; cursor: pointer; background: #fff; }
.ta-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ta-strip:hover img { transform: scale(1.04); }
.ta-locked .ta-strip img { filter: blur(6px) grayscale(.5); }
.ta-strip-lock { position: absolute; inset: auto 12px 12px; background: var(--tink); color: #fff; padding: 10px; border-radius: 12px; font-weight: 800; }
.ta-shot { display: block; border-radius: 22px; overflow: hidden; border: 6px solid #fff; transform: rotate(2deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.ta-shot img { width: 100%; display: block; }
.ta-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.ta-kpi { border-radius: 16px; padding: 16px; font-weight: 700; color: var(--tink); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.ta-kpi b { display: block; font: 900 30px 'Montserrat'; }
.ta-kpi.ta-y { background: var(--ty); }
.ta-kpi.ta-w { background: #fff; }
.ta-kpi.ta-p { background: var(--tpk); color: #fff; }
.ta-kpi.ta-v { background: var(--tv); color: #fff; }
.ta-kpi.ta-b { background: var(--tb); }
.ta-level { font: 800 20px 'Montserrat'; color: var(--ty); margin: 22px auto 14px; }
.ta-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; }
.ta-skill-row { display: flex; justify-content: space-between; font-weight: 700; }
.ta-skill-row b { color: var(--ty); }
.ta-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .15); margin-top: 6px; overflow: hidden; }
.ta-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ty), var(--tpk)); border-radius: 99px; }
.ta-foot { text-align: center; padding: 30px 16px; opacity: .7; font-weight: 600; font-size: 14px; }
@media (max-width: 900px) {
  .ta-nav { padding: 16px 18px; gap: 14px; }
  .ta-nav a { display: none; }
  .ta-hero, .ta-grid, .ta-sec-alt .ta-grid { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .ta-sec-alt .ta-grid > :first-child { order: 0; }
  .ta-grid { padding: 0; }
  .ta-hero { min-height: 0; padding-bottom: 40px; }
  .ta-tag.ta-w, .ta-tag.ta-p { transform: none; }
  .ta-ribbon { font-size: 15px; padding: 10px 22px; gap: 10px; }
  .ta-sticker { left: 10px; bottom: -14px; }
  .ta-flow { grid-template-columns: 1fr 1fr; padding: 0 18px 40px; }
  .ta-sec { padding: 44px 18px; }
  .ta-sec-prog { margin-left: 0; }
  .ta-kpis { grid-template-columns: 1fr 1fr; }
  .ta-skills { grid-template-columns: 1fr; }
  .ta-rub { font-size: 520px; }
  .ta-btn { width: 100%; justify-content: center; }
}

/* ================================================================ B · Карта приключений */
.tb { --night: #141a3d; --gold: #ffd23f; --glow: #ff9a2e; --pink: #ff2fae; --mint: #5ef0c0; --tink: #0d1030;
  position: relative; color: #fff; font-family: 'Montserrat', system-ui, sans-serif; min-height: 100vh;
  background: radial-gradient(1200px 600px at 75% 10%, #3a2a7a 0, transparent 60%), radial-gradient(900px 500px at 10% 80%, #5b2a1a 0, transparent 60%), var(--night); }
.tb-stars { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 20% 30%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 10%, #fff9 50%, transparent 51%), radial-gradient(2px 2px at 40% 70%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 85% 55%, #fffa 50%, transparent 51%), radial-gradient(1.5px 1.5px at 10% 80%, #fff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 40%, #fff8 50%, transparent 51%); background-size: 600px 600px; }
.tb-hud { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(13, 16, 48, .8); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff1a; }
.tb-logo { font: 400 20px 'Rubik Mono One'; color: var(--gold); margin-right: auto; }
.tb-stat { display: flex; align-items: center; gap: 8px; background: #ffffff12; border: 1px solid #ffffff22; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.tb-mini { width: 110px; height: 10px; background: #ffffff22; border-radius: 99px; overflow: hidden; display: inline-block; }
.tb-mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--glow)); }
.tb-wrap { position: relative; display: grid; grid-template-columns: 380px 1fr; gap: 24px; padding: 30px 32px 40px; max-width: 1360px; margin: 0 auto; }
.tb-story { position: sticky; top: 90px; align-self: start; }
.tb-kicker { color: var(--mint); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.tb-story h1 { font: 400 38px/1.12 'Rubik Mono One'; margin: 12px 0 14px; text-shadow: 0 4px 0 #0008; }
.tb-story h1 em { font-style: normal; color: var(--glow); }
.tb-story p { color: #d8dcff; font-weight: 500; line-height: 1.55; }
.tb-mission { margin-top: 18px; background: linear-gradient(135deg, #ffffff14, #ffffff06); border: 2px solid #ffffff22; border-radius: 20px; padding: 18px; }
.tb-mission h3 { margin: 0 0 10px; font-size: 16px; color: var(--gold); }
.tb-bar { height: 16px; background: #00000055; border-radius: 99px; overflow: hidden; border: 2px solid #ffffff22; }
.tb-bar i { display: block; height: 100%; min-width: 4%; background: repeating-linear-gradient(45deg, var(--gold) 0 12px, var(--glow) 12px 24px); transition: width .5s; }
.tb-mission small { display: block; margin-top: 8px; color: #c3c8ff; font-weight: 600; }
.tb-play { display: block; width: 100%; margin-top: 18px; font: 800 19px 'Montserrat'; padding: 18px; border: 0; border-radius: 18px; color: var(--tink); background: linear-gradient(180deg, #ffe36b, var(--gold)); box-shadow: 0 7px 0 #c9921a, 0 0 40px #ffd23f55; cursor: pointer; text-align: center; text-decoration: none; }
.tb-play:active { transform: translateY(4px); box-shadow: 0 3px 0 #c9921a; }
.tb-play-s { display: inline-block; width: auto; padding: 14px 24px; font-size: 17px; }
.tb-side-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tb-ghost { flex: 1; text-align: center; background: #ffffff12; border: 1px solid #ffffff33; color: #fff; font: 700 14px 'Montserrat'; padding: 11px 12px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.tb-ghost:hover { background: #ffffff22; }
.tb-skills { margin-top: 22px; display: grid; gap: 10px; }
.tb-skill-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #d8dcff; }
.tb-skill-row b { color: var(--gold); }
.tb-bar, .tb-skill .tb-bar { margin-top: 4px; }
.tb-skill .tb-bar { height: 8px; border: 0; background: #ffffff1a; }
.tb-skill .tb-bar i { background: linear-gradient(90deg, var(--mint), var(--gold)); min-width: 0; }
.tb-map { position: relative; border-radius: 30px; overflow: hidden; border: 2px solid #ffffff14;
  background:
    radial-gradient(700px 320px at 50% 0%, #ff9a2e26, transparent 70%),
    radial-gradient(500px 400px at 50% 100%, #ffd23f1f, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 30 Q15 20 30 30 T60 30 T90 30 T120 30' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1d2a6b 0%, #18225a 45%, #121a48 100%); }
.tb-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* всё на карте позиционируется центром в точку (left%, top px) */
.tb-map > * { position: absolute; }
.tb-land, .tb-deco, .tb-coin, .tb-cloud, .tb-boat, .tb-fish, .tb-sign { pointer-events: none; }
.tb-land { width: 340px; height: 250px; transform: translate(-50%, -50%); z-index: 0;
  border-radius: 48% 52% 58% 42% / 55% 45% 55% 45%;
  background: radial-gradient(ellipse at 45% 40%, #4f8a46 0%, #3a6d3a 45%, #2c5532 70%, #c9a86a 71%, #e7c98a 78%, transparent 80%);
  filter: drop-shadow(0 18px 24px #0007); }
.tb-land.is-locked { filter: grayscale(1) brightness(.45) drop-shadow(0 18px 24px #0007); }
.tb-deco { z-index: 2; font-size: 38px; line-height: 1; margin: -19px 0 0 -19px; filter: drop-shadow(0 4px 4px #0006); }
.tb-item { font-size: 30px; margin: -15px 0 0 -15px; animation: tb-float 3.2s ease-in-out infinite; }
.tb-item:nth-of-type(2n) { animation-delay: -1.4s; }
@keyframes tb-float { 50% { translate: 0 -6px; } }
.tb-coin { z-index: 2; font-size: 20px; line-height: 1; margin: -10px 0 0 -10px; opacity: .28; filter: grayscale(1); }
.tb-coin.is-got { opacity: 1; filter: drop-shadow(0 0 8px #ffd23f); animation: tb-float 2.6s ease-in-out infinite; }
.tb-cloud { z-index: 0; font-size: 70px; opacity: .22; margin: -35px 0 0 -35px; animation: tb-drift 18s ease-in-out infinite alternate; }
@keyframes tb-drift { to { translate: 40px 0; } }
.tb-boat { z-index: 1; font-size: 40px; margin: -20px 0 0 -20px; animation: tb-rock 4s ease-in-out infinite; }
@keyframes tb-rock { 50% { rotate: 6deg; translate: 0 4px; } }
.tb-fish { z-index: 1; font-size: 26px; margin: -13px 0 0 -13px; opacity: .8; animation: tb-swim 7s ease-in-out infinite alternate; }
@keyframes tb-swim { to { translate: -50px 6px; } }
.tb-sign { z-index: 3; background: #5b3a1e; color: #ffe9c2; border: 3px solid #2a1a0c; border-radius: 10px; padding: 6px 12px; font: 800 14px 'Montserrat'; transform: translate(-20%, -50%) rotate(-4deg); box-shadow: 0 6px 0 #2a1a0c; white-space: nowrap; }
.tb-isle { position: absolute; width: 230px; transform: translateX(-50%); text-align: center; background: none; border: 0; color: #fff; font-family: inherit; cursor: pointer; padding: 0; z-index: 4; }
.tb-art { display: block; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; background-size: 280% auto; border: 6px solid #fff; box-shadow: 0 0 0 6px #ffffff22, 0 20px 40px #0008; position: relative; transition: transform .2s; }
.tb-isle:hover .tb-art { transform: scale(1.06); }
.tb-isle.is-done .tb-art { border-color: var(--gold); box-shadow: 0 0 0 6px #ffd23f44, 0 0 40px #ffd23f55; }
.tb-isle.is-locked .tb-art { filter: grayscale(1) brightness(.5); border-color: #7780b8; }
.tb-lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; filter: none; }
.tb-isle b { display: block; margin: 12px 0 2px; font-size: 17px; text-shadow: 0 2px 6px #000; }
.tb-isle small { color: #dfe3ff; font-weight: 600; text-shadow: 0 2px 6px #000; }
.tb-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.tb-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff44; }
.tb-dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.tb-here { position: absolute; top: -42px; left: 50%; transform: translateX(-50%); background: var(--pink); padding: 7px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 0 #a1006a; animation: tb-bob 1.6s ease-in-out infinite; }
@keyframes tb-bob { 50% { translate: 0 -6px; } }
.tb-photo { z-index: 3; width: 150px; padding: 8px 8px 6px; background: #fffdf6; border: 0; border-radius: 4px; cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)); box-shadow: 0 14px 26px #0009; transition: transform .2s; }
.tb-photo:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.08); z-index: 6; }
.tb-photo::before { content: ''; position: absolute; top: -10px; left: 50%; width: 56px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: #ffe14dcc; }
.tb-photo-img { display: block; height: 96px; background-size: 165% auto; background-repeat: no-repeat; border-radius: 2px; }
.tb-photo.is-locked .tb-photo-img { filter: blur(5px) grayscale(1); }
.tb-photo-cap { display: block; margin-top: 6px; font: 700 18px/1.1 'Caveat', 'Montserrat', cursive; color: #2a1d14; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-chest { z-index: 4; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 20px; display: grid; place-items: center; font-size: 36px; background: linear-gradient(180deg, #8a4dd0, #5b2a86); border: 4px solid var(--gold); box-shadow: 0 0 30px #ffd23f66; cursor: pointer; color: #fff; }
.tb-chest span { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); font: 800 12px 'Montserrat'; white-space: nowrap; color: var(--gold); text-shadow: 0 2px 4px #000; }
.tb-chest.is-off { filter: grayscale(.7); opacity: .75; cursor: default; box-shadow: none; }
.tb-chest.is-open { background: linear-gradient(180deg, #ffe36b, var(--gold)); }
.tb-gate { z-index: 5; left: 50%; transform: translateX(-50%); width: min(440px, 88%); background: #0d1030f0; border: 3px dashed var(--mint); border-radius: 22px; padding: 18px; text-align: center; font-weight: 600; line-height: 1.5; box-shadow: 0 20px 40px #0008; }
.tb-gate b { color: var(--mint); font-size: 18px; }
.tb-key { margin-top: 10px; background: var(--mint); color: var(--tink); font: 800 15px 'Montserrat'; padding: 12px 18px; border-radius: 12px; border: 0; cursor: pointer; }
.tb-tower { z-index: 3; width: 240px; transform: translateX(-50%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.tb-tower svg { position: relative; z-index: 1; filter: drop-shadow(0 16px 20px #0008); }
.tb-tower b { position: relative; z-index: 1; margin-top: 8px; font: 400 18px 'Rubik Mono One'; color: var(--gold); text-shadow: 0 3px 0 #0008; }
.tb-tower small { position: relative; z-index: 1; color: #dfe3ff; font-weight: 700; }
.tb-beam { position: absolute; top: 40px; left: 50%; width: 560px; height: 120px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, #ffe9a0 0%, #ffd23f88 18%, transparent 62%); opacity: var(--glow); animation: tb-pulse 3s ease-in-out infinite; }
@keyframes tb-pulse { 50% { opacity: calc(var(--glow) * .6); } }

.tb-game { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; max-width: 1296px; margin: 0 auto 40px; padding: 30px; border-radius: 30px; background: linear-gradient(135deg, #2a2f7a, #1b2154); border: 2px solid #ffffff1a; }
.tb-game img { width: 100%; border-radius: 18px; border: 4px solid #fff; }
.tb-game h2 { font: 400 26px/1.2 'Rubik Mono One'; color: var(--gold); margin: 0 0 12px; }
.tb-game p { color: #d8dcff; line-height: 1.55; }
.tb-game .tb-ghost { display: inline-block; flex: none; margin-left: 8px; padding: 14px 18px; }
@media (max-width: 900px) {
  .tb-hud { padding: 12px 14px; gap: 8px; }
  .tb-hide-m { display: none; }
  .tb-logo { font-size: 15px; }
  .tb-wrap { grid-template-columns: 1fr; padding: 18px 14px; }
  .tb-story { position: static; }
  .tb-story h1 { font-size: 28px; }
  .tb-isle { transform: translateX(-50%) scale(.72); transform-origin: top center; }
  .tb-chest { scale: .8; }
  .tb-opt { display: none; }
  .tb-land { width: 250px; height: 190px; }
  .tb-photo { width: 118px; left: var(--xm) !important; }
  .tb-photo-img { height: 72px; }
  .tb-photo-cap { font-size: 15px; }
  .tb-deco { font-size: 30px; }
  .tb-beam { width: 340px; }
  .tb-game { grid-template-columns: 1fr; margin: 0 14px 30px; padding: 20px; }
  .tb-game .tb-ghost { margin: 10px 0 0; }
}

/* ================================================================ C · Комикс-сериал */
.tc { --bg: #0f0b16; --card: #1c1527; --line: #2e2440; --text: #f4eefc; --muted: #a79bbd; --or: #ff8a1f; --ye: #ffd23f; --pk: #ff2fae; --vi: #8f5bff; --gr: #3ddc84;
  --pad: clamp(16px, 4vw, 56px); --wrap: 1440px;
  color: var(--text); background: var(--bg); font-family: 'Montserrat', system-ui, sans-serif; overflow-x: hidden; }
.tc-head { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  padding: clamp(14px, 2vw, 22px) var(--pad) 40px; background: linear-gradient(180deg, #0f0b16f2, #0f0b16aa 60%, transparent); }
.tc-logo { font: 800 clamp(19px, 2.2vw, 24px) 'Unbounded'; margin-right: auto; white-space: nowrap; }
.tc-logo span { color: var(--or); }
.tc-head a { color: #fff; text-decoration: none; font-weight: 700; opacity: .85; white-space: nowrap; }
.tc-head a:hover { opacity: 1; }
.tc-kid { display: flex; align-items: center; gap: 10px; background: #ffffff1a; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.tc-kid i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: url(assets/pages/p06.jpg) 50% 72%/260% auto; }

/* первый экран: коллаж — фон, текст — в обычном потоке (не наезжает на шапку при любой высоте) */
.tc-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(520px, 86vh, 820px); padding: 120px var(--pad) clamp(36px, 6vh, 72px); }
.tc-collage { position: absolute; inset: -40px -40px 0 30%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-4deg); }
.tc-collage div { border-radius: 14px; background-size: cover; min-height: 200px; }
.tc-collage .tc-tall { grid-row: span 2; }
.tc-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, #0f0b16cc 48%, #0f0b1622 75%, transparent), linear-gradient(0deg, var(--bg), transparent 30%); }
.tc-hero-text { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.tc-hero-text > * { max-width: 600px; }
.tc-badge { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--ye); }
.tc-badge b { background: var(--pk); color: #fff; padding: 4px 8px; border-radius: 6px; letter-spacing: 0; }
.tc-hero h1 { font: 800 clamp(40px, 6vw, 80px)/1 'Unbounded'; margin: 14px 0 16px; letter-spacing: -.02em; }
.tc-hero h1 span { display: block; color: var(--or); font-size: .55em; margin-top: 8px; }
.tc-hero p { color: #d9cfe8; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; font-weight: 500; margin: 0; }
.tc-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 16px 0 26px; color: var(--muted); font-weight: 700; font-size: 14px; }
.tc-meta span + span::before { content: '•'; margin-right: 16px; color: #ffffff44; }
.tc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tc-btn { font: 800 17px 'Montserrat'; padding: 16px 26px; border-radius: 14px; border: 0; display: inline-flex; gap: 10px; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; min-height: 52px; }
.tc-main { background: #fff; color: #111; }
.tc-main:hover { background: #ffe9d6; }
.tc-ghost { background: #ffffff22; color: #fff; backdrop-filter: blur(6px); }
.tc-ghost:hover { background: #ffffff33; }
.tc-btn:focus-visible, .tc-ep:focus-visible, .tc-quest:focus-visible { outline: 3px solid var(--ye); outline-offset: 3px; }

/* ряды и блоки — одна ширина контейнера на всех экранах */
.tc-row, .tc-game, .tc-parents { width: calc(100% - 2 * var(--pad)); max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.tc-row { padding: 10px 0 36px; }
.tc-row h2 { font: 700 clamp(19px, 2vw, 24px) 'Unbounded'; margin: 0 0 6px; }
.tc-sub { color: var(--muted); font-weight: 600; margin: 0 0 18px; }
.tc-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 8px 0 14px; }
.tc-ep { scroll-snap-align: start; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s; color: var(--text); font-family: inherit; padding: 0; cursor: pointer; }
.tc-ep:hover { transform: translateY(-6px); }
.tc-thumb { display: block; aspect-ratio: 16 / 10; background-size: 160% auto; position: relative; }
.tc-num { position: absolute; left: 12px; bottom: -18px; font: 800 54px/1 'Unbounded'; color: #fff; -webkit-text-stroke: 2px var(--bg); }
.tc-state { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: #000a; color: #fff; }
.tc-state.tc-done { background: var(--gr); color: #062; }
.tc-state.tc-lock { background: var(--vi); }
.tc-body { display: block; padding: 24px 16px 16px; }
.tc-body b { display: block; font-size: 17px; margin-bottom: 4px; }
.tc-body small { color: var(--muted); font-weight: 600; }
.tc-prog { display: block; height: 5px; background: #ffffff1a; border-radius: 9px; margin-top: 12px; overflow: hidden; }
.tc-prog i { display: block; height: 100%; background: var(--or); }
.tc-ep.is-locked .tc-thumb { filter: grayscale(.8) brightness(.6); }
.tc-quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.tc-quest { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--text); font-family: inherit; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.tc-quest:disabled { opacity: .5; cursor: default; }
.tc-quest.is-done { border-color: var(--ye); background: linear-gradient(135deg, #3a2a10, var(--card)); }
.tc-badge-ico { font-size: 30px; }
.tc-quest small { color: var(--muted); font-weight: 600; }
.tc-game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: 20px; margin-bottom: 20px; padding: clamp(20px, 3vw, 40px); border-radius: 26px; background: linear-gradient(120deg, #3b1d0c, #1c1527 60%); border: 1px solid var(--line); }
.tc-game h2 { font: 800 clamp(26px, 3vw, 38px) 'Unbounded'; margin: 10px 0; }
.tc-game p { color: #d9cfe8; line-height: 1.55; }
.tc-game img { width: 100%; height: auto; border-radius: 18px; display: block; }
.tc-parents { margin-top: 20px; margin-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; background: linear-gradient(120deg, #24193a, #1a1230); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 34px); }
.tc-parents h2 { font: 700 clamp(20px, 2.2vw, 26px) 'Unbounded'; margin: 0 0 10px; }
.tc-parents p { color: #d9cfe8; margin: 0 0 16px; line-height: 1.55; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chips span { padding: 8px 12px; border-radius: 10px; background: #ffffff12; font-weight: 700; font-size: 14px; }
.tc-report { background: var(--bg); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.tc-r { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; margin-top: 10px; }
.tc-bar { height: 8px; border-radius: 9px; background: #ffffff14; margin-top: 6px; overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 9px; }

/* планшет */
@media (max-width: 1024px) {
  .tc-head a { display: none; }
  .tc-collage { left: 22%; }
  .tc-hero::after { background: linear-gradient(90deg, var(--bg) 0%, #0f0b16ee 35%, #0f0b1688 65%, #0f0b1622), linear-gradient(0deg, var(--bg), transparent 35%); }
  .tc-game, .tc-parents { grid-template-columns: 1fr; }
  .tc-game img { order: -1; max-width: 640px; }
}
/* телефон */
@media (max-width: 640px) {
  .tc-kid { padding: 4px; font-size: 0; gap: 0; }
  .tc-kid::after { content: attr(data-short); font-size: 13px; padding: 0 8px 0 6px; }
  .tc-hero { min-height: 0; padding-top: 300px; }
  .tc-collage { inset: -30px -90px auto -60px; height: 420px; grid-template-columns: repeat(3, 1fr); }
  .tc-collage div { min-height: 130px; }
  .tc-hero::after { background: linear-gradient(0deg, var(--bg) 42%, #0f0b16cc 60%, #0f0b1633 85%, #0f0b1655); }
  .tc-hero h1 { margin: 10px 0 12px; }
  .tc-meta { margin: 12px 0 20px; font-size: 13px; }
  .tc-meta span + span::before { margin-right: 8px; }
  .tc-actions .tc-btn { flex: 1 1 100%; }
  /* на телефоне — лента со свайпом, следующий эпизод выглядывает справа */
  .tc-eps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad) 14px; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .tc-parents, .tc-game { border-radius: 20px; }
}
/* маленький телефон */
@media (max-width: 360px) {
  .tc-badge { font-size: 11px; }
  .tc-btn { font-size: 16px; padding: 14px 18px; }
}
/* низкий экран (телефон горизонтально) */
@media (max-height: 520px) and (min-width: 641px) {
  .tc-hero { min-height: 0; padding-top: 90px; }
  .tc-hero h1 { font-size: 40px; }
}

/* ================================================================ окна квеста/уровня/доступа под дизайн */
/* A · Мастер-класс: как вопросы на странице — наклейки, белые карточки, цветные буквы */
body[data-theme="a"] .modal { background: #5b2a86; color: #fff; border-color: #1d1430; font-family: 'Montserrat', system-ui, sans-serif; --ink-2: #e2d3f2; --paper-2: #ffffff26; --line: #ffffff33; }
body[data-theme="a"] .modal::backdrop { background: rgba(29, 20, 48, .7); }
body[data-theme="a"] .modal-x { color: #fff; }
body[data-theme="a"] .modal-quest .q-head .badge { background: #ffe14d; border-color: #1d1430; }
body[data-theme="a"] .q-kicker { display: inline-block; background: #1d1430; color: #fff; padding: 6px 18px; font: 800 12px 'Montserrat'; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); margin-bottom: 8px; }
body[data-theme="a"] .q-title { display: inline-block; background: #ffe14d; color: #1d1430; font: 800 clamp(22px, 3.4vw, 30px)/1.1 'Montserrat'; padding: 8px 18px 10px; border-radius: 14px; transform: rotate(-1deg); box-shadow: 0 5px 0 rgba(0, 0, 0, .2); }
body[data-theme="a"] .q-progress i { background: #ffffff33; }
body[data-theme="a"] .q-progress i.on { background: #ff2fae; }
body[data-theme="a"] .q-text { display: inline-block; background: #ff2fae; color: #fff; font: 800 19px/1.3 'Montserrat'; padding: 10px 18px 12px; border-radius: 14px; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); }
body[data-theme="a"] .q-opt { background: #fff; color: #1d1430; border: 3px solid transparent; border-radius: 14px; font: 700 16px 'Montserrat'; padding: 12px 16px; transition: transform .15s; }
body[data-theme="a"] .q-opt:hover:not(:disabled) { transform: translateX(6px); border-color: transparent; }
body[data-theme="a"] .q-opt.right { border-color: #7ddc8a; background: #eafbea; }
body[data-theme="a"] .q-opt.wrong { border-color: #ff6b6b; background: #ffe9e9; }
body[data-theme="a"] .q-explain { background: #1d1430; color: #fff; font-weight: 600; }
body[data-theme="a"] .modal .btn { border: 0; font-family: 'Montserrat'; box-shadow: 0 5px 0 #c9a800; }
body[data-theme="a"] .modal .btn-primary { background: #ffe14d; color: #1d1430; }
body[data-theme="a"] .modal .btn:not(.btn-primary) { background: transparent; color: #fff; box-shadow: none; border: 3px solid #ffffff99; }
body[data-theme="a"] .q-result .big { color: #ffe14d; }
body[data-theme="a"] .q-result a { color: #ffe14d; }
body[data-theme="a"] .q-xp-gain { background: #ffe14d; color: #1d1430; }
body[data-theme="a"] .q-xp-gain.is-muted { background: #ffffff1f; color: #fff; }
body[data-theme="a"] .q-xp-up { color: #b6ff3b; }
body[data-theme="a"] .lvl-bar i { background: linear-gradient(90deg, #ffe14d, #ff2fae); }
body[data-theme="a"] .lvl-kicker { color: #b6ff3b; }
body[data-theme="a"] .gz-step { background: #fff; color: #1d1430; border-color: transparent; }
body[data-theme="a"] .gz-step p { color: #6d6180; }

/* B · Карта: ночное небо и золото */
body[data-theme="b"] .modal { background: linear-gradient(180deg, #1f2760, #141a3d); color: #fff; border: 2px solid #ffd23f66; font-family: 'Montserrat', system-ui, sans-serif; --ink-2: #c3c8ff; --paper-2: #ffffff1a; --line: #ffffff26; box-shadow: 0 0 60px #ffd23f22; }
body[data-theme="b"] .modal::backdrop { background: rgba(8, 10, 30, .75); }
body[data-theme="b"] .modal-x { color: #fff; }
body[data-theme="b"] .q-kicker { color: #5ef0c0; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; font-weight: 800; }
body[data-theme="b"] .q-title { font: 400 24px/1.2 'Rubik Mono One'; color: #ffd23f; }
body[data-theme="b"] .q-progress i { background: #ffffff22; }
body[data-theme="b"] .q-progress i.on { background: #ffd23f; box-shadow: 0 0 8px #ffd23f; }
body[data-theme="b"] .q-text { font-family: 'Montserrat'; font-weight: 800; }
body[data-theme="b"] .q-opt { background: #ffffff12; color: #fff; border: 2px solid #ffffff26; font-family: 'Montserrat'; }
body[data-theme="b"] .q-opt:hover:not(:disabled) { border-color: #ffd23f; }
body[data-theme="b"] .q-opt.right { border-color: #5ef0c0; background: #5ef0c022; }
body[data-theme="b"] .q-opt.wrong { border-color: #ff6b6b; background: #ff6b6b22; }
body[data-theme="b"] .q-explain { background: #0d1030; color: #dfe3ff; }
body[data-theme="b"] .modal .btn { border: 0; font-family: 'Montserrat'; box-shadow: 0 5px 0 #c9921a; }
body[data-theme="b"] .modal .btn-primary { background: linear-gradient(180deg, #ffe36b, #ffd23f); color: #0d1030; }
body[data-theme="b"] .modal .btn:not(.btn-primary) { background: #ffffff14; color: #fff; box-shadow: none; border: 1px solid #ffffff33; }
body[data-theme="b"] .q-result .big { color: #ffd23f; }
body[data-theme="b"] .q-result a { color: #5ef0c0; }
body[data-theme="b"] .q-xp-gain { background: #ffd23f; color: #0d1030; }
body[data-theme="b"] .q-xp-up { color: #5ef0c0; }
body[data-theme="b"] .lvl-bar { background: #00000055; }
body[data-theme="b"] .lvl-bar i { background: repeating-linear-gradient(45deg, #ffd23f 0 12px, #ff9a2e 12px 24px); }
body[data-theme="b"] .lvl-kicker { color: #5ef0c0; }
body[data-theme="b"] .gz-step { background: #ffffff10; border-color: #ffffff22; }
body[data-theme="b"] .gz-step p { color: #c3c8ff; }
body[data-theme="b"] .promo-form input { background: #0d1030; color: #fff; border-color: #ffffff44; }

/* C · Сериал: тёмная карточка, оранжевый акцент */
body[data-theme="c"] .modal { background: #1c1527; color: #f4eefc; border: 1px solid #2e2440; font-family: 'Montserrat', system-ui, sans-serif; --ink-2: #a79bbd; --paper-2: #ffffff14; --line: #2e2440; border-radius: 24px; }
body[data-theme="c"] .modal::backdrop { background: rgba(5, 3, 10, .8); backdrop-filter: blur(4px); }
body[data-theme="c"] .modal-x { color: #fff; }
body[data-theme="c"] .q-kicker { color: #ffd23f; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; font-weight: 800; }
body[data-theme="c"] .q-title { font: 800 24px/1.15 'Unbounded'; }
body[data-theme="c"] .q-progress i { background: #ffffff1a; }
body[data-theme="c"] .q-progress i.on { background: #ff8a1f; }
body[data-theme="c"] .q-text { font-family: 'Montserrat'; font-weight: 800; }
body[data-theme="c"] .q-opt { background: #0f0b16; color: #f4eefc; border: 1px solid #2e2440; font-family: 'Montserrat'; }
body[data-theme="c"] .q-opt:hover:not(:disabled) { border-color: #ff8a1f; }
body[data-theme="c"] .q-opt.right { border-color: #3ddc84; background: #3ddc8420; }
body[data-theme="c"] .q-opt.wrong { border-color: #ff5a5a; background: #ff5a5a20; }
body[data-theme="c"] .q-explain { background: #0f0b16; color: #d9cfe8; }
body[data-theme="c"] .modal .btn { border: 0; font-family: 'Montserrat'; box-shadow: none; border-radius: 14px; }
body[data-theme="c"] .modal .btn-primary { background: #fff; color: #111; }
body[data-theme="c"] .modal .btn:not(.btn-primary) { background: #ffffff1f; color: #fff; }
body[data-theme="c"] .q-result .big { color: #ff8a1f; }
body[data-theme="c"] .q-result a { color: #ffd23f; }
body[data-theme="c"] .q-xp-gain { background: #ff8a1f; color: #1a0e02; }
body[data-theme="c"] .q-xp-up { color: #ffd23f; }
body[data-theme="c"] .lvl-bar i { background: linear-gradient(90deg, #ff8a1f, #ffd23f); }
body[data-theme="c"] .lvl-kicker { color: #ffd23f; }
body[data-theme="c"] .gz-step { background: #0f0b16; border-color: #2e2440; }
body[data-theme="c"] .gz-step p { color: #a79bbd; }
body[data-theme="c"] .promo-form input { background: #0f0b16; color: #fff; border-color: #2e2440; }
body:not([data-theme="classic"]) .modal .lvl-head span, body:not([data-theme="classic"]) .modal .lvl small { color: var(--ink-2); }

/* уровень на главной */
.ta-lvl { margin-top: 22px; max-width: 460px; background: #1d1430; border-radius: 16px; padding: 14px 16px; color: #fff; }
.ta-lvl-wide { max-width: none; margin: 22px 0 18px; }
.ta-lvl .lvl-head span, .ta-lvl small { color: #e2d3f2; }
.ta-lvl .lvl-head b { color: #ffe14d; }
.ta-lvl .lvl-bar { background: #ffffff26; }
.ta-lvl .lvl-bar i { background: linear-gradient(90deg, #ffe14d, #ff2fae); }
.tb-lvl { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ffffff1f; }
.tb-lvl .lvl-head b { color: #5ef0c0; font-size: 14px; }
.tb-lvl .lvl-head span, .tb-lvl small { color: #c3c8ff; font-size: 13px; }
.tb-lvl .lvl-bar { background: #00000055; height: 10px; }
.tb-lvl .lvl-bar i { background: linear-gradient(90deg, #5ef0c0, #ffd23f); }
.tc-lvl { margin: 0 0 22px; max-width: 460px; background: #ffffff10; backdrop-filter: blur(6px); border: 1px solid #ffffff1f; border-radius: 14px; padding: 12px 14px; }
.tc-lvl .lvl-head b { color: #fff; font-size: 14px; }
.tc-lvl .lvl-head span, .tc-lvl small { color: #a79bbd; font-size: 13px; }
.tc-lvl .lvl-bar { background: #ffffff1a; height: 10px; }
.tc-lvl .lvl-bar i { background: linear-gradient(90deg, #ff8a1f, #ffd23f); }
.tc-lvl-p { margin: 0 0 14px; background: #0f0b16; }
