/* ==========================================================================
   CROWNVA HOME DESIGN SYSTEM V1
   Canonical visual ownership for crownva.live homepage.
   Loaded after legacy styles.css and Home V2 foundation.

   Scope:
   - navigation
   - Home V2 hero
   - Arena rail
   - battles
   - matchmaker
   - stats / leaderboard / filters
   - How Crownva Works
   - footer
   - all native dialogs
   - winner / rank / share popups
   - live chat chrome
   - desktop / tablet / mobile

   This file intentionally does NOT own application behavior.
   ========================================================================== */

.cv2-home{
  color-scheme:dark;

  --cv-page:#050914;
  --cv-page-2:#07101c;
  --cv-surface:#0d1523;
  --cv-surface-2:#111c2d;
  --cv-surface-3:#172338;
  --cv-surface-hover:#1b2940;

  --cv-border:rgba(147,166,202,.18);
  --cv-border-strong:rgba(147,166,202,.30);
  --cv-divider:rgba(255,255,255,.075);

  --cv-text:#f6f8fc;
  --cv-text-2:#d5deeb;
  --cv-muted:#94a2b7;
  --cv-muted-2:#74839a;

  --cv-coral:#ee7d62;
  --cv-coral-2:#ff9d7e;
  --cv-gold:#f4cf74;
  --cv-cyan:#68ddff;
  --cv-green:#70e6ab;
  --cv-red:#ff6e6e;

  --cv-radius-lg:24px;
  --cv-radius-md:16px;
  --cv-radius-sm:11px;

  --cv-shadow:0 18px 55px rgba(0,0,0,.30);
  --cv-shadow-float:0 26px 90px rgba(0,0,0,.50);

  background:
    radial-gradient(circle at 8% 0%,rgba(94,66,218,.12),transparent 28%),
    radial-gradient(circle at 96% 14%,rgba(47,182,255,.08),transparent 28%),
    linear-gradient(180deg,var(--cv-page),#060b14 50%,#050812 100%)!important;
  color:var(--cv-text-2)!important;
}

/* ----- Typography ------------------------------------------------------ */
.cv2-home,
.cv2-home button,
.cv2-home input,
.cv2-home select,
.cv2-home textarea{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

.cv2-home h1,
.cv2-home h2,
.cv2-home h3,
.cv2-home h4,
.cv2-home h5,
.cv2-home h6,
.cv2-home strong,
.cv2-home b{
  color:var(--cv-text)!important;
}

.cv2-home p,
.cv2-home small,
.cv2-home .muted{
  color:var(--cv-muted)!important;
}

.cv2-home a{
  color:#cbd8ec;
}

.cv2-home a:hover{
  color:#fff;
}

/* ----- Canonical surfaces --------------------------------------------- */
.cv2-home main section:not(.cv2-hero),
.cv2-home main article,
.cv2-home main .card,
.cv2-home main .panel,
.cv2-home main .sheet,
.cv2-home main .tile{
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home main .card,
.cv2-home main .panel,
.cv2-home main .tile{
  background:linear-gradient(180deg,var(--cv-surface-2),var(--cv-surface))!important;
}

/* Never allow legacy inline white cards to win on the homepage. */
.cv2-home main [style*="background:#fff"],
.cv2-home main [style*="background: #fff"],
.cv2-home main [style*="background:#ffffff"],
.cv2-home main [style*="background: #ffffff"],
.cv2-home main [style*="background:white"],
.cv2-home main [style*="background: white"],
.cv2-home main [style*="background-color:#fff"],
.cv2-home main [style*="background-color: #fff"],
.cv2-home main [style*="background-color:#ffffff"],
.cv2-home main [style*="background-color: #ffffff"],
.cv2-home main [style*="background-color:white"],
.cv2-home main [style*="background-color: white"]{
  background:linear-gradient(180deg,var(--cv-surface-2),var(--cv-surface))!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

/* ----- Header ---------------------------------------------------------- */
.cv2-home .cv2-site-header{
  background:rgba(5,9,17,.91)!important;
  border-color:var(--cv-divider)!important;
  box-shadow:0 8px 30px rgba(0,0,0,.18);
}

.cv2-home .cv2-primary-nav a{
  color:#b6c1d3!important;
}

.cv2-home .cv2-primary-nav a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.055)!important;
}

.cv2-home .cv2-primary-nav .cv2-creator-link{
  color:#d8d0ff!important;
}

.cv2-home .cv2-primary-nav .cv2-brand-link{
  color:#f6d98b!important;
}

/* ----- Hero ------------------------------------------------------------ */
.cv2-home .cv2-hero{
  padding:38px 28px 30px!important;
}

.cv2-home .cv2-hero-grid{
  gap:32px!important;
}

.cv2-home .cv2-hero h1{
  font-size:clamp(42px,4.7vw,64px)!important;
  line-height:1!important;
}

.cv2-home .cv2-hero-copy{
  color:#a9b6c9!important;
  font-size:16px!important;
}

.cv2-home .cv2-signal{
  background:
    radial-gradient(circle at 90% 0,rgba(87,215,255,.08),transparent 35%),
    linear-gradient(180deg,#121d2e,#0b1320)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

/* Legacy hero remains for JS IDs but is not a second visual hero. */
.cv2-home main > .hero:first-child{
  display:none!important;
}

/* ----- Controls -------------------------------------------------------- */
.cv2-home button,
.cv2-home input,
.cv2-home select,
.cv2-home textarea{
  border-radius:var(--cv-radius-sm);
}

.cv2-home input,
.cv2-home select,
.cv2-home textarea{
  background:var(--cv-surface-3)!important;
  color:var(--cv-text)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home input::placeholder,
.cv2-home textarea::placeholder{
  color:var(--cv-muted-2)!important;
}

.cv2-home select option{
  background:#111a29;
  color:#fff;
}

.cv2-home button:not(.primary):not(.gold):not(.accent):not(.arena-main-promote):not(.battle-start-pay),
.cv2-home .secondary,
.cv2-home .ghost{
  background:var(--cv-surface-3)!important;
  color:var(--cv-text)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home button:not(.primary):not(.gold):not(.accent):not(.arena-main-promote):not(.battle-start-pay):hover,
.cv2-home .secondary:hover,
.cv2-home .ghost:hover{
  background:var(--cv-surface-hover)!important;
  border-color:rgba(104,221,255,.30)!important;
}

.cv2-home .primary,
.cv2-home .accent,
.cv2-home .arena-main-promote,
.cv2-home .battle-start-pay{
  background:linear-gradient(90deg,var(--cv-coral),#e99a6f)!important;
  color:#fff!important;
  border-color:transparent!important;
}

.cv2-home .gold{
  background:linear-gradient(90deg,#f1c961,#d7a94a)!important;
  color:#171207!important;
  border-color:transparent!important;
}

/* ----- Arena ----------------------------------------------------------- */
.cv2-home .arena-side,
.cv2-home .arena-panel{
  background:linear-gradient(180deg,#111a29,#090f19)!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .arena-media{
  background:#000!important;
}

.cv2-home .arena-value-row > div{
  background:rgba(255,255,255,.035)!important;
  border-color:var(--cv-divider)!important;
}

.cv2-home .arena-top3-row{
  background:rgba(255,255,255,.02)!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-divider)!important;
}

.cv2-home .arena-top3-row:hover{
  background:rgba(104,221,255,.065)!important;
}

.cv2-home .arena-top3-row.active{
  background:linear-gradient(90deg,rgba(238,125,98,.20),rgba(244,207,116,.07))!important;
  border-color:rgba(238,125,98,.48)!important;
  box-shadow:inset 3px 0 0 var(--cv-coral)!important;
}

.cv2-home .arena-top3-row .arena-top3-rank,
.cv2-home .arena-top3-row .arena-top3-name strong{
  color:var(--cv-text)!important;
}

.cv2-home .arena-top3-row .arena-top3-name small{
  color:var(--cv-muted)!important;
}

.cv2-home .arena-top3-row .arena-top3-value{
  color:var(--cv-coral-2)!important;
}

.cv2-home .arena-top3-row.active .arena-top3-value{
  color:var(--cv-gold)!important;
}

.cv2-home .arena-my-creator{
  background:linear-gradient(90deg,rgba(244,207,116,.09),rgba(238,125,98,.07))!important;
  color:var(--cv-text-2)!important;
  border-color:rgba(244,207,116,.28)!important;
}

.cv2-home .arena-airtime{
  background:#15140f!important;
  color:var(--cv-text-2)!important;
  border-color:rgba(244,207,116,.18)!important;
}

/* ----- Live Chat ------------------------------------------------------- */
.cv2-home .chat-panel,
.cv2-home .chat-messages,
.cv2-home #chatMessages{
  background:#09101a!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-empty{
  color:var(--cv-muted)!important;
}

.cv2-home .chat-author{
  color:#fff!important;
}

.cv2-home .chat-text,
.cv2-home .chat-copy{
  color:var(--cv-text-2)!important;
}

/* ----- Live Battles ---------------------------------------------------- */
.cv2-home .live-battles-section{
  background:linear-gradient(180deg,#0d1625,#08101b)!important;
  border:1px solid var(--cv-border)!important;
  border-radius:var(--cv-radius-lg)!important;
  padding:18px!important;
  box-shadow:none!important;
}

.cv2-home .live-battles-head,
.cv2-home .battle-arena-head,
.cv2-home .battle-results-head{
  color:var(--cv-text)!important;
}

.cv2-home .live-battles-head small,
.cv2-home .battle-arena-head small,
.cv2-home .battle-results-head small{
  color:var(--cv-muted)!important;
}

.cv2-home .live-battles-grid,
.cv2-home .all-live-battles-grid,
.cv2-home .battle-results-grid{
  background:transparent!important;
}

.cv2-home .live-battles-empty,
.cv2-home .wanted-empty,
.cv2-home .battle-opening-unavailable{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.025)!important;
  color:var(--cv-muted)!important;
  border:1px dashed rgba(147,166,202,.18)!important;
  border-radius:14px!important;
}

.cv2-home .battle-card,
.cv2-home .battle-result-card,
.cv2-home .battle-picker-card,
.cv2-home .matchup-card{
  background:linear-gradient(180deg,var(--cv-surface-2),var(--cv-surface))!important;
  color:var(--cv-text-2)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home .battle-filter-tabs button{
  background:#111b2b!important;
  color:#bac6d8!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .battle-filter-tabs button.active{
  background:linear-gradient(90deg,rgba(238,125,98,.22),rgba(244,207,116,.09))!important;
  color:#fff!important;
  border-color:rgba(238,125,98,.40)!important;
}

/* ----- Matchmaker ------------------------------------------------------ */
.cv2-home .matchmaker-section{
  background:
    radial-gradient(circle at 100% 0,rgba(92,153,255,.06),transparent 35%),
    linear-gradient(180deg,#111b2c,#0a121f)!important;
  color:var(--cv-text-2)!important;
  border:1px solid var(--cv-border)!important;
  border-radius:var(--cv-radius-lg)!important;
  box-shadow:none!important;
}

.cv2-home .matchmaker-head,
.cv2-home .matchmaker-section h2,
.cv2-home .matchmaker-section h3{
  color:var(--cv-text)!important;
}

.cv2-home .matchmaker-section select{
  background:#121d2f!important;
  color:#fff!important;
}

.cv2-home .viewer-pick,
.cv2-home .viewer-pick-badge{
  background:rgba(244,207,116,.10)!important;
  color:var(--cv-gold)!important;
  border-color:rgba(244,207,116,.25)!important;
}

/* ----- Stats / latest boosts / filters / leaderboard ------------------ */
.cv2-home .stats,
.cv2-home .metrics,
.cv2-home .kpis{
  gap:10px!important;
}

.cv2-home .stat,
.cv2-home .metric,
.cv2-home .kpi{
  background:linear-gradient(180deg,var(--cv-surface-2),var(--cv-surface))!important;
  color:var(--cv-text)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home .stat small,
.cv2-home .metric small,
.cv2-home .kpi small{
  color:var(--cv-muted)!important;
}

.cv2-home .filters,
.cv2-home .filter-bar,
.cv2-home .toolbar,
.cv2-home .latest-boosts{
  background:linear-gradient(180deg,#111a29,#0a111d)!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home #leaderboard,
.cv2-home #emptyState{
  color:var(--cv-text-2)!important;
}

.cv2-home #leaderboard .row,
.cv2-home #leaderboard .item,
.cv2-home #leaderboard > div{
  border-color:var(--cv-divider)!important;
}

/* ----- How Crownva works ---------------------------------------------- */
.cv2-home .how{
  background:
    radial-gradient(circle at 50% 0,rgba(86,146,255,.07),transparent 48%),
    linear-gradient(180deg,#0c1523,#08101b)!important;
  border:1px solid var(--cv-border)!important;
  border-radius:var(--cv-radius-lg)!important;
  padding:34px!important;
}

.cv2-home .how h2{
  color:var(--cv-text)!important;
}

.cv2-home .how-grid article{
  background:linear-gradient(180deg,#121d2f,#0c1421)!important;
  color:var(--cv-text-2)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home .how-grid article > span{
  background:rgba(238,125,98,.10)!important;
  color:var(--cv-coral-2)!important;
  border:1px solid rgba(238,125,98,.18)!important;
}

.cv2-home .how-grid h3{
  color:var(--cv-text)!important;
}

.cv2-home .how-grid p{
  color:var(--cv-muted)!important;
}

/* ----- Footer ---------------------------------------------------------- */
.cv2-home footer{
  color:#7f8da2!important;
  border-color:var(--cv-divider)!important;
}

.cv2-home footer a{
  color:#9bb7e8!important;
}

/* ----- Native dialogs: Add Live, Boost, Battle start ------------------ */
.cv2-home dialog{
  background:linear-gradient(180deg,#121b2a,#0a111c)!important;
  color:var(--cv-text-2)!important;
  border:1px solid var(--cv-border-strong)!important;
  box-shadow:var(--cv-shadow-float)!important;
}

.cv2-home dialog::backdrop{
  background:rgba(2,6,13,.72)!important;
  backdrop-filter:blur(7px)!important;
}

.cv2-home dialog form,
.cv2-home dialog section,
.cv2-home dialog .dialog-body,
.cv2-home dialog .dialog-content{
  background:transparent!important;
  color:var(--cv-text-2)!important;
}

.cv2-home dialog .dialog-head{
  border-color:var(--cv-divider)!important;
}

.cv2-home dialog .dialog-head b{
  color:#fff!important;
}

.cv2-home dialog .dialog-head span,
.cv2-home dialog small{
  color:var(--cv-muted)!important;
}

.cv2-home dialog .x,
.cv2-home dialog [data-close]{
  background:rgba(255,255,255,.06)!important;
  color:#fff!important;
  border:1px solid var(--cv-border)!important;
}

.cv2-home .youtube-auto-preview,
.cv2-home .youtube-preview-copy,
.cv2-home .boost-card,
.cv2-home .battle-start-card{
  background:#0d1624!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

/* ----- Winner / rank / share popup ------------------------------------ */
.cv2-home .winner-overlay{
  background:rgba(3,7,14,.45)!important;
  backdrop-filter:blur(5px)!important;
}

.cv2-home .winner-card{
  background:
    radial-gradient(circle at 15% 0,rgba(244,207,116,.08),transparent 35%),
    linear-gradient(180deg,#141e30,#0c1421)!important;
  color:var(--cv-text-2)!important;
  border:1px solid var(--cv-border-strong)!important;
  box-shadow:var(--cv-shadow-float)!important;
}

.cv2-home .winner-card h2{
  color:#fff!important;
}

.cv2-home .winner-card p{
  color:var(--cv-muted)!important;
}

.cv2-home .winner-actions button{
  min-height:42px;
}

/* ----- Generic fixed popup safety net -------------------------------- */
.cv2-home [role="dialog"],
.cv2-home [aria-modal="true"],
.cv2-home .popup,
.cv2-home .popover,
.cv2-home .toast,
.cv2-home .floating-card,
.cv2-home .share-card,
.cv2-home .announcement-card{
  background:linear-gradient(180deg,#141e30,#0b1320)!important;
  color:var(--cv-text-2)!important;
  border:1px solid var(--cv-border-strong)!important;
  box-shadow:var(--cv-shadow-float)!important;
}

/* ----- Mobile ---------------------------------------------------------- */
@media(max-width:900px){
  .cv2-home .cv2-hero{
    padding:28px 16px 22px!important;
  }

  .cv2-home .live-battles-section,
  .cv2-home .matchmaker-section,
  .cv2-home .how{
    border-radius:18px!important;
    padding:15px!important;
  }

  .cv2-home dialog{
    width:min(94vw,620px)!important;
    max-height:90vh!important;
  }
}

@media(max-width:600px){
  .cv2-home .cv2-hero{
    padding:24px 13px 18px!important;
  }

  .cv2-home .cv2-signal-board{
    display:none!important;
  }

  .cv2-home .live-battles-section,
  .cv2-home .matchmaker-section,
  .cv2-home .how{
    margin-left:0!important;
    margin-right:0!important;
    padding:13px!important;
  }

  .cv2-home .how-grid{
    grid-template-columns:1fr!important;
  }

  .cv2-home button,
  .cv2-home input,
  .cv2-home select,
  .cv2-home textarea{
    min-height:44px;
  }

  .cv2-home dialog{
    width:calc(100vw - 18px)!important;
    max-width:none!important;
    max-height:92vh!important;
    border-radius:18px!important;
  }

  .cv2-home .winner-overlay{
    padding:10px!important;
  }

  .cv2-home .winner-card{
    width:100%!important;
    border-radius:20px!important;
  }
}

/* CROWNVA_HOME_DESIGN_SYSTEM_V1_1_CHAT_WHITE_SURFACES_START */
/* Home-owned chat/header/composer surfaces must never fall back to white. */
/* Note: the large offline white card inside the Twitch iframe is cross-origin
   third-party content and cannot be styled from Crownva CSS. */

.cv2-home .chat-panel,
.cv2-home .chat-shell,
.cv2-home .chat-column,
.cv2-home .arena-chat,
.cv2-home .arena-chat-panel,
.cv2-home #liveChat,
.cv2-home #chatPanel,
.cv2-home #chatBox,
.cv2-home #chatWrap,
.cv2-home #chatShell{
  background:linear-gradient(180deg,#101929,#0a111c)!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-header,
.cv2-home .chat-topbar,
.cv2-home .chat-title-row,
.cv2-home .chat-toolbar,
.cv2-home #chatHeader,
.cv2-home #chatTopbar{
  background:#0f1726!important;
  color:var(--cv-text)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-header *,
.cv2-home .chat-topbar *,
.cv2-home .chat-title-row *,
.cv2-home .chat-toolbar *,
.cv2-home #chatHeader *,
.cv2-home #chatTopbar *{
  color:inherit!important;
}

.cv2-home .chat-body,
.cv2-home .chat-feed,
.cv2-home .chat-messages,
.cv2-home #chatMessages,
.cv2-home #chatLog{
  background:#0b1220!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-empty,
.cv2-home .chat-status,
.cv2-home .chat-copy,
.cv2-home .chat-disclaimer,
.cv2-home .chat-footer,
.cv2-home #chatStatus,
.cv2-home #chatMeta{
  color:var(--cv-muted)!important;
}

.cv2-home .chat-composer,
.cv2-home .chat-input-row,
.cv2-home .chat-form,
.cv2-home .chat-actions,
.cv2-home #chatComposer,
.cv2-home #chatForm,
.cv2-home #chatInputRow,
.cv2-home #chatControls{
  background:#0f1726!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-composer input,
.cv2-home .chat-composer textarea,
.cv2-home .chat-input,
.cv2-home .chat-textbox,
.cv2-home #chatComposer input,
.cv2-home #chatComposer textarea,
.cv2-home #chatInput,
.cv2-home #chatText{
  background:#121c2d!important;
  color:#f7fbff!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home .chat-composer input::placeholder,
.cv2-home .chat-composer textarea::placeholder,
.cv2-home .chat-input::placeholder,
.cv2-home .chat-textbox::placeholder,
.cv2-home #chatInput::placeholder,
.cv2-home #chatText::placeholder{
  color:#8a98ad!important;
}

.cv2-home .chat-send,
.cv2-home .chat-submit,
.cv2-home .chat-signout,
.cv2-home #chatSend,
.cv2-home #chatSendBtn,
.cv2-home #chatSignOut,
.cv2-home button[data-chat-send]{
  background:linear-gradient(90deg,#ee7d62,#e99a6f)!important;
  color:#fff!important;
  border-color:transparent!important;
}

.cv2-home .chat-ghost,
.cv2-home .chat-secondary,
.cv2-home #chatSignOut{
  background:#141f32!important;
  border:1px solid var(--cv-border)!important;
  color:var(--cv-text)!important;
}

.cv2-home .chat-send:hover,
.cv2-home .chat-submit:hover,
.cv2-home #chatSend:hover,
.cv2-home #chatSendBtn:hover{
  filter:brightness(1.04);
}

.cv2-home #chatComposer [style*="background:#fff"],
.cv2-home #chatComposer [style*="background: #fff"],
.cv2-home #chatComposer [style*="background:white"],
.cv2-home #chatComposer [style*="background-color:#fff"],
.cv2-home #chatComposer [style*="background-color: #fff"],
.cv2-home #chatComposer [style*="background-color:white"],
.cv2-home #chatPanel [style*="background:#fff"],
.cv2-home #chatPanel [style*="background: #fff"],
.cv2-home #chatPanel [style*="background:white"],
.cv2-home #chatPanel [style*="background-color:#fff"],
.cv2-home #chatPanel [style*="background-color: #fff"],
.cv2-home #chatPanel [style*="background-color:white"]{
  background:#0f1726!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}
/* CROWNVA_HOME_DESIGN_SYSTEM_V1_1_CHAT_WHITE_SURFACES_END */

/* CROWNVA_HOME_IFRAME_OFFLINE_DARK_FALLBACK_V1_START */

.cv2-home .arena-media{
  position:relative!important;
}

.cv2-home .crownva-arena-offline-fallback{
  position:absolute;
  inset:0;
  z-index:12;
  display:grid;
  place-items:center;
  padding:28px;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  background:
    radial-gradient(circle at 70% 18%,rgba(122,78,255,.18),transparent 33%),
    radial-gradient(circle at 22% 84%,rgba(61,209,255,.10),transparent 30%),
    linear-gradient(145deg,#070b14,#0b1220 58%,#090d17);
  transition:opacity .18s ease,visibility .18s ease;
}

.cv2-home .crownva-arena-offline-fallback.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.cv2-home .crownva-arena-offline-card{
  position:relative;
  width:min(560px,calc(100% - 24px));
  overflow:hidden;
  border:1px solid rgba(151,169,204,.22);
  border-radius:24px;
  padding:28px;
  background:
    linear-gradient(180deg,rgba(20,30,48,.96),rgba(10,16,27,.98));
  box-shadow:0 28px 80px rgba(0,0,0,.45);
  color:#dce5f2;
}

.cv2-home .crownva-arena-offline-glow{
  position:absolute;
  width:220px;
  height:220px;
  right:-92px;
  top:-110px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(151,112,255,.26),transparent 68%);
  pointer-events:none;
}

.cv2-home .crownva-arena-offline-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,145,112,.28);
  background:rgba(238,125,98,.10);
  color:#ff9d7e!important;
  font-size:11px;
  font-weight:950;
  letter-spacing:.10em;
}

.cv2-home .crownva-arena-offline-brand{
  margin-top:20px;
  color:#8ee9ff!important;
  font-size:11px;
  font-weight:950;
  letter-spacing:.13em;
}

.cv2-home .crownva-arena-offline-card h2{
  margin:9px 0 0;
  max-width:460px;
  color:#fff!important;
  font-size:clamp(28px,3vw,40px);
  line-height:1.05;
  letter-spacing:-.035em;
}

.cv2-home .crownva-arena-offline-creator{
  margin:14px 0 0;
  color:#d5deeb!important;
  font-size:15px;
  font-weight:850;
}

.cv2-home .crownva-arena-offline-copy{
  margin:9px 0 0;
  max-width:480px;
  color:#95a3b8!important;
  font-size:14px;
  line-height:1.6;
}

.cv2-home .crownva-arena-offline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:22px;
}

.cv2-home .crownva-arena-offline-actions a{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  border-radius:12px;
  border:1px solid transparent;
  background:linear-gradient(90deg,#ee7d62,#e99a6f);
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:950;
}

.cv2-home .crownva-arena-offline-actions a.secondary{
  background:#151f31!important;
  color:#e8eef8!important;
  border-color:rgba(151,169,204,.20)!important;
}

@media(max-width:700px){
  .cv2-home .crownva-arena-offline-fallback{
    padding:14px;
  }

  .cv2-home .crownva-arena-offline-card{
    width:100%;
    padding:20px;
    border-radius:19px;
  }

  .cv2-home .crownva-arena-offline-card h2{
    font-size:28px;
  }

  .cv2-home .crownva-arena-offline-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .cv2-home .crownva-arena-offline-actions a{
    width:100%;
    min-height:46px;
  }
}

/* CROWNVA_HOME_IFRAME_OFFLINE_DARK_FALLBACK_V1_END */

/* CROWNVA_HOME_DESIGN_SYSTEM_V1_2_REMAINING_WHITE_SURFACES_START */
/* QA follow-up: some homepage-owned cards/strips still inherit white surfaces
   from legacy markup or inline styles. Force canonical dark ownership here. */

/* ----- KPI / stat cards ------------------------------------------------ */
.cv2-home .stats > *,
.cv2-home .metrics > *,
.cv2-home .kpis > *,
.cv2-home .stats-grid > *,
.cv2-home .metrics-grid > *,
.cv2-home .kpi-grid > *,
.cv2-home .stats .stat,
.cv2-home .metrics .metric,
.cv2-home .kpis .kpi,
.cv2-home .stats [style*="background"],
.cv2-home .metrics [style*="background"],
.cv2-home .kpis [style*="background"]{
  background:linear-gradient(180deg,#121c2d,#0c1421)!important;
  color:var(--cv-text)!important;
  border:1px solid var(--cv-border)!important;
  box-shadow:none!important;
}

.cv2-home .stats > * *,
.cv2-home .metrics > * *,
.cv2-home .kpis > * *,
.cv2-home .stats-grid > * *,
.cv2-home .metrics-grid > * *,
.cv2-home .kpi-grid > * *{
  color:inherit!important;
}

.cv2-home .stats > * small,
.cv2-home .metrics > * small,
.cv2-home .kpis > * small,
.cv2-home .stats > * .muted,
.cv2-home .metrics > * .muted,
.cv2-home .kpis > * .muted{
  color:var(--cv-muted)!important;
}

/* ----- Latest boosts strip / ticker ----------------------------------- */
.cv2-home .latest-boosts,
.cv2-home .latest-boosts > *,
.cv2-home .latest-boosts [class*="ticker"],
.cv2-home .latest-boosts [class*="marquee"],
.cv2-home .latest-boosts [class*="track"],
.cv2-home .latest-boosts [class*="pill"],
.cv2-home .latest-boosts [class*="scroll"],
.cv2-home .latest-boosts [style*="background"],
.cv2-home .boost-ticker,
.cv2-home .boost-marquee,
.cv2-home .boost-track{
  background:linear-gradient(180deg,#101a2a,#0a111d)!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .latest-boosts strong,
.cv2-home .latest-boosts b,
.cv2-home .latest-boosts .label,
.cv2-home .latest-boosts .title,
.cv2-home .latest-boosts .headline,
.cv2-home .latest-boosts [class*="item"],
.cv2-home .latest-boosts [class*="entry"],
.cv2-home .boost-ticker *,
.cv2-home .boost-marquee *,
.cv2-home .boost-track *{
  color:var(--cv-text-2)!important;
}

.cv2-home .latest-boosts .dot,
.cv2-home .boost-ticker .dot,
.cv2-home .boost-marquee .dot{
  background:linear-gradient(180deg,#ef7b60,#d43c34)!important;
  border-color:rgba(255,255,255,.12)!important;
}

/* ----- Live chat white strips / composer ------------------------------ */
.cv2-home .chat-panel,
.cv2-home .chat-shell,
.cv2-home .chat-column,
.cv2-home .arena-chat,
.cv2-home .arena-chat-panel,
.cv2-home #liveChat,
.cv2-home #chatPanel,
.cv2-home #chatBox,
.cv2-home #chatWrap,
.cv2-home #chatShell,
.cv2-home #chatMount{
  background:#0a111d!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-panel > *,
.cv2-home .chat-shell > *,
.cv2-home #liveChat > *,
.cv2-home #chatPanel > *,
.cv2-home #chatBox > *,
.cv2-home #chatWrap > *,
.cv2-home [id*="chat"] > div,
.cv2-home [class*="chat-"] > div,
.cv2-home [class*="chat_"] > div{
  background:#0f1726!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-header,
.cv2-home .chat-topbar,
.cv2-home .chat-title-row,
.cv2-home .chat-toolbar,
.cv2-home #chatHeader,
.cv2-home #chatTopbar,
.cv2-home #chatBar,
.cv2-home .chat-title{
  background:#10192a!important;
  color:var(--cv-text)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-header *,
.cv2-home .chat-topbar *,
.cv2-home .chat-title-row *,
.cv2-home .chat-toolbar *,
.cv2-home #chatHeader *,
.cv2-home #chatTopbar *,
.cv2-home #chatBar *{
  color:inherit!important;
}

.cv2-home .chat-body,
.cv2-home .chat-feed,
.cv2-home .chat-messages,
.cv2-home #chatMessages,
.cv2-home #chatLog,
.cv2-home #chatBody{
  background:#0b1220!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-empty,
.cv2-home .chat-status,
.cv2-home .chat-copy,
.cv2-home .chat-disclaimer,
.cv2-home .chat-footer,
.cv2-home #chatStatus,
.cv2-home #chatMeta,
.cv2-home #chatHint{
  color:var(--cv-muted)!important;
}

.cv2-home .chat-composer,
.cv2-home .chat-input-row,
.cv2-home .chat-form,
.cv2-home .chat-actions,
.cv2-home .chat-bottom,
.cv2-home #chatComposer,
.cv2-home #chatForm,
.cv2-home #chatInputRow,
.cv2-home #chatControls,
.cv2-home #chatBottom{
  background:#0f1726!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}

.cv2-home .chat-composer input,
.cv2-home .chat-composer textarea,
.cv2-home .chat-input,
.cv2-home .chat-textbox,
.cv2-home #chatComposer input,
.cv2-home #chatComposer textarea,
.cv2-home #chatInput,
.cv2-home #chatText,
.cv2-home #chatBox input[type="text"],
.cv2-home #chatBox textarea{
  background:#121c2d!important;
  color:#f6f8fc!important;
  border:1px solid rgba(147,166,202,.22)!important;
  box-shadow:none!important;
}

.cv2-home .chat-composer input::placeholder,
.cv2-home .chat-composer textarea::placeholder,
.cv2-home .chat-input::placeholder,
.cv2-home .chat-textbox::placeholder,
.cv2-home #chatInput::placeholder,
.cv2-home #chatText::placeholder,
.cv2-home #chatBox input::placeholder,
.cv2-home #chatBox textarea::placeholder{
  color:#8b99ae!important;
}

.cv2-home .chat-send,
.cv2-home .chat-submit,
.cv2-home .chat-signout,
.cv2-home #chatSend,
.cv2-home #chatSendBtn,
.cv2-home #chatSignOut,
.cv2-home button[data-chat-send],
.cv2-home #chatBox button{
  border-radius:14px!important;
}

.cv2-home .chat-send,
.cv2-home .chat-submit,
.cv2-home #chatSend,
.cv2-home #chatSendBtn,
.cv2-home button[data-chat-send]{
  background:linear-gradient(90deg,#ee7d62,#e99a6f)!important;
  color:#fff!important;
  border:1px solid transparent!important;
}

.cv2-home .chat-signout,
.cv2-home .chat-ghost,
.cv2-home .chat-secondary,
.cv2-home #chatSignOut{
  background:#141f32!important;
  color:var(--cv-text)!important;
  border:1px solid var(--cv-border)!important;
}

/* Any remaining white inline strips inside homepage chat/boost/stats should lose. */
.cv2-home .latest-boosts [style*="background:#fff"],
.cv2-home .latest-boosts [style*="background: #fff"],
.cv2-home .latest-boosts [style*="background:#ffffff"],
.cv2-home .latest-boosts [style*="background: #ffffff"],
.cv2-home .latest-boosts [style*="background:white"],
.cv2-home .latest-boosts [style*="background-color:#fff"],
.cv2-home .latest-boosts [style*="background-color: #fff"],
.cv2-home .latest-boosts [style*="background-color:#ffffff"],
.cv2-home .latest-boosts [style*="background-color: #ffffff"],
.cv2-home .latest-boosts [style*="background-color:white"],
.cv2-home #liveChat [style*="background:#fff"],
.cv2-home #liveChat [style*="background: #fff"],
.cv2-home #liveChat [style*="background:#ffffff"],
.cv2-home #liveChat [style*="background: #ffffff"],
.cv2-home #liveChat [style*="background:white"],
.cv2-home #liveChat [style*="background-color:#fff"],
.cv2-home #liveChat [style*="background-color: #fff"],
.cv2-home #liveChat [style*="background-color:#ffffff"],
.cv2-home #liveChat [style*="background-color: #ffffff"],
.cv2-home #liveChat [style*="background-color:white"],
.cv2-home #chatPanel [style*="background:#fff"],
.cv2-home #chatPanel [style*="background: #fff"],
.cv2-home #chatPanel [style*="background:#ffffff"],
.cv2-home #chatPanel [style*="background: #ffffff"],
.cv2-home #chatPanel [style*="background:white"],
.cv2-home #chatPanel [style*="background-color:#fff"],
.cv2-home #chatPanel [style*="background-color: #fff"],
.cv2-home #chatPanel [style*="background-color:#ffffff"],
.cv2-home #chatPanel [style*="background-color: #ffffff"],
.cv2-home #chatPanel [style*="background-color:white"]{
  background:#0f1726!important;
  color:var(--cv-text-2)!important;
  border-color:var(--cv-border)!important;
}
/* CROWNVA_HOME_DESIGN_SYSTEM_V1_2_REMAINING_WHITE_SURFACES_END */

/* CROWNVA_HOME_DESIGN_SYSTEM_V1_4_ADAPTIVE_SURFACE_GUARD_START */
.cv2-home .cv-ds-force-dark-surface{
  background:linear-gradient(180deg,#121c2d 0%,#0c1421 100%)!important;
  background-color:#0f1726!important;
  color:#d9e2ef!important;
  border-color:rgba(147,166,202,.20)!important;
  box-shadow:none!important;
}
.cv2-home .cv-ds-force-dark-surface::before,
.cv2-home .cv-ds-force-dark-surface::after{
  border-color:rgba(147,166,202,.18)!important;
}
.cv2-home .cv-ds-force-readable-text{
  color:#d9e2ef!important;
}
.cv2-home .cv-ds-force-dark-surface strong,
.cv2-home .cv-ds-force-dark-surface b,
.cv2-home .cv-ds-force-dark-surface h1,
.cv2-home .cv-ds-force-dark-surface h2,
.cv2-home .cv-ds-force-dark-surface h3,
.cv2-home .cv-ds-force-dark-surface h4{
  color:#f6f8fc!important;
}
.cv2-home .cv-ds-force-dark-surface small,
.cv2-home .cv-ds-force-dark-surface .muted{
  color:#9aa7ba!important;
}
.cv2-home .cv-ds-force-dark-surface input,
.cv2-home .cv-ds-force-dark-surface select,
.cv2-home .cv-ds-force-dark-surface textarea{
  background:#172338!important;
  color:#f6f8fc!important;
  border-color:rgba(147,166,202,.22)!important;
}
/* CROWNVA_HOME_DESIGN_SYSTEM_V1_4_ADAPTIVE_SURFACE_GUARD_END */

/* CROWNVA_HOME_DESIGN_SYSTEM_V1_5_BATTLE_CONTROLS_VISIBILITY_START */

/*
  Desktop right rail invariant:
  creator/ranking -> Boost/Share/Claim/Battle controls -> compact Live Chat.
  Live Chat must never overlap the controls above it.
*/

@media(min-width:861px){
  .cv2-home .arena-side{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    min-height:0!important;
    overflow:hidden!important;
    position:relative!important;
  }

  .cv2-home .arena-side > .arena-panel{
    position:relative!important;
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-bottom:12px!important;
    z-index:1!important;
    scrollbar-gutter:stable;
  }

  .cv2-home .arena-top3,
  .cv2-home #arenaTop3{
    flex:0 0 145px!important;
    height:145px!important;
    max-height:145px!important;
    min-height:145px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }

  .cv2-home .arena-actions{
    position:relative!important;
    z-index:4!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    flex:0 0 auto!important;
    overflow:visible!important;
    margin-bottom:8px!important;
    padding-bottom:2px!important;
  }

  .cv2-home #arenaPromoteBtn{
    grid-column:1 / -1!important;
  }

  .cv2-home #arenaClaimBtn,
  .cv2-home #arenaBattleBtn,
  .cv2-home #arenaShareBtn,
  .cv2-home #arenaOpenBtn,
  .cv2-home #arenaPromoteBtn{
    position:relative!important;
    visibility:visible!important;
    min-height:42px!important;
    max-height:none!important;
    opacity:1!important;
  }

  .cv2-home #arenaBattleBtn{
    display:block!important;
    z-index:5!important;
  }

  /*
    Chrome supports :has(). This finds the direct child of .arena-side that
    owns #chatMessages without depending on an old wrapper class name.
  */
  .cv2-home .arena-side > :has(#chatMessages){
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    flex:0 0 170px!important;
    width:100%!important;
    height:170px!important;
    min-height:170px!important;
    max-height:170px!important;
    z-index:2!important;
    overflow:hidden!important;
    margin:0!important;
    border-top:1px solid var(--cv-border)!important;
    background:#0a111d!important;
  }

  .cv2-home .arena-side > :has(#chatMessages) #chatMessages{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }

  .cv2-home .arena-side > :has(#chatMessages) .chat-empty{
    min-height:44px!important;
    padding:6px 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    line-height:1.25!important;
  }

  .cv2-home .arena-side > :has(#chatMessages) input,
  .cv2-home .arena-side > :has(#chatMessages) button{
    min-height:38px!important;
    height:38px!important;
  }

  .cv2-home .arena-side > :has(#chatMessages) > *{
    max-width:100%!important;
  }
}

@media(max-width:860px){
  .cv2-home #arenaBattleBtn{
    display:block!important;
    visibility:visible!important;
    position:relative!important;
    z-index:3!important;
  }

  .cv2-home .arena-actions{
    overflow:visible!important;
  }
}

/* CROWNVA_HOME_DESIGN_SYSTEM_V1_5_BATTLE_CONTROLS_VISIBILITY_END */
