:root {
  color-scheme: dark;
}

/* Tomato Battle: own layout width/spacing — not tied to global side-panel or ui-chrome-gap */
.tomato-dash,
#tomatoDash {
  --ui-chrome-gap: 6px;
}

/* Ultra polish lock: final visual overrides */
.tb-search { top: 22px; }
.tb-settings { bottom: 6px; }
.tb-settings-menu { width: 258px; }
.tb-settings-item { height: 38px; }

.tb-intro-logo {
  margin: 16px auto 8px;
  width: min(680px, 90%);
  max-height: 150px;
}
.tb-intro-type {
  min-height: 230px;
  max-height: calc(100vh - 200px);
  font-size: clamp(14px, 1.75vw, 22px);
  line-height: 1.08;
  letter-spacing: .01em;
  overflow: auto;
}
.tb-intro-type::-webkit-scrollbar { width: 0; height: 0; }

.tb-impact-alert {
  bottom: 8px;
  font-size: 9px;
  letter-spacing: .10em;
}

.tb-event-drop span,
.tb-event-drop small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-account { margin-right: 52px; margin-left: -36px; }
.tb-account-avatar-wrap {
  width: 108px;
  height: 108px;
  margin-top: -28px;
  margin-bottom: -28px;
  margin-left: -24px;
}

.tb-modal-card { width: min(860px, calc(100% - 24px)); }
.tb-modal-body * { max-width: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  text-rendering: geometricPrecision;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "tnum" 1;
}
body {
  background: radial-gradient(circle at 25% 0%, rgba(255,90,90,.25), transparent 45%),
    linear-gradient(145deg, #170106 0%, #540111 50%, #1f0208 100%);
  color: #ffecec;
}
.tb-root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  --tb-top-h: 110px;
}
/* Header: My Page–style glass + frame, tomato red palette + subtle “shifting world” layer */
.tb-top {
  position: relative;
  height: var(--tb-top-h);
  min-height: var(--tb-top-h);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid rgba(255, 222, 222, 0.58);
  background:
    linear-gradient(
      to bottom,
      rgba(48, 8, 12, 0.38) 0%,
      rgba(18, 2, 6, 0.82) 48%,
      rgba(8, 0, 2, 0.92) 100%
    ),
    radial-gradient(circle at 18% 0%, rgba(255, 120, 100, 0.22), transparent 52%),
    radial-gradient(circle at 82% 0%, rgba(255, 60, 80, 0.16), transparent 48%),
    radial-gradient(circle at 50% 120%, rgba(180, 20, 40, 0.12), transparent 55%);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(56, 8, 12, 0.78),
    inset 0 0 14px rgba(255, 130, 130, 0.10);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}
.tb-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 90% 80% at 30% 20%, rgba(255, 200, 190, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 75% 60%, rgba(255, 40, 60, 0.12), transparent 50%),
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 14px,
      rgba(255, 90, 90, 0.04) 14px,
      rgba(255, 90, 90, 0.04) 15px
    );
  animation: none;
}
.tb-top::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: none;
}
.tb-top > * {
  position: relative;
  z-index: 1;
}
.tb-root.tb-impact-like .tb-map-wrap {
  animation: tbImpactLikeFlash .34s ease;
}
.tb-root.tb-impact-tomato .tb-map-wrap {
  animation: tbImpactTomatoFlash .34s ease;
}
@keyframes tbImpactLikeFlash {
  0% { transform: translateX(0); filter: brightness(1); }
  25% { transform: translateX(1.5px) translateY(-1px); filter: brightness(1.14); }
  55% { transform: translateX(-1.5px) translateY(1px); filter: brightness(1.06); }
  100% { transform: translateX(0); filter: brightness(1); }
}
@keyframes tbImpactTomatoFlash {
  0% { transform: translateX(0); filter: brightness(1); }
  24% { transform: translateX(-2px) translateY(1px); filter: brightness(1.2) saturate(1.06); }
  52% { transform: translateX(2px) translateY(-1px); filter: brightness(1.1) saturate(1.04); }
  100% { transform: translateX(0); filter: brightness(1); }
}
@keyframes tbHeaderWorldShift {
  0% {
    transform: translateX(-1.5%) translateY(0) scale(1.02);
    opacity: 0.42;
  }
  50% {
    transform: translateX(1.2%) translateY(-1px) scale(1.03);
    opacity: 0.58;
  }
  100% {
    transform: translateX(0.8%) translateY(1px) scale(1.01);
    opacity: 0.48;
  }
}
@keyframes tbHeaderNoise {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-36px, -24px); }
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  z-index: 2;
}
.tb-brand-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-brand-img {
  width: 96px;
  height: 96px;
  display: block;
  filter: drop-shadow(0 0 22px rgba(255,255,255,.25));
}
.tb-brand-text {
  display: grid;
  gap: 4px;
  align-content: center;
}
.tb-title { display: none; }
.tb-sub {
  font-size: 10px;
  opacity: .88;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,255,255,.10), 0 0 12px rgba(0,0,0,.42);
}
.tb-sub-main {
  font-size: 13px;
  letter-spacing: .17em;
  font-weight: 900;
  opacity: .96;
}
.tb-sub-mid {
  font-size: 9px;
  opacity: .84;
}
.tb-sub-hot {
  font-size: 9px;
  opacity: .92;
  letter-spacing: .18em;
  color: #ffd6d6;
}
.tb-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  z-index: 2;
}
.tb-top-center {
  position: absolute;
  left: var(--tb-header-stack-x, 50%);
  top: 8px;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  width: max-content;
  max-width: min(900px, calc(100vw - 32px));
  padding: 2px 0 5px;
  z-index: 5;
  pointer-events: none;
  box-sizing: border-box;
}
.tb-top-center > * {
  pointer-events: auto;
}
.tb-tabs {
  display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px;
  border: 1px solid rgba(255, 150, 150, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.tb-tab {
  border: 1px solid transparent; background: transparent; color: #ffecec;
  border-radius: 999px; padding: 10px 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.tb-tab.is-active { border-color: rgba(255,180,180,.35); background: rgba(255,60,60,.2); }
.tb-tab:hover { border-color: rgba(255,180,180,.26); background: rgba(255,255,255,.05); }
.tb-tab:active { transform: translateY(1px); }
.tb-btn {
  border: 1px solid rgba(255,140,140,.3); background: rgba(0,0,0,.25); color: #ffecec;
  border-radius: 11px; padding: 8px 10px; font-size: 10px; letter-spacing: .10em; text-transform: uppercase; cursor: pointer;
  transition: transform .14s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.tb-btn:hover { border-color: rgba(255,190,190,.45); background: rgba(255,255,255,.06); }
.tb-btn:active { transform: translateY(1px); }
#tbHelpTourBtn {
  width: 100%;
  margin-top: 2px;
  animation: none;
  letter-spacing: 0.12em;
}
.tb-btn-share {
  border-color: rgba(255,205,205,.68);
  background: linear-gradient(180deg, rgba(255,110,110,.40), rgba(155,0,35,.30));
  box-shadow: 0 0 0 1px rgba(255,220,220,.25) inset, 0 0 16px rgba(255,70,70,.28);
  animation: tbSharePulse 2.4s ease-in-out infinite;
}
.tb-btn-close {
  width: 36px;
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 0;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}
.tb-tools { position: relative; z-index: 3; }
@keyframes tbSharePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,220,220,.25) inset, 0 0 12px rgba(255,70,70,.22); }
  50% { box-shadow: 0 0 0 1px rgba(255,235,235,.35) inset, 0 0 22px rgba(255,70,70,.36); }
}
.tb-account {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 38px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  position: relative;
  min-width: 0;
  max-width: min(320px, 42vw);
  flex: 0 1 auto;
}
.tb-account-avatar-wrap {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  border: 3px solid rgba(255, 222, 222, 0.58);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.09);
  margin-top: -25px;
  margin-bottom: -25px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(40,4,8,.54), 0 8px 16px rgba(0,0,0,.22);
}
.tb-account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.tb-account-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .10em;
  font-weight: 900;
}
.tb-account-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.tb-account-meta strong {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-account-meta span {
  font-size: 11px;
  opacity: .78;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Overflow: shift avatar left so nick+country stay readable */
.tb-root.tb-account-tight .tb-account {
  margin-right: 10px;
  margin-left: -48px;
  max-width: min(420px, 56vw);
  gap: 8px;
}
.tb-root.tb-account-tight .tb-account-avatar-wrap {
  width: 78px;
  height: 78px;
  margin-top: -18px;
  margin-bottom: -18px;
  margin-left: -36px;
}
.tb-btn-sound {
  width: 38px;
  min-width: 38px;
  padding: 0;
  margin-right: 18px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 8;
}
.tb-top .tb-impact-alert {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 6;
  flex-shrink: 0;
  width: 100%;
  max-width: min(720px, 70vw);
  min-width: 0;
  padding: 2px 8px 0;
  margin: 0 auto;
  border: none;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 244, 244, 0.98);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-align: center;
  line-height: 1.35;
  opacity: .98;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 10px rgba(255, 124, 124, 0.38);
  animation: none;
}
.tb-account::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 1px;
  height: 34px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,130,130,.20));
  box-shadow: 0 0 8px rgba(255,120,120,.26);
}
.tb-tools > * + * {
  position: relative;
}
.tb-tools > * + *::before { content: none; }
.tb-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) 390px;
  grid-template-rows: minmax(0, 1fr);
}
.tb-map-wrap { position: relative; min-height: 0; height: 100%; }
.tb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tb-root[data-tab="positive"] .tb-map-wrap {
  background:
    radial-gradient(circle at 12% 4%, rgba(120,120,255,.07), transparent 46%),
    radial-gradient(circle at 88% 90%, rgba(0,0,0,.18), transparent 42%),
    linear-gradient(160deg, rgba(40,0,14,.20), rgba(8,0,24,.12));
}
.tb-map-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 6;
  display: flex;
  gap: 10px;
  align-items: center;
}
.tb-settings{
  position: absolute;
  right: 352px;
  bottom: 10px;
  z-index: 7;
}
.tb-settings.is-hidden { display: none; }
.tb-settings-menu{
  position: absolute;
  right: 0;
  bottom: 0;
  width: 244px;
  border-radius: 12px;
  border: 1px solid rgba(255,160,160,.24);
  background: rgba(10,0,6,.90);
  box-shadow: 0 16px 36px rgba(0,0,0,.46);
  padding: 6px;
  display: grid;
  gap: 6px;
}
.tb-settings-item{
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,232,232,.94);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  padding: 0 44px 0 10px;
  position: relative;
}
.tb-settings-item.is-on{
  border-color: rgba(255,205,205,.34);
  background: linear-gradient(180deg, rgba(255,110,110,.24), rgba(90,0,20,.24));
}
.tb-settings-item::before{
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 26px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,220,220,.20);
}
.tb-settings-item::after{
  content: "";
  position: absolute;
  right: 23px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,245,245,.95);
  transition: right .16s ease, background .16s ease;
}
.tb-settings-item.is-on::before{
  background: linear-gradient(90deg, rgba(48,208,112,.72), rgba(78,228,140,.78));
  box-shadow: inset 0 0 0 1px rgba(170,255,210,.32);
}
.tb-settings-item.is-on::after{
  right: 12px;
  background: rgba(225,255,238,.98);
}
.tb-ctrl-split { display: flex; gap: 8px; }
.tb-ctrl-btn {
  border: 1px solid rgba(255,140,140,.24);
  background: rgba(0,0,0,.26);
  color: #ffecec;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  font-weight: 900;
}
.tb-ctrl-mini { width: 44px; height: 44px; padding: 0; font-size: 18px; letter-spacing: 0; }
.tb-ctrl-btn:active { transform: translateY(1px); }

.tb-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  z-index: 6;
  width: auto;
  max-width: min(360px, calc(100% - 24px));
  pointer-events: auto;
}
.tb-search-input {
  width: 22ch;
  min-width: 22ch;
  max-width: 44ch;
  box-sizing: border-box;
  height: 30px;
  border-radius: 14px;
  padding-left: 1ch;
  padding-right: 1ch;
  caret-color: rgba(255, 200, 200, 0.95);
  transition: width .2s ease, min-width .2s ease;
  border: 1px solid rgba(255,140,140,.22);
  background: rgba(0,0,0,.26);
  color: rgba(255,236,236,.95);
  padding: 0 10px;
  outline: none;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,.26);
}
.tb-search:focus-within .tb-search-input,
.tb-search-input:not(:placeholder-shown) {
  width: 44ch;
  min-width: 22ch;
}
.tb-search-input::placeholder { opacity: .65; }

/* YOUR IMPACT — desktop: in the strip immediately left of the country focus card (see .tb-focus width) */
.tb-my-battle {
  position: absolute;
  z-index: 6;
  pointer-events: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 140, 0.28);
  background: linear-gradient(165deg, rgba(28, 6, 10, 0.92), rgba(8, 2, 4, 0.88));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  right: 8px;
  top: 56px;
  width: min(200px, 42vw);
  max-width: none;
}
.tb-my-battle-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: rgba(255, 214, 214, 0.96);
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(255, 90, 90, 0.22);
}
.tb-my-battle-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255, 236, 236, 0.72);
  margin-bottom: 5px;
}
.tb-my-battle-k { flex: 1; min-width: 0; }
.tb-my-battle-v {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 240, 240, 0.96);
  font-variant-numeric: tabular-nums;
}
.tb-my-battle-map-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: rgba(255, 60, 80, 0.12);
  color: rgba(255, 230, 230, 0.95);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.tb-my-battle-map-btn:hover {
  background: rgba(255, 90, 100, 0.22);
  border-color: rgba(255, 180, 180, 0.45);
}
.tb-my-battle-map-btn.is-active {
  border-color: rgba(120, 255, 160, 0.55);
  background: rgba(60, 200, 120, 0.16);
  color: rgba(220, 255, 230, 0.98);
}

.tb-search-results {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}
.tb-search-item {
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tb-search-item:first-child { border-top: none; }
.tb-search-item:hover { background: rgba(255,255,255,.06); }
.tb-search-item.is-active {
  background: rgba(255,255,255,.10);
  border-left: 2px solid rgba(255,190,190,.65);
}
.tb-hero {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  width: min(760px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 332px minmax(0,1fr) minmax(0,1fr);
  gap: 8px;
}
.tb-event-drop {
  position: absolute;
  left: 12px;
  top: 116px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,170,170,.28);
  background: linear-gradient(90deg, rgba(255,80,80,.18), rgba(0,0,0,.34));
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  white-space: nowrap;
}
.tb-combo-hud {
  position: absolute;
  left: 12px;
  top: 158px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 11px;
  border: 1px solid rgba(255,170,170,.24);
  background: rgba(0,0,0,.34);
}
.tb-combo-hud span, .tb-combo-hud small {
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
.tb-combo-hud b {
  font-size: 12px;
  letter-spacing: .10em;
}
.tb-reward-popup {
  position: absolute;
  right: 14px;
  top: 56px;
  z-index: 8;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255,190,190,.34);
  background: linear-gradient(180deg, rgba(255,120,120,.20), rgba(0,0,0,.44));
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(0,0,0,.36);
  animation: tbRewardIn .24s ease;
}
@keyframes tbRewardIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tb-event-drop span {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  flex: 1 1 62%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-event-drop b {
  font-size: 11px;
  letter-spacing: .12em;
  flex: 0 0 auto;
}
.tb-event-drop small {
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .86;
  flex: 1 1 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-hero-item {
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,140,140,.2); border-radius: 12px; padding: 9px 10px;
}
.tb-hero-item span { font-size: 9px; opacity: .75; letter-spacing: .2em; text-transform: uppercase; }
.tb-hero-item strong { display: block; margin-top: 4px; font-size: 40px; line-height: 1; letter-spacing: .03em; }
.tb-hero-subline {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 16px;
  letter-spacing: .12em;
  opacity: .88;
}
.tb-hover-label {
  position: absolute; z-index: 4; pointer-events: none; transform: translate(10px, 10px);
  background: rgba(0,0,0,.38); border: 1px solid rgba(255,180,180,.35); border-radius: 10px;
  padding: 6px 9px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.tb-map-hud {
  position: absolute; right: 12px; top: 12px; z-index: 4; width: 332px; display: grid; gap: 7px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,140,140,.2); border-radius: 13px; padding: 10px;
  height: 86px;
}
.tb-map-hud div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tb-map-hud span { opacity: .75; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.tb-map-hud strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tb-live-left {
  position: absolute;
  left: 12px;
  top: 188px;
  z-index: 4;
  width: 332px;
  border-radius: 13px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.24);
  padding: 10px;
  backdrop-filter: blur(10px);
}
.tb-live-left-title {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 1;
  margin-bottom: 8px;
  color: rgba(255, 214, 214, 0.96);
  text-shadow: 0 0 12px rgba(255, 90, 90, 0.28);
}
.tb-live-left-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 170, 150, 0.14);
}
.tb-live-left-row:last-of-type {
  border-bottom: none;
}
.tb-live-left-row span {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .70;
}
.tb-live-left-row strong {
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tb-live-chat {
  position: absolute;
  left: 12px;
  top: 404px;
  bottom: 12px;
  width: 332px;
  z-index: 4;
  border-radius: 13px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.24);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(10px);
}
.tb-live-chat-top {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 1;
  color: rgba(255, 214, 214, 0.96);
  text-shadow: 0 0 12px rgba(255, 90, 90, 0.22);
}
.tb-live-online {
  margin-left: 8px;
  font-size: 8px;
  letter-spacing: .14em;
  opacity: .85;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.22);
  background: rgba(255,255,255,.04);
}
.tb-live-chat-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 5px;
  padding-right: 2px;
  scrollbar-gutter: stable;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
}
/* Без transform: иначе emoji в реакциях на первом кадре рисуются крупно и «прыгают» */
@keyframes tbFadeInChatItem {
  from { opacity: 0; }
  to { opacity: 0.86; }
}
.tb-live-chat-item {
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .92;
  border: 1px solid rgba(255,140,140,.10);
  background: rgba(255,255,255,.025);
  border-radius: 7px;
  padding: 5px 8px 6px;
  animation: tbFadeInChatItem .15s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 3px;
  height: fit-content;
  min-height: 0;
  align-self: start;
}
@media (prefers-reduced-motion: reduce) {
  .tb-live-chat-item { animation: none; opacity: 0.9; }
}
.tb-live-chat-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: none;
  min-height: 0;
  height: auto;
}
.tb-live-chat-line .tb-live-chat-author {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0.72;
  font-size: 8px;
  line-height: 1.15;
}
.tb-live-chat-line .tb-live-chat-text {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.96;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.tb-live-chat-img {
  width: 100%;
  max-height: 88px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,140,140,.16);
}
.tb-live-chat-media-wrap {
  display: grid;
  gap: 2px;
}
.tb-chat-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin: 1px 0 0;
  padding: 0;
  min-height: 0;
  line-height: 1;
}
.tb-chat-reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  padding: 0 5px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.18);
  color: rgba(255,236,236,.88);
  font: 500 8px/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transform: none !important;
}
.tb-chat-reaction-btn:hover,
.tb-chat-reaction-btn:focus-visible {
  transform: none !important;
}
.tb-chat-reaction-btn.is-on {
  border-color: rgba(255,180,180,.5);
  background: rgba(255,80,80,.15);
}
.tb-chat-reaction-ico {
  display: inline-block;
  width: 11px;
  height: 11px;
  font-size: 11px;
  line-height: 11px;
  text-align: center;
  flex: 0 0 11px;
  overflow: hidden;
  letter-spacing: 0;
  font-style: normal;
  font-weight: 400;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  transform: none;
}
.tb-chat-reaction-n {
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}
.tb-live-chat-send {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}
.tb-live-chat-input {
  width: 100%;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.20);
  color: rgba(255,236,236,.94);
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
  outline: none;
}
.tb-live-chat-pace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 120, 0.28);
  background: linear-gradient(180deg, rgba(40, 18, 18, 0.55), rgba(12, 6, 8, 0.72));
  color: rgba(255, 236, 220, 0.96);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tb-live-chat-pace-btn i {
  font-size: 10px;
  opacity: 0.85;
}
.tb-live-chat-pace-btn:hover,
.tb-live-chat-pace-btn:focus-visible {
  border-color: rgba(255, 200, 140, 0.45);
  box-shadow: 0 0 12px rgba(255, 120, 80, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tb-live-chat-pace-btn.is-slow {
  border-color: rgba(255, 140, 100, 0.42);
  background: linear-gradient(180deg, rgba(55, 22, 18, 0.62), rgba(18, 8, 10, 0.82));
}
.tb-live-chat-btn {
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.20);
  background: rgba(0,0,0,.22);
  color: rgba(255,236,236,.95);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 9px;
  height: 30px;
  cursor: pointer;
}
.tb-heat-legend {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}
.tb-heat-legend span {
  grid-column: 1 / -1;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}
.tb-heat-bar {
  --heat-pct: 50;
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(44,166,107,.95), rgba(215,181,79,.95), rgba(255,76,76,.98));
  overflow: visible;
  border: none;
}
.tb-heat-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  filter: blur(1px);
  z-index: -1;
}
.tb-heat-bar::after {
  content: "";
  position: absolute;
  left: calc(var(--heat-pct) * 1%);
  top: calc(100% + 1px);
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid rgba(255,244,244,.96);
  filter: drop-shadow(0 0 4px rgba(255,160,160,.36));
}
.tb-heat-legend small {
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .58;
}

.tb-charges { display: inline-flex; gap: 8px; align-items: center; }
.tb-charge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 90px;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.22);
  background: rgba(255,255,255,.04);
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.tb-charge b {
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .04em;
}
.tb-charge small { font-size: 8px; letter-spacing: .16em; opacity: .9; }
.tb-charge-icon { font-size: 18px; line-height: 1; margin-right: 0; }
.tb-charge-like { color: #b9ffcf; border-color: rgba(70,255,160,.18); }
.tb-charge-tomato { color: #ffd0d0; border-color: rgba(255,80,80,.22); }

.tb-focus {
  position: absolute;
  right: 12px;
  top: 108px;
  bottom: 12px;
  z-index: 4;
  width: 320px;
  container-type: inline-size;
  container-name: tb-focus-card;
  border-radius: 16px;
  border: 1px solid rgba(255,140,140,.20);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(10px) saturate(1.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 24px rgba(255,61,61,.10);
}
.tb-focus-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tb-focus-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(255, 140, 150, 0.85),
    0 0 26px rgba(255, 70, 90, 0.55),
    0 0 40px rgba(255, 40, 70, 0.32),
    0 1px 0 rgba(0, 0, 0, 0.45);
  animation: tb-focus-name-beat 1.18s ease-in-out infinite;
}
@keyframes tb-focus-name-beat {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  14% { filter: brightness(1.14); transform: scale(1.02); }
  28% { filter: brightness(1); transform: scale(1); }
  42% { filter: brightness(1.08); transform: scale(1.012); }
  56% { filter: brightness(1); transform: scale(1); }
}
.tb-focus-likepct { display: grid; gap: 4px; justify-items: end; }
.tb-focus-likepct span { font-size: 9px; opacity: .75; letter-spacing: .22em; text-transform: uppercase; }
.tb-focus-likepct strong { font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.tb-focus-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}
.tb-focus-metric {
  container-type: inline-size;
  container-name: tb-focus-metric;
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 3px 7px 4px;
  min-width: 0;
  min-height: 92px;
  overflow: hidden;
  isolation: isolate;
}
.tb-focus-metric > span:first-of-type {
  font-size: 7px;
  line-height: 1;
  margin: 0;
  padding: 0;
  opacity: .74;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tb-focus-metric strong {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: 900;
  letter-spacing: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  max-height: none;
  overflow: visible;
  font-variant-numeric: tabular-nums lining-nums;
}
.tb-focus-num-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  line-height: 0.86;
  max-width: 100%;
  margin-top: -1px;
}
.tb-focus-num-l1,
.tb-focus-num-l2,
.tb-focus-num-l3 {
  display: block;
  white-space: nowrap;
  overflow: visible;
}
.tb-focus-num-l1 {
  font-size: clamp(44px, 11vmin, 82px);
  line-height: 0.9;
  text-shadow: 0 0 14px rgba(255,255,255,.14);
}
.tb-focus-num-l2 {
  font-size: clamp(28px, 7vmin, 52px);
  line-height: 0.86;
  font-weight: 800;
  opacity: .94;
  letter-spacing: -0.02em;
}
.tb-focus-num-l3 {
  font-size: clamp(16px, 4.5vmin, 24px);
  line-height: 0.86;
  font-weight: 700;
  opacity: .82;
  letter-spacing: 0.02em;
}
/* Size from TILE width: M + K + rest (JS shrinks if needed) */
.tb-focus-like .tb-focus-num-l1,
.tb-focus-tomato .tb-focus-num-l1 {
  font-size: clamp(32px, 44cqi, 54px);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.tb-focus-like .tb-focus-num-l2,
.tb-focus-tomato .tb-focus-num-l2 {
  font-size: clamp(20px, 28cqi, 34px);
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.tb-focus-like .tb-focus-num-l3,
.tb-focus-tomato .tb-focus-num-l3 {
  font-size: clamp(14px, 18cqi, 22px);
  line-height: 0.86;
  opacity: .88;
}
@supports not (font-size: 1cqi) {
  .tb-focus-like .tb-focus-num-l1,
  .tb-focus-tomato .tb-focus-num-l1 {
    font-size: clamp(48px, 14vmin, 80px);
  }
  .tb-focus-like .tb-focus-num-l2,
  .tb-focus-tomato .tb-focus-num-l2 {
    font-size: clamp(32px, 9vmin, 54px);
  }
}
.tb-focus-num-country {
  font-size: clamp(9px, 0.95vw, 12px);
  line-height: 1.1;
  font-weight: 700;
  opacity: .68;
  letter-spacing: .08em;
  margin-top: 1px;
}
.tb-focus-like strong { color: rgba(190,255,215,.92); }
.tb-focus-tomato strong { color: rgba(255,210,210,.94); }
.tb-focus-sparks { display: grid; gap: 12px; }
.tb-momentum-live {
  margin-top: 8px;
  border: 1px solid rgba(255,150,150,.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18));
  padding: 8px;
}
.tb-momentum-top,
.tb-momentum-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tb-momentum-top span,
.tb-momentum-foot small {
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}
.tb-momentum-top b,
.tb-momentum-foot strong {
  font-size: 10px;
  letter-spacing: .08em;
}
.tb-pulse-viz {
  width: 100%;
  height: 84px;
  display: block;
  margin: 6px 0;
  border-radius: 10px;
  background: rgba(0,0,0,.20);
}
.tb-spark-k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .82; margin-bottom: 6px; }
.tb-spark {
  width: 100%;
  height: 56px;
  display: block;
  background: rgba(0,0,0,.20);
  border-radius: 12px;
  border: 1px solid rgba(255,140,140,.14);
}
.tb-focus-foot { margin-top: auto; display: grid; gap: 10px; }
.tb-focus-vote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.tb-vote-chip {
  position: relative;
  border-radius: 14px;
  padding: 11px 8px 10px;
  border: 1px solid rgba(255, 140, 140, 0.34);
  background: linear-gradient(165deg, rgba(42, 8, 14, 0.92), rgba(6, 2, 4, 0.88));
  color: rgba(255, 244, 244, 0.98);
  cursor: pointer;
  font-weight: 900;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.tb-vote-chip-halo {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 120, 120, 0.22), transparent 52%);
  opacity: 0.55;
  pointer-events: none;
}
.tb-vote-chip-ico {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 200, 200, 0.35));
}
.tb-vote-chip-k {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.tb-vote-chip-like {
  border-color: rgba(90, 255, 170, 0.42);
  background: linear-gradient(165deg, rgba(18, 70, 40, 0.55), rgba(4, 10, 6, 0.92));
}
.tb-vote-chip-tomato {
  border-color: rgba(255, 110, 110, 0.5);
  background: linear-gradient(165deg, rgba(90, 10, 18, 0.62), rgba(8, 2, 4, 0.92));
}
.tb-vote-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 210, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 200, 200, 0.12) inset;
}
.tb-vote-chip:active { transform: translateY(0); }
.tb-vote-chip[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.35);
  box-shadow: none;
}
@keyframes tbVoteChipHint {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 120, 120, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}
.tb-focus-vote-row--nudge .tb-vote-chip-like {
  animation: tbVoteChipHint 0.82s ease-in-out infinite;
}
.tb-focus-vote-row--nudge .tb-vote-chip-tomato {
  animation: tbVoteChipHint 0.82s ease-in-out infinite;
  animation-delay: 0.41s;
}
@media (prefers-reduced-motion: reduce) {
  .tb-focus-vote-row--nudge .tb-vote-chip-like,
  .tb-focus-vote-row--nudge .tb-vote-chip-tomato {
    animation: none;
  }
}
.tb-focus-foot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tb-focus-stat {
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 140, 0.18);
  background: rgba(255, 255, 255, 0.045);
  padding: 7px 7px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
}
.tb-focus-stat--limits {
  gap: 5px;
}
.tb-charge-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: stretch;
}
.tb-charge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 140, 140, 0.14);
}
.tb-charge-row span {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  line-height: 1;
}
.tb-charge-row strong {
  font-size: 14px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.tb-charge-row--like {
  border-color: rgba(255, 120, 160, 0.28);
}
.tb-charge-row--tomato {
  border-color: rgba(255, 90, 70, 0.28);
}
.tb-focus-stat span {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}
.tb-focus-stat strong {
  font-size: clamp(20px, 9.5cqw, 30px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
@supports not (font-size: 1cqw) {
  .tb-focus-stat strong {
    font-size: clamp(20px, 2.9vw, 30px);
  }
}
.tb-refill {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .9;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.18));
  color: rgba(255, 236, 236, 0.95);
}
.tb-refill--focus {
  width: 100%;
  text-align: center;
  padding: 8px 10px;
  margin: 0;
}
.tb-rule {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .70;
  line-height: 1.35;
}
.tb-rule--focus {
  min-height: 1.2em;
  text-align: center;
  opacity: 0.82;
}
/* Legacy full-width vote buttons (kept for any older embeds) */
.tb-focus-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-vote-btn {
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,140,140,.22);
  background: rgba(0,0,0,.2);
  color: #ffecec;
  cursor: pointer;
  font-weight: 900;
}
.tb-vote-like { border-color: rgba(70,255,160,.2); background: linear-gradient(180deg, rgba(35,208,103,.18), rgba(0,0,0,.18)); }
.tb-vote-tomato { border-color: rgba(255,80,80,.24); background: linear-gradient(180deg, rgba(255,76,76,.22), rgba(0,0,0,.18)); }
.tb-vote-btn:active { transform: translateY(1px); }
.tb-vote-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.tb-details-btn{
  margin-top: 2px;
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(0,0,0,.16);
  color: rgba(255,236,236,.92);
  cursor: pointer;
  font-weight: 900;
}
.tb-details-btn:hover{ background: rgba(255,255,255,.05); }

.tb-modal[hidden]{ display:none !important; }
.tb-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.tb-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
.tb-modal-card{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(900px, calc(100% - 24px));
  max-height: min(86vh, 820px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,140,140,.22);
  background: rgba(0,0,0,.42);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.tb-modal-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,140,140,.14);
  background: rgba(0,0,0,.22);
}
.tb-modal-title{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-modal-x{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.20);
  color: rgba(255,236,236,.95);
  cursor: pointer;
  font-size: 14px;
}
.tb-modal-body{
  padding: 12px;
  overflow: auto;
  max-height: calc(min(86vh, 820px) - 68px);
  min-width: 0;
}
.tb-modal-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  overflow-wrap: anywhere;
}
.tb-modal-box { min-width: 0; overflow-wrap: anywhere; }
.tb-modal-box{
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(255,255,255,.04);
  padding: 10px;
}
.tb-modal-k{
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .78;
  margin-bottom: 8px;
}
.tb-modal-p{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .84;
  line-height: 1.4;
}
.tb-modal-row{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
}
.tb-select{
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.24);
  color: rgba(255,236,236,.94);
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  outline: none;
}
.tb-big-chart{
  width: 100%;
  height: 220px;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(0,0,0,.18);
}
.tb-lemon-chart{
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(0,0,0,.20);
}
.tb-window-tabs{
  display: inline-flex;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.18);
  padding: 4px;
}
.tb-window-btn{
  height: 30px;
  min-width: 52px;
  border: 1px solid rgba(255,140,140,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: rgba(255,236,236,.88);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.tb-window-btn.is-active{
  border-color: rgba(255,205,205,.32);
  background: linear-gradient(180deg, rgba(255,110,110,.34), rgba(110,0,0,.25));
  color: rgba(255,250,250,.98);
}
.tb-share-analytics-row{
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.tb-share-social-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.tb-share-social-btn{
  border: 1px solid rgba(255,140,140,.24);
  background: rgba(10, 0, 0, .28);
  color: rgba(255,210,210,.92);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 66px;
}
.tb-share-social-btn i{ font-size: 18px; }
.tb-share-social-btn span{
  font-size: 8.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .95;
  line-height: 1.15;
  text-align: center;
}
.tb-share-social-btn:hover{
  border-color: rgba(255,198,198,.42);
  color: rgba(255,236,236,.98);
  background: rgba(26, 0, 0, .42);
}
.tb-share-analytics-btn{
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.22);
  background: linear-gradient(180deg, rgba(255,110,110,.22), rgba(110,0,0,.20));
  color: rgba(255,242,242,.96);
  padding: 0 12px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 640px){
  .tb-share-social-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tb-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(0,0,0,.16);
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .86;
}
.tb-pill b{ font-weight: 900; opacity: .95; }

.tb-intro{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255,160,160,.20), transparent 42%),
    radial-gradient(circle at 82% 86%, rgba(255,90,90,.16), transparent 42%),
    linear-gradient(165deg, rgba(56,0,0,.98), rgba(20,0,0,.98));
  transition: opacity .46s ease, visibility .46s ease;
}
.tb-intro.is-hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.tb-tour-embed #tbStatsPolls,
html.tb-tour-embed #tbSocialPolls {
  min-height: 132px;
}

html.tb-tour-embed #tbFireHeat {
  min-height: 72px;
}

html.tb-tour-embed .tb-intro {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tb-vote-chip.tb-tour-vote-blink {
  animation: tbTourVoteBlink 0.52s ease-in-out infinite;
  z-index: 6;
  position: relative;
}

.tb-vote-chip-like.tb-tour-vote-blink {
  animation-name: tbTourVoteBlinkLike;
}

.tb-vote-chip-tomato.tb-tour-vote-blink {
  animation-name: tbTourVoteBlinkTomato;
  animation-delay: 0.12s;
}

.tb-vote-chip.tb-tour-vote-blink-hit {
  animation: tbTourVoteBlinkHit 0.42s ease-out 2;
  filter: brightness(1.35) saturate(1.2);
}

@keyframes tbTourVoteBlinkLike {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 120, 180, 0);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(255, 105, 170, 0.75),
      0 0 52px rgba(255, 80, 150, 0.45);
  }
}

@keyframes tbTourVoteBlinkTomato {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 90, 90, 0);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(255, 90, 90, 0.78),
      0 0 52px rgba(255, 60, 60, 0.42);
  }
}

@keyframes tbTourVoteBlinkHit {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-vote-chip.tb-tour-vote-blink,
  .tb-vote-chip.tb-tour-vote-blink-hit {
    animation: none;
    filter: brightness(1.2);
  }
}
.tb-intro-card{
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 24px 28px 20px;
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
}
.tb-intro-close{
  position: fixed;
  right: 16px;
  left: auto;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,205,205,.34);
  background: rgba(0,0,0,.30);
  color: rgba(255,236,236,.96);
  cursor: pointer;
  font-size: 17px;
  box-shadow: 0 0 0 1px rgba(255,120,120,.18) inset;
  z-index: 6;
}
.tb-intro-count{
  position: fixed;
  left: 16px;
  top: 14px;
  min-width: 52px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,205,205,.32);
  background: rgba(0,0,0,.30);
  box-shadow: 0 0 0 1px rgba(255,120,120,.15) inset;
}
.tb-intro-count b{
  font-size: 18px;
  letter-spacing: .06em;
  color: rgba(255,248,248,.98);
}
.tb-intro-logo{
  display: block;
  margin: 24px auto 10px;
  width: min(780px, 94%);
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(255,120,120,.38));
}
.tb-intro-type{
  width: min(1180px, calc(100vw - 56px));
  min-height: 260px;
  max-height: calc(100vh - 240px);
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(16px, 2.0vw, 27px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,236,236,.98);
  text-align: center;
  overflow: hidden;
  text-shadow: 0 0 22px rgba(255,125,125,.32), 0 0 56px rgba(255,70,90,.22);
}
.tb-intro-sound{
  position: fixed;
  right: 62px;
  left: auto;
  top: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,205,205,.34);
  background: rgba(0,0,0,.30);
  color: rgba(255,236,236,.96);
  cursor: pointer;
  font-size: 14px;
  z-index: 5;
}
.tb-intro-sound.is-muted {
  color: rgba(255,255,255,.45);
  border-color: rgba(255,255,255,.2);
}
.tb-btn-sound {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  margin-right: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  order: 98;
}
.tb-btn-sound i { pointer-events: none; }
.tb-btn-sound.is-muted { opacity: 0.55; }
#tbCloseBtn.tb-btn-close,
.tb-tools .tb-btn-close {
  order: 99;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 0;
  border-radius: 12px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-intro::before,
.tb-intro::after{
  content:"";
  position:absolute;
  inset:-10%;
  pointer-events:none;
  z-index:0;
}
.tb-intro::before{
  background:
    radial-gradient(circle at 18% 22%, rgba(255,110,110,.20), transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(255,70,90,.18), transparent 36%);
  animation: tbIntroPulse 8s ease-in-out infinite alternate;
}
.tb-intro::after{
  background:
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(255,120,120,.035) 18px 19px);
  mix-blend-mode: soft-light;
  animation: tbIntroDrift 12s linear infinite;
}
.tb-intro > * { position: relative; z-index: 1; }
@keyframes tbIntroPulse {
  0% { transform: scale(1) translate3d(-1%, 0, 0); opacity: .55; }
  100% { transform: scale(1.06) translate3d(1.2%, -1%, 0); opacity: .8; }
}
@keyframes tbIntroDrift {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-44px,-26px,0); }
}
.tb-intro-foot{
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,165,165,.24);
  background: rgba(0,0,0,.26);
  padding: 6px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,220,220,.9);
}
.tb-intro-foot b{
  font-size: 14px;
  color: rgba(255,246,246,.98);
}

.tb-side { border-left: 1px solid rgba(255,140,140,.2); background: rgba(0,0,0,.3); padding: 8px; overflow: hidden; display: grid; gap: 6px; align-content: start; }
.tb-card h3 { margin: 0 0 7px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.tb-list { display: grid; gap: 6px; }
.tb-item-name { font-size: 11px; }
.tb-item-num { font-size: 10px; }
.tb-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,140,140,.2); border-radius: 13px; padding: 7px; }
.tb-card + .tb-card { margin-top: 0; }
.tb-card h3 { margin: 0 0 9px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.tb-leader-name { font-weight: 900; font-size: 13px; letter-spacing: .10em; text-transform: uppercase; margin-bottom: 6px; }
.tb-balance { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.tb-mid { width: 2px; height: 42px; background: rgba(255,255,255,.2); border-radius: 999px; }
.tb-balance-side strong { font-size: 13px; display: block; margin-bottom: 6px; }
.tb-like strong { color: #9affc2; }
.tb-tomato strong { color: #ffd2d2; text-align: right; }
.tb-bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; border: 1px solid rgba(255,140,140,.2); }
.tb-bar > span { display: block; height: 100%; width: 50%; }
#tbLeaderLikesBar { background: linear-gradient(90deg, #23d067, #13854b); }
#tbLeaderTomatoesBar { margin-left: auto; background: linear-gradient(90deg, #ff4c4c, #a30000); }

.tb-list { display: grid; gap: 7px; }
.tb-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.tb-item-name { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-item-num { font-size: 11px; font-weight: 800; opacity: .9; }
.tb-item-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; border: 1px solid rgba(255,140,140,.2); background: rgba(255,255,255,.08); overflow: hidden; }
.tb-item-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #ff4c4c, #a30000); }
.tb-item-like .tb-item-bar span { background: linear-gradient(90deg, #23d067, #13854b); }

.tb-mini-note {
  font-size: 10px;
  opacity: .72;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tb-viral-grid { display: grid; gap: 10px; }
.tb-viral-card {
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(0,0,0,.18);
  padding: 10px;
}
.tb-viral-title {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 1;
  margin-bottom: 8px;
  color: rgba(255, 214, 214, 0.96);
  text-shadow: 0 0 12px rgba(255, 90, 90, 0.22);
}
.tb-viral-sub {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 7px;
}
.tb-viral-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-viral-list { display: grid; gap: 8px; }
.tb-viral-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.tb-viral-row span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-viral-row b { font-size: 11px; font-weight: 900; letter-spacing: .06em; opacity: .92; }

.tb-disclaimer {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(0,0,0,.14);
  padding: 12px 12px 14px;
}
.tb-disclaimer-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 10px;
  font-weight: 800;
}
.tb-copyright-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85em;
  height: 1.85em;
  border-radius: 50%;
  border: 1px solid rgba(255,200,200,.35);
  background: rgba(0,0,0,.22);
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.tb-copyright-emblem span {
  font-size: 1em;
  line-height: 1;
  font-weight: 700;
}
.tb-disclaimer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.tb-disclaimer-brand-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,236,236,.95);
  line-height: 1.3;
}
.tb-disclaimer-byline {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255,220,220,.72);
  line-height: 1.4;
}
.tb-disclaimer-text {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: none;
  opacity: .82;
  line-height: 1.5;
  margin: 0 0 8px;
}
.tb-disclaimer-text:last-child {
  margin-bottom: 0;
}
.tb-disclaimer-text--ip {
  font-size: 11px;
  color: rgba(255,230,210,.88);
}
.tb-disclaimer-text--data {
  font-size: 10px;
  color: rgba(255,220,220,.68);
}
.tb-disclaimer-text--links {
  font-size: 10px;
  color: rgba(200, 240, 220, 0.75);
}
.tb-disclaimer-text--links a {
  color: rgba(120, 255, 180, 0.95);
  text-decoration: underline;
}

.tb-predict-q {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tb-predict-timer {
  margin-top: -4px;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
}
.tb-predict-opts { display: grid; gap: 8px; }
.tb-predict-btn {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(0,0,0,.16);
  color: rgba(255,236,236,.95);
  cursor: pointer;
  font-weight: 900;
}
.tb-predict-btn:hover { background: rgba(255,255,255,.05); }
.tb-predict-foot {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .86;
}
.tb-predict-foot strong { font-size: 11px; opacity: .95; }
.tb-predict-dot { opacity: .5; }

.tb-card,
.tb-focus,
.tb-live-left,
.tb-hero-item,
.tb-map-hud {
  animation: tbFadeIn .35s ease both;
}
.tb-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tb-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,170,170,.34);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
@keyframes tbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Final desktop polish overrides */
.tb-top {
  height: var(--tb-top-h);
  min-height: var(--tb-top-h);
  padding: 8px 12px;
}
.tb-brand-img {
  width: 78px;
  height: 78px;
}
.tb-sub {
  font-size: 9px;
  letter-spacing: .14em;
}
.tb-sub-main { font-size: 12px; }
.tb-sub-mid, .tb-sub-hot { font-size: 8px; }
.tb-tab {
  padding: 8px 11px;
  font-size: 9px;
}
.tb-tools { gap: 6px; }
.tb-btn {
  padding: 6px 8px;
  font-size: 8px;
  letter-spacing: .08em;
}
.tb-btn-close {
  width: 30px;
  padding: 6px 0;
  font-size: 12px;
}

/* Keep right column fully in viewport on desktop */
.tb-side {
  padding: 5px;
  gap: 4px;
  overflow: hidden;
}
.tb-card {
  padding: 5px;
  border-radius: 10px;
}
.tb-card h3 {
  margin: 0 0 4px;
  font-size: 8px;
  letter-spacing: .14em;
}
.tb-leader-name {
  font-size: 10px;
  margin-bottom: 3px;
}
.tb-mid { height: 24px; }
.tb-balance-side strong {
  font-size: 9px;
  margin-bottom: 3px;
}
.tb-bar { height: 5px; }
.tb-list { gap: 3px; }
.tb-item {
  grid-template-columns: 1fr auto;
  gap: 5px;
}
.tb-item.is-hit{
  transform: translateY(-1px);
  transition: transform .12s ease, opacity .12s ease;
  opacity: .98;
}
.tb-item-name { font-size: 9px; }
.tb-item-num { font-size: 8px; }
.tb-item-bar { display: none; }

.tb-fire-feed {
  display: grid;
  gap: 4px;
  max-height: 150px;
  overflow: hidden;
}
.tb-fire-item {
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,140,140,.12);
  border-radius: 7px;
  padding: 4px 5px;
  background: rgba(255,255,255,.03);
}

/* Right column: larger + full-height without bottom gap */
.tb-side {
  padding: 8px;
  gap: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tb-side .tb-card[hidden] { display: none !important; }
.tb-side .tb-card {
  min-height: 0;
  padding: 8px;
  border-radius: 12px;
}
.tb-side .tb-card h3 {
  margin: 0 0 7px;
  font-size: 10px;
  letter-spacing: .16em;
}
.tb-side .tb-leader-name {
  font-size: 12px;
  margin-bottom: 6px;
}
.tb-side .tb-mid { height: 32px; }
.tb-side .tb-balance-side strong {
  font-size: 11px;
  margin-bottom: 4px;
}
.tb-side .tb-bar { height: 6px; }
.tb-side .tb-list {
  gap: 6px;
  overflow: hidden;
}
.tb-side .tb-item {
  gap: 7px;
}
.tb-side .tb-item-name { font-size: 10px; }
.tb-side .tb-item-num { font-size: 10px; }
.tb-side .tb-item-bar {
  display: block !important;
  height: 5px;
}

/* distribute positive blocks to fill entire column */
#tbCardLeader { flex: 0.56; display: flex; flex-direction: column; }
#tbCardTopLoved { flex: 1.22; display: flex; flex-direction: column; }
#tbCardTopTomatoed { flex: 1.22; display: flex; flex-direction: column; }
.tb-leader-signals {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,140,140,.16);
  display: grid;
  gap: 5px;
}
.tb-leader-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tb-leader-signal span {
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .70;
}
.tb-leader-signal b {
  font-size: 9px;
  letter-spacing: .10em;
}

.tb-map-panel[hidden]{ display:none !important; }
.tb-map-panel{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 58px;
  z-index: 5;
  width: min(720px, calc(100% - 360px));
  border-radius: 14px;
  border: 1px solid rgba(255,140,140,.22);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 24px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
/* Inner scroll body — same idea as main .mnm-rounded-scroll-host > .mnm-scroll-rail */
.tb-map-panel-scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,180,180,.28) transparent;
}
.tb-map-panel-scroll::-webkit-scrollbar{
  width: 6px;
}
.tb-map-panel-scroll::-webkit-scrollbar-button{
  display: none;
  width: 0;
  height: 0;
}
.tb-map-panel-scroll::-webkit-scrollbar-track{
  background: transparent;
  margin-block: 16px;
  border-radius: 99px;
}
.tb-map-panel-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,180,180,.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.tb-map-panel h3{
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tb-map-panel-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tb-map-panel-card{
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(255,255,255,.04);
  padding: 8px;
  display:grid;
  gap: 6px;
}
.tb-map-panel-card b{
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .76;
}
.tb-map-panel-card span{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
}
.tb-map-panel-feed{
  display:grid;
  gap: 5px;
  max-height: 220px;
  overflow: hidden;
}
.tb-topic-item {
  border: 1px solid rgba(255,140,140,.12);
  border-radius: 8px;
  padding: 6px 7px;
  background: rgba(255,255,255,.03);
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tb-sources-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tb-source-card {
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(255,255,255,.03);
  padding: 8px;
  display: grid;
  gap: 5px;
}
.tb-source-card b {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tb-source-card span {
  font-size: 8px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .76;
  line-height: 1.35;
}
.tb-mission-ok {
  color: #b8ffd0;
}
.tb-impact-alert {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 7;
  min-width: 320px;
  max-width: min(760px, calc(100% - 20px));
  border-radius: 12px;
  border: 1px solid rgba(255,170,170,.30);
  background: linear-gradient(90deg, rgba(255,80,80,.25), rgba(0,0,0,.45));
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  box-shadow: 0 20px 44px rgba(0,0,0,.34);
  animation: tbImpactIn .22s ease;
}
@keyframes tbImpactIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.tb-map-panel-foot {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .66;
}
.tb-stats-charts {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tb-stats-shapes {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tb-shape-card {
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(255,255,255,.03);
  padding: 8px;
  display: grid;
  gap: 7px;
  justify-items: center;
}
.tb-shape-card b {
  justify-self: start;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tb-circle-meter {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(#2bd76f 0deg, #2bd76f 0deg, rgba(255,255,255,.08) 0deg);
}
.tb-circle-meter::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.08);
}
.tb-circle-meter span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.tb-circle-meter-tom { background: conic-gradient(#ff5959 0deg, #ff5959 0deg, rgba(255,255,255,.08) 0deg); }
.tb-triangle-wrap {
  width: 98px;
  height: 92px;
  position: relative;
}
.tb-triangle-bg, .tb-triangle-fill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 92px;
  height: 82px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
.tb-triangle-bg {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,140,140,.18);
}
.tb-triangle-fill {
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(255,80,80,.9), rgba(160,0,20,.72));
  opacity: .9;
}
.tb-triangle-label {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.tb-stats-chart-box {
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(255,255,255,.03);
  padding: 8px;
  display: grid;
  gap: 6px;
}
.tb-stats-chart-box b {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
}
.tb-stats-chart {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(0,0,0,.18);
}
.tb-polls-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.tb-social-poll-mode{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  width: 100%;
}
.tb-social-poll-mode .tb-window-btn{
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 30px;
  padding: 7px 10px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  overflow: visible;
  text-overflow: unset;
}
.tb-poll-card {
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.14);
  background: rgba(255,255,255,.04);
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  align-content: start;
}
.tb-poll-q {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  min-height: 2.4em;
  max-height: none;
  line-height: 1.25;
  overflow: visible;
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tb-poll-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tb-poll-btn {
  border-radius: 9px;
  border: 1px solid rgba(255,140,140,.20);
  background: rgba(0,0,0,.20);
  color: #ffecec;
  padding: 6px 7px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .14s ease, border-color .16s ease, background .16s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 28px;
}
.tb-poll-btn:hover { background: rgba(255,255,255,.06); }
.tb-poll-btn:active { transform: translateY(1px); }
.tb-poll-btn.is-active {
  border-color: rgba(80, 220, 140, .55);
  background: rgba(40, 160, 90, .28);
  box-shadow: inset 0 0 0 1px rgba(80, 220, 140, .18);
}
.tb-poll-btn.is-active[data-vote="no"] {
  border-color: rgba(255, 90, 90, .55);
  background: rgba(180, 50, 50, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .18);
}
.tb-poll-btn.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(255, 200, 120, .45);
  background: rgba(60, 40, 10, .35);
  animation: tb-poll-lock-pulse 2.4s ease-in-out infinite;
}
.tb-poll-btn.is-ready {
  border-color: rgba(255, 210, 90, .7);
  background: rgba(120, 90, 20, .35);
  box-shadow: 0 0 12px rgba(255, 190, 60, .25);
  animation: tb-poll-ready-glow 1.4s ease-in-out infinite;
}
.tb-poll-status {
  margin: 0;
  min-height: 1.25em;
  max-height: 1.25em;
  line-height: 1.25em;
  font: 700 8px JetBrains Mono, monospace;
  letter-spacing: .06em;
  color: rgba(255, 210, 140, .9);
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tb-poll-status.is-empty {
  visibility: hidden;
}
.tb-poll-status.is-idle {
  color: rgba(255, 220, 210, .45);
  font-weight: 600;
}
.tb-poll-status.is-ready {
  color: rgba(255, 230, 120, .95);
}
.tb-poll-status.is-stand {
  color: rgba(140, 220, 170, .9);
}
@keyframes tb-poll-lock-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.9; }
}
@keyframes tb-poll-ready-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 190, 60, .18); }
  50% { box-shadow: 0 0 16px rgba(255, 210, 80, .4); }
}
.tb-poll-bars {
  display: grid;
  gap: 5px;
  min-height: 3.6em;
  align-content: start;
}
.tb-poll-bar {
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.tb-poll-bar span { display: block; height: 100%; }
.tb-poll-bar-yes span { background: linear-gradient(90deg, #2bd76f, #14954f); }
.tb-poll-bar-no span { background: linear-gradient(90deg, #ff5b5b, #a30000); }
.tb-poll-k {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.tb-fire-ticker {
  margin-bottom: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.20);
  background: linear-gradient(90deg, rgba(255,70,70,.18), rgba(0,0,0,.16));
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-fire-severity {
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,140,140,.24);
  background: rgba(0,0,0,.24);
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.tb-fire-severity-track {
  display: inline-block;
  padding-left: 100%;
  animation: tbMarquee 36s linear infinite;
}
.tb-fire-severity-chip {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.22);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.04);
}
@keyframes tbMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.tb-fire-heat {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.tb-fire-heat-card {
  border-radius: 8px;
  border: 1px solid rgba(255,140,140,.16);
  background: rgba(0,0,0,.20);
  padding: 6px;
  display: grid;
  gap: 4px;
}
.tb-fire-heat-card b {
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tb-fire-heat-card span {
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .76;
}

/* restore live bars in right column while staying compact */
.tb-side .tb-item-bar{
  display: block !important;
  height: 4px;
  border-radius: 999px;
}
.tb-side .tb-item-bar span{
  height: 100%;
  transition: width .35s ease;
}
.tb-side .tb-item-num{
  font-size: 9px;
  letter-spacing: .04em;
}

/* Premium right column and bigger live data */
.tb-focus {
  right: 8px;
  bottom: 8px;
  width: 332px;
  padding: 10px;
}
.tb-focus-likepct strong { font-size: 26px; }
.tb-focus-metric { min-height: 94px; padding: 3px 8px 4px; }
.tb-focus-metric strong { max-height: none; }
/* Desktop card: likes/tomato digits scale with tile (see .tb-focus-metric container) */
.tb-focus-like .tb-focus-num-l1,
.tb-focus-tomato .tb-focus-num-l1 { font-size: clamp(34px, 46cqi, 56px); }
.tb-focus-like .tb-focus-num-l2,
.tb-focus-tomato .tb-focus-num-l2 { font-size: clamp(22px, 30cqi, 36px); }
.tb-focus-like .tb-focus-num-l3,
.tb-focus-tomato .tb-focus-num-l3 { font-size: clamp(15px, 19cqi, 21px); }
.tb-spark { height: 62px; }
.tb-details-btn { padding: 11px 10px; font-size: 11px; }

/* Left viral block: slimmer to free chat space */
.tb-live-left {
  width: 290px;
  padding: 8px;
}
.tb-live-left-title { margin-bottom: 6px; font-size: 12px; }
.tb-live-left-row { padding: 3px 0; }
.tb-live-left-row span { font-size: 8px; }
.tb-live-left-row strong { font-size: 10px; }
.tb-heat-legend { margin-top: 5px; }
.tb-live-chat {
  top: 286px;
  width: 290px;
}

/* Right column fit with bars + no overflow */
.tb-side {
  padding: 6px;
  gap: 6px;
}
.tb-side .tb-card {
  padding: 7px;
  border-radius: 12px;
}
.tb-side .tb-card h3 {
  margin: 0 0 6px;
  font-size: 9px;
}
.tb-side .tb-leader-name {
  font-size: 11px;
  margin-bottom: 5px;
}
.tb-side .tb-mid { height: 30px; }
.tb-side .tb-balance-side strong { font-size: 10px; }
.tb-side .tb-bar { height: 6px; }
.tb-side .tb-list { gap: 5px; }
.tb-side .tb-item-name { font-size: 9px; }

/* cleaner tab screens: hide extra overlays when not in Country Battle */
.tb-root[data-tab="stats"] .tb-focus,
.tb-root[data-tab="negative"] .tb-focus {
  display: none;
}
.tb-root[data-tab="stats"] .tb-live-left,
.tb-root[data-tab="negative"] .tb-live-left,
.tb-root[data-tab="social"] .tb-live-left,
.tb-root[data-tab="stats"] .tb-live-chat,
.tb-root[data-tab="negative"] .tb-live-chat,
.tb-root[data-tab="social"] .tb-live-chat,
.tb-root[data-tab="stats"] .tb-canvas,
.tb-root[data-tab="negative"] .tb-canvas,
.tb-root[data-tab="social"] .tb-canvas,
.tb-root[data-tab="stats"] .tb-hero,
.tb-root[data-tab="negative"] .tb-hero,
.tb-root[data-tab="social"] .tb-hero,
.tb-root[data-tab="stats"] .tb-event-drop,
.tb-root[data-tab="negative"] .tb-event-drop,
.tb-root[data-tab="social"] .tb-event-drop,
.tb-root[data-tab="stats"] .tb-combo-hud,
.tb-root[data-tab="negative"] .tb-combo-hud,
.tb-root[data-tab="social"] .tb-combo-hud,
.tb-root[data-tab="stats"] .tb-map-hud,
.tb-root[data-tab="negative"] .tb-map-hud {
  display: none;
}
.tb-root[data-tab="stats"] .tb-search,
.tb-root[data-tab="negative"] .tb-search {
  top: 12px;
  width: min(260px, calc(100% - 24px));
}
.tb-root[data-tab="stats"] .tb-map-panel,
.tb-root[data-tab="negative"] .tb-map-panel {
  top: 52px;
  width: min(820px, calc(100% - 32px));
  max-height: calc(100vh - var(--tb-top-h, 110px) - 64px);
  overflow: hidden;
}
.tb-root[data-tab="stats"] .tb-map-controls,
.tb-root[data-tab="negative"] .tb-map-controls {
  bottom: 10px;
}
.tb-root[data-tab="stats"] .tb-map-controls,
.tb-root[data-tab="negative"] .tb-map-controls,
.tb-root[data-tab="social"] .tb-map-controls,
.tb-root[data-tab="stats"] .tb-hover-label,
.tb-root[data-tab="negative"] .tb-hover-label,
.tb-root[data-tab="social"] .tb-hover-label {
  display: none;
}
.tb-root[data-tab="stats"] .tb-main,
.tb-root[data-tab="negative"] .tb-main,
.tb-root[data-tab="social"] .tb-main {
  grid-template-columns: 1fr;
}
.tb-root[data-tab="stats"] .tb-side,
.tb-root[data-tab="negative"] .tb-side,
.tb-root[data-tab="social"] .tb-side {
  display: none;
}
.tb-root[data-tab="stats"] .tb-map-wrap,
.tb-root[data-tab="negative"] .tb-map-wrap,
.tb-root[data-tab="social"] .tb-map-wrap {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,100,100,.12), transparent 45%),
    linear-gradient(155deg, rgba(18,2,6,.9), rgba(48,4,10,.92));
}
.tb-root[data-tab="social"] .tb-canvas,
.tb-root[data-tab="social"] .tb-live-left,
.tb-root[data-tab="social"] .tb-live-chat,
.tb-root[data-tab="social"] .tb-hero,
.tb-root[data-tab="social"] .tb-map-hud,
.tb-root[data-tab="social"] .tb-focus {
  display: none;
}
.tb-root[data-tab="negative"] .tb-map-panel[data-map-panel="negative"] {
  border-color: rgba(255,120,120,.36);
  background: linear-gradient(180deg, rgba(70,0,10,.50), rgba(0,0,0,.40));
  box-shadow: 0 30px 70px rgba(0,0,0,.40), inset 0 0 32px rgba(255,70,70,.10);
}
.tb-root[data-tab="negative"] .tb-map-panel[data-map-panel="negative"] h3 {
  font-size: 11px;
  letter-spacing: .24em;
}
.tb-root[data-tab="negative"] .tb-fire-item {
  font-size: 10px;
  border-color: rgba(255,120,120,.22);
  background: linear-gradient(90deg, rgba(255,70,70,.16), rgba(255,255,255,.03));
}

/* Release polish: tighter rhythm + smoother interactions */
/* .tb-top glass: see base .tb-top block */
.tb-map-panel {
  max-height: calc(100vh - var(--tb-top-h, 110px) - 24px);
  overflow: hidden;
}
.tb-map-panel-feed { overflow: auto; }
.tb-search-results { max-height: 260px; overflow: auto; }
.tb-live-chat-list::-webkit-scrollbar,
.tb-map-panel-scroll::-webkit-scrollbar,
.tb-map-panel-feed::-webkit-scrollbar,
.tb-search-results::-webkit-scrollbar {
  width: 6px;
}
.tb-live-chat-list::-webkit-scrollbar { width: 4px; }
.tb-live-chat-list::-webkit-scrollbar-thumb,
.tb-map-panel-scroll::-webkit-scrollbar-thumb,
.tb-map-panel-feed::-webkit-scrollbar-thumb,
.tb-search-results::-webkit-scrollbar-thumb {
  background: rgba(255,180,180,.25);
  border-radius: 999px;
}
.tb-impact-alert,
.tb-reward-popup,
.tb-event-drop,
.tb-combo-hud {
  pointer-events: none;
}
.tb-vote-btn,
.tb-vote-chip,
.tb-live-chat-btn,
.tb-live-chat-pace-btn,
.tb-details-btn,
.tb-ctrl-btn {
  transition: transform .14s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tb-vote-btn:hover,
.tb-vote-chip:hover,
.tb-live-chat-btn:hover,
.tb-live-chat-pace-btn:hover,
.tb-details-btn:hover,
.tb-ctrl-btn:hover {
  border-color: rgba(255,200,200,.34);
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

/* Final grid discipline: consistent widths, gaps, bottoms */
.tb-root {
  --tb-col-w: 332px;
  --tb-gap: 10px;
  --tb-top-pad: 12px;
  --tb-bottom-pad: 12px;
}
.tb-hero {
  width: min(900px, calc(100% - 24px));
  grid-template-columns: var(--tb-col-w) minmax(0,1fr) minmax(0,1fr);
  gap: var(--tb-gap);
}
.tb-hero-item {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tb-map-hud,
.tb-live-left,
.tb-live-chat,
.tb-focus,
.tb-event-drop,
.tb-combo-hud {
  width: var(--tb-col-w);
}
.tb-live-left {
  top: calc(var(--tb-top-pad) + var(--tb-top-h) + var(--tb-gap) + 42px + var(--tb-gap) + 42px + var(--tb-gap));
}
.tb-live-chat {
  top: calc(var(--tb-top-pad) + 392px);
  bottom: var(--tb-bottom-pad);
}
.tb-event-drop {
  top: calc(var(--tb-top-pad) + var(--tb-top-h) + var(--tb-gap));
}
.tb-combo-hud {
  top: calc(var(--tb-top-pad) + var(--tb-top-h) + var(--tb-gap) + 42px + var(--tb-gap));
}

/* Controls smaller and premium */
.tb-map-controls {
  bottom: 10px;
  gap: 8px;
}
.tb-ctrl-btn {
  border-color: rgba(255,180,180,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.28));
  box-shadow: 0 8px 20px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.12);
  padding: 8px 10px;
  font-size: 10px;
}
.tb-ctrl-mini {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .tb-top { height: 96px; min-height: 96px; }
  .tb-brand-img { width: 46px; height: 46px; }
  .tb-title { display: none; }
  .tb-sub { font-size: 12px; }
  .tb-account { display: none; }
  .tb-tabs { display: none; }
  .tb-main { grid-template-columns: 1fr; }
  .tb-side { display: block; max-height: 40vh; overflow: auto; }
  .tb-map-hud { width: min(340px, calc(100% - 24px)); }
  .tb-live-left { width: min(340px, calc(100% - 24px)); top: 208px; }
  .tb-live-chat { width: min(340px, calc(100% - 24px)); left: 12px; top: 430px; bottom: 12px; }
  .tb-hero { grid-template-columns: 1fr; width: min(360px, calc(100% - 24px)); }
  .tb-hero-item strong { font-size: 22px; }
  .tb-focus { position: absolute; left: 12px; right: 12px; width: auto; top: 108px; bottom: 12px; }
  .tb-search { top: 60px; }
  .tb-settings{ right: 12px; bottom: 62px; }
}

/* === HARD FINAL LAYOUT RESET (desktop) === */
@media (min-width: 861px) {
  .tb-root {
    --tb-col-w: 332px;
    --tb-gap: 10px;
    --tb-pad: 12px;
  }

  .tb-main {
    grid-template-columns: minmax(0, 1fr) var(--tb-col-w);
  }

  .tb-side {
    padding: var(--tb-pad);
    gap: var(--tb-gap);
  }

  /* Left stack: one flow container -> guaranteed equal gaps */
  .tb-left-stack {
    position: absolute;
    left: var(--tb-pad);
    top: calc(var(--tb-pad) + var(--tb-top-h) + var(--tb-gap));
    bottom: var(--tb-pad);
    width: var(--tb-col-w);
    display: flex;
    flex-direction: column;
    gap: var(--tb-gap);
    z-index: 4;
  }

  .tb-left-stack .tb-event-drop,
  .tb-left-stack .tb-combo-hud,
  .tb-left-stack .tb-live-left,
  .tb-left-stack .tb-live-chat {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .tb-hero {
    left: var(--tb-pad);
    top: var(--tb-pad);
    width: min(900px, calc(100% - 24px));
    grid-template-columns: var(--tb-col-w) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--tb-gap);
  }
  .tb-hero-item { min-height: 98px; }

  .tb-left-stack .tb-event-drop,
  .tb-left-stack .tb-combo-hud {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .tb-left-stack .tb-live-chat {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* Right of map: synchronized top/bottom with right column */
  .tb-map-hud,
  .tb-focus {
    right: var(--tb-pad);
    width: var(--tb-col-w);
    box-sizing: border-box;
  }
  .tb-map-hud { top: var(--tb-pad); }
  .tb-focus {
    top: calc(var(--tb-pad) + var(--tb-top-h) + var(--tb-gap));
    bottom: var(--tb-pad);
  }

  /* Sit just left of the focus column (same width as --tb-col-w) */
  .tb-my-battle {
    right: calc(var(--tb-pad) + var(--tb-col-w) + 10px);
    top: var(--tb-pad);
    width: 200px;
    max-width: none;
  }

  .tb-map-controls {
    bottom: var(--tb-pad);
  }
}

/* Final premium tuning pass */
.tb-account-avatar-wrap{
  width: 100px !important;
  height: 100px !important;
  margin-top: -22px !important;
  margin-bottom: -22px !important;
}
.tb-intro-logo{
  width: min(760px, 92%) !important;
  max-height: 178px !important;
}
.tb-intro-type{
  max-height: calc(100vh - 222px) !important;
  overflow: auto !important;
}
.tb-map-controls{
  bottom: 54px !important;
}
.tb-focus{
  gap: 10px !important;
  overflow-x: visible;
  overflow-y: auto;
}
.tb-pulse-viz{ height: 74px !important; }
.tb-spark{ height: 50px !important; }
.tb-details-btn{ padding: 10px 10px !important; }
.tb-fire-severity{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: hidden;
}
.tb-fire-severity-track{ display: contents; animation: none !important; }
.tb-heat-bar{
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255,120,120,.16);
}
.tb-heat-bar::after{
  width: 2px !important;
  height: 15px !important;
  left: calc(var(--heat-pct) * 1%);
  top: -4px !important;
  transform: translateX(-50%);
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,120,120,.74));
  box-shadow: 0 0 8px rgba(255,136,136,.65);
}
.tb-item-bar > span{
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
}
.tb-bar-like{
  display: inline-block;
  height: 100%;
  background: linear-gradient(90deg, rgba(95,214,132,.86), rgba(126,236,166,.88));
}
.tb-bar-tomato{
  display: inline-block;
  height: 100%;
  background: linear-gradient(90deg, rgba(234,72,72,.94), rgba(255,112,112,.96));
}
.tb-trend{
  display: inline-block;
  min-width: 10px;
  font-size: 10px;
}
.tb-trend.is-up{ color: rgba(132,255,184,.92); }
.tb-trend.is-down{ color: rgba(255,146,146,.92); }

/* Keep TOP lists bars always visible and filled */
.tb-card .tb-item-bar{
  display: block !important;
  height: 6px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,140,140,.18);
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.tb-card .tb-item-fill{
  display: flex !important;
  height: 100%;
  min-width: 6px;
  transition: width .3s ease;
}
.tb-card .tb-item-fill .tb-bar-like,
.tb-card .tb-item-fill .tb-bar-tomato{
  display: block !important;
  height: 100%;
  flex: 0 0 auto;
}

/* Modal controls: no white backgrounds */
.tb-modal .tb-select,
.tb-modal textarea.tb-select,
.tb-modal input.tb-select,
.tb-modal select.tb-select{
  background: rgba(15,0,0,.30) !important;
  color: rgba(255,236,236,.95) !important;
  border-color: rgba(255,150,150,.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.tb-modal select.tb-select option{
  background: rgba(32,4,8,.96);
  color: rgba(255,236,236,.95);
}
.tb-modal .tb-modal-k,
.tb-modal .tb-modal-p,
.tb-modal .tb-select,
.tb-modal .tb-share-tv-title,
.tb-modal .tb-share-tv-line,
.tb-modal .tb-share-tv-foot{
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tb-event-drop span{
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tb-modal-box{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.24)) !important;
}
.tb-share-tv-card{
  border: 1px solid rgba(255,170,170,.20);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,90,90,.16), rgba(12,0,0,.46));
  padding: 10px;
}
.tb-share-tv-title{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,244,244,.98);
}
.tb-share-tv-sub{
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
}
.tb-share-tv-bars{
  margin-top: 8px;
  display: flex;
  width: 100%;
  min-height: 24px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,160,160,.24);
}
.tb-share-tv-like,
.tb-share-tv-tom{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tb-share-tv-like{
  background: linear-gradient(90deg, rgba(62,200,108,.9), rgba(102,232,154,.92));
  color: rgba(8,30,14,.92);
}
.tb-share-tv-tom{
  background: linear-gradient(90deg, rgba(220,72,72,.90), rgba(255,118,118,.94));
  color: rgba(45,0,0,.90);
}
.tb-share-tv-foot{
  margin-top: 7px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
}
.tb-modal-card.tb-modal-card--share{
  width: min(1240px, calc(100% - 18px));
  max-height: min(92vh, 980px);
}
.tb-modal-card.tb-modal-card--share .tb-modal-body{
  overflow: hidden;
  max-height: none;
}
.tb-modal-card.tb-modal-card--share .tb-modal-grid{
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}
.tb-modal-card.tb-modal-card--share .tb-modal-row{
  flex-wrap: wrap;
  justify-content: flex-start;
}
.tb-btn,
button,
[role="button"],
.tb-settings-item,
.tb-item{
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, filter .14s ease, background-color .14s ease;
}
.tb-btn:hover,
button:hover,
[role="button"]:hover,
.tb-settings-item:hover,
.tb-item:hover{
  transform: translateY(-1px);
}
.tb-btn:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 1px rgba(255,180,180,.42), 0 0 0 3px rgba(255,90,90,.14);
}
.tb-share-analytics-btn{
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, filter .14s ease;
}
.tb-share-analytics-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,220,220,.44);
  box-shadow: 0 8px 18px rgba(0,0,0,.26), 0 0 0 1px rgba(255,150,150,.20) inset;
  filter: saturate(1.08);
}
.tb-share-social-grid{
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.tb-toast-root{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  gap: 8px;
  width: min(620px, calc(100% - 20px));
  pointer-events: none;
}
.tb-toast{
  border: 1px solid rgba(255,150,150,.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20,4,4,.93), rgba(8,2,2,.90));
  box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  color: rgba(255,236,236,.96);
  font-size: 12px;
  letter-spacing: .05em;
  line-height: 1.35;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(6px);
}
.tb-toast.is-in{
  opacity: 1;
  transform: translateY(0);
}
.tb-toast--success{ border-color: rgba(122,255,166,.44); }
.tb-toast--warning{ border-color: rgba(255,214,122,.44); }
.tb-toast--error{ border-color: rgba(255,122,140,.44); }
@media (max-width: 980px){
  .tb-modal-card.tb-modal-card--share .tb-modal-body{
    overflow: auto;
    max-height: calc(min(92vh, 980px) - 68px);
  }
  .tb-modal-card.tb-modal-card--share .tb-modal-grid{
    grid-template-columns: 1fr;
  }
  .tb-share-social-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FOR MEDIA: taller card, embed codes visible without inner scroll */
.tb-modal-card.tb-modal-card--media{
  width: min(1020px, calc(100% - 20px));
  max-height: min(96vh, 980px);
}
.tb-modal-card.tb-modal-card--media .tb-modal-body{
  overflow: visible;
  max-height: calc(min(96vh, 980px) - 68px);
}
.tb-modal-grid--media-kit .tb-media-kit-code{
  display: block;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  box-sizing: border-box;
}

/* SOCIAL LIVE tab: slightly larger type & room */
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"]{
  width: min(820px, calc(100% - 280px));
  padding: 0;
  top: 52px;
  max-height: calc(100vh - var(--tb-top-h, 110px) - 64px);
  overflow: hidden;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-map-panel-scroll{
  padding: 12px 14px 16px;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] h3{
  font-size: 11px;
  letter-spacing: .2em;
  margin-bottom: 10px;
}
.tb-root[data-tab="social"] .tb-social-poll-mode{
  margin-bottom: 10px;
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.tb-root[data-tab="social"] .tb-social-poll-mode .tb-window-btn{
  font-size: 10px;
  padding: 8px 10px;
  flex: 1 1 140px;
  white-space: normal;
  height: auto;
  min-height: 34px;
  line-height: 1.25;
}
.tb-root[data-tab="social"] .tb-fire-ticker{
  font-size: 10px;
  padding: 8px 10px;
  margin-bottom: 9px;
}
.tb-root[data-tab="social"] .tb-polls-grid{
  margin-top: 10px;
  gap: 10px;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-poll-card{
  padding: 10px;
  gap: 8px;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-poll-q{
  font-size: 10px;
  letter-spacing: .13em;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-poll-btn{
  padding: 8px 9px;
  font-size: 10px;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-poll-k{
  font-size: 9px;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-map-panel-feed{
  max-height: 300px;
  gap: 7px;
}
.tb-root[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-topic-item{
  font-size: 10px;
  padding: 8px 9px;
}
.tb-root[data-tab="social"] #tbSocialMissions .tb-source-card{
  padding: 10px;
}
.tb-root[data-tab="social"] #tbSocialMissions .tb-source-card b{
  font-size: 10px;
}
.tb-root[data-tab="social"] #tbSocialMissions .tb-source-card span{
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 980px){
  .tb-modal-card.tb-modal-card--media .tb-modal-body{
    overflow: auto;
    max-height: calc(min(96vh, 980px) - 68px);
  }
}

/* Compact desktop baseline (<=1600w or <=1050h): preserve map space with a peek drawer */
.tb-btn-panel,
.tb-side-backdrop,
.tb-side-handle {
  display: none;
}

@media (max-width: 1600px), (max-height: 1050px) {
  .tb-btn-panel { display: none; }
  .tb-btn-panel-glyph {
    display: inline-flex;
    font-size: 14px;
    line-height: 1;
    transition: transform .22s ease;
  }
  .tb-root.tb-compact {
    --tb-col-w: clamp(220px, 18vw, 290px);
    --tb-left-w: clamp(262px, 22vw, 340px);
    --tb-gap: 8px;
    --tb-pad: 10px;
    --tb-top-mini-w: clamp(86px, 7vw, 112px);
    --tb-top-h: 104px;
  }
  .tb-root.tb-compact .tb-map-wrap {
    background:
      radial-gradient(circle at 22% 14%, rgba(255, 116, 140, 0.12), transparent 44%),
      radial-gradient(circle at 78% 84%, rgba(116, 170, 255, 0.12), transparent 46%),
      linear-gradient(160deg, rgba(34, 4, 18, 0.92), rgba(12, 6, 22, 0.9));
  }
  .tb-root.tb-compact .tb-main {
    position: relative;
    grid-template-columns: minmax(0,1fr) var(--tb-col-w);
    overflow: hidden;
  }
  .tb-root.tb-compact .tb-hero {
    width: calc(100% - var(--tb-col-w) - (var(--tb-pad) * 2) - 8px);
    left: var(--tb-pad);
    gap: 6px;
    grid-template-columns: var(--tb-left-w) var(--tb-top-mini-w) var(--tb-top-mini-w);
  }
  .tb-root.tb-compact .tb-hero-item {
    min-height: 80px;
    padding: 8px 9px;
  }
  .tb-root.tb-compact .tb-hero-item:nth-child(2),
  .tb-root.tb-compact .tb-hero-item:nth-child(3) {
    padding-left: 8px;
    padding-right: 8px;
  }
  .tb-root.tb-compact .tb-hero-item span {
    font-size: 8px;
    letter-spacing: .12em;
  }
  .tb-root.tb-compact .tb-hero-item strong {
    font-size: clamp(22px, 2vw, 30px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-root.tb-compact .tb-hero-subline {
    font-size: 9px;
    letter-spacing: .1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-root.tb-compact .tb-hero-item:nth-child(2) strong,
  .tb-root.tb-compact .tb-hero-item:nth-child(3) strong {
    font-size: clamp(24px, 1.55vw, 30px);
    line-height: 1;
  }
  .tb-root.tb-compact .tb-top {
    height: var(--tb-top-h);
    min-height: var(--tb-top-h);
    padding: 8px 10px;
    gap: 8px;
  }
  .tb-root.tb-compact .tb-brand-img {
    width: 78px;
    height: 78px;
  }
  .tb-root.tb-compact .tb-account {
    margin-right: 20px;
    gap: 8px;
  }
  .tb-root.tb-compact .tb-account-avatar-wrap {
    width: 82px;
    height: 82px;
    margin-top: -12px;
    margin-bottom: -12px;
  }
  .tb-root.tb-compact .tb-account-meta strong {
    font-size: 11px;
    letter-spacing: .1em;
  }
  .tb-root.tb-compact .tb-account-meta span {
    font-size: 9px;
  }
  .tb-root.tb-compact .tb-left-stack {
    top: calc(var(--tb-pad) + var(--tb-top-h) + var(--tb-gap));
    width: var(--tb-left-w);
  }
  .tb-root.tb-compact .tb-left-stack .tb-event-drop,
  .tb-root.tb-compact .tb-left-stack .tb-combo-hud {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .tb-root.tb-compact .tb-left-stack .tb-live-left {
    padding: 7px 8px;
    gap: 5px;
  }
  .tb-root.tb-compact .tb-left-stack .tb-live-chat {
    flex: 1;
    min-height: 0;
  }
  .tb-root.tb-compact .tb-focus {
    top: calc(var(--tb-pad) + var(--tb-top-h) + var(--tb-gap));
    right: var(--tb-pad);
    width: var(--tb-col-w);
    overflow-x: visible;
    overflow-y: auto;
    gap: 7px;
    padding: 8px;
  }
  .tb-root.tb-compact .tb-focus-head {
    gap: 6px;
  }
  .tb-root.tb-compact .tb-focus-likepct strong {
    font-size: 21px;
    line-height: 1;
  }
  .tb-root.tb-compact .tb-focus-metrics {
    gap: 5px;
  }
  .tb-root.tb-compact .tb-focus-metric {
    padding: 3px 7px 4px;
  }
  .tb-root.tb-compact .tb-focus-metric span {
    font-size: 8px;
  }
  .tb-root.tb-compact .tb-focus-metric {
    min-height: 88px;
    padding: 3px 7px 4px;
  }
  .tb-root.tb-compact .tb-focus-metric strong {
    max-height: none;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums lining-nums;
  }
  .tb-root.tb-compact .tb-focus-like .tb-focus-num-l1,
  .tb-root.tb-compact .tb-focus-tomato .tb-focus-num-l1 {
    font-size: clamp(30px, 42cqi, 52px);
  }
  .tb-root.tb-compact .tb-focus-like .tb-focus-num-l2,
  .tb-root.tb-compact .tb-focus-tomato .tb-focus-num-l2 {
    font-size: clamp(19px, 26cqi, 32px);
  }
  .tb-root.tb-compact .tb-focus-like .tb-focus-num-l3,
  .tb-root.tb-compact .tb-focus-tomato .tb-focus-num-l3 {
    font-size: clamp(13px, 17cqi, 20px);
  }
  .tb-root.tb-compact .tb-focus-sparks {
    gap: 6px;
  }
  .tb-root.tb-compact .tb-spark-k {
    margin-bottom: 4px;
    font-size: 9px;
  }
  .tb-root.tb-compact .tb-spark {
    height: 42px;
  }
  .tb-root.tb-compact .tb-focus-foot {
    gap: 6px;
  }
  .tb-root.tb-compact .tb-focus-vote-row {
    gap: 6px;
  }
  .tb-root.tb-compact .tb-vote-chip {
    min-height: 64px;
    padding: 9px 6px 8px;
  }
  .tb-root.tb-compact .tb-vote-chip-ico {
    font-size: 20px;
  }
  .tb-root.tb-compact .tb-focus-stat {
    min-height: 54px;
    padding: 6px 5px 7px;
  }
  .tb-root.tb-compact .tb-focus-stat strong {
    font-size: clamp(18px, 8.5cqw, 26px);
  }
  .tb-root.tb-compact .tb-details-btn {
    margin-top: 0;
    padding: 8px 8px;
    font-size: 9px;
  }
  .tb-root.tb-compact .tb-side {
    padding: 7px;
    gap: 5px;
    overflow: hidden;
  }
  .tb-root.tb-compact .tb-side .tb-card {
    padding: 7px 8px;
  }
  .tb-root.tb-compact .tb-side .tb-card h3 {
    font-size: 9px;
    letter-spacing: .14em;
  }
  .tb-root.tb-compact .tb-side .tb-item-num {
    font-size: 9px;
  }
  .tb-root.tb-compact .tb-side .tb-item-name {
    font-size: 10px;
    line-height: 1.2;
  }
  .tb-root.tb-compact .tb-side .tb-leader-name {
    font-size: 12px;
    line-height: 1.2;
  }
  .tb-root.tb-compact .tb-map-hud {
    top: var(--tb-pad);
    right: var(--tb-pad);
    width: var(--tb-col-w);
    height: 80px;
    padding: 8px;
    gap: 5px;
  }
  .tb-root.tb-compact .tb-map-hud span {
    font-size: 8px;
    letter-spacing: .14em;
  }
  .tb-root.tb-compact .tb-map-hud strong {
    font-size: 10px;
    letter-spacing: .07em;
  }
  .tb-root.tb-compact .tb-my-battle {
    width: 184px;
    right: calc(var(--tb-pad) + var(--tb-col-w) + 6px);
  }
  .tb-root.tb-compact .tb-my-battle-title {
    font-size: 8px;
    letter-spacing: .16em;
  }
  .tb-root.tb-compact .tb-my-battle-k {
    font-size: 8px;
  }
  .tb-root.tb-compact .tb-my-battle-v {
    font-size: 11px;
  }
  .tb-root.tb-compact .tb-my-battle-map-btn {
    min-height: 28px;
    font-size: 8px;
  }
  .tb-root.tb-compact .tb-map-panel {
    top: 44px;
    width: min(740px, calc(100% - 20px));
    max-height: calc(100vh - var(--tb-top-h, 110px) - 52px);
    padding: 0;
    overflow: hidden;
  }
  .tb-root.tb-compact .tb-map-panel-scroll {
    padding: 8px;
  }
  .tb-root.tb-compact .tb-map-panel h3 {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: .15em;
  }
  .tb-root.tb-compact .tb-map-panel-grid {
    gap: 6px;
  }
  .tb-root.tb-compact .tb-map-panel-card {
    padding: 7px 8px;
    gap: 4px;
  }
  .tb-root.tb-compact .tb-map-panel-card b {
    font-size: 8px;
  }
  .tb-root.tb-compact .tb-map-panel-card span {
    font-size: 13px;
    line-height: 1.05;
  }
  .tb-root.tb-compact .tb-map-panel-feed {
    overflow: hidden;
    gap: 4px;
  }
  .tb-root.tb-compact .tb-map-panel-foot {
    margin-top: 5px;
    font-size: 8px;
  }
  .tb-root.tb-compact .tb-stats-charts {
    margin-top: 4px;
    gap: 5px;
  }
  .tb-root.tb-compact .tb-stats-chart-box {
    padding: 7px 8px;
    gap: 4px;
  }
  .tb-root.tb-compact .tb-stats-chart-box b {
    font-size: 8px;
  }
  .tb-root.tb-compact .tb-stats-chart {
    height: 84px;
  }
  .tb-root.tb-compact .tb-stats-shapes {
    margin-top: 4px;
    gap: 5px;
  }
  .tb-root.tb-compact .tb-shape-card {
    padding: 7px 8px;
    gap: 5px;
  }
  .tb-root.tb-compact .tb-shape-card b {
    font-size: 8px;
  }
  .tb-root.tb-compact[data-tab="stats"] .tb-map-panel[data-map-panel="stats"] .tb-map-panel-scroll {
    display: grid;
    align-content: start;
    gap: 4px;
  }
  .tb-root.tb-compact[data-tab="negative"] .tb-map-panel[data-map-panel="negative"] .tb-map-panel-scroll {
    display: grid;
    align-content: start;
    gap: 4px;
  }
  .tb-root.tb-compact[data-tab="negative"] .tb-fire-item {
    font-size: 9px;
    padding: 5px 7px;
  }
  .tb-root.tb-compact[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-map-panel-scroll {
    display: grid;
    align-content: start;
    gap: 4px;
  }
  .tb-root.tb-compact[data-tab="social"] .tb-map-panel[data-map-panel="social"] .tb-topic-item {
    padding: 6px 7px;
    font-size: 9px;
  }
  .tb-root.tb-compact .tb-settings {
    right: calc(var(--tb-pad) + var(--tb-col-w) + 6px);
    bottom: 8px;
    z-index: 8;
  }
  .tb-root.tb-compact .tb-settings-menu {
    width: 184px;
  }
  .tb-root.tb-compact .tb-settings-item {
    height: 30px;
    font-size: 9px;
    letter-spacing: .08em;
    padding: 0 34px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-root.tb-compact .tb-search {
    top: calc(var(--tb-pad) + 4px);
    width: auto;
    left: calc(var(--tb-pad) + var(--tb-left-w) + ((100% - var(--tb-col-w) - var(--tb-left-w) - (var(--tb-pad) * 2)) / 2));
    transform: translateX(-50%);
  }
  .tb-root.tb-compact .tb-search-input {
    height: 28px;
    width: 22ch;
    min-width: 22ch;
    max-width: 44ch;
    padding-left: 1ch;
    padding-right: 1ch;
    font-size: 10px;
    letter-spacing: .08em;
    caret-color: rgba(255, 200, 200, 0.95);
    transition: width .2s ease, min-width .2s ease;
  }
  .tb-root.tb-compact .tb-search:focus-within .tb-search-input,
  .tb-root.tb-compact .tb-search-input:not(:placeholder-shown) {
    width: 44ch;
    min-width: 22ch;
  }
  .tb-root.tb-compact .tb-map-controls {
    bottom: 8px !important;
    left: calc(var(--tb-pad) + var(--tb-left-w) + ((100% - var(--tb-col-w) - var(--tb-left-w) - (var(--tb-pad) * 2)) / 2));
    gap: 6px;
  }
  .tb-root.tb-compact .tb-top .tb-impact-alert {
    max-width: min(560px, 86vw);
    font-size: 9px;
    letter-spacing: .09em;
    padding: 1px 4px 0;
    margin: 0 auto;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }
  .tb-root.tb-compact .tb-ctrl-btn {
    padding: 7px 8px;
    font-size: 9px;
  }
  .tb-root.tb-compact .tb-ctrl-mini {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .tb-root.tb-compact #tbCardTopLoved,
  .tb-root.tb-compact #tbCardTopTomatoed {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }
  .tb-root.tb-compact #tbTopLoved,
  .tb-root.tb-compact #tbTopTomatoed {
    max-height: none;
    overflow: hidden;
    padding-right: 0;
    gap: 4px;
  }
  .tb-root.tb-compact #tbTopLoved .tb-item,
  .tb-root.tb-compact #tbTopTomatoed .tb-item {
    gap: 4px;
    grid-template-columns: 1fr auto;
  }
  .tb-root.tb-compact #tbTopLoved .tb-item-name,
  .tb-root.tb-compact #tbTopTomatoed .tb-item-name,
  .tb-root.tb-compact #tbTopLoved .tb-item-num,
  .tb-root.tb-compact #tbTopTomatoed .tb-item-num {
    font-size: 8px;
    line-height: 1.1;
  }
  .tb-root.tb-compact #tbTopLoved .tb-item-bar,
  .tb-root.tb-compact #tbTopTomatoed .tb-item-bar {
    height: 5px;
  }
  .tb-root.tb-compact .tb-live-chat-list {
    max-height: none;
  }

  /* Drawer mode only for really constrained widths/heights */
  .tb-root.tb-drawer-mode .tb-btn-panel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 108px;
    justify-content: center;
  }
  .tb-root.tb-drawer-mode .tb-main {
    position: relative;
    grid-template-columns: minmax(0,1fr) 0 !important;
  }
  .tb-root.tb-drawer-mode .tb-side-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 17;
    border: 0;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, rgba(4,0,2,.04) 0%, rgba(4,0,2,.24) 56%, rgba(4,0,2,.46) 100%);
    opacity: 1;
    transition: opacity .22s ease;
  }
  .tb-root.tb-drawer-mode .tb-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 30vw);
    min-width: 280px;
    max-width: calc(100% - 18px);
    z-index: 18;
    overflow: auto;
    border-left: 1px solid rgba(255,140,140,.24);
    box-shadow: -14px 0 28px rgba(0,0,0,.38);
    transition: transform .24s ease, box-shadow .24s ease;
  }
  .tb-root.tb-drawer-mode .tb-side-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 86px;
    border: 1px solid rgba(255,140,140,.34);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(180deg, rgba(28,0,8,.94), rgba(7,0,2,.94));
    color: rgba(255,230,230,.94);
    cursor: pointer;
    z-index: 19;
  }
  .tb-root.tb-drawer-mode .tb-side-handle-glyph {
    font-size: 18px;
    line-height: 1;
    transition: transform .22s ease;
  }
  .tb-root.tb-drawer-mode.tb-side-collapsed .tb-side {
    transform: translateX(calc(100% - 24px));
    box-shadow: none;
  }
  .tb-root.tb-drawer-mode.tb-side-collapsed .tb-side > :not(.tb-side-handle) {
    opacity: 0;
    pointer-events: none;
  }
  .tb-root.tb-drawer-mode.tb-side-collapsed .tb-side-backdrop {
    opacity: 0;
    pointer-events: none;
  }
  .tb-root.tb-drawer-mode.tb-side-collapsed .tb-side-handle-glyph,
  .tb-root.tb-drawer-mode.tb-side-collapsed .tb-btn-panel-glyph {
    transform: rotate(180deg);
  }
}

/* Age gate — direct tomato.html links for users under 18 */
.tb-age-gate-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 12000;
  width: min(520px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 80, 0.45);
  background: rgba(12, 8, 4, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 140, 40, 0.18);
  text-align: center;
  pointer-events: auto;
}

.tb-age-gate-title {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 210, 120, 0.95);
}

.tb-age-gate-text {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 245, 235, 0.88);
}

body.tb-age-view-only .tb-vote-chip,
body.tb-age-view-only .tb-live-chat-input,
body.tb-age-view-only .tb-live-chat-btn {
  opacity: 0.45;
  pointer-events: none;
}

/* Panel / window titles — stand out from body text */
.tb-live-left-title,
.tb-live-chat-top,
.tb-viral-title,
.tb-my-battle-title,
.tb-card h3,
.tb-side .tb-card h3,
.tb-map-panel h3,
.tb-root[data-tab="negative"] .tb-map-panel[data-map-panel="negative"] h3,
.tb-root.tb-compact .tb-side .tb-card h3,
.tb-root.tb-compact .tb-map-panel h3,
.tb-root.tb-compact .tb-my-battle-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  color: rgba(255, 218, 218, 0.98) !important;
  text-shadow: 0 0 14px rgba(255, 80, 80, 0.28);
}

.tb-live-chat-list {
  gap: 5px;
  align-content: start;
  grid-auto-rows: max-content;
}
