/* Общие стили игр NVC. Без grid, flex-gap, clamp(), inset - ради встроенных браузеров ТВ. */
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/shared/fonts/manrope-cyrillic-500.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/shared/fonts/manrope-cyrillic-700.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/shared/fonts/manrope-cyrillic-800.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/shared/fonts/manrope-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/shared/fonts/manrope-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/shared/fonts/manrope-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --brand: #8965FD;        /* МетаПетс; НВТ переопределяет на #875EF8 */
  --brand-deep: #5B3BD6;
  --brand-soft: #D6CEFD;
  --brand-tint: #EFEAFE;
  --ink: #18222C;
  --ink-2: #3A4350;
  --muted: #6B7380;
  --line: #E4E6E7;
  --bg: #F5F8FF;
  --card: #FFFFFF;
  --ok: #2E9E6A;
  --warn: #C2410C;
  --radius: 1.1rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.35;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.kiosk { -webkit-user-select: none; user-select: none; }
body.kiosk input, body.kiosk textarea { -webkit-user-select: text; user-select: text; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--brand); }

/* ---------- экраны ---------- */
#app { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
.screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.active { display: block; -webkit-animation: scr-in .35s ease-out; animation: scr-in .35s ease-out; }
@-webkit-keyframes scr-in { from { opacity: 0; -webkit-transform: translateY(.6rem); } to { opacity: 1; -webkit-transform: none; } }
@keyframes scr-in { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
.screen-inner { min-height: 100%; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; padding: 1.4rem 1.8rem; }
body.phone .screen-inner { padding: 1rem 1rem 1.4rem; }

.flex { display: -webkit-box; display: -webkit-flex; display: flex; }
.col { -webkit-flex-direction: column; flex-direction: column; }
.center { -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.middle { -webkit-align-items: center; align-items: center; }
.between { -webkit-justify-content: space-between; justify-content: space-between; }
.grow { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-height: 0; min-width: 0; }
.wrap { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.tc { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.brand { color: var(--brand); }

/* ---------- типографика ---------- */
.h-xl { font-size: 3.2rem; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.h-l { font-size: 2.1rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.h-m { font-size: 1.45rem; font-weight: 800; line-height: 1.18; margin: 0; }
.h-s { font-size: 1.05rem; font-weight: 800; line-height: 1.25; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.t-l { font-size: 1.2rem; line-height: 1.4; }
.t-m { font-size: 1rem; line-height: 1.45; }
.t-s { font-size: .8rem; line-height: 1.4; }
body.phone .h-xl { font-size: 2.4rem; }
body.phone .h-l { font-size: 1.75rem; }
body.phone .h-m { font-size: 1.3rem; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase;
  padding: .85rem 1.7rem; border-radius: 99rem; min-height: 3rem;
  -webkit-transition: -webkit-transform .12s, background .2s, box-shadow .2s; transition: transform .12s, background .2s, box-shadow .2s;
  box-shadow: 0 .35rem 1rem rgba(91, 59, 214, .28);
  text-decoration: none; text-align: center; line-height: 1.25;
}
.btn:active { -webkit-transform: scale(.97); transform: scale(.97); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: .18rem solid var(--ink); outline-offset: .2rem; }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btn-xl { font-size: 1.35rem; padding: 1.05rem 2.4rem; }
.btn-ghost { background: transparent; color: var(--ink); border: .14rem solid var(--ink); box-shadow: none; }
.btn-soft { background: var(--brand-tint); color: var(--brand-deep); box-shadow: none; }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-play:after { content: ""; display: inline-block; vertical-align: -.1em; margin-left: .7rem; border-left: .85em solid var(--brand); border-top: .55em solid transparent; border-bottom: .55em solid transparent; }
.btn-ghost.btn-play:after { border-left-color: var(--brand); }
.link-btn { background: none; border: 0; padding: .6rem; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.pulse { -webkit-animation: pulse 1.8s ease-in-out infinite; animation: pulse 1.8s ease-in-out infinite; }
@-webkit-keyframes pulse { 0%, 100% { -webkit-transform: scale(1); } 50% { -webkit-transform: scale(1.045); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* ---------- чипы ---------- */
.chips { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -.25rem; }
.chip {
  margin: .25rem; padding: .55rem 1rem; border-radius: 99rem; cursor: pointer;
  border: .12rem solid var(--ink); background: #fff; color: var(--ink);
  font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em;
  -webkit-transition: background .15s, color .15s, -webkit-transform .1s; transition: background .15s, color .15s, transform .1s;
}
.chip:active { -webkit-transform: scale(.96); transform: scale(.96); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.test { border-color: var(--brand); color: var(--brand-deep); }
.chip.test.on { color: #fff; }

/* ---------- карточки и бейджи ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 .5rem 1.6rem rgba(24, 34, 44, .08); }
.badge { display: inline-block; border: .1rem solid var(--brand); color: var(--brand); border-radius: 99rem; padding: .2rem .75rem; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge-fill { background: var(--brand); color: #fff; }
.art { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0,0,0,0) 100%); }
.art img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- верхняя полоса ---------- */
.topbar { -webkit-flex: 0 0 auto; flex: 0 0 auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 1rem; }
.topbar .logo { height: 2rem; width: auto; }
.topbar .logo-nvt { height: 1.7rem; }
.topbar .right { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.topbar .right > * { margin-left: .8rem; }
.step { font-weight: 800; color: var(--brand); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- форма ---------- */
.form { width: 100%; max-width: 34rem; margin: 0 auto; }
.form .field { margin-bottom: .75rem; }
.form label.lbl { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .3rem .2rem; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea {
  width: 100%; border: .12rem solid var(--line); background: #fff; border-radius: .8rem;
  padding: .8rem 1rem; font-size: 1.05rem; outline: none; min-height: 3rem;
  -webkit-appearance: none; appearance: none;
}
.form input:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-tint); }
.form .err { color: var(--warn); font-size: .78rem; margin: .25rem 0 0 .2rem; min-height: 0; }
.form .field.bad input { border-color: var(--warn); }
.form .hint { font-size: .8rem; margin: .3rem 0 0 .2rem; }
.form .hint button { background: none; border: 0; color: var(--brand-deep); text-decoration: underline; font-weight: 800; cursor: pointer; padding: 0; }
.consent { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; font-size: .78rem; color: var(--ink-2); line-height: 1.4; cursor: pointer; margin: .4rem 0 .9rem; }
.consent input { width: 1.5rem; height: 1.5rem; margin: 0 .7rem 0 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; accent-color: var(--brand); }
.consent.bad { color: var(--warn); }
.consent + .consent { margin-top: -.4rem; }
.form .actions { text-align: center; margin-top: .4rem; }
.form .actions .btn { width: 100%; }

/* ---------- код участника ---------- */
.code-box { text-align: center; background: #fff; border: .16rem dashed var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; }
.code-box .code { font-size: 2.6rem; font-weight: 800; letter-spacing: .06em; color: var(--brand-deep); white-space: nowrap; }
body.phone .code-box .code { font-size: 1.9rem; }
.code-box .code small { font-size: .55em; color: var(--muted); letter-spacing: .1em; }

/* ---------- QR ---------- */
.qr { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; background: #fff; border-radius: 1rem; padding: .6rem .9rem .6rem .6rem; box-shadow: 0 .3rem 1rem rgba(24, 34, 44, .1); }
.qr img { width: 5.2rem; height: 5.2rem; margin-right: .8rem; }
.qr .t-s { max-width: 9rem; font-weight: 700; color: var(--ink-2); }
body.phone .qr, body:not(.kiosk) .qr.kiosk-only { display: none; }

/* вертикальное центрирование без потери прокрутки (auto-поля вместо justify-content) */
.vc { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.vc > :first-child { margin-top: auto; }
.vc > :last-child { margin-bottom: auto; }
body:not(.at-home) .fs-btn { display: none; }

/* форма на горизонтальном экране: телефон и почта в одну строку */
body.land .form { max-width: 46rem; }
body.land .form .row2 { display: -webkit-box; display: -webkit-flex; display: flex; }
body.land .form .row2 .field { -webkit-flex: 1 1 50%; flex: 1 1 50%; min-width: 0; }
body.land .form .row2 .field + .field { margin-left: .9rem; }
body.land .form .h-m + p { margin: .2rem 0 .7rem !important; }
body.land .form .field { margin-bottom: .55rem; }
body.land .form input[type=text], body.land .form input[type=tel], body.land .form input[type=email] { min-height: 2.6rem; padding: .6rem .95rem; }
body.land .form .consent { margin: .3rem 0 .7rem; }

/* ---------- оверлеи ---------- */
.overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(24, 34, 44, .55); display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; z-index: 50; padding: 1rem; }
.overlay .card { padding: 1.6rem 2rem; max-width: 30rem; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; -webkit-transform: translateX(-50%); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: .8rem; font-size: .85rem; z-index: 60; opacity: 0; -webkit-transition: opacity .3s; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }
.fs-btn { position: fixed; bottom: .5rem; right: .5rem; z-index: 40; width: 2.2rem; height: 2.2rem; border-radius: .6rem; border: 0; background: rgba(255,255,255,.6); color: var(--ink-2); font-size: 1.1rem; cursor: pointer; opacity: .55; }
.net-dot { position: fixed; left: .5rem; bottom: .5rem; z-index: 40; font-size: .65rem; color: var(--muted); background: rgba(255,255,255,.75); border-radius: .5rem; padding: .15rem .5rem; }
.footer-note { font-size: .7rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* =====================================================================
   v2: motion. Только transform и opacity - встроенным браузерам ТВ так легче.
   ===================================================================== */

/* слой частиц и летящие копии карточек */
.fx-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 65; }
.fx-fly { position: fixed !important; z-index: 66; margin: 0 !important; pointer-events: none; -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; }

/* парение маскотов */
/* will-change: анимируемые элементы - отдельные слои, браузер двигает их без перерисовки */
.float { -webkit-animation: float 6s ease-in-out infinite; animation: float 6s ease-in-out infinite; will-change: transform; }
.float-slow { -webkit-animation: float 9s ease-in-out infinite; animation: float 9s ease-in-out infinite; will-change: transform; }
@-webkit-keyframes float { 0%, 100% { -webkit-transform: translate3d(0, 0, 0) rotate(0); } 50% { -webkit-transform: translate3d(0, -.9rem, 0) rotate(-1.2deg); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -.9rem, 0) rotate(-1.2deg); } }

/* мягкое свечение за элементом: пульсирует непрозрачность псевдоэлемента */
.glow { position: relative; z-index: 0; }
.glow:before { content: ""; position: absolute; left: 8%; right: 8%; top: 10%; bottom: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(137, 101, 253, .55) 0%, rgba(137, 101, 253, 0) 68%);
  -webkit-animation: glow 3.2s ease-in-out infinite; animation: glow 3.2s ease-in-out infinite; z-index: -1; will-change: transform, opacity; }
@-webkit-keyframes glow { 0%, 100% { opacity: .45; -webkit-transform: scale(.94); } 50% { opacity: 1; -webkit-transform: scale(1.06); } }
@keyframes glow { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }

/* бегущий блик по крупному тексту */
/* цвет блика: на светлом фоне белый «съедает» буквы, поэтому по умолчанию светло-фиолетовый */
.shine { background: linear-gradient(100deg, currentColor 0%, currentColor 40%, #C9B8FF 50%, currentColor 60%, currentColor 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-animation: shine 4.5s ease-in-out infinite; animation: shine 4.5s ease-in-out infinite; }
@-webkit-keyframes shine { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }
@keyframes shine { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }

/* каскадное появление: FX.stagger добавляет .in */
.st { opacity: 0; -webkit-transform: translate3d(0, .9rem, 0); transform: translate3d(0, .9rem, 0);
  -webkit-transition: opacity .45s ease-out, -webkit-transform .5s cubic-bezier(.2, .8, .2, 1); transition: opacity .45s ease-out, transform .5s cubic-bezier(.2, .8, .2, 1); }
.st.in { opacity: 1; -webkit-transform: none; transform: none; }

/* появление с пружинкой и «пинок» */
.pop-in { -webkit-animation: pop-in .55s cubic-bezier(.2, 1.4, .4, 1) both; animation: pop-in .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@-webkit-keyframes pop-in { 0% { opacity: 0; -webkit-transform: scale(.55); } 100% { opacity: 1; -webkit-transform: scale(1); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.55); } 100% { opacity: 1; transform: scale(1); } }
.pop { -webkit-animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@-webkit-keyframes pop { 0% { -webkit-transform: scale(1); } 35% { -webkit-transform: scale(1.18); } 100% { -webkit-transform: scale(1); } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* тряска */
.shake-1 { -webkit-animation: shake1 .34s linear; animation: shake1 .34s linear; }
.shake-2 { -webkit-animation: shake2 .52s linear; animation: shake2 .52s linear; }
@-webkit-keyframes shake1 { 0%, 100% { -webkit-transform: none; } 20% { -webkit-transform: translate3d(-.25rem, .1rem, 0); } 40% { -webkit-transform: translate3d(.22rem, -.1rem, 0); } 60% { -webkit-transform: translate3d(-.15rem, 0, 0); } 80% { -webkit-transform: translate3d(.1rem, .05rem, 0); } }
@keyframes shake1 { 0%, 100% { transform: none; } 20% { transform: translate3d(-.25rem, .1rem, 0); } 40% { transform: translate3d(.22rem, -.1rem, 0); } 60% { transform: translate3d(-.15rem, 0, 0); } 80% { transform: translate3d(.1rem, .05rem, 0); } }
@-webkit-keyframes shake2 { 0%, 100% { -webkit-transform: none; } 15% { -webkit-transform: translate3d(-.6rem, .2rem, 0) rotate(-.6deg); } 30% { -webkit-transform: translate3d(.55rem, -.25rem, 0) rotate(.5deg); } 50% { -webkit-transform: translate3d(-.4rem, .15rem, 0); } 70% { -webkit-transform: translate3d(.25rem, -.1rem, 0); } 85% { -webkit-transform: translate3d(-.1rem, 0, 0); } }
@keyframes shake2 { 0%, 100% { transform: none; } 15% { transform: translate3d(-.6rem, .2rem, 0) rotate(-.6deg); } 30% { transform: translate3d(.55rem, -.25rem, 0) rotate(.5deg); } 50% { transform: translate3d(-.4rem, .15rem, 0); } 70% { transform: translate3d(.25rem, -.1rem, 0); } 85% { transform: translate3d(-.1rem, 0, 0); } }

/* «аврора»: два больших мягких пятна медленно плывут за содержимым экрана.
   Пятна fixed: не влияют на прокрутку экрана и не требуют менять его позиционирование. */
.aurora:before, .aurora:after { content: ""; position: fixed; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.aurora:before { left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(137, 101, 253, .28) 0%, rgba(137, 101, 253, 0) 65%);
  -webkit-animation: drift1 22s ease-in-out infinite alternate; animation: drift1 22s ease-in-out infinite alternate; }
.aurora:after { right: -30vmax; bottom: -35vmax; background: radial-gradient(circle, rgba(94, 224, 176, .2) 0%, rgba(94, 224, 176, 0) 62%);
  -webkit-animation: drift2 27s ease-in-out infinite alternate; animation: drift2 27s ease-in-out infinite alternate; }
.aurora > * { position: relative; z-index: 1; }
@-webkit-keyframes drift1 { 0% { -webkit-transform: translate3d(0, 0, 0) scale(1); } 100% { -webkit-transform: translate3d(22vmax, 14vmax, 0) scale(1.2); } }
@keyframes drift1 { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(22vmax, 14vmax, 0) scale(1.2); } }
@-webkit-keyframes drift2 { 0% { -webkit-transform: translate3d(0, 0, 0) scale(1.1); } 100% { -webkit-transform: translate3d(-20vmax, -12vmax, 0) scale(.9); } }
@keyframes drift2 { 0% { transform: translate3d(0, 0, 0) scale(1.1); } 100% { transform: translate3d(-20vmax, -12vmax, 0) scale(.9); } }

/* плашка предложения: читается с трёх метров */
.offer { display: inline-block; background: #fff; color: var(--ink); border-radius: 99rem; padding: .55rem 1.3rem; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 .4rem 1.4rem rgba(91, 59, 214, .18); margin: 0 0 1.1rem; }
.offer b { color: var(--brand); }
.offer .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #2E9E6A; margin-right: .55rem; vertical-align: .08rem;
  -webkit-animation: blink 1.6s ease-in-out infinite; animation: blink 1.6s ease-in-out infinite; }
.prize-line { font-size: .9rem; font-weight: 700; color: var(--ink-2); margin: -.4rem 0 1.1rem; }
@-webkit-keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-count { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .03em; color: var(--brand-deep); background: var(--brand-tint); border-radius: 99rem; padding: .3rem .85rem; }
.live-count b { font-size: 1.05rem; }

/* QR на заставке стенда - крупнее, чтобы сканировали издалека */
.qr svg { display: block; width: 5.2rem; height: 5.2rem; margin-right: .8rem; }
body.kiosk .qr svg, body.kiosk .qr img { width: 8.5rem; height: 8.5rem; }
body.kiosk .qr .t-s { font-size: .95rem; max-width: 10rem; }

/* передача результата с ТВ на телефон */
.handoff-box { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; background: #fff; border: .16rem dashed var(--brand); border-radius: var(--radius); padding: .9rem 1rem; }
.handoff-qr { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 9.5rem; height: 9.5rem; margin-right: 1rem; }
.handoff-qr svg { width: 100%; height: 100%; display: block; }
.handoff-txt b { display: block; font-size: 1.15rem; margin-bottom: .35rem; }
.handoff-txt span { font-size: .85rem; color: var(--ink-2); line-height: 1.4; }
.form-wrap.with-handoff { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; max-width: 76rem; margin: 0 auto; }
.form-wrap.with-handoff .form { -webkit-flex: 1 1 auto; flex: 1 1 auto; margin: 0; }
.form-side { -webkit-flex: 0 0 22rem; flex: 0 0 22rem; margin-left: 1.6rem; }
.form-side .handoff-box { -webkit-flex-direction: column; flex-direction: column; text-align: center; }
.form-side .handoff-qr { width: 13rem; height: 13rem; margin: 0 0 .8rem; }
body.port .form-wrap.with-handoff { -webkit-flex-direction: column-reverse; flex-direction: column-reverse; }
body.port .form-side { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin: 0 0 1rem; width: 100%; max-width: 34rem; }
body.port .form-side .handoff-box { -webkit-flex-direction: row; flex-direction: row; text-align: left; }
body.port .form-side .handoff-qr { width: 9rem; height: 9rem; margin: 0 1rem 0 0; }

/* клиника: подсказки */
.form .lbl .lbl-opt { font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: .3rem; }
.clinic-field { position: relative; }
.sugg { position: absolute; left: 0; right: 0; z-index: 5; background: #fff; border: .12rem solid var(--brand-soft); border-radius: .8rem; margin-top: .2rem; overflow: hidden; box-shadow: 0 .6rem 1.6rem rgba(24, 34, 44, .14); }
.sugg .sg { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: .06rem solid var(--line); padding: .7rem 1rem; font-weight: 700; cursor: pointer; }
.sugg .sg:last-child { border-bottom: 0; }
.sugg .sg:active { background: var(--brand-tint); }
.form .who { margin: .9rem 0 .2rem; text-align: center; line-height: 1.4; }

/* поделиться */
.share-sheet .card { max-width: 26rem; width: 100%; }
.share-sheet .share-btns { margin: .8rem 0 .4rem; }
.share-sheet .share-btns .btn { display: block; width: 100%; margin: .45rem 0; }
.btn-share:before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .55rem; vertical-align: -.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M5 13v6h14v-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.btn-soft.btn-share:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M5 13v6h14v-6' fill='none' stroke='%235B3BD6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* кнопка звука */
.snd-btn { position: fixed; right: .7rem; bottom: .7rem; z-index: 45; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; padding: .55rem;
  background: rgba(255, 255, 255, .85); color: var(--brand-deep); box-shadow: 0 .2rem .8rem rgba(24, 34, 44, .15); cursor: pointer; }
.snd-btn svg { width: 100%; height: 100%; display: block; }
.snd-btn.off { color: var(--muted); }
body.kiosk .snd-btn { right: 3.2rem; bottom: .5rem; width: 2.2rem; height: 2.2rem; padding: .45rem; opacity: .7; }
body[data-screen="game"] .snd-btn { display: none; }

/* праздник рекорда на заставке/стене */
.celebrate { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(43, 22, 138, .82) 0%, rgba(30, 15, 102, .9) 70%); color: #fff; text-align: center;
  opacity: 0; -webkit-transition: opacity .35s; transition: opacity .35s; }
.celebrate.show { opacity: 1; }
.celebrate .k { font-size: 1.3rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFE58A; }
.celebrate .n { font-size: 3.2rem; font-weight: 800; margin: .5rem 0 .2rem; }
.celebrate .s { font-size: 7rem; font-weight: 800; line-height: 1; }
.celebrate .s small { font-size: 1.6rem; margin-left: .5rem; opacity: .85; }

/* облегчённый режим и «меньше движения»: без фоновых и бесконечных анимаций */
body.lite .float, body.lite .float-slow, body.lite .glow:before, body.lite .aurora:before, body.lite .aurora:after,
body.lite .shine, body.lite .pulse, body.lite .offer .dot { -webkit-animation: none !important; animation: none !important; }
body.lite .shine { background: none; -webkit-text-fill-color: currentColor; }
.dark .shine { background-image: linear-gradient(100deg, currentColor 0%, currentColor 40%, #FFFFFF 50%, currentColor 60%, currentColor 100%); }
body.lite .aurora:before, body.lite .aurora:after { display: none; }
body.reduced .st { opacity: 1; -webkit-transform: none; transform: none; -webkit-transition: none; transition: none; }
body.reduced .pop-in, body.reduced .pop, body.reduced .shake-1, body.reduced .shake-2 { -webkit-animation: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .screen.active, .pulse { -webkit-animation: none; animation: none; }
}

/* планшет и ноутбук: колонка «с телефона» уже, форме больше места - кнопка отправки остаётся на экране */
@media (max-width: 1300px) {
  body.land .form-side { -webkit-flex: 0 0 14rem; flex: 0 0 14rem; margin-left: 1rem; }
  body.land .form-side .handoff-qr { width: 9.5rem; height: 9.5rem; }
  body.land .form-side .handoff-txt b { font-size: 1rem; }
  body.land .form-side .handoff-txt span { font-size: .75rem; }
  body.land .form .chip { padding: .45rem .75rem; font-size: .76rem; margin: .2rem; }
}
