/* ===================================================================
   3babees — luxury glass arena (blue / violet), mobile-first
   =================================================================== */
:root {
  --bb-ink: #05060f;
  --bb-glass: rgba(20, 24, 48, 0.6);
  --bb-glass-2: rgba(24, 28, 56, 0.82);
  --bb-line: rgba(160, 174, 255, 0.18);
  --bb-line-lit: rgba(180, 150, 255, 0.55);
  --bb-text: #f7f8ff;
  --bb-dim: #b6bee6;
  --bb-blue: #5b8cff;
  --bb-violet: #a855f7;
  --bb-cyan: #38bdf8;
  --bb-a: #ff3b5c;
  --bb-b: #3b82ff;
  --bb-ok: #3ddc97;
  --bb-bad: #ff5470;
  --bb-gold: #ffd166;
  --bb-r: 24px;
  --bb-font: "Cairo", "Outfit", system-ui, -apple-system, sans-serif;
  --bb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bb-dock-h: 112px;
  --bb-dock-pad: calc(var(--bb-dock-h) + env(safe-area-inset-bottom, 0px) + 20px);
}

@media (max-width: 720px) {
  :root { --bb-dock-h: 118px; }
}

.babees-canvas-body { background: var(--bb-ink); }

/* ---------- Icons ---------- */
.bb-i {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  display: inline-block;
  vertical-align: -0.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Text buttons line their icon up with the label. Layout buttons (cards,
   grid cells) keep their own display and are excluded on purpose. */
.babees-app .babees-btn,
.babees-app .babees-tool,
.babees-app .babees-act,
.babees-app .babees-tab,
.babees-app .babees-cta,
.babees-app .babees-buy-pack,
.babees-app .babees-room-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.babees-app h2,
.babees-app h3,
.babees-app h4,
.babees-app h5 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Latin numerals, currency codes and codes must not be re-ordered by bidi. */
.babees-app .babees-num,
.babees-app .babees-money,
.babees-app .babees-code-input,
.babees-app .babees-room-code span,
.babees-app input[type="number"],
.babees-app input[type="url"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

.babees-app input[type="url"] { text-align: start; }

.babees-app,
.babees-auth,
.babees-pricing {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: 14px 14px var(--bb-dock-pad);
  color: var(--bb-text);
  font-family: var(--bb-font);
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (min-width: 768px) { .babees-app { padding-left: 22px; padding-right: 22px; } }

/* ---------- Atmosphere ---------- */
.babees-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 65% 40% at 12% -6%, rgba(91, 140, 255, 0.3), transparent 62%),
    radial-gradient(ellipse 60% 42% at 90% 2%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(ellipse 80% 55% at 50% 108%, rgba(56, 189, 248, 0.14), transparent 62%),
    linear-gradient(180deg, #080b1c 0%, #05060f 58%, #03040c 100%);
  pointer-events: none;
}

.babees-spot {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(140, 150, 255, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.babees-app.has-pointer .babees-spot { opacity: 1; }

/* ---------- Topbar ---------- */
.babees-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(3, 6, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.babees-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.babees-brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: conic-gradient(from 200deg, var(--bb-blue), var(--bb-violet), var(--bb-cyan), var(--bb-blue));
  box-shadow: 0 0 24px rgba(140, 150, 255, 0.6);
}

.babees-brand-name {
  font-family: "Outfit", var(--bb-font);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.babees-brand-sub { font-size: 0.72rem; color: var(--bb-dim); }

@media (max-width: 420px) { .babees-brand-sub { display: none; } }

/* Wallet chip (with the + action) */
.babees-wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--bb-line-lit);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(168, 85, 247, 0.22));
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.25s var(--bb-ease), box-shadow 0.25s;
}

.babees-wallet-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(140, 150, 255, 0.35); }
.babees-wallet-chip:active { transform: scale(0.97); }

.babees-chip-ico { color: #dfe3ff; display: inline-flex; }
.babees-chip-ico .bb-i { width: 17px; height: 17px; }
.babees-chip-value { color: #fff; }
.babees-chip-money { font-size: 0.8rem; }
.babees-chip-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.25); }

.babees-chip-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #05231a;
  background: linear-gradient(135deg, #3ddc97, #7ef0c0);
}
.babees-chip-admin .bb-i { width: 12px; height: 12px; }

.babees-chip-money-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  gap: 1px;
}
.babees-chip-money-lbl {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(220, 228, 255, 0.65);
  letter-spacing: 0.04em;
}

.babees-chip-plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #3b1d6b;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 460px) {
  .babees-chip-unit { display: none; }
  .babees-brand-name { font-size: 0.95rem; }
}

/* ---------- Tabs ---------- */
.babees-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  background: rgba(12, 16, 34, 0.7);
  border: 1px solid var(--bb-line);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.babees-tabs::-webkit-scrollbar { display: none; }

.babees-tab {
  flex: 1 0 auto;
  border: none;
  background: transparent;
  color: var(--bb-dim);
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s, background 0.3s var(--bb-ease);
}

.babees-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-violet));
  box-shadow: 0 10px 26px rgba(120, 110, 255, 0.4);
}

/* ---------- Headings ---------- */
.babees-hero { margin-bottom: 22px; }

.babees-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(120, 110, 255, 0.35);
}

.babees-hero-lead {
  margin: 0;
  color: var(--bb-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

.babees-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 14px;
}

.babees-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.babees-counter {
  font-size: 0.82rem;
  font-weight: 900;
  color: #e7e9ff;
  background: rgba(140, 150, 255, 0.18);
  border: 1px solid var(--bb-line-lit);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Fields ---------- */
.babees-team-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) { .babees-team-row { grid-template-columns: 1fr 1fr; } }

.babees-field { display: block; }

.babees-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--bb-dim);
}

.babees-field-a > span { color: var(--bb-a); }
.babees-field-b > span { color: var(--bb-b); }

.babees-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(8, 11, 26, 0.72);
  border: 1px solid var(--bb-line);
  color: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.babees-input::placeholder { color: rgba(182, 190, 230, 0.55); }

.babees-input:focus {
  border-color: var(--bb-line-lit);
  background: rgba(10, 13, 32, 0.92);
  box-shadow: 0 0 0 4px rgba(140, 150, 255, 0.2);
}

select.babees-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b0dd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: left 14px center;
  background-size: 15px 15px;
  background-repeat: no-repeat;
  padding-left: 40px;
  cursor: pointer;
}

/* Native dropdown list stays readable on dark themes */
select.babees-input option { background: #0b1024; color: #eef1ff; }

.babees-field-a .babees-input { border-bottom: 3px solid var(--bb-a); }
.babees-field-b .babees-input { border-bottom: 3px solid var(--bb-b); }

.babees-code-input { text-align: center; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 900; }

/* ---------- Category cards ---------- */
.babees-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) { .babees-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .babees-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.babees-cat-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--bb-line);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(160deg, #131936, #0a0d20);
  isolation: isolate;
  transition: transform 0.32s var(--bb-ease), border-color 0.28s, box-shadow 0.32s;
  box-shadow: 0 12px 32px rgba(3, 6, 20, 0.5);
}

/* Card artwork: WP attachment or any URL — cover/contain + position via admin */
.babees-cat-card > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: var(--cat-fit, cover);
  object-position: var(--cat-pos, center);
  opacity: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(160deg, #141a36, #080b18);
  transition: transform 0.6s var(--bb-ease), opacity 0.3s, filter 0.4s;
}

.babees-cat-card[style*="--cat-fit:contain"] > img,
.babees-cat-card[style*="--cat-fit: contain"] > img {
  padding: 6%;
  box-sizing: border-box;
}

/* Icon replaced by an image: keep it a crisp, perfectly round badge */
.babees-cat-icon.is-img {
  width: clamp(52px, 15vw, 78px);
  height: clamp(52px, 15vw, 78px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(3, 6, 20, 0.55);
}

.babees-cat-icon.is-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.babees-chip-img {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  object-fit: cover;
}

/* Generated artwork when no image is set — no placeholder text, ever */
.babees-cat-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(155deg, var(--art-1, #2a3a7a) 0%, var(--art-2, #101532) 72%);
}

.babees-cat-art::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px);
  opacity: 0.6;
}

.babees-cat-icon {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s var(--bb-ease);
}

.babees-cat-icon .bb-i {
  width: clamp(34px, 9vw, 52px);
  height: clamp(34px, 9vw, 52px);
  stroke-width: 1.45;
}

.babees-cat-glow {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 66%);
  filter: blur(6px);
  transition: transform 0.6s var(--bb-ease), opacity 0.4s;
}

.babees-cat-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 46%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--bb-ease);
}

.babees-cat-card:hover .babees-cat-sheen { transform: translateX(120%); }
.babees-cat-card:hover .babees-cat-glow { transform: scale(1.3); }

.babees-cat-card.has-image .babees-cat-art { opacity: 0; }

.babees-cat-card:hover { transform: translateY(-5px); border-color: var(--bb-line-lit); box-shadow: 0 26px 54px rgba(96, 80, 220, 0.34); }
.babees-cat-card:hover > img { transform: scale(1.06); }
.babees-cat-card:hover .babees-cat-icon { transform: scale(1.12) translateY(-3px); }
.babees-cat-card:active { transform: translateY(-1px) scale(0.98); }

.babees-cat-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(
    to top,
    rgba(4, 6, 16, calc(0.34 + var(--cat-veil, 0.55) * 0.64)) 0%,
    rgba(4, 6, 16, calc(var(--cat-veil, 0.55) * 0.62)) 52%,
    rgba(4, 6, 16, calc(var(--cat-veil, 0.55) * 0.2)) 100%
  );
  text-align: right;
}

.babees-cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.babees-cat-bottom { display: flex; flex-direction: column; gap: 3px; }

.babees-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 12, 30, 0.8);
  border: 1px solid rgba(190, 170, 255, 0.45);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.babees-style-chip .bb-i { width: 12px; height: 12px; }

.babees-cat-name {
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 640px) { .babees-cat-name { font-size: 1rem; } }

.babees-cat-desc {
  font-size: 0.68rem;
  color: rgba(214, 220, 250, 0.78);
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.babees-cat-badge {
  font-size: 0.64rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}

.babees-cat-check {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s, transform 0.3s var(--bb-ease);
}

/* Style palettes */
.babees-cat-card.style-text .babees-cat-art { --art-1: #24407e; --art-2: #0c1230; }
.babees-cat-card.style-image .babees-cat-art { --art-1: #0f5c58; --art-2: #08172a; }
.babees-cat-card.style-blur .babees-cat-art { --art-1: #3c4665; --art-2: #0d1124; }
.babees-cat-card.style-audio .babees-cat-art { --art-1: #5b2a8f; --art-2: #150c2e; }
.babees-cat-card.style-video .babees-cat-art { --art-1: #7c2340; --art-2: #1a0c1c; }
.babees-cat-card.style-act .babees-cat-art { --art-1: #8a5a12; --art-2: #1d1408; }
.babees-cat-card.style-spot .babees-cat-art { --art-1: #1d4d8f; --art-2: #0a1226; }
.babees-cat-card.style-mcq .babees-cat-art { --art-1: #2a5f7c; --art-2: #0a1522; }
.babees-cat-card.style-fill .babees-cat-art { --art-1: #47307d; --art-2: #110d26; }
.babees-cat-card.style-mixed .babees-cat-art { --art-1: #33397c; --art-2: #0d1026; }

.babees-cat-card.style-blur > img { filter: blur(3px) saturate(0.85); }

.babees-cat-card.sel-a {
  border-color: var(--bb-a);
  box-shadow: 0 0 0 2px var(--bb-a), 0 22px 48px rgba(255, 107, 138, 0.35);
}
.babees-cat-card.sel-a .babees-cat-badge,
.babees-cat-card.sel-a .babees-cat-check { background: var(--bb-a); }
.babees-cat-card.sel-b {
  border-color: var(--bb-b);
  box-shadow: 0 0 0 2px var(--bb-b), 0 22px 48px rgba(106, 166, 255, 0.35);
}
.babees-cat-card.sel-b .babees-cat-badge,
.babees-cat-card.sel-b .babees-cat-check { background: var(--bb-b); }

.babees-cat-card.sel-a .babees-cat-check,
.babees-cat-card.sel-b .babees-cat-check { opacity: 1; transform: scale(1); }

.babees-ripple {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(210, 215, 255, 0.55), transparent 70%);
  animation: babees-ripple 0.6s ease-out forwards;
}

@keyframes babees-ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---------- Panels ---------- */
.babees-panel,
.babees-join-panel {
  padding: 18px;
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 44px rgba(3, 6, 20, 0.45);
}

.babees-join-panel { margin-top: 26px; }
.babees-join-panel h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 900; color: #fff; }
.babees-join-panel p { margin: 0 0 14px; color: var(--bb-dim); font-size: 0.86rem; }

.babees-join-row { display: grid; grid-template-columns: 1fr; gap: 10px; }

@media (min-width: 760px) {
  .babees-join-row { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: center; }
}

.babees-panel h5 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #dfe3ff;
  letter-spacing: 0.03em;
}

.babees-panel-note { margin: 0 0 12px; font-size: 0.82rem; color: var(--bb-dim); }
.babees-panel-tall { min-height: 60vh; display: flex; flex-direction: column; }

/* ---------- Buttons ---------- */
.babees-btn {
  position: relative;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-violet));
  box-shadow: 0 12px 30px rgba(120, 110, 255, 0.38);
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.24s var(--bb-ease), box-shadow 0.24s, filter 0.24s;
}

.babees-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(140, 130, 255, 0.5); }
.babees-btn:active:not(:disabled) { transform: scale(0.97); }
.babees-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.babees-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bb-line-lit);
  box-shadow: none;
}

/* ---------- Dock + CTA (mobile-first compact sheet) ---------- */
.babees-dock {
  position: fixed;
  z-index: 60;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 22, 0.97);
  border: 1px solid rgba(160, 174, 255, 0.22);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  box-shadow:
    0 -18px 48px rgba(2, 4, 14, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.babees-dock[hidden] {
  display: none !important;
}

.babees-dock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 28px;
}

.babees-dock-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.babees-dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.babees-dock-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.babees-dock-pill.t1 { color: #ffd7de; }
.babees-dock-pill.t1 i { background: var(--bb-a); box-shadow: 0 0 8px var(--bb-a); }
.babees-dock-pill.t2 { color: #d6e6ff; }
.babees-dock-pill.t2 i { background: var(--bb-b); box-shadow: 0 0 8px var(--bb-b); }

.babees-dock-hint {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(220, 228, 255, 0.88);
  text-align: end;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.babees-app .babees-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 52px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #0b0720;
  cursor: pointer;
  background: linear-gradient(135deg, #fff3c4 0%, #ffd166 52%, #ffb84d 100%);
  box-shadow: 0 14px 30px rgba(255, 190, 70, 0.38);
  transition: transform 0.22s var(--bb-ease), box-shadow 0.22s, filter 0.22s, opacity 0.22s, background 0.22s, color 0.22s;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.babees-cta-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 230, 150, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.babees-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(255, 200, 90, 0.5);
}
.babees-cta:active:not(:disabled) { transform: scale(0.985); }

.babees-cta.is-ready .babees-cta-glow {
  opacity: 1;
  animation: babees-cta-glow 2s ease-in-out infinite;
}
.babees-cta.is-ready {
  animation: babees-cta-pulse 2.2s ease-in-out infinite;
}

.babees-cta:disabled {
  color: rgba(236, 240, 255, 0.72);
  background: linear-gradient(160deg, rgba(78, 90, 140, 0.55), rgba(42, 50, 88, 0.88));
  border-color: rgba(170, 184, 255, 0.28);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  filter: none;
}

.babees-cta-icon {
  display: inline-grid;
  place-items: center;
  transform: scaleX(-1);
}
.babees-cta-icon .bb-i { width: 18px; height: 18px; stroke-width: 2.2; }

@keyframes babees-cta-pulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(255, 190, 70, 0.38); }
  50% { box-shadow: 0 14px 40px rgba(255, 209, 102, 0.72); }
}
@keyframes babees-cta-glow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.9; }
}

@media (min-width: 721px) {
  .babees-dock {
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 24px));
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 14px;
    border-radius: 22px;
    border: 1px solid var(--bb-line-lit);
  }

  .babees-dock-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .babees-dock-hint {
    text-align: start;
    -webkit-line-clamp: 2;
  }

  .babees-app .babees-cta {
    width: 100%;
    min-height: 56px;
    font-size: 1.08rem;
  }
}

@media (max-width: 380px) {
  .babees-dock { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .babees-dock-hint { font-size: 0.74rem; }
  .babees-app .babees-cta { min-height: 48px; font-size: 0.98rem; padding: 12px 14px; }
  .babees-dock-pill { font-size: 0.72rem; padding: 5px 8px; }
}

/* ---------- Wallet ---------- */
.babees-wallet-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

@media (min-width: 860px) { .babees-wallet-summary { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.babees-wallet-stat {
  padding: 16px;
  border-radius: 18px;
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.babees-wallet-stat > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bb-dim);
  margin-bottom: 6px;
}

.babees-wallet-stat > strong {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.babees-wallet-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(61, 220, 151, 0.16), rgba(91, 140, 255, 0.12));
  border: 1px solid rgba(61, 220, 151, 0.35);
  color: #d8ffe9;
}
.babees-wallet-banner .bb-i { width: 22px; height: 22px; flex: none; color: #3ddc97; margin-top: 2px; }
.babees-wallet-banner strong { display: block; font-size: 0.95rem; font-weight: 900; color: #fff; margin-bottom: 2px; }
.babees-wallet-banner span { font-size: 0.8rem; font-weight: 700; line-height: 1.55; color: rgba(210, 255, 230, 0.85); }

.babees-currency-pick .babees-input { padding: 10px 14px; padding-left: 34px; font-size: 0.86rem; }

.babees-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.babees-pack {
  position: relative;
  padding: 20px 18px;
  border-radius: 20px;
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s var(--bb-ease), border-color 0.3s, box-shadow 0.3s;
}

.babees-pack:hover { transform: translateY(-5px); border-color: var(--bb-line-lit); box-shadow: 0 24px 50px rgba(96, 80, 220, 0.3); }

.babees-pack-tag {
  position: absolute;
  top: -10px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  font-size: 0.66rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  color: #201400;
  background: linear-gradient(135deg, #ffe9a3, #ffc04d);
  white-space: nowrap;
}

.babees-pack h4 { margin: 4px 0 10px; font-size: 0.95rem; font-weight: 900; color: #fff; }

.babees-pack-credits {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.babees-pack-credits small { display: block; font-size: 0.72rem; font-weight: 700; color: var(--bb-dim); margin-top: 4px; }

.babees-pack-price { margin: 12px 0 4px; font-size: 1.1rem; font-weight: 900; color: var(--bb-gold); }
.babees-pack-per { font-size: 0.72rem; color: var(--bb-dim); margin-bottom: 14px; }
.babees-pack .babees-btn { width: 100%; padding: 12px 14px; }

.babees-pack-save {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--bb-ok);
  background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px;
  padding: 3px 9px;
}

.babees-wallet-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

@media (min-width: 860px) { .babees-wallet-cols { grid-template-columns: 1.15fr 1fr; } }

.babees-topup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

@media (min-width: 560px) { .babees-topup-grid { grid-template-columns: repeat(4, 1fr); } }

.babees-topup-opt {
  padding: 13px 10px;
  border-radius: 15px;
  border: 1px solid var(--bb-line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.22s var(--bb-ease), border-color 0.22s, background 0.22s;
}

.babees-topup-opt small { display: block; font-size: 0.68rem; font-weight: 700; color: var(--bb-dim); margin-top: 3px; }
.babees-topup-opt:hover { transform: translateY(-2px); border-color: var(--bb-line-lit); background: rgba(140, 150, 255, 0.16); }
.babees-topup-opt.is-active { border-color: var(--bb-gold); background: rgba(255, 209, 102, 0.15); }

.babees-topup-custom { display: flex; gap: 9px; }
.babees-topup-custom .babees-input { flex: 1; }

.babees-gateway-note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--bb-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.babees-gateway-note #babees-gateway-label { color: #dfe3ff; font-weight: 800; }
.babees-express-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #05231a;
  background: linear-gradient(135deg, #3ddc97, #7ef0c0);
}
.babees-express-badge[hidden] { display: none !important; }

/* ---------- Scoreboard / session ---------- */
.babees-scorebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: var(--bb-glass-2);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.babees-score span { display: block; font-size: 0.8rem; font-weight: 900; }
.babees-score strong { font-size: 1.9rem; font-weight: 900; color: #fff; }
.babees-score-a span { color: var(--bb-a); }
.babees-score-b { text-align: left; }
.babees-score-b span { color: var(--bb-b); }
.babees-score-mid { text-align: center; }

.babees-room-code {
  border: 1px solid var(--bb-line-lit);
  background: rgba(140, 150, 255, 0.14);
  color: #fff;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.26em;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.22s, background 0.22s;
  min-height: 44px;
}

.babees-room-code:hover { transform: translateY(-2px); background: rgba(140, 150, 255, 0.26); }
.babees-turn { margin-top: 6px; color: var(--bb-dim); font-size: 0.78rem; font-weight: 800; }

.babees-session {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 900px) { .babees-session { grid-template-columns: 1fr 1.3fr; } }

.babees-roster { display: flex; flex-wrap: wrap; gap: 8px; }

.babees-player {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bb-line);
}

.babees-player .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bb-ok); box-shadow: 0 0 10px var(--bb-ok); }
.babees-player.team_a { border-color: rgba(255, 107, 138, 0.5); }
.babees-player.team_b { border-color: rgba(106, 166, 255, 0.5); }

.babees-chat-log {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  padding-inline-end: 4px;
}

.babees-chat-log-tall { max-height: none; flex: 1; min-height: 46vh; }

.babees-chat-msg {
  font-size: 0.87rem;
  line-height: 1.55;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-word;
  animation: babees-rise 0.3s var(--bb-ease) both;
}

.babees-chat-msg b { color: #cdd4ff; }

.babees-chat-msg.system {
  background: rgba(140, 150, 255, 0.12);
  color: var(--bb-dim);
  font-size: 0.78rem;
  text-align: center;
}

.babees-chat-form { display: flex; gap: 8px; flex-wrap: wrap; }
.babees-chat-form .babees-input { flex: 1 1 140px; padding: 12px 14px; border-radius: 14px; }
.babees-chat-form .babees-name-input { flex: 0 0 130px; }
.babees-chat-form .babees-btn { padding: 12px 20px; }

@keyframes babees-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Board ---------- */
.babees-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 700px) { .babees-board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .babees-board-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }

.babees-col {
  --cat-accent: #818cf8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.babees-col.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--col-img);
  background-size: var(--cat-fit, cover);
  background-position: var(--cat-pos, center);
  opacity: 0.28;
  filter: saturate(1.05);
}
.babees-col.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(6, 8, 20, 0.35), rgba(6, 8, 20, 0.88));
}
.babees-col > * { position: relative; z-index: 1; }

.babees-col h4 { margin: 0 0 10px; font-size: 0.84rem; font-weight: 900; color: #fff; }

.babees-col-style {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent) 45%, transparent);
  color: #f0e2ff;
}

.babees-col.style-audio { border-color: rgba(168, 85, 247, 0.36); }
.babees-col.style-video { border-color: rgba(255, 107, 138, 0.32); }
.babees-col.style-blur { border-color: rgba(148, 163, 184, 0.32); }
.babees-col.style-act { border-color: rgba(255, 209, 102, 0.38); }

.babees-q-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  margin-bottom: 8px;
  border-radius: 15px;
  border: 1px solid var(--bb-line);
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.16), rgba(168, 85, 247, 0.12));
  color: #eaf0ff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.24s var(--bb-ease), background 0.24s, border-color 0.24s;
}

.babees-q-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.36), rgba(168, 85, 247, 0.3));
  border-color: var(--bb-line-lit);
  color: #fff;
}

.babees-q-btn:active:not(:disabled) { transform: scale(0.97); }
.babees-q-btn:disabled { opacity: 0.2; cursor: not-allowed; background: rgba(255, 255, 255, 0.03); }

/* ---------- Cinema / question stage ---------- */
.babees-cinema {
  --q-accent: #818cf8;
  --q-veil: 0.55;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in srgb, var(--q-accent) 28%, transparent), transparent 55%),
    rgba(3, 5, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--bb-ease), background 0.45s var(--bb-ease);
}

.babees-cinema-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: var(--cat-fit, cover);
  background-position: var(--cat-pos, center);
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  transition: opacity 0.45s var(--bb-ease);
}
.babees-cinema-backdrop.has-image { opacity: calc(0.22 + (1 - var(--q-veil, 0.55)) * 0.2); }
.babees-cinema-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 14, 0.55), rgba(3, 5, 14, 0.92)),
    radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in srgb, var(--q-accent) 35%, transparent), transparent 65%);
}

.babees-cinema.is-open { opacity: 1; }

.babees-cinema-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.35s var(--bb-ease), opacity 0.3s;
  box-sizing: border-box;
}

.babees-cv-cat {
  display: inline-flex;
  align-items: center;
  max-width: 10em;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: color-mix(in srgb, var(--q-accent) 35%, rgba(10, 12, 30, 0.85));
  border: 1px solid color-mix(in srgb, var(--q-accent) 55%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Per-category Q&A atmospheres */
.babees-cinema[data-cat-style="text"] .babees-cinema-stage {
  background:
    linear-gradient(180deg, rgba(91, 140, 255, 0.12), rgba(255,255,255,0.02)),
    rgba(8, 12, 28, 0.78);
  border-color: rgba(91, 140, 255, 0.28);
}
.babees-cinema[data-cat-style="image"] .babees-cinema-stage,
.babees-cinema[data-cat-style="blur"] .babees-cinema-stage,
.babees-cinema[data-cat-style="spot"] .babees-cinema-stage {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--q-accent) 16%, transparent), rgba(8, 14, 22, 0.82));
  border-color: color-mix(in srgb, var(--q-accent) 40%, transparent);
}
.babees-cinema[data-cat-style="audio"] .babees-cinema-stage {
  background:
    radial-gradient(circle at 50% 100%, rgba(192, 132, 252, 0.22), transparent 55%),
    rgba(16, 10, 28, 0.85);
  border-color: rgba(192, 132, 252, 0.35);
}
.babees-cinema[data-cat-style="video"] .babees-cinema-stage {
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(8, 8, 20, 0.88));
  border-color: rgba(251, 113, 133, 0.32);
}
.babees-cinema[data-cat-style="act"] .babees-cinema-stage {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 191, 36, 0.2), transparent 60%),
    rgba(20, 14, 6, 0.88);
  border-color: rgba(251, 191, 36, 0.38);
}
.babees-cinema[data-cat-style="mcq"] .babees-cinema-stage {
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(8, 16, 18, 0.85));
  border-color: rgba(52, 211, 153, 0.32);
}
.babees-cinema[data-cat-style="fill"] .babees-cinema-stage {
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.14), rgba(12, 10, 28, 0.86));
  border-color: rgba(167, 139, 250, 0.34);
}
.babees-cinema[data-cat-style="act"] .babees-cinema-q {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: 0.02em;
}
.babees-cinema[data-cat-style="mcq"] .babees-mcq {
  gap: 10px;
}
.babees-cinema[data-cat-style="audio"] .babees-cinema-q::before {
  content: "♪ ";
  color: var(--q-accent);
  opacity: 0.85;
}
.babees-cinema[data-tpl="blur_image"] .babees-cinema-media img {
  filter: blur(14px) saturate(0.9);
  transition: filter 0.8s var(--bb-ease);
}
.babees-cinema[data-tpl="blur_image"].is-open:not(.is-q-hidden) .babees-cinema-media img {
  animation: babees-deblur 1.1s var(--bb-ease) forwards;
}
@keyframes babees-deblur {
  from { filter: blur(16px) saturate(0.85); }
  to { filter: blur(0) saturate(1); }
}

.babees-cinema.is-open .babees-cinema-inner { transform: none; opacity: 1; }

.babees-cinema-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  padding: 10px 12px;
  background: rgba(16, 20, 42, 0.85);
  border: 1px solid rgba(190, 200, 255, 0.18);
  border-radius: 18px;
}

.babees-cv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.babees-cv-pts {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-family: "Outfit", var(--bb-font);
  font-weight: 800;
  font-size: 1.05rem;
  color: #241300;
  background: linear-gradient(135deg, #ffe08a, #ffd166);
}

.babees-cinema-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 11, 26, 0.7);
  border: 1px solid rgba(190, 200, 255, 0.14);
  text-align: center;
}

.babees-cinema-q {
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  line-height: 1.55;
  font-weight: 900;
  color: #fff;
  text-wrap: balance;
  max-width: 34em;
  margin: 0;
}

.babees-cinema-media {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.babees-cinema-media[hidden] { display: none !important; }

.babees-cinema-media img,
.babees-cinema-media iframe,
.babees-cinema-media video {
  width: 100%;
  max-height: min(38vh, 360px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  object-fit: contain;
}

.babees-video-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.babees-video-frame iframe,
.babees-video-frame video {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

.babees-q-figure {
  margin: 0;
  width: min(100%, 680px);
}

.babees-q-figure img {
  width: 100%;
  max-height: min(36vh, 340px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #05070f;
}

.babees-q-figure figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bb-dim);
}

.babees-blur-badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: rgba(4, 6, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.babees-blur-wrap.revealed .babees-blur-badge { display: none; }

.babees-cinema-media .babees-btn { margin-top: 12px; }

.babees-console {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(10, 14, 32, 0.88);
  border: 1px solid rgba(190, 200, 255, 0.16);
  backdrop-filter: blur(16px);
}

.babees-app.is-compete .babees-cinema { z-index: 140; }

.babees-cam-share {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(91, 140, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #151b3a, #070a16);
  color: #e8ecff;
  padding: 10px;
}

.babees-cam-share strong { font-size: 0.78rem; font-weight: 900; }
.babees-cam-share span { font-size: 0.62rem; color: var(--bb-dim); font-weight: 700; }

html.babees-compete-html,
body.babees-compete-body {
  overflow: hidden !important;
  height: 100%;
  background: #070a16 !important;
}

body.babees-compete-body #wpadminbar { display: none !important; }
body.babees-compete-body { margin-top: 0 !important; padding-top: 0 !important; }

.babees-cinema-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bb-line);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s, color 0.25s, background 0.25s;
}

.babees-cinema-close .bb-i { width: 18px; height: 18px; }
.babees-cinema-close:hover { transform: rotate(90deg); color: var(--bb-bad); }

/* Visual barcode: one tap, the whole picture snaps into focus */
.babees-blur-wrap {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
}

.babees-blur-wrap.revealed { cursor: default; }

.babees-blur-img {
  filter: blur(30px) saturate(1.2);
  transform: scale(1.05);
  transition: filter 0.5s var(--bb-ease), transform 0.5s var(--bb-ease);
  object-fit: contain;
}

.babees-blur-img.revealed { filter: none; transform: none; }

.babees-blur-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85), transparent 68%);
}

.babees-blur-wrap.revealed .babees-blur-flash { animation: babees-flash 0.5s ease-out; }

@keyframes babees-flash {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

.babees-media-fail {
  padding: 18px;
  border-radius: 14px;
  font-weight: 800;
  color: #ffd7de;
  background: rgba(255, 84, 112, 0.12);
  border: 1px solid rgba(255, 84, 112, 0.3);
}

.babees-media-fail a { color: #fff; text-decoration: underline; }

/* Multiple choice: real, tappable option cards */
.babees-mcq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

@media (max-width: 620px) {
  .babees-mcq { grid-template-columns: 1fr; }
}

.babees-mcq-opt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: right;
  color: #eaeeff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bb-line);
  cursor: pointer;
  transition: transform 0.2s var(--bb-ease), border-color 0.2s, background 0.2s;
}

.babees-mcq-opt:hover { transform: translateY(-2px); border-color: var(--bb-line-lit); }

.babees-mcq-opt.is-picked {
  background: linear-gradient(135deg, rgba(80, 120, 255, 0.28), rgba(150, 90, 245, 0.28));
  border-color: rgba(150, 130, 255, 0.6);
  color: #fff;
}

.babees-mcq-key {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.12);
}

.babees-audio-pulse {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-violet));
  animation: babees-pulse 1.7s infinite;
}

@keyframes babees-pulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 150, 255, 0.6); }
  70% { box-shadow: 0 0 0 38px rgba(140, 150, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 150, 255, 0); }
}

.babees-act-card {
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed rgba(216, 180, 254, 0.4);
  background: rgba(168, 85, 247, 0.1);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.babees-cinema-notes {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: var(--bb-gold);
  font-weight: 800;
  font-size: 0.84rem;
  text-align: center;
  max-width: 36em;
}

.babees-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }

.babees-tool {
  border: 1px solid var(--bb-line);
  background: rgba(255, 255, 255, 0.06);
  color: #e6ebff;
  border-radius: 999px;
  padding: 11px 17px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s var(--bb-ease), background 0.22s, border-color 0.22s;
}

.babees-tool:hover:not(:disabled) { transform: translateY(-2px); background: rgba(140, 150, 255, 0.2); border-color: var(--bb-line-lit); }
.babees-tool:disabled { opacity: 0.28; cursor: not-allowed; }

.babees-answer {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(61, 220, 151, 0.13);
  border: 1px solid rgba(61, 220, 151, 0.5);
  color: #8ff0c2;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 900;
  text-align: center;
  max-width: 36em;
  animation: babees-rise 0.35s var(--bb-ease) both;
}

.babees-cinema-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.babees-act {
  flex: 1 1 140px;
  max-width: 230px;
  border: none;
  border-radius: 15px;
  padding: 15px 16px;
  font: inherit;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  transition: transform 0.22s var(--bb-ease), filter 0.22s;
}

.babees-act:hover { transform: translateY(-3px); filter: brightness(1.08); }
.babees-act:active { transform: scale(0.97); }
.babees-act.reveal { background: linear-gradient(135deg, #6366f1, #a855f7); }
.babees-act.ok { background: linear-gradient(135deg, #0f9d63, #3ddc97); color: #05231a; }
.babees-act.bad { background: linear-gradient(135deg, #c01a3d, #ff5470); }

/* ---------- Toast ---------- */
.babees-toast {
  position: fixed;
  bottom: calc(var(--bb-dock-h) + env(safe-area-inset-bottom, 0px) + 22px);
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 100000;
  max-width: min(520px, 92vw);
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(12, 16, 34, 0.96);
  border: 1px solid var(--bb-line-lit);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: 0 22px 50px rgba(2, 4, 14, 0.7);
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s var(--bb-ease);
}

.babees-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.babees-toast.is-ok { border-color: rgba(61, 220, 151, 0.6); }
.babees-toast.is-bad { border-color: rgba(255, 84, 112, 0.6); }

/* ---------- Auth / pricing shortcodes ---------- */
.babees-auth, .babees-pricing { max-width: 920px; }

.babees-auth {
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.babees-auth .babees-input { margin-bottom: 12px; }
.babees-msg { margin-top: 14px; font-weight: 800; font-size: 0.88rem; min-height: 20px; }

.babees-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.babees-price-card {
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r);
  padding: 24px;
  text-align: center;
}

.babees-price { font-size: 1.9rem; font-weight: 900; margin: 12px 0; color: var(--bb-gold); }

.babees-currency-bar {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
}

.babees-wallet-badge {
  display: inline-flex;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--bb-line-lit);
  color: #e8ecff;
  font-family: var(--bb-font);
  font-weight: 700;
}

/* Turn-aware atmosphere — uses live team colors */
.babees-app[data-turn="team_a"] .babees-atmosphere,
.babees-app.is-question[data-answer-team="team_a"] .babees-atmosphere {
  background:
    radial-gradient(ellipse 70% 48% at 50% -8%, color-mix(in srgb, var(--bb-a) 48%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 40% at 88% 8%, color-mix(in srgb, var(--bb-a) 22%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--bb-a) 18%, #0a0610) 0%, #05060f 62%);
}

.babees-app[data-turn="team_b"] .babees-atmosphere,
.babees-app.is-question[data-answer-team="team_b"] .babees-atmosphere {
  background:
    radial-gradient(ellipse 70% 48% at 50% -8%, color-mix(in srgb, var(--bb-b) 48%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 40% at 88% 8%, color-mix(in srgb, var(--bb-b) 22%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--bb-b) 18%, #040a14) 0%, #05060f 62%);
}

.babees-app[data-turn="team_a"] .babees-spot,
.babees-app.is-question[data-answer-team="team_a"] .babees-spot {
  background: radial-gradient(circle, color-mix(in srgb, var(--bb-a) 35%, transparent), transparent 70%);
}
.babees-app[data-turn="team_b"] .babees-spot,
.babees-app.is-question[data-answer-team="team_b"] .babees-spot {
  background: radial-gradient(circle, color-mix(in srgb, var(--bb-b) 35%, transparent), transparent 70%);
}

.babees-app.is-question[data-answer-team="team_a"] .babees-cinema-inner {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bb-a) 45%, transparent), 0 40px 80px rgba(0,0,0,0.55);
}
.babees-app.is-question[data-answer-team="team_b"] .babees-cinema-inner {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bb-b) 45%, transparent), 0 40px 80px rgba(0,0,0,0.55);
}

.babees-app[data-turn="team_a"] .babees-board-shell {
  border-color: color-mix(in srgb, var(--bb-a) 40%, rgba(200, 210, 255, 0.18));
}
.babees-app[data-turn="team_b"] .babees-board-shell {
  border-color: color-mix(in srgb, var(--bb-b) 40%, rgba(200, 210, 255, 0.18));
}

/* Team color pickers (pre-game) */
.babees-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.babees-color-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bb-dim);
  width: 100%;
}
.babees-color-swatches {
  display: inline-flex;
  gap: 7px;
  flex-wrap: wrap;
}
.babees-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--sw);
  cursor: pointer;
  padding: 0;
  min-height: 0 !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--sw) 40%, transparent);
  transition: transform 0.18s var(--bb-ease), box-shadow 0.18s;
}
.babees-swatch:hover { transform: scale(1.08); }
.babees-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sw);
}
.babees-color-input {
  width: 36px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.babees-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}
.babees-policies a {
  color: #c8d2ff;
  text-decoration: none;
  padding: 2px 6px;
}
.babees-policies a:hover { color: #fff; text-decoration: underline; }
.babees-pol-sep { color: rgba(180, 190, 230, 0.35); }
.babees-credit-line { margin-top: 4px; }

/* ===================================================================
   v3 — 2026 layer: texture, cameras, host console, overlays
   =================================================================== */

/* ---------- Structure ---------- */
.babees-view { animation: babees-view-in 0.42s var(--bb-ease) both; }

@keyframes babees-view-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.babees-stage { display: block; }
.babees-topbar-actions { display: flex; align-items: center; gap: 9px; }
.babees-brand-copy { min-width: 0; }
.babees-cta-text { white-space: nowrap; }
.babees-cta-icon { display: inline-grid; place-items: center; transform: scaleX(-1); }
.babees-cta-icon .bb-i { width: 19px; height: 19px; stroke-width: 2; }
.babees-stream-options { animation: babees-view-in 0.35s var(--bb-ease) both; }
.babees-stream-block { margin-top: 4px; }

/* Fine film grain keeps the glass from looking flat */
.babees-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.babees-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #e9e2ff;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.22), rgba(168, 85, 247, 0.26));
  border: 1px solid var(--bb-line-lit);
}

.babees-eyebrow .bb-i { width: 13px; height: 13px; }

.babees-brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
}

.babees-brand-mark .bb-i { width: 19px; height: 19px; stroke-width: 1.9; }

/* ---------- Icon buttons ---------- */
.babees-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bb-line);
  background: rgba(255, 255, 255, 0.06);
  color: #e7ebff;
  cursor: pointer;
  transition: transform 0.24s var(--bb-ease), background 0.24s, border-color 0.24s, color 0.24s;
}

.babees-icon-btn.sm { width: 32px; height: 32px; }
.babees-icon-btn .bb-i { width: 17px; height: 17px; }
.babees-icon-btn:hover { transform: translateY(-2px); background: rgba(140, 150, 255, 0.2); border-color: var(--bb-line-lit); }
.babees-icon-btn:active { transform: scale(0.94); }

.babees-icon-btn .off { display: none; }
.babees-icon-btn.is-off .on { display: none; }
.babees-icon-btn.is-off .off { display: inline-block; }
.babees-icon-btn.is-off { color: #ff9db1; border-color: rgba(255, 84, 112, 0.45); background: rgba(255, 84, 112, 0.12); }

.babees-btn-icon { padding: 12px 16px; }
.babees-btn-icon .bb-i { width: 18px; height: 18px; }
.babees-btn-wide { width: 100%; justify-content: center; margin-top: 4px; }

.babees-tabs .bb-i { width: 15px; height: 15px; }

@media (max-width: 430px) {
  .babees-tab span { display: none; }
  .babees-tab { flex: 1 1 0; justify-content: center; padding: 12px 0; }
  .babees-tabs .bb-i { width: 18px; height: 18px; }
}

/* ---------- Switch ---------- */
.babees-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--bb-dim);
  user-select: none;
}

.babees-switch input { position: absolute; opacity: 0; pointer-events: none; }

.babees-switch-track {
  position: relative;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--bb-line);
  transition: background 0.3s var(--bb-ease), border-color 0.3s;
}

.babees-switch-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  left: auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #cdd4ff;
  transition: transform 0.3s var(--bb-ease), background 0.3s;
}

.babees-switch input:checked + .babees-switch-track {
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-violet));
  border-color: transparent;
}

.babees-switch input:checked + .babees-switch-track .babees-switch-dot {
  transform: translateX(-21px);
  background: #fff;
}

.babees-switch input:checked ~ .babees-switch-label { color: #fff; }

.babees-mini-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bb-dim);
  white-space: nowrap;
}

/* ---------- Panel head ---------- */
.babees-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.babees-panel-head h3 { margin: 0; font-size: 1rem; font-weight: 900; color: #fff; }

/* ---------- Stream setup ---------- */
.babees-stream-setup { margin-top: 22px; }

.babees-stream-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.babees-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 15px 10px;
  border-radius: 16px;
  border: 1px solid var(--bb-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bb-dim);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s var(--bb-ease), border-color 0.24s, background 0.24s, color 0.24s;
}

.babees-mode .bb-i { width: 22px; height: 22px; }
.babees-mode:hover { transform: translateY(-3px); color: #fff; border-color: var(--bb-line-lit); }

.babees-mode.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.28), rgba(168, 85, 247, 0.3));
  border-color: var(--bb-line-lit);
  box-shadow: 0 12px 28px rgba(120, 110, 255, 0.3);
}

.babees-stream-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
}

.babees-stream-row .babees-input { flex: 1 1 180px; padding: 12px 14px; }

.babees-cam-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bb-line);
  background: #06080f;
  display: grid;
  place-items: center;
}

.babees-cam-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}

.babees-cam-preview.is-live video { display: block; }
.babees-cam-preview.is-live .babees-cam-preview-note { display: none; }

.babees-cam-preview-note {
  font-size: 0.8rem;
  color: var(--bb-dim);
  text-align: center;
  padding: 0 18px;
}

.babees-stream-status {
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 18px;
  color: var(--bb-dim);
}

/* ---------- Competition stadium — cinematic glass stage ---------- */
.babees-app.is-compete {
  max-width: none;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
}

.babees-app.is-compete > .babees-topbar,
.babees-app.is-compete > .babees-tabs,
.babees-app.is-compete > .babees-credit,
.babees-app.is-compete > .babees-dock {
  display: none !important;
}

.babees-app.is-compete > .babees-view[data-view="play"] {
  display: block !important;
  min-height: 100dvh;
}

.babees-app.is-compete .babees-compete {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 8% 12%, rgba(255, 107, 138, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 18%, rgba(106, 166, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 209, 102, 0.08), transparent 60%),
    linear-gradient(180deg, #0a0e22 0%, #060814 45%, #03050d 100%);
}

.babees-app.is-compete .babees-compete::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

.babees-arena {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(200px, 20vw, 280px) minmax(0, 1fr) clamp(210px, 21vw, 300px);
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  padding: 12px;
  box-sizing: border-box;
}

.babees-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 32, 0.72);
  border: 1px solid rgba(190, 200, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  scrollbar-width: thin;
}

.babees-rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.babees-rail-head h5,
.babees-rail-panel h5 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f2f4ff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.babees-rail-live { display: flex; gap: 6px; flex-wrap: wrap; }

.babees-rail-panel {
  padding: 12px;
  border-radius: 20px;
  background: rgba(4, 7, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.babees-rail-panel.is-a { border-color: rgba(255, 107, 138, 0.28); }
.babees-rail-panel.is-b { border-color: rgba(106, 166, 255, 0.28); }

.babees-rail-chat .babees-chat-log {
  max-height: 110px;
  margin-bottom: 8px;
}

.babees-cam-note {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--bb-dim);
}

.babees-cam-zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.babees-cams-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: none;
}

.babees-cams-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 900;
}

.babees-cams-label small {
  margin-inline-start: auto;
  font-size: 0.6rem;
  opacity: 0.65;
}

.babees-cams-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.babees-cams-label.team-a { color: #ffc0cd; }
.babees-cams-label.team-a i { background: var(--bb-a); box-shadow: 0 0 12px var(--bb-a); }
.babees-cams-label.team-b { color: #c6dcff; }
.babees-cams-label.team-b i { background: var(--bb-b); box-shadow: 0 0 12px var(--bb-b); }

/* Strict 2×2 — cameras never stack into each other */
.babees-cams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  min-width: 0;
}

.babees-board-swipe-hint {
  display: none;
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(200, 210, 255, 0.55);
}

.babees-cam-tile,
.babees-cam-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 30%, rgba(120, 140, 255, 0.16), transparent 55%),
    linear-gradient(160deg, #121833, #070a16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.babees-cam-slot {
  display: grid;
  place-items: center;
  color: rgba(180, 190, 230, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
}

.babees-cam-tile { cursor: pointer; transition: transform 0.25s var(--bb-ease), box-shadow 0.25s, border-color 0.25s; }
.babees-cam-tile:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); }
.babees-cam-tile.is-listening { border-color: rgba(61, 220, 151, 0.65); box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.25); }

.babees-cam-expand {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(4, 6, 16, 0.72);
  color: #fff;
  cursor: pointer;
}

.babees-cam-expand .bb-i { width: 13px; height: 13px; }

.babees-cam-tile video,
.babees-cam-tile iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
  background: #05070f;
}

.babees-cam-tile.is-me video { transform: scaleX(-1); }
.babees-cam-tile.is-me.is-screen video,
.babees-cam-tile.is-screen video { transform: none !important; }

.babees-cam-screen-badge {
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #0a1020;
  background: linear-gradient(135deg, #ffd166, #ffe9a8);
  pointer-events: none;
}

.babees-cams-a .babees-cam-tile { border-color: rgba(255, 107, 138, 0.55); box-shadow: 0 0 0 1px rgba(255, 107, 138, 0.15); }
.babees-cams-b .babees-cam-tile { border-color: rgba(106, 166, 255, 0.55); box-shadow: 0 0 0 1px rgba(106, 166, 255, 0.15); }

.babees-cam-name {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 9px 7px;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(to top, rgba(4, 6, 16, 0.95), transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.babees-cam-flags {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.babees-cam-flag {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(4, 6, 16, 0.78);
  color: #ffb3c2;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.babees-cam-flag.is-on { color: #8ff0c2; border-color: rgba(61, 220, 151, 0.45); }
.babees-cam-flag .bb-i { width: 11px; height: 11px; }

.babees-cam-slot {
  display: grid;
  place-items: center;
  color: rgba(190, 200, 230, 0.4);
  font-size: 0.62rem;
  font-weight: 800;
  border-style: dashed;
}

.babees-app.is-question .babees-rail-cams,
.babees-app.is-question .babees-rail-tools {
  opacity: 0.22;
  filter: blur(1px);
  pointer-events: none;
}

.babees-rail-tools .babees-rail-chat .babees-chat-log {
  max-height: 100px;
}

.babees-cam-tile.is-waiting::before {
  content: "بانتظار الكاميرا";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 900;
  color: rgba(230, 235, 255, 0.7);
  background: rgba(6, 9, 20, 0.35);
  text-align: center;
  padding: 6px;
}

.babees-live-bar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.28);
  font-size: 0.68rem;
  font-weight: 900;
  color: #c8ffe4;
}

.babees-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bb-ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55);
  animation: babees-live 1.8s infinite;
}

@keyframes babees-live {
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.babees-live-actions { display: flex; gap: 6px; }

.babees-arena-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 12px;
}

.babees-compete-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 28, 0.65);
  border: 1px solid rgba(190, 200, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.babees-turn-pill {
  flex: 1;
  min-width: 140px;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.babees-app[data-turn="team_a"] .babees-turn-pill {
  background: color-mix(in srgb, var(--bb-a) 22%, transparent);
  border-color: color-mix(in srgb, var(--bb-a) 50%, transparent);
  color: #fff;
}

.babees-app[data-turn="team_b"] .babees-turn-pill {
  background: color-mix(in srgb, var(--bb-b) 22%, transparent);
  border-color: color-mix(in srgb, var(--bb-b) 50%, transparent);
  color: #fff;
}

.babees-end-btn { padding: 9px 14px; font-size: 0.78rem; border-radius: 14px; }

.babees-board-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(7, 10, 24, 0.55);
  border: 1px solid rgba(200, 210, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  overflow: auto;
}

.babees-board-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  pointer-events: none;
  border: 1px solid rgba(255, 209, 102, 0.08);
}

.babees-app.is-compete .babees-board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  min-height: 420px;
  align-content: stretch;
}

.babees-app.is-compete .babees-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  height: 100%;
  padding: 12px 10px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cat-accent) 18%, rgba(28, 36, 78, 0.75)), rgba(10, 14, 32, 0.92));
  border: 1px solid color-mix(in srgb, var(--cat-accent) 35%, rgba(170, 185, 255, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.babees-app.is-compete .babees-col.has-image {
  background: linear-gradient(180deg, rgba(10, 14, 32, 0.35), rgba(8, 10, 22, 0.9));
}

.babees-app.is-compete .babees-col-style {
  align-self: center;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.28);
  color: #ffe7a8;
}

.babees-app.is-compete .babees-col h4 {
  margin: 0 0 4px;
  font-size: clamp(0.78rem, 1.15vw, 1rem);
  line-height: 1.35;
  font-weight: 900;
  color: #fff;
  text-wrap: balance;
}

.babees-app.is-compete .babees-q-btn {
  flex: 1;
  min-height: 64px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 16px;
  font-family: "Outfit", var(--bb-font);
  letter-spacing: 0.02em;
  color: #fff8e0;
  border: 1px solid rgba(255, 209, 102, 0.38);
  background:
    linear-gradient(165deg, rgba(255, 209, 102, 0.24), rgba(40, 55, 120, 0.35));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.babees-q-tier {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.75;
  font-family: var(--bb-font);
}

.babees-q-pts {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
}

.babees-q-slot {
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.45;
  font-family: var(--bb-font);
}

.babees-app.is-compete .babees-q-btn.pts-300 {
  border-color: rgba(106, 166, 255, 0.45);
  background: linear-gradient(165deg, rgba(106, 166, 255, 0.28), rgba(20, 30, 70, 0.55));
  color: #e8f2ff;
}

.babees-app.is-compete .babees-q-btn.pts-600 {
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(165deg, rgba(255, 209, 102, 0.3), rgba(40, 35, 20, 0.55));
  color: #fff6d6;
}

.babees-app.is-compete .babees-q-btn.pts-900 {
  border-color: rgba(255, 107, 138, 0.5);
  background: linear-gradient(165deg, rgba(255, 107, 138, 0.28), rgba(50, 20, 40, 0.55));
  color: #ffe4ea;
}

.babees-app.is-compete .babees-q-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
}

.babees-app.is-compete .babees-q-btn.is-done,
.babees-app.is-compete .babees-q-btn:disabled {
  opacity: 0.26;
  color: #9aa3c7;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  transform: none;
  filter: none;
}

.babees-score-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.babees-rail-tools .babees-score {
  position: relative;
  padding: 14px 10px 12px;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  background: rgba(4, 7, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.babees-rail-tools .babees-score em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 2px;
}

.babees-rail-tools .babees-score span {
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.babees-rail-tools .babees-score strong {
  display: block;
  font-family: "Outfit", var(--bb-font);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.babees-rail-tools .babees-score-a {
  border-color: rgba(255, 107, 138, 0.4);
  background: linear-gradient(180deg, rgba(255, 107, 138, 0.18), rgba(4, 7, 18, 0.55));
}
.babees-rail-tools .babees-score-a span,
.babees-rail-tools .babees-score-a em { color: #ffd0d9; }

.babees-rail-tools .babees-score-b {
  border-color: rgba(106, 166, 255, 0.4);
  background: linear-gradient(180deg, rgba(106, 166, 255, 0.18), rgba(4, 7, 18, 0.55));
}
.babees-rail-tools .babees-score-b span,
.babees-rail-tools .babees-score-b em { color: #d4e6ff; }

.babees-tools-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.babees-tools-panel .babees-tool {
  width: 100%;
  min-height: 58px;
  padding: 9px 6px;
  font-size: 0.7rem;
  font-weight: 900;
  flex-direction: column;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.babees-tools-panel .babees-tool.is-turn:not(:disabled) {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.12);
}

.babees-tools-panel .babees-tool.is-active {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.28), rgba(91, 140, 255, 0.22));
  border-color: rgba(255, 230, 150, 0.65);
  color: #fff;
}

.babees-tools-panel .babees-tool.is-used,
.babees-tools-panel .babees-tool:disabled {
  opacity: 0.34;
  filter: grayscale(0.7);
}

.babees-tools-hint {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--bb-dim);
  font-weight: 700;
  text-align: center;
}


/* ---- Tablet / mid layout ---- */
@media (max-width: 1100px) and (min-width: 761px) {
  .babees-arena {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(48vh, 1fr) auto;
    overflow: auto;
    gap: 10px;
  }
  .babees-rail-cams { order: 1; }
  .babees-arena-main { order: 2; min-height: 48vh; }
  .babees-rail-tools { order: 3; }
  .babees-cam-zone { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; }
  .babees-cams { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .babees-app.is-compete .babees-board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    min-height: 0;
  }
  .babees-app.is-compete .babees-col { height: auto; }
  .babees-app.is-compete .babees-q-btn { flex: none; min-height: 58px; }
  .babees-rail-chat { display: none; }
}

/* ---- Phone compete: single scroll, no crushed tiles ---- */
@media (max-width: 760px) {
  .babees-app.is-compete {
    padding: 0 !important;
    max-width: none;
  }

  .babees-app.is-compete .babees-compete {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .babees-app.is-compete .babees-arena {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
    gap: 10px;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .babees-app.is-compete .babees-rail {
    overflow: visible !important;
    max-height: none !important;
    flex: none;
    padding: 10px;
    border-radius: 18px;
    gap: 8px;
  }

  .babees-app.is-compete .babees-rail-cams { order: 1; }
  .babees-app.is-compete .babees-arena-main { order: 2; flex: none; min-height: 0 !important; gap: 8px; }
  .babees-app.is-compete .babees-rail-tools { order: 3; }

  .babees-app.is-compete .babees-cam-note { display: none; }

  .babees-app.is-compete .babees-cam-zone {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: none !important;
    min-height: 0 !important;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .babees-app.is-compete .babees-cams-block {
    flex: 0 0 auto;
    width: min(48vw, 190px);
  }

  .babees-app.is-compete .babees-cams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 6px;
  }

  .babees-app.is-compete .babees-cam-tile,
  .babees-app.is-compete .babees-cam-slot {
    aspect-ratio: 4 / 3;
    min-height: 64px;
    border-radius: 12px;
  }

  .babees-app.is-compete .babees-cam-tile.is-waiting::before {
    font-size: 0.62rem;
  }

  .babees-app.is-compete .babees-rail-roster {
    max-height: 88px;
    overflow: auto;
    margin-top: 4px;
  }

  .babees-app.is-compete .babees-compete-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .babees-app.is-compete .babees-room-code {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 1.2rem;
    letter-spacing: 0.28em;
  }

  .babees-app.is-compete .babees-turn-pill {
    min-width: 0;
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .babees-app.is-compete .babees-end-btn {
    padding: 8px 12px;
    min-height: 44px;
  }
  .babees-app.is-compete .babees-end-btn span { display: none; }

  .babees-app.is-compete .babees-board-shell {
    flex: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 10px;
    border-radius: 18px;
  }

  .babees-app.is-compete .babees-board-swipe-hint {
    display: block;
  }

  .babees-app.is-compete .babees-board-shell::before { display: none; }

  /* Horizontal category strip — no overlapping tiles */
  .babees-app.is-compete .babees-board-grid {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .babees-app.is-compete .babees-col {
    flex: 0 0 min(78vw, 240px) !important;
    width: min(78vw, 240px);
    height: auto !important;
    min-height: 0 !important;
    scroll-snap-align: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 16px;
  }

  .babees-app.is-compete .babees-col h4 {
    font-size: 0.92rem;
    margin: 0 0 2px;
  }

  .babees-app.is-compete .babees-q-btn {
    flex: none !important;
    width: 100%;
    height: auto !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 8px 6px;
    gap: 1px;
    border-radius: 14px;
    transform: none !important;
  }

  .babees-app.is-compete .babees-q-btn:hover:not(:disabled),
  .babees-app.is-compete .babees-q-btn:active:not(:disabled) {
    transform: none !important;
  }

  .babees-app.is-compete .babees-q-pts { font-size: 1.35rem; }
  .babees-app.is-compete .babees-q-tier { font-size: 0.55rem; }
  .babees-app.is-compete .babees-q-slot { font-size: 0.55rem; }

  .babees-app.is-compete .babees-score-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .babees-app.is-compete .babees-rail-tools .babees-score {
    padding: 10px;
  }

  .babees-app.is-compete .babees-rail-tools .babees-score strong {
    font-size: 1.5rem;
  }

  .babees-app.is-compete .babees-rail-chat { display: none; }
}

/* ---------- Camera spotlight ---------- */
.babees-camzoom {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 5, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.babees-camzoom-inner {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--bb-line-lit);
  background: #05070f;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}

.babees-camzoom-inner video,
.babees-camzoom-inner iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #05070f;
}

.babees-camzoom-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--bb-line-lit);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.babees-camzoom-close .bb-i { width: 20px; height: 20px; }

/* ---------- Host console ---------- */
.babees-cinema .babees-console {
  margin-top: 0;
}

.babees-console-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(160, 174, 255, 0.14);
  flex-wrap: wrap;
}

.babees-console-row:last-of-type { border-bottom: 0; }

.babees-console-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 118px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--bb-dim);
}

.babees-console-group { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.babees-console-group:empty::after { content: "لا وسائل متاحة"; font-size: 0.78rem; color: var(--bb-dim); }

.babees-console-verdict .babees-console-group .babees-act { flex: 1 1 150px; max-width: none; }

.babees-act.steal { background: linear-gradient(135deg, #b45309, #f59e0b); color: #241300; }

.babees-shortcuts {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: rgba(182, 190, 230, 0.72);
  text-align: center;
}

.babees-shortcuts kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Outfit", monospace;
  font-size: 0.68rem;
  color: #e6ebff;
}

@media (max-width: 640px) {
  .babees-console-label { flex: 1 1 100%; }
}

/* ---------- Timer ring ---------- */
.babees-timer {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.babees-timer-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.babees-timer-ring circle {
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.babees-timer-ring .bg { stroke: rgba(255, 255, 255, 0.12); }

.babees-timer-ring .fg {
  stroke: var(--bb-ok);
  stroke-dasharray: 119.4;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s linear, stroke 0.4s;
}

.babees-timer.is-warn .fg { stroke: var(--bb-gold); }
.babees-timer.is-danger .fg { stroke: var(--bb-bad); }
.babees-timer.is-danger { animation: babees-timer-shake 0.9s ease-in-out infinite; }

@keyframes babees-timer-shake {
  50% { transform: scale(1.07); }
}

.babees-timer-num {
  position: relative;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.babees-cv-pts {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #241300;
  background: linear-gradient(135deg, #fff0c2, #ffd166);
}

.babees-cv-team { font-size: 0.85rem; font-weight: 900; }

.babees-cv-hint {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 15px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(140, 170, 255, 0.35);
  color: #cfe0ff;
  font-weight: 800;
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- Result overlay ---------- */
.babees-result {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 25%, rgba(255, 209, 102, 0.18), transparent 55%), rgba(3, 5, 14, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.babees-result-card {
  width: min(520px, 100%);
  padding: 34px 26px;
  border-radius: 26px;
  text-align: center;
  background: var(--bb-glass-2);
  border: 1px solid var(--bb-line-lit);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  animation: babees-pop 0.5s var(--bb-ease) both;
}

@keyframes babees-pop {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.babees-result-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #241300;
  background: linear-gradient(135deg, #fff0c2, #ffd166);
  box-shadow: 0 16px 40px rgba(255, 209, 102, 0.45);
}

.babees-result-icon .bb-i { width: 34px; height: 34px; stroke-width: 1.9; }
.babees-result-card h2 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; color: #fff; }
.babees-result-card p { margin: 0 0 20px; color: var(--bb-dim); font-weight: 800; }

/* ---------- Support ---------- */
.babees-support-panel .babees-input { margin-bottom: 10px; }

.babees-board-list { display: flex; flex-direction: column; gap: 8px; }

.babees-board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bb-line);
  font-size: 0.86rem;
  font-weight: 800;
}

.babees-board-row span:last-child { margin-inline-start: auto; color: var(--bb-gold); }

.babees-board-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(140, 150, 255, 0.2);
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  color: #fff;
}

.babees-board-row.top-1 .babees-board-rank { background: linear-gradient(135deg, #fff0c2, #ffd166); color: #241300; }
.babees-board-row.top-2 .babees-board-rank { background: rgba(203, 213, 225, 0.85); color: #10131f; }
.babees-board-row.top-3 .babees-board-rank { background: rgba(217, 119, 6, 0.85); color: #1a0f00; }
.babees-board-list:empty::after { content: "كن أول الداعمين"; color: var(--bb-dim); font-size: 0.84rem; }

/* ---------- Score pop ---------- */
.babees-score strong { transition: transform 0.3s var(--bb-ease), color 0.3s; display: inline-block; }
.babees-score.is-pop strong { transform: scale(1.35); color: var(--bb-gold); }

.babees-room-code .bb-i { width: 14px; height: 14px; opacity: 0.7; }

/* ===================================================================
   v3.1 — RTL polish, camera controls, PWA, mobile
   =================================================================== */

/* ---------- Button text: never clipped, never split awkwardly ---------- */
.babees-app .babees-btn,
.babees-app .babees-act,
.babees-app .babees-tool,
.babees-app .babees-mode,
.babees-app .babees-live-btn,
.babees-app .babees-install,
.babees-app .babees-cta {
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}

.babees-app .babees-act {
  min-height: 48px;
  padding: 12px 16px;
}

.babees-app .babees-act span,
.babees-app .babees-btn span { display: inline-block; }

/* ---------- Switch: label first (Arabic reading order) ---------- */
.babees-switch { flex-direction: row; }
.babees-switch .babees-switch-label { order: -1; }

/* ---------- Wallet chip: labelled values ---------- */
.babees-wallet-chip { gap: 7px; }
.babees-chip-unit { font-size: 0.66rem; font-weight: 800; color: var(--bb-dim); }

.babees-chip-plus {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-violet));
  color: #fff;
}

.babees-chip-plus .bb-i { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- Camera setup ---------- */
.babees-stream-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

@media (min-width: 760px) {
  .babees-stream-row { grid-template-columns: minmax(0, 1fr) auto auto; }
}

.babees-stream-row .babees-input { width: 100%; flex: none; }
.babees-stream-row .babees-btn { white-space: nowrap; }

.babees-mini-check {
  justify-content: flex-start;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bb-line);
  cursor: pointer;
}

.babees-mini-check input { width: 17px; height: 17px; accent-color: #7c8cff; }

.babees-cam-preview { margin: 0 auto; width: 100%; }

.babees-cam-hints {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 84, 112, 0.1);
  border: 1px solid rgba(255, 84, 112, 0.28);
  font-size: 0.8rem;
  line-height: 1.85;
  color: #ffd7de;
}

.babees-cam-hints b { color: #fff; }
.babees-cam-hints ul { margin: 6px 0 0; padding-inline-start: 18px; }

/* ---------- Live camera controls ---------- */
.babees-live-actions { gap: 7px; flex-wrap: wrap; }

.babees-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.14);
  color: #b9f5da;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s var(--bb-ease), background 0.24s, border-color 0.24s, color 0.24s;
}

.babees-live-btn .bb-i { width: 15px; height: 15px; }
.babees-live-btn:hover { transform: translateY(-2px); }
.babees-live-btn:active { transform: scale(0.95); }
.babees-live-btn .off { display: none; }

.babees-live-btn.is-off {
  border-color: rgba(255, 84, 112, 0.45);
  background: rgba(255, 84, 112, 0.16);
  color: #ffc2ce;
}

.babees-live-btn.is-off .on { display: none; }
.babees-live-btn.is-off .off { display: inline-block; }

.babees-live-btn.neutral {
  border-color: var(--bb-line);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe2ff;
}

.babees-live-bar.is-collapsed #babees-live-hide .bb-i { transform: rotate(180deg); }

@media (max-width: 620px) {
  .babees-live-btn .lbl { display: none; }
  .babees-live-btn { padding: 9px; border-radius: 50%; }
}

/* ---------- Install (PWA) ---------- */
.babees-install {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--bb-line-lit);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.24), rgba(168, 85, 247, 0.28));
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--bb-ease), box-shadow 0.22s;
}

.babees-install .bb-i { width: 15px; height: 15px; }
.babees-install:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120, 110, 255, 0.4); }

@media (max-width: 560px) {
  .babees-install .lbl { display: none; }
  .babees-install { padding: 10px; border-radius: 50%; }
}

.babees-ios-tip {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(140, 170, 255, 0.32);
  font-size: 0.84rem;
  line-height: 1.9;
  color: #d7e3ff;
}

/* ---------- Footer credit ---------- */
.babees-credit {
  margin: 26px auto 0;
  padding: 16px 12px 4px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(182, 190, 230, 0.62);
  border-top: 1px solid rgba(160, 174, 255, 0.12);
}

.babees-credit a { color: #b9c6ff; text-decoration: none; }
.babees-credit a:hover { color: #fff; text-decoration: underline; }
.babees-credit .heart { color: var(--bb-a); }

/* ---------- Skip link + a11y ---------- */
.babees-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -64px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0a0e1a;
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: top 0.15s ease;
}
.babees-skip:focus {
  top: 12px;
  outline: 3px solid var(--bb-a, #7c8cff);
  outline-offset: 2px;
}

.babees-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.babees-app :focus-visible {
  outline: 2px solid rgba(140, 170, 255, 0.95);
  outline-offset: 3px;
}
.babees-app button:focus:not(:focus-visible),
.babees-app a:focus:not(:focus-visible),
.babees-app input:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Streamer identity card (admin-only) ---------- */
.babees-streamer {
  --creator-accent: #7c8cff;
  position: relative;
  margin: 0 0 18px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--creator-accent) 38%, rgba(255,255,255,0.1));
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in srgb, var(--creator-accent) 18%, transparent), transparent 55%),
    rgba(10, 14, 28, 0.92);
  box-shadow: 0 20px 44px rgba(4, 8, 24, 0.42);
  max-width: 100%;
  container-type: inline-size;
}

.babees-streamer-banner {
  height: clamp(72px, 18vw, 110px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: color-mix(in srgb, var(--creator-accent) 40%, #0a1020);
  position: relative;
}
.babees-streamer-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.05) 10%, rgba(8, 12, 28, 0.94) 100%);
}
.babees-streamer-banner.is-plain {
  background:
    radial-gradient(ellipse 80% 120% at 20% 0%, color-mix(in srgb, var(--creator-accent) 45%, transparent), transparent 55%),
    linear-gradient(135deg, #1a2250, #0a1020 70%);
}

.babees-streamer-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 16px 16px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.babees-streamer-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--creator-accent), rgba(255,255,255,0.55));
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  flex-shrink: 0;
}
.babees-streamer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #0c1224;
  border: 3px solid #0a1020;
}
.babees-streamer-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0c1224;
  border: 3px solid #0a1020;
}
.babees-streamer-fallback .bb-i { width: 28px; height: 28px; color: var(--creator-accent); }

.babees-streamer-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 30px;
}
.babees-streamer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.babees-streamer-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  background: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
  animation: babees-live-ping 1.8s ease-out infinite;
}
.babees-streamer-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
@keyframes babees-live-ping {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.babees-streamer-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--creator-accent) 75%, #fff);
}
.babees-streamer-name {
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 900;
  color: #f4f6ff;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.babees-streamer-handle {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(180, 195, 255, 0.78);
  font-family: Outfit, Cairo, sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.babees-streamer-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(190, 200, 240, 0.75);
}
.babees-streamer-tagline {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffe7a8;
}
.babees-streamer-bio {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(200, 210, 245, 0.72);
  overflow-wrap: anywhere;
}
.babees-streamer-link {
  margin-top: 10px;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  color: #0a1020;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--creator-accent) 45%, #fff));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--creator-accent) 28%, transparent);
  transition: transform 0.2s var(--bb-ease), box-shadow 0.2s;
}
.babees-streamer-link .bb-i { width: 16px; height: 16px; }
.babees-streamer-link:hover { transform: translateY(-2px); }

.babees-team-color-name {
  font-style: normal;
  font-weight: 900;
}

.babees-fs-btn.is-on {
  border-color: rgba(255, 209, 102, 0.45);
  color: #ffe7a8;
}

@media (max-width: 720px) {
  .babees-streamer-body {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: -34px;
  }
  .babees-streamer-photo { width: 70px; height: 70px; }
  .babees-streamer-copy { padding-top: 24px; }
}

@media (max-width: 560px) {
  .babees-streamer { border-radius: 20px; margin-bottom: 14px; }
  .babees-streamer-banner { height: 70px; }
  .babees-streamer-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 12px 14px;
    margin-top: -30px;
  }
  .babees-streamer-photo {
    width: 68px;
    height: 68px;
    margin-inline-start: 2px;
    flex: 0 0 auto;
  }
  .babees-streamer-copy { padding-top: 0; }
  .babees-streamer-name { font-size: 1.18rem; }
  .babees-streamer-link { width: 100%; margin-top: 8px; }
  .babees-streamer-bio {
    font-size: 0.76rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.babees-cinema-cam {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.babees-cinema-cam-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: min(280px, 70vw);
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 10, 22, 0.96);
  border: 1px solid rgba(160, 174, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.babees-cinema-cam-panel[hidden] { display: none !important; }
.babees-cinema-cam-panel .babees-input { flex: 1 1 120px; min-width: 0; font-size: 0.8rem; }

/* Question veil — hidden until timer starts */
.babees-q-veil {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, color-mix(in srgb, var(--bb-a) 18%, transparent), transparent 60%),
    rgba(4, 6, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.babees-q-veil[hidden] { display: none !important; }
.babees-q-veil-inner {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  max-width: 360px;
}
.babees-q-veil-inner strong { font-size: 1.35rem; font-weight: 900; color: #fff; }
.babees-q-veil-inner span {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(210, 218, 255, 0.75);
  line-height: 1.5;
}
.babees-cinema.is-q-hidden .babees-cinema-media,
.babees-cinema.is-q-hidden .babees-cinema-q,
.babees-cinema.is-q-hidden .babees-cv-solve { visibility: hidden !important; }
.babees-tool.is-used { opacity: 0.45; pointer-events: none; }

.babees-cam-switcher {
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 14, 32, 0.75);
  border: 1px solid rgba(160, 174, 255, 0.22);
}
.babees-cam-switcher[hidden] { display: none !important; }
.babees-cam-switcher-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(210, 218, 255, 0.8);
  margin-bottom: 8px;
}
.babees-cam-switcher-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.babees-cam-switcher-row .babees-input { flex: 1 1 140px; min-width: 0; }
.babees-cam-switcher-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(170, 180, 220, 0.6);
}

.babees-cliq-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.1), rgba(91, 140, 255, 0.08));
  border: 1px solid rgba(61, 220, 151, 0.28);
}
.babees-cliq-box[hidden] { display: none !important; }
.babees-cliq-box h6 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 900;
  color: #d8ffe9;
}
.babees-cliq-meta {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(200, 230, 215, 0.8);
}
.babees-cliq-pending { display: grid; gap: 8px; margin-top: 10px; }
.babees-cliq-ref {
  display: block;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffd166;
  direction: ltr;
}

.babees-app[data-turn="team_a"] .babees-compete-bar,
.babees-app.is-question[data-answer-team="team_a"] .babees-cinema-head {
  background: linear-gradient(90deg, color-mix(in srgb, var(--bb-a) 22%, transparent), transparent 70%);
}
.babees-app[data-turn="team_b"] .babees-compete-bar,
.babees-app.is-question[data-answer-team="team_b"] .babees-cinema-head {
  background: linear-gradient(90deg, color-mix(in srgb, var(--bb-b) 22%, transparent), transparent 70%);
}
.babees-app[data-turn="team_a"] .babees-score-a strong,
.babees-app.is-question[data-answer-team="team_a"] .babees-cv-pts {
  color: var(--bb-a);
  text-shadow: 0 0 18px color-mix(in srgb, var(--bb-a) 55%, transparent);
}
.babees-app[data-turn="team_b"] .babees-score-b strong,
.babees-app.is-question[data-answer-team="team_b"] .babees-cv-pts {
  color: var(--bb-b);
  text-shadow: 0 0 18px color-mix(in srgb, var(--bb-b) 55%, transparent);
}

/* Answer reveal stage */
.babees-answer-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 209, 102, 0.18), transparent 55%),
    rgba(4, 6, 16, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.babees-answer-stage[hidden] { display: none !important; }
.babees-answer-stage-inner {
  width: min(640px, 100%);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.babees-answer-eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffd166;
}
.babees-answer-stage-text {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
  text-wrap: balance;
}
.babees-answer-countdown {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(210, 218, 255, 0.7);
}
.babees-answer-countdown strong {
  color: #ffd166;
  font-size: 1.1rem;
}
.babees-cinema.is-reveal .babees-cinema-stage > :not(.babees-answer-stage),
.babees-cinema.is-reveal .babees-console,
.babees-cinema.is-reveal .babees-cinema-head {
  visibility: hidden;
  pointer-events: none;
}
.babees-cinema.is-reveal .babees-answer-stage { visibility: visible; pointer-events: auto; }

.babees-cinema-inner { position: relative; }

.babees-app.is-review .babees-console-verdict,
.babees-app.is-review #babees-timer-toggle,
.babees-app.is-review #babees-timer-reset,
.babees-app.is-review #babees-timer-add,
.babees-app.is-review #babees-award-steal,
.babees-app.is-review #babees-cv-tools,
.babees-cinema.is-review-q .babees-console {
  display: none !important;
}
.babees-app.is-review .babees-end-btn {
  opacity: 0.45;
  pointer-events: none;
}
.babees-app.is-review .babees-q-btn:not(.is-done) {
  opacity: 0.35;
  pointer-events: none;
}
/* Steal / half-points phase */
.babees-steal-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #ffe7b0;
  animation: babees-steal-pulse 1.6s ease-in-out infinite;
}
.babees-steal-banner strong { font-size: 0.95rem; font-weight: 900; color: #fff; }
.babees-steal-banner span { font-size: 0.78rem; font-weight: 700; }
.babees-cinema.is-steal .babees-cinema-inner {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 40px 90px rgba(0,0,0,0.55);
}
@keyframes babees-steal-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.babees-cv-solve {
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180, 190, 255, 0.14);
}
.babees-solve-label {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(200, 210, 255, 0.7);
}
.babees-solve-hint {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(210, 218, 255, 0.78);
}
.babees-fill-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}
.babees-fill-slots i {
  width: 22px;
  height: 28px;
  border-radius: 6px;
  border-bottom: 3px solid rgba(255, 209, 102, 0.75);
  background: rgba(255,255,255,0.06);
}
.babees-q-figure.is-spot figcaption { color: #ffd166; }

@media (max-width: 560px) {
  .babees-streamer-body {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .babees-streamer-link {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
  .babees-streamer-bio { -webkit-line-clamp: 2; }
  .babees-console-verdict .babees-console-group { flex-direction: column; }
  .babees-console-verdict .babees-act { width: 100%; }
}
/* ---------- Player profile card ---------- */
.babees-player-card {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(14, 18, 36, 0.55);
  border: 1px solid rgba(150, 168, 255, 0.16);
  overflow: hidden;
  max-width: 100%;
}

.babees-player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.babees-player-heading {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 900;
  color: rgba(190, 200, 240, 0.72);
}

.babees-account-btn {
  min-height: 36px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  flex-shrink: 0;
}

.babees-player-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.babees-avatar {
  position: relative;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 56px;
  overflow: visible;
  display: block;
  margin: 0;
  align-self: center;
}

.babees-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ea2ff, #5b8cff 40%, #c4b5ff);
  pointer-events: none;
}

.babees-avatar-img,
.babees-avatar-ph {
  position: absolute !important;
  inset: 3px !important;
  width: calc(100% - 6px) !important;
  height: calc(100% - 6px) !important;
  max-width: none !important;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1020;
  display: grid;
  place-items: center;
  z-index: 1;
}

.babees-avatar-ph .bb-i { width: 22px; height: 22px; color: #9aacff; }

.babees-avatar-edit {
  position: absolute;
  inset-inline-end: -2px;
  bottom: -2px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a2450;
  border: 2px solid rgba(180, 195, 255, 0.45);
  color: #dce4ff;
  pointer-events: none;
}
.babees-avatar-edit .bb-i { width: 12px; height: 12px; }

.babees-player-name-field {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.babees-player-name-field .babees-input {
  width: 100%;
  min-width: 0;
}
.babees-player-hint {
  margin: 8px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(170, 180, 220, 0.55);
}

/* Auth modal */
.babees-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: end center;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(10px);
}
.babees-auth-modal[hidden] { display: none !important; }
.babees-auth-sheet {
  width: min(440px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #12172e, #090c18 70%);
  border: 1px solid rgba(160, 174, 255, 0.28);
  border-bottom: none;
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .babees-auth-modal { place-items: center; padding: 24px; }
  .babees-auth-sheet { border-radius: 22px; border-bottom: 1px solid rgba(160, 174, 255, 0.28); }
}
.babees-auth-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.babees-auth-mode {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(160, 174, 255, 0.22);
  background: rgba(255,255,255,0.04);
  color: #dfe6ff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.babees-auth-mode.is-active {
  border-color: rgba(255, 209, 102, 0.55);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(91, 140, 255, 0.14));
}
.babees-auth .babees-input { margin-bottom: 8px; }

/* CliQ verify face */
.babees-cliq-verify {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(140, 170, 255, 0.28);
}
.babees-cliq-verify[hidden],
.babees-cliq-done[hidden] { display: none !important; }
.babees-cliq-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #ffd166;
  animation: babees-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes babees-spin { to { transform: rotate(360deg); } }
.babees-cliq-verify-copy {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 800;
}
.babees-cliq-verify-copy span { color: rgba(200, 210, 245, 0.72); font-size: 0.75rem; font-weight: 700; }
.babees-cliq-done {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.35);
  display: grid;
  gap: 8px;
  text-align: center;
}
.babees-cliq-done p { margin: 0; font-size: 0.8rem; font-weight: 700; color: rgba(200, 255, 230, 0.85); }

@media (max-width: 560px) {
  .babees-hero { margin-bottom: 14px; }
  .babees-hero-lead { font-size: 0.88rem; line-height: 1.55; }
  .babees-player-hint { display: none; }
  .babees-player-row {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .babees-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex-basis: 48px;
  }
  .babees-app { padding-left: 10px; padding-right: 10px; }
  .babees-topbar { padding: 8px 10px; margin-bottom: 10px; border-radius: 18px; }
  .babees-stream-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .babees-mode { min-height: 48px; justify-content: center; }
  .babees-stream-row { flex-wrap: wrap; }
  .babees-team-row { gap: 10px; }
  .babees-field { min-width: 0; }
}
/* ---------- Unlimited badge ---------- */
.babees-infinite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #05231a;
  background: linear-gradient(135deg, #3ddc97, #7ef0c0);
}

/* ---------- Empty states ---------- */
.babees-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 26px 16px;
  text-align: center;
  color: var(--bb-dim);
  font-size: 0.84rem;
  font-weight: 800;
}

.babees-empty .bb-i { width: 26px; height: 26px; opacity: 0.55; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 720px) {
  .babees-hero-title { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .babees-team-row { gap: 10px; }
  .babees-wallet-cols { gap: 12px; }
  .babees-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .babees-pack { padding: 16px 12px; }
  .babees-pack-credits { font-size: 1.6rem; }
  .babees-topup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .babees-console-group .babees-act { flex: 1 1 100%; }
  .babees-join-row { grid-template-columns: 1fr; }
  .babees-shortcuts { display: none; }

  .babees-cat-grid { gap: 8px; }
  .babees-cat-card {
    aspect-ratio: 5 / 4;
    border-radius: 16px;
    min-height: 0;
  }
  .babees-cat-name { font-size: 0.86rem; }
  .babees-cat-desc { display: none; }
  .babees-view[data-view="play"] { padding-bottom: 4px; }
}

@media (max-width: 400px) {
  .babees-pack-grid { grid-template-columns: 1fr; }
}

/* Comfortable tap targets everywhere on touch devices */
@media (pointer: coarse) {
  .babees-app button:not(.babees-q-btn):not(.babees-icon-btn) { min-height: 44px; }
  .babees-app .babees-cta { min-height: 52px; }
  .babees-app .babees-cam-tile,
  .babees-app .babees-icon-btn.sm { min-height: 0; }
}

/* ---------- Camera recovery actions ---------- */
.babees-hint-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.babees-btn.sm {
  padding: 8px 14px;
  font-size: 0.76rem;
  border-radius: 12px;
}

/* ---------- Team leader ---------- */
.babees-crown {
  font-size: 0.9em;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255, 196, 74, 0.5));
}

.babees-player.is-leader {
  background: linear-gradient(135deg, rgba(255, 196, 74, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 196, 74, 0.45);
  color: #ffe9bd;
}

.babees-make-leader {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--bb-dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--bb-line);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.babees-make-leader:hover {
  color: #fff;
  background: rgba(255, 196, 74, 0.18);
  border-color: rgba(255, 196, 74, 0.45);
}

.babees-leader-gate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.7;
  color: #ffe1e8;
  background: rgba(255, 84, 112, 0.1);
  border: 1px solid rgba(255, 84, 112, 0.26);
}

.babees-leader-gate.is-me {
  color: #d9ffe9;
  background: rgba(58, 214, 148, 0.1);
  border-color: rgba(58, 214, 148, 0.3);
}

.babees-leader-gate b { color: #fff; }

.babees-console-verdict .babees-act:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

[hidden] { display: none !important; }

/* ---- In-page pay modal ---- */
.babees-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: end center;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.babees-pay-modal[hidden] { display: none !important; }
.babees-pay-sheet {
  width: min(520px, 100%);
  max-height: min(92dvh, 920px);
  overflow: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #12172e, #090c18 70%);
  border: 1px solid rgba(160, 174, 255, 0.28);
  border-bottom: none;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .babees-pay-modal { place-items: center; padding: 24px; }
  .babees-pay-sheet {
    border-radius: 22px;
    border: 1px solid rgba(160, 174, 255, 0.28);
    max-height: 85vh;
  }
}
.babees-pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.babees-pay-head h3 { margin: 0; font-size: 1.2rem; font-weight: 900; }
.babees-pay-head p { margin: 4px 0 0; font-size: 0.8rem; color: var(--bb-dim); }
.babees-pay-amount label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bb-dim);
  margin-bottom: 6px;
}
.babees-pay-gateways {
  display: grid;
  gap: 8px;
}
button.babees-pay-gw {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: start;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(160, 174, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: #dfe6ff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
button.babees-pay-gw:active { transform: scale(0.985); }
button.babees-pay-gw.is-active {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(91, 140, 255, 0.16));
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.15);
}
.babees-pay-gw-title {
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.3;
}
.babees-pay-gw-desc {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(200, 210, 245, 0.72);
  line-height: 1.45;
}
.babees-pay-steps {
  margin: 0 0 12px;
  padding-inline-start: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(210, 218, 255, 0.82);
  line-height: 1.7;
}
.babees-pay-clickhere {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe6a8;
  font-weight: 900;
  font-size: 0.92rem;
  text-decoration: none;
}
.babees-pay-clickhere[hidden] { display: none !important; }
.babees-pay-msg { margin: 0; font-size: 0.84rem; font-weight: 800; padding: 10px 12px; border-radius: 12px; }
.babees-pay-msg.is-ok { background: rgba(61, 220, 151, 0.12); color: #b8ffd9; }
.babees-pay-msg.is-bad { background: rgba(255, 84, 112, 0.12); color: #ffc0cb; }
body.babees-pay-open { overflow: hidden; }
.babees-pay-methods-list {
  margin: 0;
  padding-inline-start: 18px;
  line-height: 1.8;
  font-weight: 700;
  color: rgba(210, 218, 255, 0.85);
}

.babees-prices-page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  color: var(--bb-text, #f7f8ff);
  font-family: var(--bb-font, Cairo, sans-serif);
}
.babees-prices-hero { text-align: center; margin-bottom: 28px; }
.babees-prices-hero h1 {
  margin: 10px 0;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 900;
}
.babees-prices-hero p { color: rgba(200, 210, 245, 0.78); font-weight: 700; }
.babees-prices-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.babees-prices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .babees-prices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .babees-prices-grid { grid-template-columns: repeat(3, 1fr); } }
.babees-prices-pay {
  padding: 18px;
  border-radius: 20px;
  background: rgba(14, 18, 36, 0.7);
  border: 1px solid rgba(160, 174, 255, 0.2);
}
.babees-prices-pay h2 { margin: 0 0 10px; font-size: 1.15rem; }
.babees-prices-pay ul { margin: 0; padding-inline-start: 18px; line-height: 1.8; font-weight: 700; color: rgba(210, 218, 255, 0.85); }

.babees-legal-page, .babees-legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: #e8ecff;
  font-family: Cairo, sans-serif;
  line-height: 1.85;
}
.babees-legal-doc h2 { font-size: 1.7rem; margin: 0 0 12px; }
.babees-legal-doc h3 { font-size: 1.1rem; margin: 22px 0 8px; color: #ffd166; }
.babees-legal-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  color: #c8d2ff;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid rgba(140, 170, 255, 0.3);
}

@media (max-width: 720px) {
  .babees-pay-sheet { padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
  button.babees-pay-gw { min-height: 58px; padding: 11px 12px; }
  .babees-cinema-head { flex-wrap: wrap; gap: 8px; }
  .babees-policies { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .babees-creator-glow { animation: none !important; }
}
