/* =========================================================
   Танфлекс СЕПТ — «Башня леденцов»
   Игровой тест для сотрудников AIGP
   ========================================================= */

.tfs *,
.tfs *::before,
.tfs *::after { box-sizing: border-box; }

.tfs {
  /* --- brand tokens --- */
  --navy: #052A5E;
  --navy-2: #0A4A9E;
  --sky: #0B87D8;
  --magenta: #E6007E;
  --lemon: #FFCE00;
  --orange: #F58220;
  --ink: #0D1B2E;
  --ink-soft: #5A6B80;
  --paper: #F2F6FB;
  --line: #DCE5EF;
  --ok: #12A05C;
  --no: #E23B3B;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  min-height: 660px;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(5, 42, 94, .55);
  -webkit-font-smoothing: antialiased;
}

.tfs button { font-family: inherit; }

/* =========================================================
   1. СЦЕНА (левая колонка) — башня из леденцов
   ========================================================= */

.tfs__stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(11, 135, 216, .55) 0%, rgba(11, 135, 216, 0) 60%),
    linear-gradient(170deg, #052A5E 0%, #073A80 45%, #0A4A9E 100%);
  color: #fff;
  min-height: 420px;
}

.tfs__stage::after {
  /* фирменный диагональный срез */
  content: "";
  position: absolute;
  inset: auto -10% -1px -10%;
  height: 120px;
  background: linear-gradient(90deg, rgba(230, 0, 126, .9), rgba(230, 0, 126, 0));
  clip-path: polygon(0 100%, 100% 55%, 100% 100%);
  opacity: .5;
  pointer-events: none;
}

.stage__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 18%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 72% 12%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 45% 32%, rgba(255,255,255,.3), transparent),
    radial-gradient(2px 2px at 86% 40%, rgba(255,255,255,.25), transparent);
  opacity: .8;
  pointer-events: none;
}

/* --- HUD: боль + счёт --- */
.stage__hud {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  z-index: 4;
}

.hud__pain { width: 132px; }

.hud__label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 6px;
  font-weight: 700;
}

.pain__bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}

.pain__fill {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #E23B3B, #F58220);
  transition: width .7s cubic-bezier(.2, .9, .25, 1), background .7s ease;
}

.pain__val {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.hud__score { text-align: right; }

.score__val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--lemon);
  display: block;
}

.score__combo {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(-4px) scale(.9);
  transition: all .25s ease;
}
.score__combo.is-on { opacity: 1; transform: none; }

/* --- башня --- */
.tower {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tower__inner {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 190px;
  margin-left: -95px;
  transition: transform .75s cubic-bezier(.25, .9, .3, 1);
}

.tower__ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 74px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  border-top: 2px solid rgba(255, 255, 255, .22);
}

.tower__ground::before {
  content: "СТАРТ";
  position: absolute;
  top: 10px; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: .3em;
  opacity: .55;
  font-weight: 800;
}

/* один леденец */
.loz {
  position: absolute;
  left: 50%;
  width: 118px;
  height: 46px;
  margin-left: -59px;
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: lozPop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

.loz i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(60% 70% at 34% 26%, #FFF29A 0%, var(--lemon) 45%, #E0A700 100%);
  box-shadow:
    0 10px 0 -2px rgba(0, 0, 0, .18),
    inset 0 -6px 12px rgba(160, 100, 0, .35),
    inset 0 6px 10px rgba(255, 255, 255, .55);
}

.loz.is-orange i {
  background: radial-gradient(60% 70% at 34% 26%, #FFD08A 0%, var(--orange) 45%, #C85F06 100%);
  box-shadow:
    0 10px 0 -2px rgba(0, 0, 0, .18),
    inset 0 -6px 12px rgba(140, 70, 0, .38),
    inset 0 6px 10px rgba(255, 255, 255, .5);
}

.loz.is-dead i {
  background: radial-gradient(60% 70% at 34% 26%, #C9D4E2 0%, #8FA1B6 45%, #5D6E82 100%);
  box-shadow: 0 10px 0 -2px rgba(0, 0, 0, .18), inset 0 -6px 12px rgba(20, 35, 60, .35);
}

.loz.is-dead::after {
  /* трещина */
  content: "";
  position: absolute;
  left: 42%; top: 4px;
  width: 3px; height: 38px;
  background: rgba(10, 25, 50, .45);
  clip-path: polygon(0 0, 100% 12%, 20% 45%, 100% 68%, 30% 100%, 0 88%);
}

.loz__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 190px; height: 100px;
  margin: -50px 0 0 -95px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 206, 0, .45), transparent 70%);
  animation: lozGlow .5s ease-out both;
  pointer-events: none;
}

@keyframes lozPop {
  0%   { transform: translateY(-46px) scale(.4); opacity: 0; }
  60%  { transform: translateY(4px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes lozGlow {
  0% { opacity: .9; transform: scale(.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* --- герой --- */
.hero {
  position: absolute;
  left: 50%;
  width: 120px;
  height: 150px;
  margin-left: -60px;
  transition: bottom .7s cubic-bezier(.25, 1.2, .35, 1);
  z-index: 3;
}
.hero svg { width: 100%; height: 100%; overflow: visible; }

.hero.is-hop { animation: heroHop .7s cubic-bezier(.3, 1.1, .4, 1); }
@keyframes heroHop {
  0%   { transform: translateY(0) rotate(0); }
  35%  { transform: translateY(-26px) rotate(-7deg); }
  70%  { transform: translateY(4px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0); }
}

.hero.is-hurt { animation: heroHurt .5s ease; }
@keyframes heroHurt {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px) rotate(-4deg); }
  50% { transform: translateX(6px) rotate(4deg); }
  80% { transform: translateX(-3px); }
}

/* состояния героя */
.hero .g-scarf   { transition: opacity .6s ease, transform .6s ease; }
.hero .g-throat  { transition: opacity .6s ease; }
.hero .g-arms-up { opacity: 0; transition: opacity .35s ease; }
.hero .g-arms    { opacity: 1; transition: opacity .35s ease; }
.hero .m-sad     { transition: opacity .5s ease; }
.hero .m-happy   { opacity: 0; transition: opacity .5s ease; }
.hero .g-body    { transition: transform .6s ease; }

.hero[data-state="ok"] .m-sad { opacity: 0; }
.hero[data-state="ok"] .m-happy { opacity: 1; }
.hero[data-state="ok"] .g-scarf { opacity: .55; }

.hero[data-state="win"] .m-sad { opacity: 0; }
.hero[data-state="win"] .m-happy { opacity: 1; }
.hero[data-state="win"] .g-scarf { opacity: 0; transform: translateY(30px) rotate(25deg); }
.hero[data-state="win"] .g-arms { opacity: 0; }
.hero[data-state="win"] .g-arms-up { opacity: 1; }
.hero[data-state="win"] .g-throat { opacity: 0; }

.hero__throat-pulse { animation: throatPulse 1.8s ease-in-out infinite; transform-origin: center; }
@keyframes throatPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.18); }
}

.hero__shout {
  position: absolute;
  left: 50%;
  bottom: 118%;
  transform: translateX(-50%) scale(.7);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--lemon);
  color: var(--navy);
  opacity: 0;
  transition: all .3s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
.hero__shout.is-on { opacity: 1; transform: translateX(-50%) scale(1); }

/* солнце наверху */
.stage__sun {
  position: absolute;
  top: 46px; left: 50%;
  width: 120px; height: 120px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE066 0%, #FFCE00 45%, rgba(255, 206, 0, 0) 72%);
  opacity: 0;
  transform: scale(.5);
  transition: all .9s ease;
  z-index: 1;
}
.stage__sun.is-on { opacity: .95; transform: scale(1); }

/* =========================================================
   2. ПАНЕЛЬ (правая колонка)
   ========================================================= */

.tfs__panel {
  position: relative;
  background: var(--paper);
  padding: 30px 34px 34px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.screen { display: none; animation: fadeUp .45s ease both; flex: 1; flex-direction: column; }
.screen.is-active { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- шапка --- */
.brandbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--magenta);
}

.brandbar__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--navy);
}
.brandbar__logo span { color: var(--orange); }

.brandbar__tag {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- стартовый экран --- */
.start__kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(230, 0, 126, .1);
  color: var(--magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.start__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  color: var(--navy);
}
.start__title em { font-style: normal; color: var(--orange); }

.start__lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 22px;
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.rule {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
}
.rule b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 2px;
}
.rule span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(11, 135, 216, .14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--magenta), #B8005F);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(230, 0, 126, .9);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--line);
}
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn--sun {
  background: linear-gradient(135deg, var(--lemon), var(--orange));
  color: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(245, 130, 32, .95);
}
.btn--sun:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }

/* --- экран блока --- */
.blockcard { margin: auto 0; text-align: center; padding: 30px 0; }
.blockcard__n {
  font-family: var(--font-display);
  font-size: clamp(70px, 11vw, 128px);
  line-height: .85;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--sky);
  letter-spacing: -.04em;
}
.blockcard__t {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 8px;
  letter-spacing: -.02em;
}
.blockcard__s { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.blockcard .btn { margin: 0 auto; }

/* --- экран вопроса --- */
.qhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.qhead__block {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--magenta);
}

.qhead__count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.qhead__count b { color: var(--navy); font-size: 17px; }

/* таймер-леденец */
.timer {
  position: relative;
  width: 46px; height: 46px;
  flex: 0 0 46px;
}
.timer svg { transform: rotate(-90deg); width: 46px; height: 46px; }
.timer__track { fill: none; stroke: var(--line); stroke-width: 5; }
.timer__bar {
  fill: none;
  stroke: var(--sky);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke .3s ease;
}
.timer.is-low .timer__bar { stroke: var(--no); }
.timer__num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.progress {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 22px;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sky), var(--magenta));
  transition: width .5s ease;
}

.qtext {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 22px;
}

.answers { display: grid; gap: 10px; }

.answer {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.answer:hover:not([disabled]) {
  border-color: var(--sky);
  transform: translateX(4px);
  box-shadow: 0 8px 20px -14px rgba(5, 42, 94, .8);
}
.answer:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.answer__key {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  transition: background .18s ease, color .18s ease;
}

.answer.is-correct {
  border-color: var(--ok);
  background: rgba(18, 160, 92, .07);
}
.answer.is-correct .answer__key { background: var(--ok); color: #fff; }

.answer.is-wrong {
  border-color: var(--no);
  background: rgba(226, 59, 59, .07);
}
.answer.is-wrong .answer__key { background: var(--no); color: #fff; }

.answer.is-off { opacity: .35; }
.answer[disabled] { cursor: default; }

/* объяснение */
.explain {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  border-left: 5px solid var(--sky);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  display: none;
  animation: fadeUp .35s ease both;
}
.explain.is-on { display: block; }
.explain b { color: var(--navy); }
.explain .explain__verdict {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 6px;
}
.explain.is-ok { border-left-color: var(--ok); }
.explain.is-ok .explain__verdict { color: var(--ok); }
.explain.is-no { border-left-color: var(--no); }
.explain.is-no .explain__verdict { color: var(--no); }

.qfoot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; }
.qfoot .btn { padding: 13px 22px; }

.lifeline {
  margin-right: auto;
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  transition: all .18s ease;
}
.lifeline:hover:not([disabled]) { border-color: var(--magenta); color: var(--magenta); }
.lifeline[disabled] { opacity: .4; cursor: not-allowed; }

/* --- экран результата --- */
.result__top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }

.medal {
  flex: 0 0 96px;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  background: radial-gradient(circle at 32% 28%, #FFF29A, var(--lemon) 55%, #E0A700);
  box-shadow: 0 14px 30px -14px rgba(224, 167, 0, .9);
  animation: medalIn .7s cubic-bezier(.2, 1.5, .4, 1) both;
}
.medal.is-silver { background: radial-gradient(circle at 32% 28%, #fff, #C6D2E0 55%, #8FA1B6); box-shadow: 0 14px 30px -16px rgba(90,110,130,.9); }
.medal.is-bronze { background: radial-gradient(circle at 32% 28%, #FFD9B0, #E08A3C 55%, #A85C15); }
@keyframes medalIn {
  0% { transform: scale(0) rotate(-90deg); }
  100% { transform: none; }
}

.result__rank {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.1;
}
.result__sub { color: var(--ink-soft); font-size: 14px; margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.1;
}
.stat span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  font-weight: 700;
}

.byblock { display: grid; gap: 8px; margin-bottom: 18px; }
.bb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 14px;
}
.bb__name { font-weight: 700; color: var(--navy); }
.bb__bar { flex: 1; height: 7px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.bb__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--ok)); }
.bb__n { font-family: var(--font-display); font-size: 12px; color: var(--ink-soft); }

.review { margin-bottom: 18px; }
.review__h {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--navy);
  margin: 0 0 10px;
}
.review__item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--no);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}
.review__item b { color: var(--navy); display: block; margin-bottom: 4px; }
.review__item .ok { color: var(--ok); font-weight: 700; }

.board { margin-bottom: 18px; }
.board__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  font-size: 13.5px;
}
.board__row.is-me { border-color: var(--magenta); background: rgba(230, 0, 126, .05); }
.board__pos {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-soft);
  width: 22px;
}
.board__name { font-weight: 700; color: var(--navy); }
.board__score { margin-left: auto; font-family: var(--font-display); color: var(--orange); }

.saved-note { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 8px; }

/* конфетти */
.tfs__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* звук */
.soundbtn {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 7;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  backdrop-filter: blur(4px);
}
.soundbtn:hover { border-color: #fff; }

/* пачки в сцене (видны до старта) */
.packshot {
  position: absolute;
  right: 4%;
  top: 16%;
  width: 58%;
  max-width: 250px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 26px 34px rgba(0, 20, 50, .55));
  animation: floaty 5s ease-in-out infinite;
  transition: opacity .5s ease, transform .5s ease;
}
.tfs.is-playing .packshot { opacity: 0; transform: translateY(-24px) scale(.9); }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-1.2deg); }
}

/* =========================================================
   3. Адаптив
   ========================================================= */
@media (max-width: 900px) {
  .tfs {
    grid-template-columns: 1fr;
    border-radius: 16px;
    min-height: 0;
  }
  .tfs__stage { min-height: 240px; height: 240px; }
  .tower__inner { bottom: 54px; width: 150px; margin-left: -75px; }
  .tower__ground { height: 54px; }
  .loz { width: 96px; height: 38px; margin-left: -48px; }
  .hero { width: 96px; height: 120px; margin-left: -48px; }
  .stage__sun { top: 24px; width: 84px; height: 84px; margin-left: -42px; }
  .tfs__panel { padding: 22px 18px 26px; }
  .packshot { width: 42%; max-width: 132px; right: 2%; top: 20%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .qtext { font-size: 19px; }
  .answer { padding: 14px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tfs *, .tfs *::before, .tfs *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
