:root{
  --bg: #0b0b12;
  --orange: #ff7a18;
  --cyan: #00c8ff;
  --yellow: #ffd84a;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);

  --shadow: 0 24px 80px rgba(0,0,0,0.55);
  --radius-lg: 22px;
  --radius-md: 16px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
img{ max-width: 100%; height: auto; }
body{
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 540px at 50% 10%, rgba(0, 200, 255, 0.14), transparent 60%),
              radial-gradient(900px 620px at 20% 40%, rgba(255, 122, 24, 0.12), transparent 65%),
              radial-gradient(900px 540px at 80% 75%, rgba(255, 216, 74, 0.10), transparent 60%),
              linear-gradient(180deg, #06060c 0%, var(--bg) 45%, #05050a 100%);
  overflow-x: hidden;
}

body.is-locked{
  overflow: hidden;
}

/* Sticky header can obscure anchored sections */
section[id]{
  scroll-margin-top: 96px;
}

.apsAnchor{
  display: block;
  height: 0;
  scroll-margin-top: 96px;
}

/* Hybrid index view (homepage + dashboard) */
body[data-aps-view="dash"] .apsHomeOnly{ display: none !important; }
body[data-aps-view="home"] .apsDashOnly{ display: none !important; }

.apsView{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.apsView.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.apsHeroBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.30);
  background: rgba(0, 200, 255, 0.10);
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 12px;
  width: fit-content;
}

a{ color: inherit; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Age gate overlay */
.ageGate{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  background:
    radial-gradient(900px 540px at 50% 10%, rgba(0, 200, 255, 0.12), transparent 60%),
    radial-gradient(900px 620px at 20% 40%, rgba(255, 122, 24, 0.10), transparent 65%),
    rgba(0,0,0,0.62);
  backdrop-filter: blur(18px);
  animation: ageGateIn 420ms ease both;
}

.ageGate[hidden]{
  display: none !important;
}

@keyframes ageGateIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.ageGate__panel{
  width: min(980px, 100%);
  max-height: calc(100dvh - 44px);
  max-height: calc(100vh - 44px);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow:
    0 30px 120px rgba(0,0,0,0.70),
    0 0 40px rgba(0, 200, 255, 0.12);
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ageGate__glow{
  pointer-events: none;
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(720px 260px at 10% 0%, rgba(0, 200, 255, 0.22), transparent 60%),
    radial-gradient(760px 280px at 90% 0%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(760px 280px at 50% 110%, rgba(255, 216, 74, 0.14), transparent 60%);
  opacity: 0.95;
}

.ageGate__content{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 24px;
  align-items: center;
  overflow: auto;
  overscroll-behavior: contain;
}

.ageGate__copy{
  padding: 8px 6px;
}

.ageGate__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 74, 0.30);
  background: rgba(255, 216, 74, 0.10);
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 12px;
  width: fit-content;
}

.ageGate__title{
  margin: 12px 0 10px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.7px;
  font-size: clamp(20px, 3.4vw, 34px);
  text-shadow: 0 18px 60px rgba(0,0,0,0.65);
}

.ageGate__desc{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.80);
  line-height: 1.65;
  max-width: 64ch;
}

.ageGate__form{
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.ageGate__label{
  font-weight: 900;
  letter-spacing: 0.25px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
}

.ageGate__input{
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.92);
  padding: 0 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  outline: none;
}

.ageGate__input:focus{
  border-color: rgba(0, 200, 255, 0.50);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.18);
}

.ageGate__hint{
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 12.5px;
  line-height: 1.5;
}

.ageGate__error{
  margin: 2px 0 0;
  color: rgba(255, 216, 74, 0.95);
  font-weight: 800;
  line-height: 1.4;
}

.ageGate__submit{
  justify-self: start;
  margin-top: 6px;
}

.ageGate__art{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  box-shadow: 0 26px 90px rgba(0,0,0,0.48);
  position: relative;
  overflow: hidden;
}

.ageGate__art::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 30% 20%, rgba(255, 216, 74, 0.14), transparent 62%),
    radial-gradient(560px 320px at 70% 70%, rgba(0, 200, 255, 0.16), transparent 62%);
}

.ageGate__art img{
  position: relative;
  z-index: 1;
  width: min(360px, 85%);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 26px 70px rgba(0,0,0,0.55))
    drop-shadow(0 0 22px rgba(0, 200, 255, 0.14));
}

/* Hero */
.hero{
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 56px 0 34px;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("shared/assets/images/alpha-perfect-studios-hero.svg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 560px at 50% 40%, rgba(11,11,18,0.30), rgba(11,11,18,0.92)),
    linear-gradient(180deg, rgba(11,11,18,0.38), rgba(11,11,18,0.92));
}

.hero-inner{
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
}

.hero-logo{
  width: min(460px, 78vw);
  height: auto;
  filter:
    drop-shadow(0 24px 60px rgba(0,0,0,0.62))
    drop-shadow(0 0 26px rgba(0, 200, 255, 0.26));
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: heroIn 900ms ease forwards;
}

.hero-title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: clamp(30px, 5vw, 58px);
  text-shadow: 0 18px 60px rgba(0,0,0,0.70);
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 900ms ease 120ms forwards;
}

.hero-tagline{
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: clamp(15px, 2.1vw, 20px);
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 900ms ease 220ms forwards;
}

@keyframes heroIn{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 900ms ease 320ms forwards;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.35px;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  user-select: none;
}

.btn-primary{
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.22), rgba(255, 122, 24, 0.24));
  border-color: rgba(0, 200, 255, 0.30);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.48),
    0 0 26px rgba(0, 200, 255, 0.16);
}

.btn-secondary{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255, 216, 74, 0.22);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.44),
    0 0 22px rgba(255, 216, 74, 0.12);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.55),
    0 0 30px rgba(0, 200, 255, 0.18);
}
.btn:active{
  transform: translateY(-1px) scale(0.98);
}
.btn:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

button.btn:disabled,
button.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.btn:disabled:hover,
button.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover,
.btn.is-disabled:hover{
  transform: none;
}

.btn.is-loading{
  opacity: 0.78;
}

.btn.is-loading::before{
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.16);
  border-top-color: rgba(0, 200, 255, 0.70);
  animation: apsSpin 780ms linear infinite;
}

@keyframes apsSpin{ to{ transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .btn.is-loading::before{ animation: none; }
}

/* Sections */
.section{
  padding: 64px 0;
}

@media (max-width: 620px){
  .hero{
    min-height: 72vh;
    padding: 44px 0 26px;
  }

  .section{
    padding: 52px 0;
  }

  .panel-body{
    padding: 18px;
  }

  /* Prevent iOS Safari input zoom and improve tap usability */
  .ageGate__input,
  .opInput,
  .opSelect{
    font-size: 16px;
  }
}

.section-title{
  margin: 0 0 14px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: clamp(20px, 3vw, 28px);
}

.section-kicker{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 72ch;
}

.section-actions{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.section-actions--center{ justify-content: center; }
.section-actions--end{ justify-content: flex-end; }
.section-actions--flush{ margin-top: 0; }

.panel{
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.panel-glow{
  pointer-events: none;
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(680px 240px at 10% 0%, rgba(0, 200, 255, 0.20), transparent 60%),
    radial-gradient(720px 260px at 90% 0%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(720px 260px at 50% 110%, rgba(255, 216, 74, 0.12), transparent 60%);
  opacity: 0.95;
}

.panel-body{
  position: relative;
  z-index: 1;
  padding: 26px;
}

/* Auth entry (login.html) */
.apsEntry{
  padding: 64px 0;
}

.apsEntryHead{
  margin-bottom: 18px;
}

.apsEntryGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.apsEntryCard{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apsEntryCardTitle{
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.apsEntryCardDesc{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.apsEntrySwitch{
  margin: 16px 0 0;
  color: var(--muted);
}

@media (max-width: 860px){
  .apsEntryGrid{ grid-template-columns: 1fr; }
}

/* RGS landing (index.html) */
.rgsHero{ padding: 56px 0 28px; }

.rgsHeroGrid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 980px){
  .rgsHeroGrid{ grid-template-columns: 1fr; }
}

.rgsBadge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-weight: 900;
  letter-spacing: 0.35px;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  width: fit-content;
}

.rgsHeroCopy .hero-title{ text-align: left; }
.rgsHeroCopy .hero-subtitle{ margin-left: 0; margin-right: 0; }

.rgsHeroProof{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rgsProofItem{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  font-size: 12.2px;
  letter-spacing: 0.2px;
}

.rgsPreview{ height: 100%; }
.rgsPreviewTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rgsPreviewTitle{ font-weight: 900; letter-spacing: 0.35px; }
.rgsPreviewPill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.30);
  background: rgba(0, 200, 255, 0.10);
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 12px;
}

.rgsPreviewKpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px){
  .rgsPreviewKpis{ grid-template-columns: 1fr; }
}

.rgsKpi{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  padding: 10px 12px;
}

.rgsKpiK{ font-size: 11.5px; letter-spacing: 0.3px; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.rgsKpiV{ font-size: 18px; font-weight: 900; letter-spacing: 0.2px; color: rgba(255,255,255,0.92); margin-top: 4px; }

.rgsPreviewRow{
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.rgsMiniRow{
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.84);
}

.rgsMiniMeta{ color: rgba(255,255,255,0.58); font-weight: 800; font-size: 12px; }

.rgsDot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.95);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.30);
}

.rgsDot--warn{
  background: rgba(255, 216, 74, 0.95);
  box-shadow: 0 0 18px rgba(255, 216, 74, 0.28);
}

.rgsCardGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1060px){
  .rgsCardGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .rgsCardGrid{ grid-template-columns: 1fr; }
}

.rgsCardTitle{ margin: 0 0 10px; font-weight: 900; letter-spacing: 0.25px; }
.rgsCardDesc{ margin: 0; color: var(--muted); line-height: 1.65; }

.rgsSteps{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 1060px){
  .rgsSteps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .rgsSteps{ grid-template-columns: 1fr; }
}

.rgsStepNum{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 900;
  letter-spacing: 0.25px;
  margin-bottom: 10px;
}

.rgsStepTitle{ font-weight: 900; letter-spacing: 0.25px; }
.rgsStepDesc{ margin-top: 6px; color: var(--muted); line-height: 1.6; }

.rgsShowcase{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px){
  .rgsShowcase{ grid-template-columns: 1fr; }
}

.rgsShowcaseCard{ text-decoration: none; }

.rgsShowcaseTag{
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 12px;
  margin-bottom: 10px;
}

.rgsShowcaseTitle{ font-weight: 900; letter-spacing: 0.25px; font-size: 18px; }
.rgsShowcaseDesc{ margin-top: 8px; color: var(--muted); line-height: 1.65; }
.rgsShowcaseCta{ margin-top: 12px; font-weight: 900; letter-spacing: 0.25px; color: rgba(255,255,255,0.88); }

.rgsMonoGrid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
}

.rgsMonoGrid .section-title{ margin-bottom: 10px; }
.rgsMonoGrid .section-kicker{ margin-bottom: 0; }

@media (max-width: 980px){
  .rgsMonoGrid{ grid-template-columns: 1fr; }
}

.rgsMonoPoints{ display: grid; gap: 10px; }
.rgsMonoPoint{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.86);
}

.rgsCta{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.rgsCta .section-title{ margin-bottom: 10px; }
.rgsCta .section-kicker{ margin-bottom: 0; }

@media (max-width: 860px){
  .rgsCta{ grid-template-columns: 1fr; }
  .rgsCta .section-actions{ justify-content: flex-start !important; }
}

/* Dashboard */
.dashLoading,
#dashSignedOut,
#dashContent{
  display: none;
}

html[data-dash-state="loading"] .dashLoading{ display: block; }
html[data-dash-state="signed-out"] #dashSignedOut{ display: block; }
html[data-dash-state="signed-in"] #dashContent{ display: grid; }

.dashTitle{
  margin-bottom: 18px;
}

.dashSkeleton{
  display: grid;
  gap: 12px;
}

.skLine,
.skCard{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.skLine::before,
.skCard::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: translateX(-60%);
  animation: skShimmer 1.25s ease-in-out infinite;
}

@keyframes skShimmer{
  to{ transform: translateX(60%); }
}

.skLine{ height: 14px; }
.skLine--md{ width: 52%; }
.skLine--lg{ width: 68%; height: 18px; }
.skLine--xl{ width: 40%; height: 26px; border-radius: 16px; }

.skGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.skCard{ height: 70px; }

@media (min-width: 980px){
  .skGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skCard{ height: 84px; }
}

.dashGrid{
  display: grid;
  gap: 18px;
}

/* Reserve scroll space for the floating Quick Play panel */
html.hasQuickPlayOpen #dashContent{
  padding-bottom: 360px;
}

@media (max-width: 720px){
  html.hasQuickPlayOpen #dashContent{ padding-bottom: 460px; }
}

@media (min-width: 980px){
  .dashGrid{
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
  }
  .dashGrid > .panel:first-child{
    grid-column: 1 / -1;
  }
}

.dashTop{
  display: grid;
  gap: 16px;
}

@media (min-width: 740px){
  .dashTop{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.dashIdentity,
.dashWallet{
  display: grid;
  gap: 8px;
}

.dashLabel{
  color: rgba(255,255,255,0.72);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12.5px;
}

.dashValue{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.35px;
}

.dashActions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.dashSection{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.dashH2{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.45px;
  font-size: 16px;
}

.dashHero .panel-body{
  padding: 30px;
}

.dashHero{
  position: relative;
  overflow: hidden;
}

.dashHero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 260px at 20% 20%, rgba(0, 200, 255, 0.14), transparent 60%),
    radial-gradient(780px 240px at 80% 30%, rgba(255, 122, 24, 0.10), transparent 62%);
  opacity: 1;
}

.dashHero::after{
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(520px 180px at 10% 30%, rgba(0, 200, 255, 0.16), transparent 60%),
    radial-gradient(520px 180px at 90% 70%, rgba(255, 216, 74, 0.12), transparent 62%),
    linear-gradient(120deg, rgba(0,0,0,0.00), rgba(255,255,255,0.05), rgba(0,0,0,0.00));
  opacity: 0.65;
  transform: translateX(-6%);
  animation: dashHeroGlow 3.2s ease-in-out infinite;
}

@keyframes dashHeroGlow{
  0%{ opacity: 0.55; transform: translateX(-6%); }
  50%{ opacity: 0.80; transform: translateX(6%); }
  100%{ opacity: 0.55; transform: translateX(-6%); }
}

.dashHero .panel-body{ position: relative; z-index: 1; }

.dashHeroInner{
  display: grid;
  gap: 18px;
}

@media (min-width: 860px){
  .dashHeroInner{
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.dashHeroKicker{
  color: rgba(255,255,255,0.74);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12.5px;
}

.dashHeroTitle{
  margin-top: 6px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: clamp(18px, 3.4vw, 26px);
}

.dashHeroEmail{
  display: inline-block;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.18);
}

.dashHeroMeta{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.dashBalance{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dashBalanceIcon{
  font-size: 18px;
}

.dashBalanceValue{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.8px;
  font-size: clamp(28px, 6vw, 46px);
  color: rgba(255,255,255,0.96);
  text-shadow:
    0 0 30px rgba(0, 200, 255, 0.24),
    0 0 18px rgba(255, 122, 24, 0.14);
  animation: dashBalanceGlow 2.6s ease-in-out infinite;
}

@keyframes dashBalanceGlow{
  0%{ filter: brightness(1); text-shadow: 0 0 26px rgba(0, 200, 255, 0.22), 0 0 16px rgba(255, 122, 24, 0.12); }
  50%{ filter: brightness(1.06); text-shadow: 0 0 34px rgba(0, 200, 255, 0.30), 0 0 22px rgba(255, 216, 74, 0.14); }
  100%{ filter: brightness(1); text-shadow: 0 0 26px rgba(0, 200, 255, 0.22), 0 0 16px rgba(255, 122, 24, 0.12); }
}

@keyframes dashPanelIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

html[data-dash-state="signed-in"] #dashContent > .panel{
  animation: dashPanelIn 520ms ease both;
}
html[data-dash-state="signed-in"] #dashContent > .panel:nth-child(1){ animation-delay: 0ms; }
html[data-dash-state="signed-in"] #dashContent > .panel:nth-child(2){ animation-delay: 60ms; }
html[data-dash-state="signed-in"] #dashContent > .panel:nth-child(3){ animation-delay: 120ms; }
html[data-dash-state="signed-in"] #dashContent > .panel:nth-child(4){ animation-delay: 180ms; }
html[data-dash-state="signed-in"] #dashContent > .panel:nth-child(5){ animation-delay: 240ms; }
html[data-dash-state="signed-in"] #dashContent > .panel:nth-child(6){ animation-delay: 300ms; }

@keyframes dashPulse{
  0%{ transform: translateY(0); filter: brightness(1); }
  40%{ transform: translateY(-1px); filter: brightness(1.08); }
  100%{ transform: translateY(0); filter: brightness(1); }
}

.aps-num-pulse{
  animation: dashPulse 420ms ease both;
}

.dashMuted{
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dashFinePrint{
  margin: 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  font-size: 12.5px;
}

.dashHeaderRow{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* Floating Quick Play panel (player dashboard) */
.dashQuickPlayFloat{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(1120px, calc(100vw - 32px));
  z-index: 60;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

@media (max-width: 720px){
  .dashQuickPlayFloat{
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    bottom: 12px;
    max-height: calc(100vh - 140px);
  }
}

.dashQuickPlayRight{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashQuickPlayToggle{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  border-radius: 999px;
  height: 32px;
  padding: 0 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashQuickPlayToggle:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.24);
}

.dashQuickPlayToggle:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

.dashQuickPlayLauncher{
  position: fixed !important;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  border-radius: 999px;
  width: 52px;
  height: 52px;
  padding: 0;
  font-weight: 900;
  letter-spacing: 0.25px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.55);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  display: grid;
  place-items: center;
}

.dashQuickPlayIcon{
  font-size: 22px;
  line-height: 1;
}

.dashQuickPlayLauncher:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.24);
}

.dashQuickPlayLauncher:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

.dashStatGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px){
  .dashStatGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px){
  .dashStatGrid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dashStatGrid--triplet{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dashStatCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashStatCard:hover{
  transform: translateY(-2px);
  border-color: rgba(0, 200, 255, 0.22);
  box-shadow: 0 0 26px rgba(0, 200, 255, 0.12);
}

.dashStatCard:active{
  transform: translateY(-1px) scale(0.99);
}

.dashStatIcon{
  margin-right: 8px;
}

.dashStatSub{
  margin-top: 6px;
  color: rgba(255,255,255,0.64);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 11.5px;
}

#dashProfitCard.is-pos .dashStatValue{ color: var(--cyan); }
#dashProfitCard.is-neg .dashStatValue{ color: var(--orange); }

/* Premium stat emphasis (account grid only) */
.dashSection .dashStatGrid .dashStatCard:nth-child(3){
  box-shadow:
    0 0 26px rgba(0, 200, 255, 0.12),
    0 0 18px rgba(255, 216, 74, 0.10);
}
.dashSection .dashStatGrid .dashStatCard:nth-child(4).is-neg{
  box-shadow: 0 0 28px rgba(255, 122, 24, 0.12);
}

.dashStatLabel{
  color: rgba(255,255,255,0.72);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.25px;
}

.dashStatValue{
  margin-top: 4px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.35px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashList{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dashListItem{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashListItem:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 216, 74, 0.20);
  background: rgba(255,255,255,0.05);
}

.dashListItem:active{
  transform: translateY(0) scale(0.995);
}

.dashListItem--skeleton{
  color: rgba(255,255,255,0.72);
  font-weight: 900;
  letter-spacing: 0.25px;
}

@media (min-width: 740px){
  .dashListItem{
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }
}

.dashListLeft{
  display: grid;
  gap: 8px;
}

.dashSessionTitle{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.35px;
}

.dashSessionSub{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.84);
}

.dashBadge--good{
  border-color: rgba(0, 200, 255, 0.28);
  background: rgba(0, 200, 255, 0.10);
}

.dashBadge--warn{
  border-color: rgba(255, 216, 74, 0.22);
  background: rgba(255, 216, 74, 0.10);
}

.dashBadge--muted{
  color: rgba(255,255,255,0.72);
}

.dashListRight{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashMoney{
  font-weight: 900;
  letter-spacing: 0.25px;
  color: rgba(255,255,255,0.86);
  font-size: 12.5px;
}

.dashMoney--net.is-pos{
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.18);
}

.dashMoney--net.is-neg{
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 122, 24, 0.16);
}

.dashEmpty{
  margin-top: 10px;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  line-height: 1.6;
}

.dashEmptyTitle{
  font-weight: 900;
  letter-spacing: 0.15px;
  color: rgba(255,255,255,0.86);
}

.dashEmptyHint{
  margin-top: 4px;
}

.apsStatusLine{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashThumbImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashGameThumb{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dashGameThumb__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.dashGameThumb__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.55));
}

.dashGameThumb__logo{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 34px;
  width: auto;
  max-width: calc(100% - 24px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

.dashFeed{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dashLiveBanner{
  margin-bottom: 14px;
}

/* When mounted inside the injected sticky site header, the header owns the look.
   Avoid panel-style backgrounds and glows; keep it as a thin header row. */
.site-header .dashLiveBanner{
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-header .dashLiveBanner .panel-glow{
  display: none;
}

.site-header .dashLiveBannerBody{
  padding: 10px 0;
}

.dashLiveBannerBody{
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

@media (min-width: 740px){
  .dashLiveBannerBody{
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
  }
}

.dashLiveBannerMeta{
  display: grid;
  gap: 4px;
}

@media (max-width: 739px){
  .dashLiveBannerMeta .dashMuted{ display: none; }
}

.dashLiveMarquee{
  width: 100%;
}

.dashLiveMarqueeViewport{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.dashLiveMarqueeTrack{
  display: flex;
  width: max-content;
  align-items: center;
  gap: 18px;
  animation: dashMarquee 48s linear infinite;
  will-change: transform;
}

.dashLiveMarqueeTrack.is-static{
  animation: none;
}

.dashLiveMarqueeTrack.is-static [data-live-group="b"]{
  display: none;
}

.dashLiveMarqueeGroup{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.dashLiveChip{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 12.5px;
  white-space: nowrap;
}

@keyframes dashMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Operator dashboard (Phase 2) */
.opKpiBar{
  position: sticky;
  top: 0;
  z-index: 9;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(11,11,18,0.78), rgba(11,11,18,0.30));
  backdrop-filter: blur(14px);
}

/* When the KPI bar is mounted inside the injected sticky site header,
   let the header own the stickiness and visuals. */
.site-header .opKpiBar{
  position: static;
  top: auto;
  z-index: auto;
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  backdrop-filter: none;
}

.opKpiInner{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0;
  align-items: center;
}

@media (min-width: 860px){
  .opKpiInner{
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 12px;
  }
}

.opKpiItem{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.opKpiLabel{
  color: rgba(255,255,255,0.66);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 11.5px;
}

.opKpiValue{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.55px;
  font-size: 16px;
  color: rgba(255,255,255,0.94);
}

.opKpiRight{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.opKpiUpdated{
  grid-column: 1 / -1;
  color: rgba(255,255,255,0.58);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

@media (min-width: 860px){
  .opKpiUpdated{
    grid-column: 1 / -1;
    justify-self: end;
  }
}

.opStatus{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12px;
  color: rgba(255,255,255,0.86);
}

.opStatusDot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 12px rgba(255,255,255,0.10);
}

.opStatusDot.is-online{
  background: rgba(0, 200, 255, 0.85);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
}

.opStatusDot.is-offline{
  background: rgba(255, 122, 24, 0.95);
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.22);
}

.opAlerts{
  position: relative;
}

.opNavToggle{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  height: 38px;
  min-width: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opNavToggle:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.22);
}

.opNavToggle:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.62);
  outline-offset: 3px;
}

.opUserInfo{
  display: none;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}

@media (min-width: 980px){
  .opUserInfo{ display: grid; }
}

.opUserRole{
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 11px;
  color: rgba(255,255,255,0.74);
}

.opUserEmail{
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opBell{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  height: 38px;
  min-width: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opBell:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255, 216, 74, 0.22);
}

.opBell:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.62);
  outline-offset: 3px;
}

.opBellBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.20);
  border: 1px solid rgba(255, 122, 24, 0.34);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 11px;
}

.opMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,11,18,0.92);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  padding: 12px;
  z-index: 20;
}

.opMenuTitle{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.45px;
  font-size: 14px;
  margin-bottom: 8px;
}

.opMenuList{
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.opMenuItem{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.opMenuItemTitle{
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.90);
  font-size: 12.5px;
}

.opMenuItemMeta{
  color: rgba(255,255,255,0.62);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 11.5px;
}

.opSections{
  margin-top: 18px;
  display: block;
}

/* When the operator panel is embedded inside the signed-in dashboard grid,
   it must span full width to avoid colliding with right-column panels. */
.dashGrid > .opSections{
  grid-column: 1 / -1;
  min-width: 0;
}

.opShell{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Tabs layout: horizontal nav row with section content below.
   Used for the staff Operator Panel on the main dashboard. */
.opShell.opShell--tabs{
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  isolation: isolate;
}

.opShell.opShell--tabs .opSidebarBackdrop{
  display: none !important;
}

.opShell.opShell--tabs .opSidebar{
  position: relative;
  top: auto;
  width: auto;
  transform: none !important;
  left: auto;
  bottom: auto;
  z-index: 60;

  /* Make the sticky tab bar fully cover content underneath. */
  background: linear-gradient(180deg, rgba(11,11,18,0.90), rgba(11,11,18,0.70));
  backdrop-filter: blur(14px);
}

.opShell.opShell--tabs .opMain{
  position: relative;
  z-index: 1;
}

.opShell.opShell--tabs .opSidebarClose{
  display: none;
}

/* The KPI header hamburger is only for the drawer layout. */
.opKpiBar .opNavToggle{
  display: none;
}

.opShell.opShell--tabs .opSidebarTop{
  padding: 12px 14px 10px;
}

.opShell.opShell--tabs .opSidebarNav{
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.opShell.opShell--tabs .opNavItem{
  width: auto;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 14px;
}

.opShell.opShell--tabs .opSidebarHint{
  display: none;
}

.opSidebarBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.opSidebar{
  position: sticky;
  top: var(--op-sticky-top, 0px);
  align-self: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.opSidebarTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.opSidebarTitle{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.45px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}

.opSidebarClose{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  height: 34px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opSidebarClose:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255, 216, 74, 0.20);
}

/* Desktop: sidebar is already visible; hide mobile-only controls. */
@media (min-width: 980px){
  .opNavToggle{ display: none; }
  .opSidebarClose{ display: none; }
}

.opSidebarNav{
  padding: 10px;
  display: grid;
  gap: 8px;
}

.opNavItem{
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.88);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12.5px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opNavItem:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 200, 255, 0.20);
}

.opNavItem.is-active{
  background: rgba(0, 200, 255, 0.08);
  border-color: rgba(0, 200, 255, 0.28);
  box-shadow: 0 0 26px rgba(0, 200, 255, 0.12);
}

.opNavItem:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.opSidebarHint{
  padding: 0 14px 14px;
}

.opMain{
  min-width: 0;
}

.opMainInner{
  display: grid;
  gap: 18px;
}

.opSectionView[hidden]{
  display: none !important;
}

@keyframes opSectionIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: none; }
}

.opSectionView.is-active.is-enter{
  animation: opSectionIn 320ms ease both;
}

@media (max-width: 980px){
  .opShell{ grid-template-columns: 1fr; }

  .opSidebar{
    position: fixed;
    left: 0;
    top: var(--op-sticky-top, 0px);
    bottom: 0;
    width: min(320px, 86vw);
    transform: translateX(-104%);
    transition: transform 220ms ease;
    z-index: 50;
  }

  .opSidebar.is-open{
    transform: translateX(0);
  }

  /* Tabs layout keeps nav inline on mobile (no drawer). */
  .opShell.opShell--tabs .opSidebar{
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    transform: none;
    z-index: 60;
  }
}

.opCardGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 980px){
  .opCardGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.opGameCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.opGameTop{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.opGameName{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.35px;
}

.opGameStats{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opMiniStat{
  display: grid;
  gap: 2px;
}

.opMiniLabel{
  color: rgba(255,255,255,0.62);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 11.5px;
}

.opMiniValue{
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12.5px;
}

.opChartWrap{
  height: 56px;
}

.opChart{
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.opControlsGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 980px){
  .opControlsGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.opControlCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  display: grid;
  gap: 12px;
}

.opControlCard.is-disabled::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  pointer-events: none;
}

.opControlActions{
  display: flex;
  justify-content: flex-end;
}

.opControlRow{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px){
  .opControlRow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.opField{
  display: grid;
  gap: 6px;
}

.opInput,
.opSelect{
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 12.5px;
}

.opSelect[multiple],
.opSelect[size]{
  height: auto;
  min-height: 220px;
  padding: 10px 12px;
}

.opSelect--compact[multiple],
.opSelect--compact[size]{
  min-height: 124px;
}

.opInput:focus,
.opSelect:focus{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 2px;
}

.opToggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.86);
  font-size: 12.5px;
}

.opToggle input{ transform: translateY(1px); }

.opAccessList{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: min(70vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

@media (min-width: 760px){
  .opAccessList{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.opInlineFilters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.opInlineFilters .opField{
  flex: 1 1 220px;
  min-width: 0;
}

.opTableWrap{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  overflow: auto;
  max-height: min(70vh, 760px);
  overscroll-behavior: contain;
}

.opTable{
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.opTable th,
.opTable td{
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  color: rgba(255,255,255,0.86);
}

.opTable th{
  position: sticky;
  top: 0;
  background: rgba(11,11,18,0.85);
  color: rgba(255,255,255,0.74);
  font-weight: 900;
  letter-spacing: 0.25px;
  z-index: 1;
}

.opRowFlag{
  background: rgba(255, 122, 24, 0.10);
}

.opActionBtn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  height: 34px;
  padding: 0 10px;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opActionBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.24);
}

.opActionBtn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.opLogList{
  display: grid;
  gap: 10px;
  max-height: min(70vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

.opLogItem{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.opLogAction{
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
  font-size: 12.5px;
}

.opLogMeta{
  color: rgba(255,255,255,0.62);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 11.5px;
}

.opApiGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 980px){
  .opApiGrid{ grid-template-columns: 1.3fr 0.7fr; }
}

@media (min-width: 980px){
  .opApiCard--full{ grid-column: 1 / -1; }
}

.opApiCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.opApiKeyRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.opApiKeyRow--key .opApiKey{
  flex: 1 1 280px;
  min-width: 220px;
}

.opApiKey{
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12.5px;
  max-width: 100%;
  overflow: auto;
}

.opHelpFab{
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opHelpFab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(0, 200, 255, 0.24);
}

.opHelpPanel{
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: min(420px, calc(100vw - 36px));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.opHelpTitleRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.opHelpTitle{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.45px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}

.opHelpClose{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  height: 34px;
  padding: 0 12px;
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.opHelpClose:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255, 216, 74, 0.20);
}

.opHelpBody{
  padding: 12px;
  display: grid;
  gap: 10px;
}

.opHelpSteps{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  letter-spacing: 0.15px;
  font-size: 12.5px;
}

.dashBadge--bad{
  border-color: rgba(255, 122, 24, 0.22);
  background: rgba(255, 122, 24, 0.12);
}

.opSpinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.22);
  border-top-color: rgba(0, 200, 255, 0.95);
  animation: spin 0.9s linear infinite;
}

.opTestFadeIn{
  animation: fadeIn 0.3s ease;
}

.opEndpointList{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.opEndpointList code{
  color: rgba(255,255,255,0.90);
  font-weight: 900;
}

.opCodeBlock{
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.1px;
  font-size: 12.5px;
  line-height: 1.35;
  overflow: auto;
}

.opCodeBlock code{
  color: inherit;
  font-weight: inherit;
}

/* Wallet ledger helpers */
.dashBadge--debit{
  border-color: rgba(255, 122, 24, 0.28);
  background: rgba(255, 122, 24, 0.10);
}
.dashBadge--credit{
  border-color: rgba(0, 200, 255, 0.28);
  background: rgba(0, 200, 255, 0.10);
}
.dashBadge--refund{
  border-color: rgba(255, 216, 74, 0.28);
  background: rgba(255, 216, 74, 0.10);
}

.opAmtDebit{ color: var(--orange); font-weight: 900; }
.opAmtCredit{ color: var(--cyan); font-weight: 900; }
.opAmtRefund{ color: var(--yellow); font-weight: 900; }

/* Player wallet side panel (drawer) */
.opDrawerBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  z-index: 60;
}

.opDrawer{
  position: fixed;
  right: 0;
  top: var(--op-sticky-top, 0px);
  bottom: 0;
  width: min(520px, 94vw);
  border-left: 1px solid rgba(255,255,255,0.10);
  background: rgba(11,11,18,0.92);
  box-shadow: var(--shadow);
  z-index: 70;
  transform: translateX(104%);
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto 1fr;
}

.opDrawer.is-open{ transform: translateX(0); }

.opDrawerTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.opDrawerTitle{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.45px;
  font-size: 13px;
  color: rgba(255,255,255,0.90);
}

.opDrawerBody{
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (min-width: 980px){
  .opDrawer{ width: min(560px, 48vw); }
}

.dashFeedItem{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 12.5px;
  animation: dashPanelIn 320ms ease both;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }

  .btn,
  .dashBalanceValue,
  html[data-dash-state="signed-in"] #dashContent > .panel,
  .dashFeedItem,
  .dashLiveMarqueeTrack,
  .aps-num-pulse,
  .dashHero::after{
    animation: none !important;
    transition: none !important;
  }
}

/* Games grid */
.game-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.game-card{
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 40% 0%, rgba(0, 200, 255, 0.18), transparent 60%),
    radial-gradient(520px 260px at 80% 20%, rgba(255, 122, 24, 0.14), transparent 62%);
  opacity: 0.0;
  transition: opacity 180ms ease;
}

.game-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0, 200, 255, 0.28);
  box-shadow:
    0 26px 80px rgba(0,0,0,0.50),
    0 0 26px rgba(0, 200, 255, 0.16);
}
.game-card:hover::before{ opacity: 1; }
.game-card:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.62);
  outline-offset: 3px;
}

.game-card-inner{
  position: relative;
  z-index: 1;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.thumb{
  border-radius: 14px;
  height: 148px;
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.22), rgba(255, 122, 24, 0.18)),
    radial-gradient(540px 240px at 30% 30%, rgba(255, 216, 74, 0.18), transparent 60%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}
.thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 10px);
  opacity: 0.18;
}

.game-title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
}

.card-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.play-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0, 200, 255, 0.12);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.35px;
  font-size: 12.5px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.play-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(0, 200, 255, 0.42);
  box-shadow: 0 0 26px rgba(0, 200, 255, 0.16);
}

/* Featured */
.featured{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.featured-card{
  min-height: 280px;
}

.featured-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.90);
}

.badge{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 74, 0.28);
  background: rgba(255, 216, 74, 0.10);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
}

.featured-title{
  margin: 10px 0 10px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: clamp(22px, 3.2vw, 34px);
}

.featured-desc{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
}

.featured-art{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    url("shared/assets/images/game-placeholders/racing-rounds-reel-placeholder.svg") center/contain no-repeat,
    radial-gradient(640px 380px at 60% 20%, rgba(0, 200, 255, 0.24), transparent 62%),
    radial-gradient(640px 380px at 30% 60%, rgba(255, 122, 24, 0.18), transparent 62%),
    radial-gradient(640px 380px at 70% 85%, rgba(255, 216, 74, 0.12), transparent 60%),
    rgba(255,255,255,0.04);
  box-shadow:
    0 28px 90px rgba(0,0,0,0.52),
    0 0 34px rgba(0, 200, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.featured-art::after{
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, rgba(0, 200, 255, 0.0), rgba(0, 200, 255, 0.14), rgba(255, 122, 24, 0.14), rgba(255, 216, 74, 0.12), rgba(0, 200, 255, 0.0));
  animation: spin 12s linear infinite;
  opacity: 0.7;
}
@keyframes spin{ to{ transform: rotate(1turn); } }

/* Wolfpack (family tree) */
.wolfpack-tree{
  margin-top: 18px;
  display: grid;
  gap: 22px;
}

/* Mascot grid (used for villains + small mascot collections) */
.mascot-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.wolfpack-level{
  position: relative;
  display: flex;
  justify-content: center;
}

.wolfpack-level--bottom{
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Connector lines */
.wolfpack-level--top::after,
.wolfpack-level--mid::after,
.wolfpack-level--bottom::before{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 18px;
  background: rgba(0, 200, 255, 0.22);
  box-shadow:
    0 0 18px rgba(0, 200, 255, 0.12),
    0 0 18px rgba(255, 122, 24, 0.08);
}

.wolfpack-level--top::after{ bottom: -18px; }
.wolfpack-level--mid::after{ bottom: -18px; }
.wolfpack-level--bottom::before{ top: -18px; }

.wolfpack-level--bottom::after{
  content: "";
  position: absolute;
  top: -18px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.0), rgba(0, 200, 255, 0.22), rgba(255, 216, 74, 0.16), rgba(0, 200, 255, 0.22), rgba(0, 200, 255, 0.0));
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.10);
}

.wolf-card{
  width: min(520px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  box-shadow: 0 26px 90px rgba(0,0,0,0.44);
  overflow: hidden;
  position: relative;
}

.wolf-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 30% 20%, rgba(255, 216, 74, 0.14), transparent 62%),
    radial-gradient(560px 320px at 70% 70%, rgba(0, 200, 255, 0.14), transparent 62%);
  opacity: 0.65;
  pointer-events: none;
}

.wolf-card > *{ position: relative; z-index: 1; }

.wolf-card-body{
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}

.wolf-name{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 18px;
}

.wolf-desc{
  margin: 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.6;
}

.mascot-frame{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  box-shadow: 0 26px 90px rgba(0,0,0,0.48);
  position: relative;
  overflow: hidden;
}
.mascot-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 30% 20%, rgba(255, 216, 74, 0.16), transparent 62%),
    radial-gradient(560px 320px at 70% 70%, rgba(0, 200, 255, 0.16), transparent 62%);
}
.mascot-frame span{
  position: relative;
  z-index: 1;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.76);
}

.mascot-frame img{
  position: relative;
  z-index: 1;
  display: block;
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  filter:
    drop-shadow(0 26px 70px rgba(0,0,0,0.55))
    drop-shadow(0 0 22px rgba(0, 200, 255, 0.14));
}

/* Wolfpack-specific image framing */
.wolf-card .mascot-frame{
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  margin: 18px 18px 0;
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
}

/* Engine list */
.engine-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* Stats */
.stats-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card{
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card h3{
  margin: 0;
  font-family: Orbitron;
  font-size: 28px;
  color: var(--cyan);
}

.stat-card p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Game description */
.game-desc{
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Tags */
.game-tags{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-tags span{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

/* Arrow */
.card-arrow{
  font-weight: 900;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.game-card:hover .card-arrow{
  transform: translateX(4px);
}

/* Coming soon cards (presentation only) */
.game-card--soon{
  opacity: 0.62;
  cursor: default;
  user-select: none;
}

.game-card--soon:hover{
  transform: none;
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.game-card--soon::before{
  opacity: 0.10;
}

/* Unique thumbs (quick gradients for now) */
.thumb--alpha{
  background:
    url("shared/assets/images/game-placeholders/alphas-jackpot-bags-placeholder.svg") center/contain no-repeat,
    linear-gradient(135deg, #00c8ff, #ff7a18);
}

.thumb--clover{
  background:
    url("shared/assets/images/game-placeholders/selsas-lucky-clover-placeholder.svg") center/contain no-repeat,
    linear-gradient(135deg, #00ff88, #00c8ff);
}

.thumb--desert{
  background:
    url("shared/assets/images/game-placeholders/desert-fortune-placeholder.svg") center/contain no-repeat,
    linear-gradient(135deg, #ffd84a, #ff7a18);
}

.game-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
}

.game-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
}

.game-modal__panel{
  position: relative;
  width: min(1000px, 90%);
  margin: 5vh auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.game-modal__content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.game-modal__preview{
  height: 260px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
}

.modal-features{
  padding-left: 18px;
  color: var(--muted);
}

.game-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.activity-feed{
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.activity-item{
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}

.hero-stats{
  display:flex;
  gap:16px;
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}

@keyframes fadeIn{
  from{opacity:0; transform: translateY(6px);}
  to{opacity:1;}
}

/* Responsive */
@media (max-width: 700px){
  .stats-grid{
    grid-template-columns: 1fr;
  }
}
/* Responsive */
@media (max-width: 980px){
  .featured{ grid-template-columns: 1fr; }
  .ageGate__content{ grid-template-columns: 1fr; }
  .ageGate__submit{ justify-self: stretch; }
}

@media (max-width: 820px){
  .wolfpack-level--bottom{ grid-template-columns: 1fr; }
  .wolfpack-level::before,
  .wolfpack-level::after{
    display: none;
  }

  .mascot-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .game-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .hero{ min-height: 78vh; }
  .game-grid{ grid-template-columns: 1fr; }
  .panel-body{ padding: 18px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
