/* public/board/board.css — раскладка ТВ-табло (1080p/4K), бренд-стиль. */
body { overflow: hidden; }

/* ── Хедер ── */
.bx-header {
  height: 8vh; display: flex; align-items: center; gap: 1.2vw; padding: 0 1.6vw;
}
.bx-emblem { height: 6vh; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.bx-emblem svg { width: 100%; height: 100%; }
.bx-emblem-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bx-emblem .ring { fill: none; stroke: #6a5544; stroke-width: 5; stroke-dasharray: 6 5; }
.bx-emblem .ring2 { fill: none; stroke: var(--orange-dim); stroke-width: 2; opacity: .7; }
.bx-emblem .bowtie { fill: none; stroke: var(--orange); stroke-width: 3; filter: drop-shadow(0 0 4px var(--orange)); }
.bx-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bx-title-1 { font-weight: 700; font-size: clamp(18px, 2.6vh, 40px); letter-spacing: .04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.bx-title-2 { color: var(--muted); font-family: var(--brand-font); font-weight: 700; font-size: clamp(10px, 1.3vh, 18px); letter-spacing: .2em; line-height: 1; }
.bx-status { margin-left: auto; display: flex; align-items: center; gap: 1.2vw; }
.bx-status .pill { font-size: clamp(11px, 1.4vh, 18px); }
.bx-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 1.6s infinite; }
#market-status.quiet .dot { background: var(--scarce); box-shadow: 0 0 8px var(--scarce); }
#clock { font-size: clamp(16px, 2.6vh, 40px); color: var(--orange-soft); }
@keyframes pulse { 50% { opacity: .35; } }

/* ── Основная сетка ── */
.bx-main { height: 83vh; display: grid; grid-template-columns: 43% 57%; gap: 1vh 1vw; padding: 1vh 1vw; }

/* Рыночная доска */
.bx-market { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.bx-market-head {
  display: grid; grid-template-columns: 5px 34px 1fr 7% 19%; gap: 8px; align-items: center;
  padding: .7vh 14px; color: var(--muted2); font-size: clamp(9px, 1.1vh, 14px); letter-spacing: .16em;
  border-bottom: 1px solid var(--line2);
}
.bx-market-head span:first-child { grid-column: 1 / 4; } /* «СОРТ» над led+картинкой+названием */
.bx-market-head .r { text-align: right; }
body[data-view="board"] .bx-market-head { grid-template-columns: 5px 44px 1fr 7% 19%; }
.bx-rows { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.row {
  flex: 1; display: grid; grid-template-columns: 5px 34px 1fr 7% 19%; align-items: center; gap: 8px;
  padding: 0 14px; border-bottom: 1px solid var(--line);
  position: relative;
}
.row:last-child { border-bottom: none; }
.row-art { display: flex; align-items: center; justify-content: center; opacity: .96; }
.row-art .sort-photo { width: 40px; height: 40px; }
.row.sold .row-art, .row.halt .row-art { opacity: .4; filter: grayscale(.5); }
body[data-view="board"] .row { grid-template-columns: 5px 44px 1fr 7% 19%; }
body[data-view="board"] .row-art .sort-photo { width: 44px; height: 44px; }
.row .led { width: 5px; height: 56%; border-radius: 3px; background: var(--flat); align-self: center; }
.row.up .led { background: var(--up); box-shadow: 0 0 10px var(--up-dim); }
.row.down .led { background: var(--down); box-shadow: 0 0 10px var(--down-dim); }
.row.sold .led { background: var(--down-dim); }
.row.halt .led { background: var(--scarce); }

.row-main { min-width: 0; }
.row-name { display: flex; align-items: baseline; gap: 6px; }
.row-name b { color: var(--orange-soft); font-family: var(--mono); font-size: clamp(10px, 1.25vh, 17px); flex: 0 0 auto; }
.row-name .rn-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: clamp(12px, 1.62vh, 23px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name .row-abv { flex: 0 0 auto; font-family: var(--mono); font-weight: 700; font-size: clamp(9px, 1.15vh, 15px); color: var(--orange-soft); opacity: .85; }
.row-desc { color: var(--muted); font-size: clamp(9px, 1.12vh, 14px); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted2); font-size: clamp(9px, 1.1vh, 14px); margin-top: 1px; letter-spacing: .02em; }
.row-sub .scarce { color: var(--scarce); font-weight: 700; }
.row-sub .soldtag { color: var(--down); font-weight: 800; letter-spacing: .1em; }

.spark { width: 100%; height: 4vh; align-self: center; }

.row-price { text-align: right; }
.row-price .price { font-size: clamp(18px, 2.8vh, 46px); font-weight: 700; line-height: 1; }
.row.up .price { color: var(--up); }
.row.down .price { color: var(--down); }
.row.sold .price, .row.halt .price { color: var(--muted); }
.row-price .chg { margin-top: 4px; font-size: clamp(10px, 1.3vh, 18px); }

/* Правая колонка */
.bx-right { display: flex; flex-direction: column; gap: 1vh; min-height: 0; }
.bx-chart { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 1vh 0.8vw; min-height: 0; }
.bx-chart-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 1vh; }
.feat-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feat-art { display: flex; align-items: center; flex: 0 0 auto; }
.feat-ticker { font-family: var(--mono); color: var(--orange); font-size: clamp(14px, 2vh, 30px); font-weight: 700; }
.feat-name { color: var(--text); font-size: clamp(13px, 1.8vh, 26px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-switch { display: flex; gap: 4px; }
.tf-btn { font-family: var(--mono); font-size: clamp(11px, 1.3vh, 16px); font-weight: 700; color: var(--text-dim, #9a8f80);
  background: rgba(60,45,34,.25); border: 1px solid #3c2d22; border-radius: 6px; padding: 2px 8px; cursor: pointer; line-height: 1.4; }
.tf-btn.is-on { color: #1a120b; background: var(--orange, #ff7a18); border-color: var(--orange, #ff7a18); }
.feat-right { display: flex; align-items: center; gap: 12px; }
.feat-price { font-size: clamp(20px, 3.2vh, 52px); font-weight: 800; color: var(--orange-soft); }
#chart { flex: 1; min-height: 0; }

.bx-bottom { height: 26%; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1vw; }
.bx-movers, .bx-hall, .bx-traders { padding: 1vh 1vw; overflow: hidden; }
.panel-title { color: var(--muted); font-size: clamp(10px, 1.2vh, 16px); letter-spacing: .18em; margin-bottom: .6vh; }
.mover { display: flex; align-items: center; gap: 8px; font-size: clamp(11px, 1.5vh, 20px); padding: .35vh 0; }
.mover .m-tick { font-family: var(--mono); color: var(--orange-soft); width: 3.6em; }
.mover .m-name { color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover .m-chg { font-weight: 800; }
.hall-row { display: flex; align-items: center; gap: 8px; font-size: clamp(11px, 1.5vh, 20px); padding: .35vh 0; }
.hall-row .h-rank { color: var(--orange); font-weight: 800; width: 1.4em; }
.hall-row .h-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-row .h-wins { color: var(--up); font-weight: 800; }
.hall-row .h-pnl { font-family: var(--mono); font-weight: 800; }
.hall-row .h-pnl.up { color: var(--up); }
.hall-row .h-pnl.down { color: var(--down); }
.hall-empty { color: var(--muted2); font-size: clamp(11px, 1.4vh, 18px); }

/* ── Бегущая строка ── */
.bx-ticker { height: 9vh; display: flex; align-items: center; overflow: hidden; }
.bx-ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 60s linear infinite; }
.bx-ticker:hover .bx-ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 9px; padding: 0 2.2vw; font-size: clamp(14px, 2.3vh, 34px); }
.tk .tk-sym { font-family: var(--mono); color: var(--orange-soft); font-weight: 700; }
.tk .tk-price { font-family: var(--mono); }
.tk .tk-chg { font-weight: 700; }
.tk .tk-sep { color: var(--line2); }
.tk.up .tk-price, .tk.up .tk-chg { color: var(--up); }
.tk.down .tk-price, .tk.down .tk-chg { color: var(--down); }
.tk .tk-warn { color: var(--scarce); }
.tk.tk-news { color: var(--orange-soft); font-weight: 800; text-shadow: 0 0 16px rgba(255,122,24,.3); }
.tk.tk-news .tk-news-tag { margin-right: 8px; }

/* ── Оверлей дуэлей ── */
.bx-duel-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.duel-banner {
  position: absolute; top: 8.5vh; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #2a1c10, #15100b);
  border: 1px solid var(--orange-dim); border-radius: 12px;
  padding: 1.2vh 2vw; min-width: 50vw; text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 30px rgba(255,122,24,.15);
  animation: drop .4s ease-out;
}
@keyframes drop { from { transform: translate(-50%, -120%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.duel-banner .db-tag { color: var(--orange); font-weight: 800; letter-spacing: .2em; font-size: clamp(12px, 1.6vh, 22px); }
.duel-banner .db-vs { font-size: clamp(18px, 3vh, 44px); font-weight: 800; margin: .4vh 0; }
.duel-banner .db-vs .vs { color: var(--orange); margin: 0 14px; }
.duel-banner .db-meta { color: var(--muted); font-size: clamp(11px, 1.5vh, 20px); }
.duel-banner .db-live { color: var(--down); font-weight: 800; letter-spacing: .2em; }

.duel-winner {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255,122,24,.18), rgba(0,0,0,.86));
  animation: fadein .4s ease-out;
}
.duel-winner .dw-cup { font-size: 9vh; line-height: 1; color: var(--orange); filter: drop-shadow(0 0 20px var(--orange)); }
.duel-winner .dw-cup .ic { stroke-width: 1.4; }
.duel-winner .dw-label { color: var(--orange); letter-spacing: .3em; font-weight: 800; font-size: clamp(14px, 2vh, 28px); }
.duel-winner .dw-name { font-size: clamp(30px, 8vh, 120px); font-weight: 900; text-shadow: 0 0 40px rgba(255,122,24,.5); }
.duel-winner .dw-prize { color: var(--muted); font-size: clamp(13px, 2vh, 28px); margin-top: 1vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ── Полировка под бренд/логотип ── */
.bx-emblem-img { filter: drop-shadow(0 0 14px rgba(255, 122, 24, 0.45)); }
.bx-market, .bx-chart, .bx-movers, .bx-hall, .bx-traders { animation: fade-up .55s var(--ease-out) both; }
.bx-chart { animation-delay: .06s; }
.bx-movers { animation-delay: .12s; }
.bx-hall { animation-delay: .16s; }
/* мягкая брендовая подсветка снизу шапки */
.bx-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,24,.45), transparent);
}
.bx-header { position: relative; }

/* ── Премиальные «моменты» (баннеры): IPO, сезон, Happy Hour, обвал/ралли ── */
.bx-event-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 60; --accent: #ff7a18; }
.moment-backdrop {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(52% 52% at 50% 44%, color-mix(in srgb, var(--accent) 16%, transparent), rgba(0,0,0,.8) 72%);
  animation: moment-back-in .5s var(--ease-out) both;
}
.moment-backdrop.moment-out { animation: moment-back-out .6s ease-in both; }
.moment-card {
  position: relative; text-align: center; padding: 5vh 7vw; border-radius: 26px;
  animation: moment-card-in .7s cubic-bezier(.16, 1.3, .3, 1) both;
}
.moment-backdrop.moment-out .moment-card { animation: moment-card-out .55s ease-in both; }
.moment-glow {
  position: absolute; inset: -14% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 42%, transparent), transparent 75%);
  filter: blur(22px); animation: moment-pulse 2.2s ease-in-out infinite;
}
.moment-icon { font-size: 12vh; line-height: 1; color: var(--accent); filter: drop-shadow(0 0 32px var(--accent)); animation: moment-icon .8s cubic-bezier(.16, 1.5, .3, 1) both; }
.moment-icon .ic { stroke-width: 1.5; }
.moment-title { display: flex; gap: .34em; justify-content: center; flex-wrap: wrap; margin-top: 1vh; }
.moment-title .moment-word {
  display: inline-block; font-size: clamp(34px, 8.6vh, 124px); font-weight: 900; letter-spacing: .03em;
  color: var(--accent); text-shadow: 0 0 48px color-mix(in srgb, var(--accent) 72%, transparent);
  animation: moment-word .55s var(--ease-out) both;
}
.moment-sub { margin-top: 1.5vh; font-size: clamp(16px, 3vh, 40px); font-weight: 700; color: var(--text); opacity: 0; animation: moment-sub .5s ease-out .52s both; }
.moment-particles { position: absolute; inset: 0; pointer-events: none; }
.moment-particle {
  position: absolute; bottom: 16%; width: var(--sz); height: var(--sz); border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0;
  animation: moment-ember var(--dur) ease-out infinite;
}
@keyframes moment-back-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes moment-back-out { to { opacity: 0; } }
@keyframes moment-card-in { from { opacity: 0; transform: perspective(800px) translateY(42px) rotateX(18deg) scale(.82); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes moment-card-out { to { opacity: 0; transform: scale(1.08) translateY(-10px); } }
@keyframes moment-icon { from { opacity: 0; transform: scale(.4) translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes moment-word { from { opacity: 0; transform: translateY(28px) rotateX(-40deg); } to { opacity: 1; transform: none; } }
@keyframes moment-sub { to { opacity: 1; } }
@keyframes moment-pulse { 50% { opacity: .6; transform: scale(1.06); } }
@keyframes moment-ember { 0% { opacity: 0; transform: translateY(0) translateX(0) scale(1); } 14% { opacity: 1; } 100% { opacity: 0; transform: translateY(-62vh) translateX(var(--dx)) scale(.3); } }

/* короткая вспышка всего табло */
body.flash-red { animation: flash-red .7s ease-out; }
body.flash-green { animation: flash-green .7s ease-out; }
@keyframes flash-red { 0% { box-shadow: inset 0 0 240px rgba(226,72,74,.55); } 100% { box-shadow: none; } }
@keyframes flash-green { 0% { box-shadow: inset 0 0 240px rgba(58,217,138,.55); } 100% { box-shadow: none; } }

/* ── Баннер «Новый максимум» ── */
.bx-breaking { position: fixed; top: 9.2vh; left: 0; right: 0; z-index: 55; display: flex; justify-content: center; pointer-events: none; }
.breaking-card {
  background: linear-gradient(180deg, #2a1c10, #15100b); border: 1px solid var(--orange-dim);
  border-radius: 999px; padding: .8vh 2vw; box-shadow: var(--shadow-2), var(--glow-soft);
  font-size: clamp(13px, 1.9vh, 26px); font-weight: 800; white-space: nowrap;
  animation: brk-in .4s var(--ease-out) both, brk-out .5s ease-in 3.4s both;
}
.breaking-card .brk-tag { color: var(--orange); margin-right: 10px; }
.breaking-card .brk-name { color: var(--text); }
.breaking-card .brk-price { color: var(--up); margin-left: 10px; }
@keyframes brk-in { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes brk-out { to { opacity: 0; transform: translateY(-18px); } }

/* ── Лента Happy Hour ── */
.bx-hh-ribbon {
  position: fixed; top: 8.4vh; right: 1.6vw; z-index: 58; pointer-events: none;
  padding: .7vh 1.4vw; border-radius: 999px; font-weight: 900; letter-spacing: .04em;
  font-size: clamp(13px, 1.8vh, 26px); color: #1a0e04;
  background: linear-gradient(180deg, #ffc56b, #ff7a18); border: 1px solid #ffd089;
  box-shadow: 0 6px 22px rgba(0,0,0,.4), var(--glow);
  opacity: 0; transform: translateY(-12px) scale(.92);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.bx-hh-ribbon.on { opacity: 1; transform: none; animation: hh-pulse 1.8s ease-in-out infinite; }
.bx-hh-ribbon { display: inline-flex; align-items: center; gap: .4em; }
.bx-hh-ribbon .hh-ic { width: 1.1em; height: 1.1em; }
@keyframes hh-pulse { 50% { box-shadow: 0 6px 22px rgba(0,0,0,.4), 0 0 42px rgba(255,122,24,.65); } }

/* Бейдж IPO в строке сорта */
.ipo-badge { color: var(--up); font-weight: 800; letter-spacing: .05em; animation: ipo-blink 1.3s ease-in-out infinite; }
@keyframes ipo-blink { 50% { opacity: .45; } }

/* ── Плавные «катящиеся» цифры цены (одометр) ── */
.roll { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; vertical-align: bottom; }
.roll-col { display: inline-block; height: 1em; overflow: hidden; }
.roll-strip { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.roll-d { height: 1em; display: flex; align-items: center; justify-content: center; }
.price-cur { font-size: .6em; opacity: .8; margin-left: .1em; }

/* Мягкий пульс цены вместо резкой вспышки */
.price { transition: color .35s ease; }
.price.pulse-up, .price.pulse-down { transform-origin: right center; }
.price.pulse-up { animation: price-pulse-up .7s var(--ease-out); }
.price.pulse-down { animation: price-pulse-down .7s var(--ease-out); }
@keyframes price-pulse-up { 0% { text-shadow: 0 0 24px rgba(58,217,138,.85); transform: scale(1.07); } 100% { text-shadow: none; transform: none; } }
@keyframes price-pulse-down { 0% { text-shadow: 0 0 24px rgba(226,72,74,.85); transform: scale(1.07); } 100% { text-shadow: none; transform: none; } }

/* ── Режимы экрана для нескольких ТВ (?view=) ── */
body[data-view="chart"] .bx-main { grid-template-columns: 1fr; }
body[data-view="chart"] .bx-market,
body[data-view="chart"] .bx-bottom { display: none; }
body[data-view="board"] .bx-main { grid-template-columns: 1fr; }
body[data-view="board"] .bx-right { display: none; }
body[data-view="board"] .row-name span { font-size: clamp(16px, 2.6vh, 38px); }
body[data-view="board"] .row-price .price { font-size: clamp(26px, 4.2vh, 70px); }
body[data-view="board"] .spark { height: 5.2vh; }

/* ── Мобильная адаптация (телефоны): вертикальный стек со скроллом ── */
@media (max-width: 760px) {
  body { overflow: auto; -webkit-text-size-adjust: 100%; }

  .bx-header { height: auto; flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .bx-header::after { display: none; }
  .bx-emblem { height: 32px; }
  .bx-title-1 { font-size: 16px; }
  .bx-title-2 { font-size: 9px; letter-spacing: .14em; }
  .bx-status { gap: 8px; }
  .bx-status .pill { font-size: 11px; }
  #clock { font-size: 15px; }

  /* Сетка — в один столбец, страница скроллится */
  .bx-main { height: auto; grid-template-columns: 1fr; gap: 10px; padding: 8px; }

  /* Доска цен: 3 колонки (бокал · название/описание · цена) */
  .bx-market { overflow: visible; }
  .bx-market-head { display: none; }
  .bx-rows { overflow: visible; }
  .row { flex: none; min-height: 58px; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 9px 10px; }
  .row .led, .row .spark { display: none; }
  .row-art svg.beer-art { width: 34px; height: 45px; }
  .row-art .sort-photo { width: 34px; height: 34px; }
  .row-name b { font-size: 13px; }
  .row-name .rn-name { font-size: 15px; }
  .row-name .row-abv { font-size: 11px; }
  .row-desc { font-size: 11px; }
  .row-sub { font-size: 11px; }
  .row-price .price { font-size: 24px; }
  .row-price .chg { font-size: 11px; }

  /* График + «лидеры»/«зал славы» */
  .bx-right { gap: 10px; }
  .bx-chart { height: 300px; min-height: 300px; padding: 10px 8px; }
  .bx-chart-head { flex-wrap: wrap; gap: 6px 10px; padding-bottom: 6px; }
  .feat-id { gap: 8px; min-width: 0; }
  .feat-ticker { font-size: 16px; }
  .feat-name { font-size: 15px; }
  .feat-price { font-size: 24px; }
  .feat-art svg { width: 28px; height: 37px; }
  #chart { min-height: 200px; }
  .bx-bottom { height: auto; grid-template-columns: 1fr; gap: 10px; }
  .bx-movers, .bx-hall, .bx-traders { padding: 11px 13px; }
  .mover, .hall-row { font-size: 14px; }

  /* Бегущая строка */
  .bx-ticker { height: 46px; }
  .tk { font-size: 15px; padding: 0 16px; gap: 7px; }

  /* Премиальные оверлеи — уместить в ширину телефона */
  .moment-card { padding: 6vh 7vw; }
  .moment-icon { font-size: 64px; }
  .moment-title .moment-word { font-size: clamp(26px, 9vw, 60px); }
  .moment-sub { font-size: 16px; }
  .duel-banner { top: 64px; left: 50%; min-width: 0; width: 92vw; padding: 12px 14px; }
  .duel-banner .db-vs { font-size: 22px; }
  .duel-winner .dw-cup { font-size: 60px; }
  .duel-winner .dw-name { font-size: clamp(28px, 11vw, 64px); }
  .breaking-card { font-size: 13px; padding: 8px 16px; white-space: normal; text-align: center; }
  .bx-breaking { top: auto; bottom: 52px; padding: 0 8px; }
  .bx-hh-ribbon { top: auto; bottom: 52px; right: 10px; font-size: 13px; }
}

/* ── Облегчённый режим для слабых ТВ (?lite=1): минимум GPU-эффектов и перерисовок ── */
/* Убираем размытия/тени-свечения (filter/box-shadow/text-shadow) — главная нагрузка на слабый GPU */
body.lite .bx-emblem .bowtie,
body.lite .bx-emblem-img,
body.lite .moment-icon,
body.lite .duel-winner .dw-cup,
body.lite .brand-logo { filter: none; }
body.lite .bx-status .dot,
body.lite .row.up .led, body.lite .row.down .led, body.lite .row.sold .led, body.lite .row.halt .led,
body.lite .breaking-card, body.lite .bx-hh-ribbon, body.lite .duel-banner,
body.lite .panel, body.lite .metal { box-shadow: none; }
body.lite .tk.tk-news,
body.lite .duel-winner .dw-name,
body.lite .moment-title .moment-word,
body.lite .feat-price, body.lite .brand-text { text-shadow: none; }
/* Декоративные бесконечные анимации — выключаем (бегущая строка остаётся) */
body.lite .bx-status .dot,
body.lite .bx-hh-ribbon.on,
body.lite .ipo-badge { animation: none; }
/* Одометр: без постоянных GPU-слоёв и переходов (цифры меняются мгновенно) */
body.lite .roll-strip { transition: none; will-change: auto; }
body.lite .price.pulse-up, body.lite .price.pulse-down { animation: none; }
body.lite .ticker, body.lite .bx-ticker-track { will-change: auto; }
/* Баннеры-«моменты»: без блюра/частиц/3D/вспышки — простое появление */
body.lite .moment-glow, body.lite .moment-particles { display: none; }
body.lite .moment-backdrop { background: rgba(0, 0, 0, .82); animation: none; }
body.lite .moment-card { animation: lite-fade .3s ease-out both; }
body.lite .moment-backdrop.moment-out .moment-card { animation: none; opacity: 0; }
body.lite .moment-title .moment-word { animation: none; }
@keyframes lite-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Заставка/standby: большой анимированный логотип (data-view="logo") ──
   ТВ можно «кикнуть» из админки: вместо доски — фирменный экран с логотипом.        */
.bx-standby { display: none; }
body[data-view="logo"] { overflow: hidden; }
body[data-view="logo"] .bx-header,
body[data-view="logo"] .bx-main,
body[data-view="logo"] .bx-ticker { display: none; }
body[data-view="logo"] .bx-standby {
  display: flex; position: fixed; inset: 0; z-index: 70;
  align-items: center; justify-content: center; overflow: hidden;
  background:
    radial-gradient(58% 54% at 50% 42%, rgba(255,122,24,.12), transparent 72%),
    radial-gradient(130% 100% at 50% -10%, #1d150e 0%, var(--bg) 58%, #050403 100%);
}
.sb-stage { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; animation: sb-in 1s var(--ease-out) both; }
.sb-emblem { position: relative; width: min(38vh, 34vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.sb-logo, .sb-logo-fallback { width: 76%; height: 76%; object-fit: contain; }
.sb-logo { border-radius: 50%; filter: drop-shadow(0 0 42px rgba(255,122,24,.55)); animation: sb-float 6s ease-in-out infinite; }
.sb-logo-fallback .ring { fill: none; stroke: #6a5544; stroke-width: 5; stroke-dasharray: 6 5; }
.sb-logo-fallback .ring2 { fill: none; stroke: var(--orange-dim); stroke-width: 2; opacity: .7; }
.sb-logo-fallback .bowtie { fill: none; stroke: var(--orange); stroke-width: 3; filter: drop-shadow(0 0 4px var(--orange)); }
.sb-ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px solid var(--orange-dim); opacity: 0; animation: sb-pulse 3.6s ease-out infinite; }
.sb-ring:nth-child(2) { animation-delay: 1.2s; }
.sb-ring:nth-child(3) { animation-delay: 2.4s; }
.sb-brand { margin-top: 3.4vh; font-size: clamp(28px, 7vh, 100px); letter-spacing: .06em; line-height: 1; }
.sb-sub { margin-top: 1.4vh; color: var(--muted); font-family: var(--brand-font); font-weight: 700; letter-spacing: .34em; font-size: clamp(12px, 2vh, 28px); }
.sb-tag { margin-top: 4.2vh; display: inline-flex; align-items: center; gap: .55em; color: var(--orange-soft); letter-spacing: .12em; font-size: clamp(12px, 1.8vh, 24px); animation: sb-breathe 3s ease-in-out infinite; }
.sb-dot { width: .62em; height: .62em; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.sb-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sb-bubbles span {
  position: absolute; bottom: -8vh; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,206,150,.9), rgba(255,122,24,.22));
  box-shadow: 0 0 8px rgba(255,122,24,.3); opacity: 0; animation: sb-rise linear infinite;
}
@keyframes sb-float { 50% { transform: translateY(-2.2vh); } }
@keyframes sb-pulse { 0% { transform: scale(.74); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sb-in { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sb-breathe { 50% { opacity: .42; } }
@keyframes sb-rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: .7; } 100% { transform: translateY(-120vh) translateX(var(--dx, 2vw)); opacity: 0; } }

/* Заставка в lite-режиме слабого ТВ: статичный логотип, без пузырьков/колец/блюра */
body.lite .sb-bubbles, body.lite .sb-ring { display: none; }
body.lite .sb-logo { filter: none; animation: none; }
body.lite .sb-tag, body.lite .sb-stage { animation: none; }

/* Заставка на телефоне */
@media (max-width: 760px) {
  body[data-view="logo"] .bx-standby { background: var(--bg); }
  .sb-emblem { width: min(52vw, 240px); }
  .sb-brand { font-size: clamp(24px, 9vw, 52px); }
  .sb-sub { letter-spacing: .2em; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ПУБЛИЧНАЯ БИРЖА (/birzha)
   То же табло, что висит в зале, но открытое гостю: без дуэлей, зала славы,
   зала трейдеров и лидеров движения — это внутренняя жизнь зала, гостю она ни о
   чём не говорит. Взамен списком сортов можно пользоваться: нажал — увидел тренды.

   Всё ниже — только под .bx-public. Телевизор (/board) не должен пострадать, и
   ни одно правило отсюда до него не доходит.
   ═══════════════════════════════════════════════════════════════════════════ */

.bx-public .bx-bottom { display: none; }
/* Панелей внизу больше нет — график забирает освободившуюся высоту */
.bx-public .bx-chart { height: 100%; }

/* Полоса возврата и кнопка списка */
.bx-pub-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px clamp(10px, 1vw, 18px);
  border-bottom: 1px solid var(--line);
}
.bx-pub-back, .bx-pub-list {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line2); background: none;
  color: var(--muted); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.bx-pub-back:hover, .bx-pub-list:hover { color: var(--orange-soft); border-color: var(--orange-dim); }
.bx-pub-list { display: none; }          /* на большом экране список и так виден */

/* Выбранный сорт подсвечен: видно, чей график открыт */
.bx-public .row { cursor: pointer; }
.bx-public .row.is-featured { background: rgba(255, 122, 24, .07); }
.bx-public .row.is-featured .led { background: var(--orange); box-shadow: 0 0 10px rgba(255,122,24,.6); }
.bx-public .row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--orange-dim); }

/* На широком экране страница живёт по высоте окна, как табло */
.bx-public .bx-main { height: calc(100vh - 130px); }

/* ── Телефон ──
   Список сортов во весь экран не оставляет места графику, ради которого сюда и
   зашли. Прячем его в выдвижную панель: открыл — выбрал — панель закрылась. */
@media (max-width: 900px) {
  .bx-public .bx-pub-list { display: inline-flex; }
  .bx-public .bx-main {
    grid-template-columns: 1fr; height: auto; min-height: calc(100dvh - 150px); padding: 10px;
  }
  .bx-public .bx-market {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 60;
    border-radius: 0; transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.22,.7,.28,1);
    overflow-y: auto;
    /* Панель въезжает анимацией fade-up (transform в 100% кадре с both), а анимация
       бьёт обычное объявление — выдвижная панель просто стояла открытой. Здесь она
       не нужна: панель и так приезжает по нажатию. */
    animation: none;
  }
  .bx-public.bx-list-open .bx-market { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.7); }
  /* Строки на телефоне не растягиваются на всю высоту: их читают списком, а не таблом.
     Колонка названия обязана иметь min-width:0 — без этого grid не даёт ей сжаться,
     и текст сыплется в узкий столбик по одному слову. */
  .bx-public .bx-rows { display: block; overflow: visible; }
  /* На телефоне светодиод статуса скрыт правилом выше, поэтому в строке остаётся ТРИ
     колонки: картинка, название, цена. С четырьмя всё съезжало на одну — название
     получало ширину картинки и схлопывалось в многоточие. */
  .bx-public .row {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px;
  }
  .bx-public .row .spark { display: none; }          /* спарклайн — на большом экране */
  .bx-public .row-desc { display: none; }            /* описание в списке не читают */
  .bx-public .row-main { min-width: 0; }
  .bx-public .row-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .bx-public .row-name b { flex: 0 0 auto; }
  .bx-public .rn-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
  .bx-public .row-sub {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 11px; margin-top: 2px;
  }
  .bx-public .row-price {
    display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto;
  }
  .bx-public .row-price .price { font-size: 22px; }
  .bx-public .row-price .chg { font-size: 11px; }
  .bx-public .bx-chart { min-height: 60vh; }
  .bx-public .bx-ticker { display: none; }   /* бегущая строка на телефоне только мешает */
}
