/* =====================================================================
   SechsAI — Taberna noturna
   Carregado depois de bierfest.css. Madeira, lanterna, a mesma tábua
   em header, cards, modais e páginas. Âmbar só no que se clica.
   ===================================================================== */

:root {
  --tv-ink: #f6f1e8;
  --tv-ink-dark: #1a1208;
  --tv-plank: #1a120c;
  --tv-plank-2: #2a1c14;
  --tv-brass: #e7c27a;
  --tv-amber: #ffb020;
  --tv-line: rgba(231, 194, 122, 0.38);
  --tv-frame:
    inset 0 0 0 1px rgba(231, 194, 122, 0.34),
    inset 0 1px 0 rgba(255, 220, 170, 0.16),
    0 16px 32px rgba(0, 0, 0, 0.42);
  --tv-wood:
    linear-gradient(180deg, rgba(255, 206, 140, 0.1), transparent 28%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #322216 0%, #1a120c 74%);
}

/* Sala de madeira: a tapeçaria fica, o vão deixa de ser preto */
html,
body,
body::before {
  background-color: #3a2416 !important;
  background-image:
    linear-gradient(180deg, rgba(58, 32, 16, 0.28) 0%, rgba(74, 42, 22, 0.12) 42%, rgba(42, 24, 12, 0.34) 100%),
    url("../images/mascot/hall-pattern-v7.png"),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #6a4228 0%, #4a2e1c 46%, #5c3820 100%) !important;
  background-repeat: no-repeat, repeat-y, repeat, no-repeat !important;
  background-size: auto, 100vw auto, 180px 110px, auto !important;
  background-position: center top, center top, center top, center top !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
}

body::before {
  z-index: -2 !important;
}

:is(body, #bf-theme) .bf-backdrop {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse 34% 26% at 10% 6%, rgba(255, 186, 70, 0.38), transparent 70%),
    radial-gradient(ellipse 30% 22% at 90% 10%, rgba(255, 140, 48, 0.28), transparent 68%),
    radial-gradient(ellipse 55% 32% at 50% 108%, rgba(196, 82, 24, 0.28), transparent 70%) !important;
  animation: tv-lantern 7.5s ease-in-out infinite;
}

:is(body, #bf-theme) .bf-backdrop::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: radial-gradient(ellipse 86% 78% at 50% 42%, transparent 58%, rgba(42, 22, 10, 0.22) 100%) !important;
}

@keyframes tv-lantern {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

/* As páginas satélite deixam a tapeçaria aparecer */
:is(body, #bf-theme) .landing-page,
:is(body, #bf-theme) .legal-page,
:is(body, #bf-theme) .affiliate-page,
:is(body, #bf-theme) .affiliate-page__shell,
:is(body, #bf-theme) .funil-page,
:is(body, #bf-theme) .funil-body,
:is(body, #bf-theme) .funil-scene {
  background: transparent !important;
  background-image: none !important;
}

/* ---------------------------------------------------------------------
   Header: viga, placas, aba acesa
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .home-top-bar.ff-topbar,
:is(body, #bf-theme) .home-top-bar,
:is(body, #bf-theme) .ff-chrome .home-top-bar.home-header-extended-bg.ff-topbar,
:is(body, #bf-theme) .secondary-header,
:is(body, #bf-theme) .funil-header {
  background-color: #24180f !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.16),
    inset 0 -2px 0 rgba(231, 194, 122, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:is(body, #bf-theme) .home-top-bar.ff-topbar::after,
:is(body, #bf-theme) .ff-topbar::after {
  height: 0 !important;
  background: none !important;
}

:is(body, #bf-theme) .home-top-tabs__scroll {
  gap: 0.35rem !important;
  padding: 0.28rem !important;
  border-radius: 8px !important;
  background: rgba(12, 8, 6, 0.55) !important;
  border: 1px solid rgba(231, 194, 122, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.08), 0 6px 14px rgba(0, 0, 0, 0.28) !important;
}

:is(body, #bf-theme) .home-top-tabs .home-tab-button,
:is(body, #bf-theme) .home-top-tabs .ir-btn {
  border-radius: 6px !important;
  border: 1px solid rgba(90, 58, 32, 0.9) !important;
  background-color: #2a1c14 !important;
  background-image: linear-gradient(180deg, rgba(255, 206, 140, 0.08), transparent 55%) !important;
  color: var(--tv-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.12) !important;
}

:is(body, #bf-theme) .home-top-tabs .home-tab-button:hover,
:is(body, #bf-theme) .home-top-tabs .ir-btn:hover {
  border-color: var(--tv-brass) !important;
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .home-top-tabs .ir-btn.home-tab-button--active,
:is(body, #bf-theme) .home-top-tabs .home-tab-button.home-tab-button--active,
:is(body, #bf-theme) .home-top-tabs .ir-btn--featured.home-tab-button--active {
  background: var(--tv-amber) !important;
  background-image: none !important;
  border-color: #b18428 !important;
  color: var(--tv-ink-dark) !important;
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.55) !important;
}

:is(body, #bf-theme) .home-top-tabs .home-tab-button--active .home-tab-module-label,
:is(body, #bf-theme) .home-top-tabs .home-tab-button--active .home-tab-module-icon,
:is(body, #bf-theme) .home-top-tabs .home-tab-button--active .material-symbols-outlined,
:is(body, #bf-theme) .home-top-tabs .ir-btn.home-tab-button--active .material-symbols-outlined,
:is(body, #bf-theme) .home-top-tabs .ir-btn.home-tab-button--active .home-tab-module-label,
:is(body, #bf-theme) .home-top-tabs .ir-btn.home-tab-button--active .home-tab-module-icon {
  color: var(--tv-ink-dark) !important;
}

:is(body, #bf-theme) .home-menu-button,
:is(body, #bf-theme) .home-coins-button,
:is(body, #bf-theme) .home-header-login-button,
:is(body, #bf-theme) .home-promo-banner,
:is(body, #bf-theme) .home-promo-banner--clock,
:is(body, #bf-theme) .ir-lang__trigger,
:is(body, #bf-theme) .ir-account__trigger,
:is(body, #bf-theme) .ir-header-icon-btn {
  background-color: #24180f !important;
  background-image: linear-gradient(180deg, rgba(255, 206, 140, 0.08), transparent 60%) !important;
  border: 1px solid rgba(231, 194, 122, 0.32) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.12) !important;
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .home-header-signup-button,
:is(body, #bf-theme) .ff-topbar .home-header-signup-button:not([hidden]) {
  background: var(--tv-amber) !important;
  color: var(--tv-ink-dark) !important;
  border: 1px solid #b18428 !important;
  border-radius: 6px !important;
  box-shadow: 0 0 14px rgba(255, 176, 32, 0.28) !important;
}

/* ---------------------------------------------------------------------
   Rodapé: balcão
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .site-footer.site-footer--hall {
  overflow: visible !important;
  background-color: #140e0a !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 0 !important;
  box-shadow: inset 0 2px 0 rgba(231, 194, 122, 0.5) !important;
}

:is(body, #bf-theme) .site-footer__beam {
  display: none;
}

:is(body, #bf-theme) .site-footer__boards {
  display: contents;
}

:is(body, #bf-theme) .site-footer--hall .site-footer__links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.15rem 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
}

:is(body, #bf-theme) .site-footer__link {
  color: #d9cbb8 !important;
}

:is(body, #bf-theme) .site-footer__link:hover {
  color: var(--tv-brass) !important;
}

:is(body, #bf-theme) .site-footer--hall .site-footer__meta {
  display: contents;
}

/* ---------------------------------------------------------------------
   Cards: lugares na mesa. A barra de hover continua no ::before/::after.
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .ff-layout .feed-card-grid > div,
:is(body, #bf-theme) .ff-layout .home-template-feed-card > div,
:is(body, #bf-theme) .home-image-card__visual-wrap,
:is(body, #bf-theme) .feed-card-grid > div,
:is(body, #bf-theme) .home-template-feed-card > div {
  border: 3px solid #4a301c !important;
  border-radius: 6px !important;
  background-color: #120e0b !important;
  box-shadow:
    inset 0 0 0 1px rgba(231, 194, 122, 0.55),
    0 16px 28px rgba(0, 0, 0, 0.45) !important;
}

:is(body, #bf-theme) .feed-card-grid:hover > div,
:is(body, #bf-theme) .home-template-feed-card:hover > div,
:is(body, #bf-theme) .ff-layout .home-template-feed-card.feed-card-grid:hover > div,
:is(body, #bf-theme) .home-image-card:hover .home-image-card__visual-wrap {
  border-color: #8a6234 !important;
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 32, 0.8),
    0 0 18px rgba(255, 176, 32, 0.2),
    0 22px 40px rgba(0, 0, 0, 0.5) !important;
}

:is(body, #bf-theme) .feed-card-grid .home-feed-heat-slot,
:is(body, #bf-theme) .home-image-card__heat-slot {
  top: 0.45rem !important;
  right: 0.45rem !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 14 !important;
}

:is(body, #bf-theme) .ff-genbar__inner,
:is(body, #bf-theme) .home-tool-step,
:is(body, #bf-theme) .home-porn-step,
:is(body, #bf-theme) .home-body-step,
:is(body, #bf-theme) .home-movies-step,
:is(body, #bf-theme) .home-shorts-panel,
:is(body, #bf-theme) .home-porn-section,
:is(body, #bf-theme) .home-movies-section,
:is(body, #bf-theme) .home-grtkniv-panel,
:is(body, #bf-theme) .home-undress-panel,
:is(body, #bf-theme) .home-shorts-controls,
:is(body, #bf-theme) .home-photo-modes,
:is(body, #bf-theme) .home-undress-wait__card {
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .ff-genbar.has-selection .ff-genbar__inner {
  border-color: var(--tv-brass) !important;
}

:is(body, #bf-theme) .home-porn-card,
:is(body, #bf-theme) .home-movies-card,
:is(body, #bf-theme) .home-shorts-card,
:is(body, #bf-theme) .funil-card,
:is(body, #bf-theme) .funil-summary-card {
  background-color: #140e0a !important;
  background-image: linear-gradient(180deg, rgba(255, 206, 140, 0.06), transparent 40%) !important;
  border: 1px solid rgba(231, 194, 122, 0.28) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 0 0 1px rgba(231, 194, 122, 0.12) !important;
}

/* ---------------------------------------------------------------------
   Modais: cardápio sobre a mesa
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .login-modal-panel,
:is(body, #bf-theme) .image-choose-modal__sheet,
:is(body, #bf-theme) .home-photo-guide-sheet,
:is(body, #bf-theme) .recharge-modal__panel,
:is(body, #bf-theme) .recharge-modal__sheet,
:is(body, #bf-theme) .recharge-modal-sheet,
:is(body, #bf-theme) .language-modal__panel,
:is(body, #bf-theme) .feedback-modal__panel,
:is(body, #bf-theme) .wallet-statement__panel,
:is(body, #bf-theme) #recharge-modal .recharge-modal-sheet,
:is(body, #bf-theme) #menu-drawer .home-menu-drawer,
:is(body, #bf-theme) #style-picker-modal .style-picker-modal__sheet,
:is(body, #bf-theme) #model-picker-modal .model-picker-modal__sheet {
  position: relative;
  color: var(--tv-ink) !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .ir-lang__menu,
:is(body, #bf-theme) .ir-account__menu {
  position: absolute !important;
  color: var(--tv-ink) !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .login-modal-panel::before,
:is(body, #bf-theme) .recharge-modal-sheet::before,
:is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::before,
:is(body, #bf-theme) .age-gate-card--ir::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 3 !important;
  top: 0.55rem !important;
  left: 0.55rem !important;
  width: 0.9rem !important;
  height: 0.9rem !important;
  background: none !important;
  border-top: 2px solid var(--tv-brass) !important;
  border-left: 2px solid var(--tv-brass) !important;
  pointer-events: none !important;
}

:is(body, #bf-theme) .login-modal-panel::after,
:is(body, #bf-theme) .recharge-modal-sheet::after,
:is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 3 !important;
  right: 0.55rem !important;
  bottom: 0.55rem !important;
  width: 0.9rem !important;
  height: 0.9rem !important;
  background: none !important;
  border-right: 2px solid var(--tv-brass) !important;
  border-bottom: 2px solid var(--tv-brass) !important;
  pointer-events: none !important;
}

:is(body, #bf-theme) .recharge-package,
:is(body, #bf-theme) .recharge-package-tile,
:is(body, #bf-theme) .recharge-method-option,
:is(body, #bf-theme) .home-menu-coins-card,
:is(body, #bf-theme) .home-menu-account-card,
:is(body, #bf-theme) .language-option,
:is(body, #bf-theme) .home-photo-guide-step,
:is(body, #bf-theme) .wallet-statement-card {
  background-color: rgba(12, 8, 6, 0.55) !important;
  background-image: linear-gradient(180deg, rgba(255, 206, 140, 0.06), transparent 50%) !important;
  border: 1px solid rgba(231, 194, 122, 0.28) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.08) !important;
}

:is(body, #bf-theme) .recharge-package.is-selected,
:is(body, #bf-theme) .recharge-package-tile.is-selected,
:is(body, #bf-theme) .recharge-method-option.is-active,
:is(body, #bf-theme) .language-option.is-selected {
  border-color: var(--tv-amber) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 32, 0.45),
    0 0 16px rgba(255, 176, 32, 0.16) !important;
}

:is(body, #bf-theme) .age-gate-modal {
  background: #07060a !important;
}

:is(body, #bf-theme) .age-gate-panel {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  justify-content: center !important;
  padding:
    calc(0.7rem + env(safe-area-inset-top, 0px))
    clamp(0.8rem, 3vw, 1.4rem)
    calc(0.7rem + env(safe-area-inset-bottom, 0px)) !important;
}

:is(body, #bf-theme) .age-gate-fx,
:is(body, #bf-theme) .age-gate-fx--video {
  background: transparent !important;
}

:is(body, #bf-theme) .age-gate-fx--video::after {
  background:
    radial-gradient(ellipse 52% 46% at 50% 42%, rgba(7, 6, 10, 0.22), rgba(7, 6, 10, 0.46) 62%, rgba(7, 6, 10, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.28), rgba(7, 6, 10, 0.18) 40%, rgba(7, 6, 10, 0.42) 100%) !important;
}

:is(body, #bf-theme) .age-gate-card,
:is(body, #bf-theme) .age-gate-card--ir,
:is(body, #bf-theme) .age-gate-card--minimal {
  width: min(100%, 26rem) !important;
  max-height: none !important;
  padding: 0.85rem 1.05rem 0.95rem !important;
  background: rgba(18, 12, 8, 0.62) !important;
  background-image: none !important;
  border: 1px solid rgba(231, 194, 122, 0.32) !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 0 0 1px rgba(231, 194, 122, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

:is(body, #bf-theme) .age-gate-card--ir::before {
  top: 0.4rem !important;
  left: 0.4rem !important;
  width: 0.7rem !important;
  height: 0.7rem !important;
}

:is(body, #bf-theme) .bf-mascot--gate {
  width: min(6.4rem, 28vw) !important;
  margin-bottom: 0.15rem !important;
}

:is(body, #bf-theme) .age-gate-brand {
  margin-bottom: 0.35rem !important;
}

:is(body, #bf-theme) .age-gate-brand .site-brand-logo__word {
  font-size: 1.35rem !important;
}

:is(body, #bf-theme) .age-gate-title {
  margin-bottom: 0.4rem !important;
  font-size: clamp(1.15rem, 3vw, 1.45rem) !important;
}

:is(body, #bf-theme) .age-gate-lead {
  margin-bottom: 0.5rem !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
}

:is(body, #bf-theme) .age-gate-confirm-intro {
  margin-bottom: 0.25rem !important;
  font-size: 0.78rem !important;
}

:is(body, #bf-theme) .age-gate-bullets {
  margin-bottom: 0.7rem !important;
  gap: 0.18rem !important;
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
}

:is(body, #bf-theme) .age-gate-actions {
  gap: 0.4rem !important;
  width: min(100%, 22rem) !important;
}

:is(body, #bf-theme) .age-gate-btn {
  min-height: 2.45rem !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.78rem !important;
}

:is(body, #bf-theme) .login-modal-backdrop {
  background: rgba(7, 6, 10, 0.38) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

:is(body, #bf-theme) .login-modal-panel {
  max-height: min(92dvh, 38rem) !important;
  overflow: hidden !important;
  padding: 1.25rem 1.25rem 1.1rem !important;
}

:is(body, #bf-theme) .login-modal.is-signup .login-modal-panel {
  overflow: hidden !important;
}

/* ---------------------------------------------------------------------
   Sobre, afiliados, portal, legal, funil
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .landing-page__main h1,
:is(body, #bf-theme) .legal-page__content h1,
:is(body, #bf-theme) .affiliate-page .aff-hero h1,
:is(body, #bf-theme) .aff-portal__hero h1,
:is(body, #bf-theme) .funil-step__title {
  font-weight: 560 !important;
  letter-spacing: -0.03em !important;
}

:is(body, #bf-theme) .landing-page__hero,
:is(body, #bf-theme) .aff-hero,
:is(body, #bf-theme) .landing-page__faq details,
:is(body, #bf-theme) .landing-card,
:is(body, #bf-theme) .aff-card,
:is(body, #bf-theme) .aff-how-step,
:is(body, #bf-theme) .aff-portal__card,
:is(body, #bf-theme) .aff-portal__stat,
:is(body, #bf-theme) .funil-step,
:is(body, #bf-theme) .funil-summary__shell,
:is(body, #bf-theme) .legal-page__copy {
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .landing-page__hero {
  margin: 1rem 1rem 0.5rem !important;
  padding: 1.35rem 1.35rem 1.2rem !important;
}

:is(body, #bf-theme) .aff-hero {
  padding: 1.25rem !important;
}

:is(body, #bf-theme) .landing-page__faq details {
  margin-bottom: 0.7rem;
  padding: 0.15rem 0.9rem;
}

:is(body, #bf-theme) .legal-page__copy {
  background-image:
    linear-gradient(180deg, rgba(255, 236, 210, 0.05), transparent 18%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #24180f, #16110d) !important;
}

:is(body, #bf-theme) .funil-footer {
  background-color: #140e0a !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border-color: var(--tv-line) !important;
}

body.funil-body {
  --funil-orange: #e7c27a;
  --funil-orange-bright: #ffb020;
  --funil-orange-glow: rgba(255, 176, 32, 0.28);
  --funil-bg: #07060a;
  --funil-surface: rgba(26, 18, 12, 0.9);
  --funil-surface-strong: #1a120c;
  --funil-border: rgba(231, 194, 122, 0.28);
}

:is(body, #bf-theme) .funil-step__title span,
:is(body, #bf-theme) .funil-step__title em,
:is(body, #bf-theme) .funil-login-hero__accent {
  color: var(--tv-brass) !important;
}

:is(body, #bf-theme) .aff-portal__filter.is-active,
:is(body, #bf-theme) .home-feed-load-more__btn {
  background: var(--tv-amber) !important;
  color: var(--tv-ink-dark) !important;
  border: 1px solid #b18428 !important;
  border-radius: 6px !important;
}

:is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid {
  --feed-pad-l: clamp(1.4rem, 3vw, 2.2rem);
  --feed-pad-r: clamp(1.1rem, 2.4vw, 1.8rem);
}

/* Placa do desconto, pequena, no canto de baixo */
:is(body, #bf-theme) .hall-rail {
  position: fixed;
  z-index: 16;
  top: auto;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  width: 7.2rem;
  height: auto;
  margin: 0;
  pointer-events: none;
}

:is(body, #bf-theme) .hall-rail .hall-promo {
  flex: 0 0 auto;
  pointer-events: auto;
}

:is(body, #bf-theme) .hall-promo {
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: auto;
  padding: 0.28rem;
  isolation: isolate;
  border-radius: 0.85rem;
  background:
    radial-gradient(ellipse 60% 28% at 50% 0%, rgba(255, 176, 32, 0.28), transparent 70%),
    var(--tv-wood);
  background-size: auto, auto, 180px 110px, auto;
  border: 1px solid rgba(231, 194, 122, 0.55);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}

:is(body, #bf-theme) .hall-promo::before {
  content: none;
  display: none;
}

:is(body, #bf-theme) .hall-promo::after {
  content: none;
  display: none;
}

:is(body, #bf-theme) .hall-promo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 9rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}

:is(body, #bf-theme) .hall-promo:hover,
:is(body, #bf-theme) .hall-promo:focus-visible {
  border-color: var(--tv-amber);
}

:is(body, #bf-theme) .hall-promo:hover img,
:is(body, #bf-theme) .hall-promo:focus-visible img {
  transform: scale(1.03);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.4));
}

@media (max-width: 900px) {
  :is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid {
    --feed-pad-l: clamp(1.1rem, 4vw, 1.8rem);
  }

  :is(body, #bf-theme) .hall-rail {
    display: flex;
    right: 0.45rem;
    bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    width: 5.1rem;
  }

  :is(body, #bf-theme) .hall-promo {
    padding: 0.18rem;
  }

  :is(body, #bf-theme) .hall-promo img {
    max-height: 6.4rem;
  }
}

@media (max-width: 900px) {
  :is(body, #bf-theme) .site-footer--hall .site-footer__links {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 720px) {
  :is(body, #bf-theme) .site-footer__boards {
    display: contents;
  }

  :is(body, #bf-theme) .landing-page__hero {
    padding-right: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body, #bf-theme) .bf-backdrop {
    animation: none !important;
  }

  :is(body, #bf-theme) .feed-card-grid:hover > div,
  :is(body, #bf-theme) .home-template-feed-card:hover > div {
    transform: none;
  }

}

/* Banner partido na diagonal: vídeos sobem e descem, imagens à direita */
:is(body, #bf-theme) .hall-host:not([hidden]) {
  display: block !important;
  width: 100%;
  margin: 0.7rem 0 0.85rem !important;
  padding: 0 !important;
  align-items: stretch !important;
}

:is(body, #bf-theme) .hall-host .ff-hero__copy {
  background: transparent !important;
  max-width: none;
  padding: 0.35rem 0.15rem 0.15rem !important;
}

:is(body, #bf-theme) .hall-host .ff-hero__copy h2 {
  margin: 0;
  color: var(--tv-ink);
  font-size: 1.35rem;
}

:is(body, #bf-theme) .hall-banner {
  position: relative;
  display: block;
  height: 16rem;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(231, 194, 122, 0.5);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 228, 180, 0.16);
  background: #140e0a;
}

:is(body, #bf-theme) .hall-banner[hidden] {
  display: none !important;
}

:is(body, #bf-theme) .hall-banner__slash {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #f4e2b6;
  pointer-events: none;
  transform-origin: center top;
}

:is(body, #bf-theme) .hall-banner__half {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  background: #140e0a;
}

:is(body, #bf-theme) .hall-banner__half--video {
  left: 0;
  z-index: 1;
  width: 100%;
  clip-path: polygon(0 0, 50% 0, 58% 100%, 0 100%);
}

:is(body, #bf-theme) .hall-banner__half--image {
  left: 0;
  z-index: 2;
  width: 100%;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 58% 100%);
  background:
    linear-gradient(180deg, rgba(12, 8, 6, 0.04), rgba(12, 8, 6, 0.18)),
    url("../images/banner-images.webp") right 18% / 68% auto no-repeat;
}

:is(body, #bf-theme) .hall-banner__reels {
  position: absolute;
  inset: 0 42% 0 0;
  pointer-events: none;
}

:is(body, #bf-theme) .hall-banner__col {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

:is(body, #bf-theme) .hall-banner__col--1 {
  left: 0;
  width: 33.33%;
  clip-path: polygon(0 0, 86.2% 0, 100% 100%, 0 100%);
}

:is(body, #bf-theme) .hall-banner__col--2 {
  left: 28.74%;
  width: 37.93%;
  clip-path: polygon(0 0, 75.7% 0, 100% 100%, 12.1% 100%);
}

:is(body, #bf-theme) .hall-banner__col--3 {
  right: 0;
  width: 42.53%;
  clip-path: polygon(0 0, 67.6% 0, 100% 100%, 21.6% 100%);
}

:is(body, #bf-theme) .hall-banner__track {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  animation: none !important;
  will-change: transform;
}

:is(body, #bf-theme) .hall-banner__track video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 0;
  background: #1a120c;
  pointer-events: none;
}

:is(body, #bf-theme) .hall-banner__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f6f1e8;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

:is(body, #bf-theme) .hall-banner__hit:focus-visible {
  outline: 2px solid var(--tv-amber);
  outline-offset: -3px;
}

:is(body, #bf-theme) .hall-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 5, 3, 0.72) 100%);
  pointer-events: none;
}

:is(body, #bf-theme) .hall-banner__frame {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0.42rem #24180f;
  background-image:
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6),
    linear-gradient(#f4e2b6, #f4e2b6);
  background-repeat: no-repeat;
  background-size:
    1.35rem 2px, 2px 1.35rem,
    1.35rem 2px, 2px 1.35rem,
    1.35rem 2px, 2px 1.35rem,
    1.35rem 2px, 2px 1.35rem;
  background-position:
    left 0.55rem top 0.55rem, left 0.55rem top 0.55rem,
    right 0.55rem top 0.55rem, right 0.55rem top 0.55rem,
    left 0.55rem bottom 0.55rem, left 0.55rem bottom 0.55rem,
    right 0.55rem bottom 0.55rem, right 0.55rem bottom 0.55rem;
}

:is(body, #bf-theme) .hall-banner__sign {
  position: absolute;
  z-index: 3;
  left: 0.95rem;
  bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  max-width: min(16rem, 40%);
  padding: 0.42rem 0.7rem 0.48rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(231, 194, 122, 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 176, 32, 0.16), transparent 70%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #3a2818 0%, #1a120c 100%);
  background-size: auto, 180px 110px, auto;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

:is(body, #bf-theme) .hall-banner__half--image .hall-banner__sign {
  left: auto;
  right: 0.95rem;
  align-items: flex-end;
  text-align: right;
}

:is(body, #bf-theme) .hall-banner__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #e7c27a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:is(body, #bf-theme) .hall-banner__kicker .material-symbols-outlined {
  font-size: 0.95rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

:is(body, #bf-theme) .hall-banner__hint {
  color: #f6f1e8;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 900px) {
  :is(body, #bf-theme) .home-view-root.sx-layout {
    --sx-header-h: 5.7rem;
    --home-catalog-top: calc(env(safe-area-inset-top, 0px) + 5.7rem);
    --home-feed-offset: calc(env(safe-area-inset-top, 0px) + 5.7rem);
  }

  :is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid {
    --feed-pad-l: 0.7rem;
    --feed-pad-r: 0.7rem;
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px)) !important;
  }

  :is(body, #bf-theme) .hall-banner {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    border-radius: 1rem;
  }

  :is(body, #bf-theme) .hall-banner__slash {
    display: none !important;
  }

  :is(body, #bf-theme) .hall-banner__half {
    position: relative;
    left: 0;
    width: 100%;
    height: 13.2rem;
    clip-path: none;
  }

  :is(body, #bf-theme) .hall-banner__half--image {
    border-top: 2px solid #f4e2b6;
    background-size: auto, 158% auto !important;
    background-position: 0 0, 78% 12% !important;
    background-repeat: no-repeat, no-repeat !important;
  }

  :is(body, #bf-theme) .hall-banner__track video {
    object-position: center 12%;
  }

  :is(body, #bf-theme) .hall-banner__reels {
    inset: 0;
  }

  :is(body, #bf-theme) .hall-banner__col--3 {
    display: none;
  }

  :is(body, #bf-theme) .hall-banner__col--1 {
    left: 0;
    width: 50%;
    clip-path: none;
  }

  :is(body, #bf-theme) .hall-banner__col--2 {
    left: 50%;
    width: 50%;
    clip-path: none;
  }

  :is(body, #bf-theme) .hall-banner__sign {
    left: 0.7rem;
    right: auto;
    bottom: 0.65rem;
    max-width: min(22rem, 86%);
    padding: 0.38rem 0.55rem 0.42rem;
  }

  :is(body, #bf-theme) .hall-banner__half--image .hall-banner__sign {
    left: auto;
    right: 0.7rem;
    align-items: flex-end;
    text-align: right;
  }

  :is(body, #bf-theme) .hall-banner__kicker {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  :is(body, #bf-theme) .hall-banner__hint {
    font-size: 0.88rem;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  :is(body, #bf-theme) .hall-banner__col--3 {
    display: block;
    left: 66.66%;
    right: auto;
    width: 33.34%;
    clip-path: none;
  }

  :is(body, #bf-theme) .hall-banner__col--1 {
    width: 33.33%;
  }

  :is(body, #bf-theme) .hall-banner__col--2 {
    left: 33.33%;
    width: 33.33%;
  }
}

/* Modais: madeira, uma pose por tela, tudo visível sem scroll */
:is(body, #bf-theme) .login-modal-panel,
:is(body, #bf-theme) .recharge-modal-sheet {
  max-height: calc(100dvh - 1.25rem) !important;
  overflow: hidden !important;
}

:is(body, #bf-theme) .login-modal-panel {
  width: min(100% - 1.5rem, 33rem) !important;
  padding: 1.15rem 1.4rem 1.05rem !important;
}

:is(body, #bf-theme) .login-modal.is-signup .login-modal-panel {
  width: min(100% - 1.5rem, 39rem) !important;
}

:is(body, #bf-theme) .bf-mascot--login,
:is(body, #bf-theme) .bf-mascot--desk {
  width: auto !important;
  height: 7.4rem !important;
  object-fit: contain;
  margin: 0 auto 0.15rem;
}

:is(body, #bf-theme) .login-modal-brand {
  gap: 0.2rem !important;
}

:is(body, #bf-theme) .login-modal-input {
  min-height: 2.35rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

:is(body, #bf-theme) .login-modal-fields {
  gap: 0.45rem;
}

:is(body, #bf-theme) .login-modal.is-signup .login-modal-panel {
  overflow: hidden !important;
}

:is(body, #bf-theme) .hall-modal-mascot {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

:is(body, #bf-theme) #recharge-step-packages {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

:is(body, #bf-theme) .recharge-modal-sheet {
  width: min(100%, 36rem);
}

:is(body, #bf-theme) .recharge-modal-header {
  padding: 0.65rem 0.8rem 0.5rem !important;
}

:is(body, #bf-theme) .recharge-modal-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 0.35rem !important;
  padding: 0.45rem 0.7rem 0.4rem !important;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

:is(body, #bf-theme) .recharge-package {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.55rem 1.75rem 0.55rem 0.6rem !important;
}

:is(body, #bf-theme) .recharge-package-head {
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
}

:is(body, #bf-theme) .recharge-package-meta {
  flex: 0 1 auto;
}

:is(body, #bf-theme) .recharge-package-cost {
  flex-direction: column !important;
  align-items: flex-end;
  justify-content: center;
  gap: 0.1rem;
  width: auto;
  margin-left: auto !important;
}

:is(body, #bf-theme) .recharge-modal-grid .recharge-package:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

:is(body, #bf-theme) .recharge-modal-footer {
  padding: 0.45rem 0.75rem 0.65rem !important;
}

:is(body, #bf-theme) .recharge-step--pix,
:is(body, #bf-theme) .recharge-pix-body,
:is(body, #bf-theme) .recharge-upsell {
  min-height: 0;
  overflow: hidden !important;
}

:is(body, #bf-theme) .recharge-pix-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem 0.65rem;
}

:is(body, #bf-theme) .recharge-pix-qr-stage,
:is(body, #bf-theme) .recharge-pix-qr-wrap {
  width: min(100%, 8.6rem);
  margin-inline: auto;
}

:is(body, #bf-theme) .recharge-pix-code-input {
  height: 2.2rem;
}

:is(body, #bf-theme) .recharge-upsell-sparkles {
  display: none;
}

:is(body, #bf-theme) .recharge-upsell-body {
  gap: 0.35rem !important;
  padding: 0.65rem 0.9rem 0.7rem !important;
}

:is(body, #bf-theme) .hall-modal-mascot--point {
  width: 3.6rem;
  height: 3.6rem;
}

:is(body, #bf-theme) .signup-bonus-toast {
  border: 1px solid rgba(231, 194, 122, 0.55);
  background:
    radial-gradient(ellipse 80% 80% at 0% 50%, rgba(255, 176, 32, 0.12), transparent 60%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #322216 0%, #1a120c 100%);
  background-size: auto, 180px 110px, auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

:is(body, #bf-theme) .signup-bonus-toast__icon-wrap {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

:is(body, #bf-theme) .signup-bonus-toast__mascot {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  display: block;
}

:is(body, #bf-theme) .signup-bonus-toast__tag {
  color: #e7c27a;
}

:is(body, #bf-theme) .signup-bonus-toast__tag::before {
  background: #ffb020;
  box-shadow: none;
}

:is(body, #bf-theme) .signup-bonus-toast__title,
:is(body, #bf-theme) .signup-bonus-toast__message {
  color: #f6f1e8;
}

:is(body, #bf-theme) .signup-bonus-toast__message {
  color: rgba(246, 241, 232, 0.78);
}

:is(body, #bf-theme) .signup-bonus-toast__close {
  border-color: rgba(231, 194, 122, 0.4);
  color: #f6f1e8;
}

:is(body, #bf-theme) .signup-bonus-toast__progress {
  background: linear-gradient(90deg, #8a5a10, #ffb020);
}

:is(body, #bf-theme) .coin-celebration-banner {
  top: 46%;
  gap: 0.2rem;
  padding: 0.7rem 1.1rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(231, 194, 122, 0.55);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 176, 32, 0.16), transparent 70%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #322216 0%, #1a120c 100%);
  background-size: auto, 180px 110px, auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

:is(body, #bf-theme) .coin-celebration-banner__mascot {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

:is(body, #bf-theme) .coin-celebration-banner__title,
:is(body, #bf-theme) .coin-celebration-banner__amount {
  background: none;
  color: #f6f1e8;
  filter: none;
}

:is(body, #bf-theme) .coin-celebration-banner__amount {
  color: #ffb020;
}

:is(body, #bf-theme) .coin-celebration-glow {
  background: radial-gradient(circle, rgba(255, 176, 32, 0.28), transparent 68%);
}

@media (max-width: 720px) {
  :is(body, #bf-theme) .bf-mascot--login,
  :is(body, #bf-theme) .bf-mascot--desk {
    height: 5.4rem !important;
    width: auto;
  }

  :is(body, #bf-theme) .coin-celebration-banner__mascot,
  :is(body, #bf-theme) .hall-modal-mascot--point {
    height: 3.2rem !important;
    width: auto;
  }

  :is(body, #bf-theme) .hall-modal-mascot {
    width: 2.5rem;
    height: 2.5rem;
  }

  :is(body, #bf-theme) .login-modal-panel,
  :is(body, #bf-theme) .login-modal.is-signup .login-modal-panel {
    width: min(100% - 1rem, 33rem) !important;
    padding: 0.85rem 1rem 0.75rem !important;
  }

  :is(body, #bf-theme) .recharge-modal-header {
    padding: 0.5rem 1.55rem 0.4rem 0.7rem !important;
  }

  :is(body, #bf-theme) .recharge-method-picker--top {
    padding: 0.4rem 1.55rem 0.45rem 0.55rem !important;
  }

  :is(body, #bf-theme) .recharge-modal-footer {
    padding: 0.4rem 1.55rem 0.55rem 0.55rem !important;
  }

  :is(body, #bf-theme) #recharge-step-packages {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  :is(body, #bf-theme) .recharge-modal-grid {
    grid-template-columns: 1fr !important;
    flex: 1 1 0 !important;
    gap: 0.3rem !important;
    padding: 0.35rem 1.55rem 0.4rem 0.55rem !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  :is(body, #bf-theme) .recharge-modal-footer {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background-color: #2a1810;
    background-image:
      linear-gradient(180deg, rgba(12, 6, 2, 0.62), rgba(12, 6, 2, 0.78)),
      url("../images/tavern/stein-wood.jpg");
    background-size: auto, 220px auto;
  }

  :is(body, #bf-theme) .recharge-summary-row {
    margin-bottom: 0.55rem;
  }

  :is(body, #bf-theme) .recharge-modal-grid .recharge-package:last-child:nth-child(odd) {
    grid-column: auto;
  }

  :is(body, #bf-theme) .recharge-package {
    min-height: 2.85rem;
    padding: 0.5rem 1.7rem 0.5rem 0.55rem !important;
  }

  :is(body, #bf-theme) .recharge-package-meta {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  :is(body, #bf-theme) .recharge-package-head {
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 0;
  }

  :is(body, #bf-theme) .recharge-package-coins {
    font-size: 1rem;
  }

  :is(body, #bf-theme) .recharge-pix-qr-stage,
  :is(body, #bf-theme) .recharge-pix-qr-wrap {
    width: min(100%, 7.2rem);
  }
}

/* Chopp: login, cadastro e recarga */
:is(body, #bf-theme) .login-modal-panel,
:is(body, #bf-theme) .recharge-modal-sheet,
:is(body, #bf-theme) #recharge-modal .recharge-modal-sheet {
  overflow: visible !important;
  margin-top: 4.8rem !important;
  max-height: calc(100dvh - 5.2rem) !important;
  border: 0 !important;
  border-radius: 1.15rem !important;
  color: #fff6e8 !important;
  background-color: #3a2416 !important;
  background-image:
    linear-gradient(180deg, rgba(12, 6, 2, 0.72), rgba(12, 6, 2, 0.58) 16%, rgba(12, 6, 2, 0.58) 84%, rgba(12, 6, 2, 0.72)),
    linear-gradient(90deg, rgba(8, 4, 2, 0.45), transparent 14%, transparent 86%, rgba(8, 4, 2, 0.5)),
    url("../images/tavern/stein-wood.jpg") !important;
  background-repeat: no-repeat, no-repeat, repeat !important;
  background-size: auto, auto, 220px auto !important;
  background-position: 0 0, 0 0, center top !important;
  box-shadow: 0 1.15rem 2.1rem rgba(24, 10, 4, 0.45) !important;
  animation: none !important;
}

:is(body, #bf-theme) .login-modal.is-signup .login-modal-panel {
  width: min(100% - 2.2rem, 39rem) !important;
  overflow: visible !important;
}

:is(body, #bf-theme) .login-modal-panel::before,
:is(body, #bf-theme) .recharge-modal-sheet::before,
:is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 4 !important;
  top: -2.55rem !important;
  right: auto !important;
  bottom: auto !important;
  left: -3% !important;
  width: 106% !important;
  height: 5.2rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("../images/tavern/stein-foam.png?v=6") center bottom / 100% 100% no-repeat !important;
  box-shadow: none !important;
  pointer-events: none !important;
  animation: mug-foam 3.4s ease-in-out infinite;
}

:is(body, #bf-theme) .login-modal-panel::after,
:is(body, #bf-theme) .recharge-modal-sheet::after,
:is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 4 !important;
  top: 14% !important;
  right: -4.85rem !important;
  bottom: auto !important;
  left: auto !important;
  width: 5.6rem !important;
  height: 62% !important;
  background: url("../images/tavern/stein-handle.png") left center / contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

:is(body, #bf-theme) .login-modal-close,
:is(body, #bf-theme) .recharge-modal-close,
:is(body, #bf-theme) .bf-mascot--login,
:is(body, #bf-theme) .bf-mascot--desk,
:is(body, #bf-theme) .hall-modal-mascot {
  position: relative;
  z-index: 6;
}

:is(body, #bf-theme) .login-modal-close,
:is(body, #bf-theme) .recharge-modal-close {
  position: absolute;
}

:is(body, #bf-theme) .recharge-modal-header,
:is(body, #bf-theme) .recharge-modal-footer,
:is(body, #bf-theme) .recharge-pix-body {
  background: transparent !important;
  border-color: rgba(255, 236, 200, 0.24) !important;
}

:is(body, #bf-theme) .recharge-modal-header {
  padding-top: 2.15rem !important;
}

:is(body, #bf-theme) .login-modal-panel {
  padding-top: 2.2rem !important;
}

:is(body, #bf-theme) .login-modal-panel :is(
  .login-modal-tab,
  .login-modal-tab.is-active,
  .login-modal-label,
  .login-modal-legal,
  .login-modal-forgot,
  .login-modal-status
),
:is(body, #bf-theme) .recharge-modal-sheet :is(
  .recharge-modal-title-wrap h2,
  .recharge-modal-title-wrap p,
  .recharge-method-picker__label,
  .recharge-summary-kicker,
  .recharge-summary-coins,
  .recharge-summary-breakdown,
  .recharge-summary-yield,
  .recharge-summary-original,
  .recharge-summary-current,
  .recharge-package-coins,
  .recharge-package-price,
  .recharge-package-original,
  .recharge-package-off
) {
  color: #fff6e8 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

:is(body, #bf-theme) .login-modal-panel .login-modal-tab:not(.is-active) {
  color: rgba(255, 246, 232, 0.72) !important;
}

:is(body, #bf-theme) .recharge-modal-sheet .recharge-summary-original,
:is(body, #bf-theme) .recharge-modal-sheet .recharge-package-original,
:is(body, #bf-theme) .recharge-modal-sheet .recharge-summary-breakdown,
:is(body, #bf-theme) .recharge-modal-sheet .recharge-summary-yield,
:is(body, #bf-theme) .recharge-modal-sheet .recharge-package-yield,
:is(body, #bf-theme) .recharge-modal-sheet .recharge-modal-title-wrap p {
  color: rgba(255, 246, 232, 0.86) !important;
}

:is(body, #bf-theme) .recharge-modal-sheet .recharge-package-off {
  color: #f5c84c !important;
}

@keyframes mug-glass {
  from { background-position: -55% 0, 0 80%, 0 110%, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 150% 0, 0 -30%, 0 -40%, 0 0, 0 0, 0 0, 0 0, 0 0; }
}

@keyframes mug-foam {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(1.5px) scaleX(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  :is(body, #bf-theme) .login-modal-panel,
  :is(body, #bf-theme) .recharge-modal-sheet,
  :is(body, #bf-theme) #recharge-modal .recharge-modal-sheet,
  :is(body, #bf-theme) .login-modal-panel::before,
  :is(body, #bf-theme) .recharge-modal-sheet::before,
  :is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::before {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  :is(body, #bf-theme) .login-modal-panel,
  :is(body, #bf-theme) .login-modal.is-signup .login-modal-panel,
  :is(body, #bf-theme) .recharge-modal-sheet,
  :is(body, #bf-theme) #recharge-modal .recharge-modal-sheet {
    width: min(100% - 3.4rem, 33rem) !important;
    margin-top: 3.2rem !important;
    height: calc(100dvh - 3.4rem) !important;
    max-height: calc(100dvh - 3.4rem) !important;
  }

  :is(body, #bf-theme) .login-modal-panel::before,
  :is(body, #bf-theme) .recharge-modal-sheet::before,
  :is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::before {
    top: -1.9rem !important;
    left: -3% !important;
    right: auto !important;
    width: 106% !important;
    height: 4rem !important;
    box-shadow: none !important;
  }

  :is(body, #bf-theme) .login-modal-panel::after,
  :is(body, #bf-theme) .recharge-modal-sheet::after,
  :is(body, #bf-theme) #recharge-modal .recharge-modal-sheet::after {
    top: 16% !important;
    right: -2.7rem !important;
    width: 3.2rem !important;
    height: 48% !important;
    border: 0 !important;
  }
}

/* ---------------------------------------------------------------------
   Ferramentas de foto: mesma tábua, latão e âmbar da taberna.
   Só a aba Tirar roupa / Troca / Corpo (.home-photo-feed-list).
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .home-photo-feed-list .home-photo-choice {
  color: var(--tv-ink) !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 3px solid #4a301c !important;
  border-radius: 8px !important;
  box-shadow:
    inset 0 0 0 1px rgba(231, 194, 122, 0.55),
    0 16px 28px rgba(0, 0, 0, 0.45) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-choice:hover {
  border-color: var(--tv-amber) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 32, 0.85),
    0 0 16px rgba(255, 176, 32, 0.22),
    0 18px 32px rgba(0, 0, 0, 0.45) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-choice__label {
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-modes,
:is(body, #bf-theme) .home-photo-feed-list .home-undress-feed__header,
:is(body, #bf-theme) .home-photo-feed-list .home-movies-section,
:is(body, #bf-theme) .home-photo-feed-list .home-stepper {
  color: var(--tv-ink) !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-undress-feed__header {
  margin: 0 !important;
  padding: 1.15rem 1.2rem 1.05rem !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-undress-feed__header h2 {
  color: var(--tv-ink) !important;
  font-family: var(--bf-font-display, "Fraunces", serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-undress-feed__subtitle {
  color: rgba(246, 241, 232, 0.72) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-undress-feed__badge,
:is(body, #bf-theme) .home-photo-feed-list .home-undress-feed__badge .material-symbols-outlined {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border: 1px solid #e09a12 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-mode {
  color: var(--tv-brass) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-mode:not(.is-active):hover {
  color: var(--tv-ink) !important;
  background: rgba(255, 176, 32, 0.1) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-mode.is-active {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.28) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-photo-mode.is-active * {
  color: var(--tv-ink-dark) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .home-photo-feed-list .undress-compare__frame,
:is(body, #bf-theme) .home-photo-feed-list .home-undress-panel__frame,
:is(body, #bf-theme) .home-photo-feed-list .home-movies-card,
:is(body, #bf-theme) .home-photo-feed-list .home-movies-preview,
:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette__window {
  background-color: #120e0b !important;
  background-image: none !important;
  border: 3px solid #4a301c !important;
  border-radius: 6px !important;
  box-shadow:
    inset 0 0 0 1px rgba(231, 194, 122, 0.55),
    0 16px 28px rgba(0, 0, 0, 0.45) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-movies-card.is-selected,
:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette__focus {
  border-color: var(--tv-amber) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 32, 0.85),
    0 0 16px rgba(255, 176, 32, 0.22) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .undress-compare__top {
  padding: 0.45rem 0.7rem !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .undress-compare__caption {
  color: var(--tv-ink) !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}

:is(body, #bf-theme) .home-photo-feed-list .undress-compare__legend-item,
:is(body, #bf-theme) .home-photo-feed-list .undress-compare__legend-item--before,
:is(body, #bf-theme) .home-photo-feed-list .undress-compare__legend-item--after {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border: 1px solid #e09a12 !important;
  border-radius: 999px !important;
  opacity: 1 !important;
}

:is(body, #bf-theme) .home-photo-feed-list .undress-compare__handle {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border: 1px solid #e09a12 !important;
  border-radius: 999px !important;
}

:is(body, #bf-theme) .home-photo-feed-list .undress-compare__divider {
  background: var(--tv-brass) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-shorts-dropzone:not(.has-media),
:is(body, #bf-theme) .home-photo-feed-list .home-undress-panel__placeholder {
  color: var(--tv-ink) !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 2px dashed var(--tv-brass) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-shorts-dropzone:not(.has-media):hover,
:is(body, #bf-theme) .home-photo-feed-list .home-undress-panel--pick:hover .home-undress-panel__placeholder {
  background-color: #24180f !important;
  border-color: var(--tv-amber) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-shorts-dropzone__text,
:is(body, #bf-theme) .home-photo-feed-list .home-shorts-dropzone__text strong,
:is(body, #bf-theme) .home-photo-feed-list .home-undress-panel__placeholder span {
  color: var(--tv-ink) !important;
  opacity: 1 !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-shorts-dropzone__text strong {
  color: var(--tv-amber) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-shorts-dropzone__icon,
:is(body, #bf-theme) .home-photo-feed-list .home-undress-panel__placeholder-icon {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border: 1px solid #e09a12 !important;
  border-radius: 999px !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-body-roulettes,
:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette + .home-body-roulette {
  border-top: 1px solid rgba(231, 194, 122, 0.22) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette__nav {
  color: var(--tv-brass) !important;
  background: transparent !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette__nav:hover:not(:disabled) {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-body-roulette__value,
:is(body, #bf-theme) .home-photo-feed-list .home-movies-section h3,
:is(body, #bf-theme) .home-photo-feed-list .home-movies-card__name {
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-body-dim__label {
  color: var(--tv-brass) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-movies-step,
:is(body, #bf-theme) .home-photo-feed-list .home-stepper__tab.is-active .home-stepper__num,
:is(body, #bf-theme) .home-photo-feed-list .home-stepper__tab.is-done .home-stepper__num {
  color: var(--tv-ink-dark) !important;
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-stepper__tab {
  color: var(--tv-brass) !important;
}

:is(body, #bf-theme) .home-photo-feed-list .home-stepper__tab.is-active,
:is(body, #bf-theme) .home-photo-feed-list .home-stepper__tab.is-done {
  color: var(--tv-ink) !important;
}

/* ---------------------------------------------------------------------
   Landing de afiliados: tábuas opacas, letra de taberna.
   O portal (.aff-portal-page) fica de fora.
   --------------------------------------------------------------------- */
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) {
  --aff-ink: #f6f1e8;
  --aff-muted: #f3eadf;
  --aff-gold: var(--tv-amber);
  --aff-red: var(--tv-amber);
  --aff-red-hot: #ffc44a;
  --aff-panel: #1a120c;
  --aff-line: rgba(231, 194, 122, 0.38);
  color: #f6f1e8 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-hero,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-card,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-split__copy,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__copy,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__col,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-node__label,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > .aff-section__lead,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-path__head,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__contacts {
  background-color: #1a120c !important;
  background-image:
    linear-gradient(180deg, rgba(255, 206, 140, 0.14), rgba(26, 18, 12, 0) 32%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #322216 0%, #1a120c 100%) !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-section,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-split,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-path,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-hero {
  border-bottom-color: transparent !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > .aff-section__lead {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0.85rem 1.05rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > h2 {
  margin: 0 0 0.75rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > .aff-section__lead {
  margin: 0 0 1.35rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-split__copy,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__copy,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__col {
  position: relative !important;
  z-index: 1 !important;
  padding: 1.15rem 1.15rem 1.25rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-path__head {
  padding: 1rem 1.15rem 1.05rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step {
  padding: 0.85rem 0.95rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__contacts {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0.5rem auto 2rem !important;
  padding: 0.85rem 1.25rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-hero h1,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-why > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-split__copy > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-path__head h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__copy > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__col > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-card h3,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step__title,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-node__label h3,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-hero__bullets li,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__list li,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__list li,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__contacts a {
  color: #f6f1e8 !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-lead,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-section__lead,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-card p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-card--why p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step__body p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-split__lead,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-path__head p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-node__label p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__lead,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__lead,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__foot {
  color: #f3eadf !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-eyebrow,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-card__icon,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__brand,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__list li::before,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__list li::before,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step__num,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__icon {
  color: var(--tv-amber) !important;
  opacity: 1 !important;
  -webkit-text-stroke: 0 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-hero__bullets li::before,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step--promote .aff-how-step__title::after {
  background: var(--tv-amber) !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-trust-pay__icon {
  background-color: #24180f !important;
  background-image: none !important;
  border-color: var(--tv-brass) !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-node__marker {
  background: var(--tv-amber) !important;
  color: #1a120c !important;
  box-shadow: 0 0 0 3px #1a120c, 0 0 0 4px var(--tv-brass) !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-node__media,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-split__media,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-hero__vid {
  background-color: #1a120c !important;
  background-image: none !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-btn--primary,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .affiliate-page__submit {
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
  color: #1a120c !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-btn--primary:hover,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .affiliate-page__submit:hover {
  background: #ffc44a !important;
  border-color: #ffc44a !important;
  color: #1a120c !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-btn--ghost {
  background-color: #24180f !important;
  background-image: none !important;
  border-color: var(--tv-brass) !important;
  color: #f6f1e8 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-btn--ghost:hover {
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
  color: #1a120c !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__stage {
  position: relative !important;
  z-index: 2 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__media {
  z-index: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__banner,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup.affiliate-page__signup-panel {
  position: relative !important;
  z-index: 3 !important;
  transform: none !important;
  background-color: #1a120c !important;
  background-image:
    linear-gradient(180deg, rgba(255, 206, 140, 0.14), rgba(26, 18, 12, 0) 32%),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #322216 0%, #1a120c 100%) !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
  color: #f6f1e8 !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__banner > h2,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__signup-copy h3,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-result h3 {
  color: #f6f1e8 !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__banner > p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__hint,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__signup-copy p,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-field small,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-warn {
  color: #e7d7c3 !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-field > span,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__earning span {
  color: var(--tv-brass) !important;
  letter-spacing: 0.08em !important;
  opacity: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__earning {
  background: rgba(255, 206, 140, 0.08) !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__earning strong {
  color: var(--tv-amber) !important;
  text-shadow: none !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-field input,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-copy-row input {
  background: #120c08 !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #f6f1e8 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-field input:focus,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-copy-row input:focus {
  border-color: var(--tv-amber) !important;
  box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.25) !important;
  outline: none !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-copy-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__submit.aff-btn--primary,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__featured-actions .aff-btn--primary,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-btn--ready {
  background: var(--tv-amber) !important;
  border: 1px solid #e09a12 !important;
  border-radius: 8px !important;
  color: #1a120c !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .affiliate-page__submit.aff-btn--primary:hover,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__featured-actions .aff-btn--primary:hover,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-btn--ready:hover {
  background: #ffc44a !important;
  border-color: #ffc44a !important;
  color: #1a120c !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .aff-btn--ghost {
  background: transparent !important;
  border: 1px solid var(--tv-brass) !important;
  border-radius: 8px !important;
  color: #f6f1e8 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .aff-btn--ghost:hover {
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
  color: #1a120c !important;
}

@media (max-width: 720px) {
  :is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-copy-row {
    grid-template-columns: 1fr !important;
  }

  :is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__signup .landing-page__affiliate-copy-row .aff-btn {
    width: 100% !important;
  }
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-ready__contacts a:hover {
  color: var(--tv-amber) !important;
}

/* Celular e tablet: preencher a tela, sem recorte horizontal */
html:has(#home-view-root),
body:has(#home-view-root),
#app,
.home-view-root {
  overflow-x: hidden;
}

@media (max-width: 560px) {
  :is(body, #bf-theme) .home-view-root.sx-layout {
    --sx-header-h: 5.55rem;
    --home-catalog-top: calc(env(safe-area-inset-top, 0px) + 5.55rem);
    --home-feed-offset: calc(env(safe-area-inset-top, 0px) + 5.55rem);
  }

  :is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid {
    --feed-pad-l: 0.5rem;
    --feed-pad-r: 0.5rem;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
  }

  :is(body, #bf-theme) .hall-banner__half {
    height: 12.6rem;
  }

  :is(body, #bf-theme) .hall-banner__sign {
    left: 0.5rem;
    bottom: 0.5rem;
    max-width: 90%;
  }

  :is(body, #bf-theme) .hall-banner__half--image .hall-banner__sign {
    right: 0.5rem;
  }

  :is(body, #bf-theme) .hall-banner__hint {
    font-size: 0.8rem;
  }

  :is(body, #bf-theme) .home-photo-shell:has(.home-photo-chooser) {
    min-height: 0;
  }

  :is(body, #bf-theme) .home-photo-chooser {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    height: auto;
    min-height: 0;
  }

  :is(body, #bf-theme) .home-photo-choice,
  :is(body, #bf-theme) .home-photo-feed-list .home-photo-choice {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    min-height: 5.4rem;
    height: auto;
    padding: 0.7rem 0.85rem;
  }

  :is(body, #bf-theme) .home-photo-choice__avatar {
    width: 4.6rem;
    flex: 0 0 4.6rem;
  }

  :is(body, #bf-theme) .home-photo-choice__label {
    font-size: 1rem;
    text-align: left;
  }
}

@media (max-width: 420px) {
  :is(body, #bf-theme) .hall-banner__half {
    height: 10.4rem;
  }

  :is(body, #bf-theme) .hall-banner__kicker {
    font-size: 0.56rem;
  }

  :is(body, #bf-theme) .hall-banner__hint {
    font-size: 0.74rem;
  }

  :is(body, #bf-theme) .home-top-tabs .home-tab-button,
  :is(body, #bf-theme) .home-top-tabs .ir-btn {
    padding: 0.28rem 0.42rem !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  :is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid {
    --feed-pad-l: clamp(1.4rem, 4vw, 2.4rem);
    --feed-pad-r: clamp(1.1rem, 3vw, 1.8rem);
  }
}

/* Fechar do chopp: disco creme + X escuro, visível na madeira */
:is(body, #bf-theme) .login-modal-close,
:is(body, #bf-theme) .recharge-modal-close {
  position: absolute !important;
  z-index: 8 !important;
  top: 0.7rem !important;
  right: 0.7rem !important;
  width: 2.6rem !important;
  height: 2.6rem !important;
  border: 2px solid #e7c27a !important;
  border-radius: 999px !important;
  background: #fff6e8 !important;
  color: #1a1208 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45) !important;
}

:is(body, #bf-theme) .login-modal-close:hover,
:is(body, #bf-theme) .recharge-modal-close:hover {
  background: #f4e2b6 !important;
  border-color: #f4e2b6 !important;
  color: #1a1208 !important;
}

:is(body, #bf-theme) .login-modal-close .material-symbols-outlined,
:is(body, #bf-theme) .recharge-modal-close .material-symbols-outlined {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #1a1208 !important;
}

@media (max-width: 720px) {
  :is(body, #bf-theme) .login-modal-close,
  :is(body, #bf-theme) .recharge-modal-close {
    top: 0.55rem !important;
    right: 0.55rem !important;
    width: 2.45rem !important;
    height: 2.45rem !important;
  }
}

/* Avatares da landing de afiliados */
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar {
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  border: 2px solid var(--tv-brass) !important;
  background: #1a120c !important;
  box-shadow: 0 0 0 3px #1a120c, 0 10px 18px rgba(0, 0, 0, 0.4) !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--hero {
  width: 8.25rem !important;
  height: 8.25rem !important;
  margin: 0 0 0.85rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--card {
  width: 5.1rem !important;
  height: 5.1rem !important;
  margin: 0 auto 0.2rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  align-items: center !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--step {
  width: 3.6rem !important;
  height: 3.6rem !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  flex-shrink: 0 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step__num {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  font-size: 1.7rem !important;
  line-height: 1 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-how-step__body {
  grid-column: 3 !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--section,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--icon,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--cta,
:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--support {
  width: 5.6rem !important;
  height: 5.6rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-commission-path__head > .aff-avatar--section {
  margin: 0 auto 0.8rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-who-split__copy > .aff-avatar--section {
  margin: 0 0 0.9rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--icon {
  width: 4.6rem !important;
  height: 4.6rem !important;
  margin: 0 0 0.85rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--cta {
  margin: 0 auto 0.35rem !important;
  border-color: #1a120c !important;
  box-shadow: 0 0 0 3px #ffcc00, 0 8px 16px rgba(0, 0, 0, 0.28) !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--link {
  width: 6.4rem !important;
  height: 6.4rem !important;
  margin: 0 auto 0.9rem !important;
}

:is(body, #bf-theme).affiliate-page:not(.aff-portal-page) .aff-avatar--support {
  margin: 0 auto 0.55rem !important;
}

/* ---------------------------------------------------------------------
   Painel administrador: mesma tábua da taberna
   --------------------------------------------------------------------- */
:is(body, #bf-theme) .admin-panel {
  color: var(--tv-ink) !important;
  background-color: #3a2416 !important;
  background-image:
    linear-gradient(180deg, rgba(58, 32, 16, 0.28) 0%, rgba(74, 42, 22, 0.12) 42%, rgba(42, 24, 12, 0.34) 100%),
    url("../images/mascot/hall-pattern-v7.png"),
    url("../images/tavern/grain.svg"),
    linear-gradient(180deg, #6a4228 0%, #4a2e1c 46%, #5c3820 100%) !important;
  background-repeat: no-repeat, repeat-y, repeat, no-repeat !important;
  background-size: auto, 100vw auto, 180px 110px, auto !important;
  background-position: center top, center top, center top, center top !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
}

:is(body, #bf-theme) .admin-panel__header,
:is(body, #bf-theme) .admin-panel__tabs {
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border-bottom: 1px solid var(--tv-line) !important;
}

:is(body, #bf-theme) .admin-panel__title,
:is(body, #bf-theme) .admin-panel__stat-value,
:is(body, #bf-theme) .admin-panel__section-title {
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .admin-panel__section-title {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0.45rem 0.7rem !important;
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
}

:is(body, #bf-theme) .admin-panel__section-head {
  width: 100% !important;
  max-width: none !important;
}

:is(body, #bf-theme) .admin-panel__stat-value,
:is(body, #bf-theme) .admin-panel__section-title,
:is(body, #bf-theme) .admin-panel__account-email,
:is(body, #bf-theme) .admin-panel__purpose-text,
:is(body, #bf-theme) .admin-track__source h3,
:is(body, #bf-theme) .admin-track__daily-date,
:is(body, #bf-theme) .admin-track__daily-n,
:is(body, #bf-theme) .admin-track__funnel-head,
:is(body, #bf-theme) .admin-track__table td,
:is(body, #bf-theme) .admin-track__link-group-title,
:is(body, #bf-theme) .admin-panel__users-count,
:is(body, #bf-theme) .admin-panel__field label {
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .admin-panel__stat-label,
:is(body, #bf-theme) .admin-panel__account-meta,
:is(body, #bf-theme) .admin-panel__field-hint,
:is(body, #bf-theme) .admin-panel__ref-note,
:is(body, #bf-theme) .admin-panel__empty,
:is(body, #bf-theme) .admin-panel__status,
:is(body, #bf-theme) .admin-track__lead,
:is(body, #bf-theme) .admin-track__source-visits small,
:is(body, #bf-theme) .admin-track__daily-meta,
:is(body, #bf-theme) .admin-track__bar-label,
:is(body, #bf-theme) .admin-track__funnel-head em,
:is(body, #bf-theme) .admin-track__table th,
:is(body, #bf-theme) .admin-track__links code {
  color: #f3eadf !important;
  opacity: 1 !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__back {
  background: #24180f !important;
  color: var(--tv-ink) !important;
  border: 1px solid var(--tv-line) !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__back:hover,
:is(body, #bf-theme) .admin-panel button.admin-panel__back:active {
  background: var(--tv-amber) !important;
  color: var(--tv-ink-dark) !important;
  border-color: #e09a12 !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__tab {
  background: #24180f !important;
  border: 1px solid var(--tv-line) !important;
  color: #f3eadf !important;
  border-radius: 8px !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__tab.is-active {
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
  color: var(--tv-ink-dark) !important;
}

:is(body, #bf-theme) .admin-panel__stat,
:is(body, #bf-theme) .admin-panel__card,
:is(body, #bf-theme) .admin-panel__account,
:is(body, #bf-theme) .admin-panel__purpose,
:is(body, #bf-theme) .admin-panel__selected-user,
:is(body, #bf-theme) .admin-track__source,
:is(body, #bf-theme) .admin-track__card {
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .admin-panel__stat-value--ok,
:is(body, #bf-theme) .admin-panel__stat-value--usd,
:is(body, #bf-theme) .admin-panel__stat-value--warn,
:is(body, #bf-theme) .admin-panel__grtkniv-total strong,
:is(body, #bf-theme) .admin-panel__status.is-success,
:is(body, #bf-theme) .admin-panel__ref-link,
:is(body, #bf-theme) .admin-panel__purpose-icon {
  color: var(--tv-amber) !important;
}

:is(body, #bf-theme) .admin-panel__status.is-error {
  color: #ffc44a !important;
}

:is(body, #bf-theme) .admin-panel__badge,
:is(body, #bf-theme) .admin-panel__badge--active,
:is(body, #bf-theme) .admin-track__link-badge {
  background: rgba(255, 176, 32, 0.18) !important;
  color: var(--tv-amber) !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__refresh,
:is(body, #bf-theme) .admin-panel button.admin-panel__filter-btn,
:is(body, #bf-theme) .admin-panel button.admin-track__chip,
:is(body, #bf-theme) .admin-panel button.admin-track__copy {
  background: #24180f !important;
  border: 1px solid var(--tv-line) !important;
  color: var(--tv-ink) !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__refresh:hover:not(:disabled),
:is(body, #bf-theme) .admin-panel button.admin-panel__filter-btn.is-active,
:is(body, #bf-theme) .admin-panel button.admin-track__chip.is-active {
  background: var(--tv-amber) !important;
  border-color: #e09a12 !important;
  color: var(--tv-ink-dark) !important;
}

:is(body, #bf-theme) .admin-panel__field input,
:is(body, #bf-theme) .admin-panel__field select,
:is(body, #bf-theme) .admin-panel__submit-row select {
  background: #24180f !important;
  border: 1px solid var(--tv-line) !important;
  color: var(--tv-ink) !important;
  border-radius: 8px !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__submit {
  background: var(--tv-amber) !important;
  color: var(--tv-ink-dark) !important;
  border: 1px solid #e09a12 !important;
  border-radius: 8px !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__submit--remove {
  background: #3a1c14 !important;
  color: var(--tv-ink) !important;
  border-color: var(--tv-line) !important;
}

:is(body, #bf-theme) .admin-panel button.admin-panel__submit--payout {
  background: #24180f !important;
  color: var(--tv-amber) !important;
  border-color: var(--tv-line) !important;
}

:is(body, #bf-theme) .admin-track__daily-fill,
:is(body, #bf-theme) .admin-track__funnel-fill,
:is(body, #bf-theme) .admin-track__bar {
  background: linear-gradient(90deg, #e09a12, #ffb020) !important;
}

:is(body, #bf-theme) .admin-track__daily-track,
:is(body, #bf-theme) .admin-track__funnel-track {
  background: #24180f !important;
}

:is(body, #bf-theme) .admin-track__table th,
:is(body, #bf-theme) .admin-track__table td,
:is(body, #bf-theme) .admin-track__link-group + .admin-track__link-group {
  border-color: rgba(231, 194, 122, 0.22) !important;
}

:is(body, #bf-theme) .admin-panel__content > .admin-panel__account-meta,
:is(body, #bf-theme) .admin-panel__content > .admin-panel__field-hint,
:is(body, #bf-theme) .admin-panel__content > .admin-panel__empty,
:is(body, #bf-theme) .admin-panel__content > .admin-panel__status,
:is(body, #bf-theme) .admin-panel__content > .admin-track__lead,
:is(body, #bf-theme) .admin-panel__content > .admin-panel__field,
:is(body, #bf-theme) .admin-panel__content > .admin-panel__filter-row,
:is(body, #bf-theme) .admin-panel__content > .admin-track__chips {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0.45rem 0.75rem !important;
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  color: #f6f1e8 !important;
}

:is(body, #bf-theme) .admin-panel__content > .admin-panel__filter-row,
:is(body, #bf-theme) .admin-panel__content > .admin-track__chips {
  width: 100% !important;
  max-width: none !important;
}

:is(body, #bf-theme) .admin-panel__content > .admin-panel__field {
  width: 100% !important;
  max-width: none !important;
}

:is(body, #bf-theme) .admin-track__table-wrap {
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
  padding: 0.35rem 0.55rem !important;
  overflow-x: auto !important;
}

:is(body, #bf-theme) .admin-track__table {
  background: transparent !important;
}

:is(body, #bf-theme) .admin-track__table th,
:is(body, #bf-theme) .admin-track__table td {
  background: transparent !important;
  color: #f6f1e8 !important;
}

:is(body, #bf-theme) .admin-track__table thead th {
  color: #ffb020 !important;
}

:is(body, #bf-theme) .admin-panel__provider-list,
:is(body, #bf-theme) .admin-panel__provider-form {
  padding: 1rem 1.05rem 1.1rem !important;
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, 100% 100% !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .admin-panel__field > label,
:is(body, #bf-theme) .admin-panel__users-count,
:is(body, #bf-theme) .admin-panel__field-hint,
:is(body, #bf-theme) .admin-track__lead,
:is(body, #bf-theme) .admin-panel__content .admin-panel__account-meta {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0.28rem 0.55rem !important;
  margin-bottom: 0.35rem !important;
  background-color: #24180f !important;
  background-image: none !important;
  border: 1px solid rgba(231, 194, 122, 0.28) !important;
  border-radius: 6px !important;
  color: #f6f1e8 !important;
  opacity: 1 !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__footer {
  gap: 0.85rem !important;
  padding: 0.85rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  background-color: #140e0a !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border-top: 1px solid rgba(231, 194, 122, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.14) !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__reshuffle,
:is(body, #bf-theme) #model-picker-modal .model-picker-modal__generate {
  min-height: 3.05rem !important;
  min-width: 10.5rem !important;
  padding: 0.7rem 1.35rem !important;
  border-radius: 8px !important;
  letter-spacing: 0.09em !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__reshuffle {
  color: var(--tv-ink) !important;
  background-color: #24180f !important;
  background-image:
    linear-gradient(180deg, rgba(255, 214, 150, 0.16), transparent 46%),
    var(--tv-wood) !important;
  background-size: auto, auto, 180px 110px, auto !important;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-brass) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 186, 0.32),
    inset 0 0 0 1px rgba(26, 18, 8, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.32) !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__reshuffle .material-symbols-outlined {
  color: var(--tv-brass) !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__reshuffle:hover:not(:disabled) {
  color: #fff8ec !important;
  border-color: var(--tv-amber) !important;
  background-color: #2c1d12 !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__generate {
  color: var(--tv-ink-dark) !important;
  background-color: #ffb020 !important;
  background-image: linear-gradient(180deg, #ffe7b0 0%, #ffb020 46%, #d8880c 100%) !important;
  border: 1px solid #8d5c14 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 230, 0.9),
    inset 0 -2px 0 rgba(122, 68, 8, 0.38),
    0 0 0 1px rgba(255, 196, 90, 0.28),
    0 10px 18px rgba(0, 0, 0, 0.34) !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__generate .material-symbols-outlined {
  color: #1a1208 !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__generate:hover:not(:disabled) {
  filter: none !important;
  background-image: linear-gradient(180deg, #fff0c8 0%, #ffc04a 48%, #e09814 100%) !important;
}

:is(body, #bf-theme) #model-picker-modal .model-picker-modal__reshuffle:disabled,
:is(body, #bf-theme) #model-picker-modal .model-picker-modal__generate:disabled {
  opacity: 0.45 !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .admin-panel__card .admin-panel__field-hint,
:is(body, #bf-theme) .admin-panel__card .admin-panel__account-meta,
:is(body, #bf-theme) .admin-panel__stat .admin-panel__account-meta,
:is(body, #bf-theme) .admin-panel__account .admin-panel__account-meta {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

:is(body, #bf-theme) #style-picker-modal .style-picker-modal__card.is-active {
  border-color: #ffb020 !important;
  box-shadow:
    0 0 0 1px rgba(255, 176, 32, 0.45),
    0 0 1.5rem rgba(255, 176, 32, 0.22) !important;
}

:is(body, #bf-theme) #style-picker-modal .style-picker-modal__card::before,
:is(body, #bf-theme) #style-picker-modal .style-picker-modal__card.is-active .style-picker-modal__card-label {
  color: #1a1208 !important;
  background: #ffb020 !important;
}

:is(body, #bf-theme) #style-picker-modal .style-picker-modal__category--movies .home-movies-card.is-selected {
  border-color: #ffb020 !important;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.45) !important;
}

:is(body, #bf-theme) .home-shorts-feed,
:is(body, #bf-theme) #style-picker-modal {
  --shorts-accent: #ffb020;
  --shorts-accent-soft: rgba(255, 176, 32, 0.16);
}

:is(body, #bf-theme) .home-shorts-dropzone__text,
:is(body, #bf-theme) .home-shorts-dropzone__text strong,
:is(body, #bf-theme) .home-undress-panel__placeholder {
  color: #f6f1e8 !important;
}

:is(body, #bf-theme) .home-shorts-dropzone__text strong {
  color: #ffb020 !important;
}

:is(body, #bf-theme) .home-shorts-dropzone__icon,
:is(body, #bf-theme) .home-undress-panel__placeholder-icon {
  color: #1a1208 !important;
  background: #ffb020 !important;
  border: 1px solid #e09a12 !important;
  border-radius: 8px !important;
  clip-path: none !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .home-movies-compose__arrow {
  color: #ffb020 !important;
  background: rgba(255, 176, 32, 0.12) !important;
  border: 1px solid rgba(231, 194, 122, 0.55) !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .home-movies-compose__arrow .material-symbols-outlined,
:is(body, #bf-theme) .home-movies-compose__arrow-label {
  color: #ffb020 !important;
}

:is(body, #bf-theme) .home-movies-group--audio .home-movies-group__head > .material-symbols-outlined,
:is(body, #bf-theme) .style-picker-modal__category--movies .home-movies-group--audio .home-movies-group__head > .material-symbols-outlined {
  color: #ffb020 !important;
  background: rgba(255, 176, 32, 0.18) !important;
}

:is(body, #bf-theme) .home-movies-group--silent .home-movies-group__head > .material-symbols-outlined,
:is(body, #bf-theme) .style-picker-modal__category--movies .home-movies-group--silent .home-movies-group__head > .material-symbols-outlined {
  color: #e7c27a !important;
  background: rgba(231, 194, 122, 0.14) !important;
}

:is(body, #bf-theme) .home-movies-group__head strong {
  color: #f6f1e8 !important;
}

:is(body, #bf-theme) .home-movies-group__head small {
  color: #f3e2bf !important;
}

:is(body, #bf-theme) .home-shorts-dot.is-active {
  background: #ffb020 !important;
}

:is(body, #bf-theme) .generation-status__card:has(.tavern-run),
:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) {
  width: min(100%, 52rem) !important;
  padding: 0.9rem 0.95rem 1rem !important;
  border: 1px solid #e7c27a !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 176, 0.35),
    inset 0 0 0 7px rgba(28, 16, 10, 0.72),
    0 22px 48px rgba(0, 0, 0, 0.48) !important;
}

:is(body, #bf-theme) .generation-status__card:has(.tavern-run) .generation-status__stage,
:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .home-undress-wait__stage {
  display: none !important;
}

:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .home-undress-wait__title {
  margin: 0.15rem 0 0 !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  text-align: center;
}

:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .home-undress-wait__hint {
  margin: 0.15rem 0 0.55rem !important;
  font-size: 0.92rem !important;
  text-align: center;
}

:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .home-undress-wait__bar {
  display: none !important;
}

:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) {
  align-items: stretch !important;
}

:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .generation-status__progress,
:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .generation-status__hint,
:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .home-undress-wait__title,
:is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .home-undress-wait__hint {
  width: 100%;
}

.tavern-run {
  margin: 0 0 0.85rem;
  text-align: center;
}

.tavern-run__stage {
  position: relative;
}

.tavern-run__canvas {
  display: block;
  width: 100%;
  height: 16rem;
  border: 2px solid #e7c27a;
  border-radius: 14px;
  background: #140e0a;
  box-shadow:
    inset 0 0 0 4px rgba(22, 12, 8, 0.92),
    inset 0 0 0 5px rgba(231, 194, 122, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.28);
  touch-action: none;
  cursor: pointer;
}

.tavern-run__controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tavern-run__controls button {
  min-height: 2.9rem;
  border-radius: 12px;
  font: 700 0.98rem "Instrument Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  touch-action: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.35);
}

.tavern-run__controls [data-tavern-run-duck] {
  color: #f6f1e8;
  background: linear-gradient(180deg, #3a281c, #24160f);
  border: 1px solid #e7c27a;
}

.tavern-run__controls [data-tavern-run-jump] {
  color: #1a1208;
  background: linear-gradient(180deg, #ffe7b0, #ffb020 55%, #d8880c);
  border: 1px solid #f0d7a2;
}

.tavern-run__sound {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: #f6f1e8;
  background: rgba(26, 16, 12, 0.82);
  border: 1px solid #e7c27a;
  border-radius: 999px;
  cursor: pointer;
}

.tavern-run__sound .material-symbols-outlined {
  font-size: 1.15rem;
}

@media (max-width: 720px) {
  :is(body, #bf-theme) .generation-status {
    padding: 0.55rem !important;
  }

  :is(body, #bf-theme) .generation-status__card:has(.tavern-run),
  :is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) {
    max-height: calc(100dvh - 1rem);
    overflow: auto !important;
    padding: 0.7rem 0.7rem 0.8rem !important;
  }

  :is(body, #bf-theme) .generation-status__card:has(.tavern-run) .generation-status__steps,
  :is(body, #bf-theme) .home-undress-wait__card:has(.tavern-run) .generation-status__steps {
    display: none !important;
  }

  .tavern-run__canvas {
    height: min(42dvh, 14rem);
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .tavern-run__canvas {
    height: 13rem;
  }
}

:is(body, #bf-theme) .generation-status {
  background: rgba(18, 12, 8, 0.72) !important;
}

:is(body, #bf-theme) .generation-status__card {
  color: var(--tv-ink) !important;
  background-color: var(--tv-plank) !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  border: 1px solid var(--tv-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--tv-frame) !important;
}

:is(body, #bf-theme) .generation-status__title,
:is(body, #bf-theme) .generation-status__message,
:is(body, #bf-theme) .generation-status__hint,
:is(body, #bf-theme) .generation-status__meta,
:is(body, #bf-theme) .generation-status__elapsed,
:is(body, #bf-theme) .home-undress-wait__title,
:is(body, #bf-theme) .home-undress-wait__hint {
  color: #f6f1e8 !important;
}

:is(body, #bf-theme) .generation-status__bar,
:is(body, #bf-theme) .home-undress-wait__bar {
  background: rgba(231, 194, 122, 0.18) !important;
}

:is(body, #bf-theme) .generation-status__bar span,
:is(body, #bf-theme) .home-undress-wait__bar span {
  background: linear-gradient(90deg, #e7c27a, #ffb020) !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .generation-status__steps li.is-active,
:is(body, #bf-theme) .generation-status__steps li.is-done {
  color: #f3e2bf !important;
}

:is(body, #bf-theme) .generation-status__steps li.is-active .generation-status__step-dot,
:is(body, #bf-theme) .generation-status__steps li.is-done .generation-status__step-dot {
  border-color: #ffb020 !important;
  background: #ffb020 !important;
  box-shadow: none !important;
}

:is(body, #bf-theme) .generation-status.is-success .generation-status__icon--success,
:is(body, #bf-theme) .generation-status.is-success .generation-status__title {
  color: #ffb020 !important;
  text-shadow: none !important;
}

:is(body, #bf-theme) .ir-header-util--history.home-tab-button[data-tab="creations"] {
  display: inline-flex !important;
}

.home-creations-notice {
  display: none !important;
}

.home-creations-empty__panel {
  width: min(100%, 28rem) !important;
  padding: 2.2rem 1.6rem 1.7rem !important;
  border: 1px solid #e7c27a !important;
  border-left: 1px solid #e7c27a !important;
  border-radius: 18px !important;
  background-color: #1a120c !important;
  background-image: var(--tv-wood) !important;
  background-size: auto, 180px 110px, auto !important;
  background-repeat: no-repeat, repeat, no-repeat !important;
  box-shadow: var(--tv-frame) !important;
  animation: none !important;
}

.home-creations-empty__panel::before,
.home-creations-empty__cta::after {
  content: none !important;
  display: none !important;
}

.home-creations-empty__badge {
  width: 3.4rem !important;
  height: 3.4rem !important;
  margin-bottom: 0.9rem !important;
  border: 1px solid #e7c27a !important;
  border-radius: 999px !important;
  color: #f6f1e8 !important;
  background: #24180f !important;
  box-shadow: inset 0 0 0 1px rgba(231, 194, 122, 0.28) !important;
  animation: none !important;
}

.home-creations-empty__badge .material-symbols-outlined {
  color: #e7c27a !important;
  font-size: 1.55rem !important;
}

.home-creations-empty__title {
  color: #f6f1e8 !important;
  font-family: "Instrument Sans", "Segoe UI", sans-serif !important;
}

.home-creations-empty__subtitle {
  color: #f3e2bf !important;
}

.home-creations-empty__cta {
  gap: 0.45rem;
  min-height: 2.9rem !important;
  margin-top: 1.35rem !important;
  border: 1px solid #f0d7a2 !important;
  border-radius: 12px !important;
  color: #1a1208 !important;
  background: linear-gradient(180deg, #ffe7b0, #ffb020 55%, #d8880c) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.45) !important;
  font-family: "Instrument Sans", "Segoe UI", sans-serif !important;
}

.home-creation-card {
  border: 1px solid rgba(231, 194, 122, 0.45) !important;
  border-radius: 16px !important;
  background: #1a120c !important;
  box-shadow: var(--tv-frame) !important;
}

.home-creation-card__media {
  background: #140e0a !important;
}

.home-creation-card__kind {
  color: #f6f1e8;
  background: rgba(26, 18, 12, 0.82);
  border: 1px solid rgba(231, 194, 122, 0.55);
  border-radius: 999px;
  font: 700 0.68rem "Instrument Sans", "Segoe UI", sans-serif;
}

.home-creation-card__download {
  border: 1px solid #e7c27a !important;
  border-radius: 10px !important;
  color: #1a1208 !important;
  background: linear-gradient(180deg, #ffe7b0, #ffb020 55%, #d8880c) !important;
}

.home-creations-feed-list--book {
  display: flex !important;
  flex-direction: column;
  gap: 1.15rem;
  align-content: start;
  padding: 0.35rem 0.8rem 2rem !important;
}

.home-creations-book__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-creations-book__tab {
  min-height: 2.3rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(231, 194, 122, 0.55);
  border-radius: 999px;
  color: #f6f1e8;
  background: #1a120c;
  font: 700 0.84rem "Instrument Sans", "Segoe UI", sans-serif;
  cursor: pointer;
}

.home-creations-book__tab.is-active {
  color: #1a1208;
  border-color: #e7c27a;
  background: #e7c27a;
}

.home-creations-day {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.home-creations-day__plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(231, 194, 122, 0.55);
  border-radius: 10px;
  background-color: #1a120c;
  background-image: var(--tv-wood);
  background-size: auto, 180px 110px, auto;
  background-repeat: no-repeat, repeat, no-repeat;
  box-shadow: var(--tv-frame);
}

.home-creations-day__label {
  margin: 0;
  color: #f6f1e8;
  font: 700 1.05rem "Instrument Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.home-creations-day__count {
  color: #e7c27a;
  font: 700 0.78rem "Instrument Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.home-creations-day__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-creation-card--coaster,
.home-creation-card--coaster.is-portrait,
.home-creation-card--coaster.is-landscape,
.home-creation-card--coaster.is-square {
  grid-column: auto !important;
}

.home-creation-card--coaster .home-creation-card__media,
.home-creation-card--coaster.is-portrait .home-creation-card__media,
.home-creation-card--coaster.is-landscape .home-creation-card__media,
.home-creation-card--coaster.is-square .home-creation-card__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 12.5rem;
  aspect-ratio: auto !important;
  overflow: hidden;
  background: #140e0a !important;
}

.home-creation-card--coaster .home-creation-card__visual {
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 12.5rem;
  object-fit: contain !important;
  background: #140e0a !important;
}

.home-creation-card__kind {
  color: #e7c27a !important;
  background: rgba(20, 14, 10, 0.82) !important;
  border: 1px solid rgba(231, 194, 122, 0.7) !important;
  letter-spacing: 0.03em;
  text-transform: none !important;
}

.home-creation-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.home-creation-card__time {
  color: #f3e2bf;
  font: 600 0.78rem "Instrument Sans", "Segoe UI", sans-serif;
}

.home-creation-card--coaster .home-creation-card__download {
  width: auto !important;
  min-width: 0;
  padding: 0.4rem 0.65rem !important;
}

.home-creations-empty--filtered {
  min-height: 18rem !important;
}

@media (min-width: 1024px) {
  .home-creations-day__row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-creations-day__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celular: header em 2 fileiras + feed sem vão no fim */
@media (max-width: 900px) {
  :is(body, #bf-theme) .home-top-brand-row.ir-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    align-items: center !important;
    column-gap: 0.4rem !important;
    row-gap: 0.32rem !important;
    min-height: 0 !important;
    padding: 0.38rem 0.5rem 0.4rem !important;
  }

  :is(body, #bf-theme) .ir-topbar .home-brand-lockup {
    grid-area: brand;
    justify-self: start !important;
    max-width: 2.55rem !important;
    flex-direction: row !important;
  }

  :is(body, #bf-theme) .ir-tagline,
  :is(body, #bf-theme) .home-top-bar:has(.home-top-tabs) .ir-tagline,
  :is(body, #bf-theme) .home-top-bar:has(.home-top-tabs) .site-brand-logo__word,
  :is(body, #bf-theme) .home-top-bar:has(.home-top-tabs) .home-brand-lockup::after {
    display: none !important;
  }

  :is(body, #bf-theme) .ir-topbar .home-top-actions {
    grid-area: actions;
    justify-self: end !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 0.28rem !important;
    margin-left: 0 !important;
  }

  :is(body, #bf-theme) .home-top-tabs {
    grid-area: tabs;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    flex: none !important;
    order: unset !important;
    margin: 0 !important;
  }

  :is(body, #bf-theme) .home-top-tabs__scroll {
    display: flex !important;
    width: 100% !important;
    justify-content: stretch !important;
    gap: 0.28rem !important;
  }

  :is(body, #bf-theme) .home-top-tabs .home-tab-button,
  :is(body, #bf-theme) .home-top-tabs .ir-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
  }

  :is(body, #bf-theme) .ir-header-util--history,
  :is(body, #bf-theme) .ir-header-util--history.home-tab-button[data-tab="creations"] {
    display: none !important;
  }

  :is(body, #bf-theme) .feed-page-wrap {
    min-height: 0 !important;
  }

  :is(body, #bf-theme) .feed-page-wrap::after {
    content: none !important;
    display: none !important;
    flex: none !important;
  }

  :is(body, #bf-theme) .ff-layout .home-feed-col--1,
  :is(body, #bf-theme) .ff-layout .home-feed-col--2,
  :is(body, #bf-theme) .ff-layout .home-feed-col--3,
  :is(body, #bf-theme) .home-feed-col--1,
  :is(body, #bf-theme) .home-feed-col--2,
  :is(body, #bf-theme) .home-feed-col--3,
  :is(body, #bf-theme) .home-feed-col--4,
  :is(body, #bf-theme) .home-feed-col--5 {
    padding-top: 0 !important;
  }

  :is(body, #bf-theme) .home-all-feed-list:not(.home-photo-feed-list) {
    padding-bottom: 0.65rem;
  }
}

@media (max-width: 640px) {
  :is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid {
    --feed-pad-l: 0.45rem;
    --feed-pad-r: 0.45rem;
    padding-left: max(0.45rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.45rem, env(safe-area-inset-right, 0px)) !important;
  }

  :is(body, #bf-theme) .home-all-feed-list:not(.home-photo-feed-list),
  :is(body, #bf-theme) .home-images-feed-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    width: 100% !important;
    gap: 0.35rem !important;
  }

  :is(body, #bf-theme) .home-feed-col {
    display: contents !important;
  }

  :is(body, #bf-theme) .home-all-feed-item,
  :is(body, #bf-theme) .home-feed-col > .home-image-card {
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
  }

  :is(body, #bf-theme) .feed-page-wrap {
    min-height: 0 !important;
  }

  :is(body, #bf-theme) .feed-page-wrap::after {
    content: none !important;
    display: none !important;
    flex: none !important;
  }

  :is(body, #bf-theme) .home-feed-scroll.home-feed-scroll--grid .site-footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  :is(body, #bf-theme) .ir-header-util--aff {
    display: none !important;
  }

  :is(body, #bf-theme) .home-top-actions .home-coins-button,
  :is(body, #bf-theme) .home-top-actions .ir-lang__trigger,
  :is(body, #bf-theme) .home-top-actions .ir-account__trigger,
  :is(body, #bf-theme) .home-top-actions .home-header-login-button,
  :is(body, #bf-theme) .home-top-actions .ir-header-icon-btn {
    height: 2.2rem !important;
    min-height: 2.2rem !important;
  }

  :is(body, #bf-theme) .home-top-actions .ir-lang__trigger,
  :is(body, #bf-theme) .home-top-actions .ir-account__trigger,
  :is(body, #bf-theme) .home-top-actions .ir-header-icon-btn {
    width: 2.2rem !important;
    min-width: 2.2rem !important;
    padding: 0 !important;
  }
}

/* Celular: menus dentro da tela + foto e abas sem texto partido */
@media (max-width: 900px) {
  :is(body, #bf-theme) .home-top-tabs .home-tab-button,
  :is(body, #bf-theme) .home-top-tabs .ir-btn {
    white-space: nowrap !important;
  }

  :is(body, #bf-theme) .ir-topbar .home-top-actions,
  :is(body, #bf-theme) .ir-lang,
  :is(body, #bf-theme) .ir-account {
    overflow: visible !important;
  }

  :is(body, #bf-theme) .ir-lang__menu,
  :is(body, #bf-theme) .ir-account__menu {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + var(--sx-header-h, 5.7rem) + 0.3rem);
    left: 0.55rem;
    right: 0.55rem;
    width: auto !important;
    max-width: none !important;
    max-height: min(70dvh, 24rem);
    z-index: 260 !important;
  }

  :is(body, #bf-theme) .home-photo-shell:has(.home-photo-chooser) {
    min-height: 0;
  }

  :is(body, #bf-theme) .home-photo-chooser {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    height: auto !important;
    min-height: 0 !important;
  }

  :is(body, #bf-theme) .home-photo-choice,
  :is(body, #bf-theme) .home-photo-feed-list .home-photo-choice {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.9rem !important;
    min-height: 5.6rem !important;
    height: auto !important;
    padding: 0.75rem 0.95rem !important;
  }

  :is(body, #bf-theme) .home-photo-choice__avatar {
    width: 4.6rem !important;
    flex: 0 0 4.6rem !important;
  }

  :is(body, #bf-theme) .home-photo-choice__label {
    font-size: 1.05rem !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}
