/* portal: homepage fold, navbar, topics/price */
/* HOMEPAGE: one viewport, ticker is the floor */
html.portal-home,
body.portal-home {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.portal-home {
  display: flex;
  flex-direction: column;
}

body.portal-home .portal-navbar {
  flex-shrink: 0;
  position: relative;
  top: auto;
}

body.portal-home #app-container,
body.portal-home #fx-canvas,
body.portal-home .studio-spotlight-left,
body.portal-home .studio-spotlight-right,
body.portal-home #studio-applause-sign {
  display: none !important;
}

#fx-canvas {
  pointer-events: none;
}

.question-view,
.lobby-view,
.lobby-grid,
.scanning-view,
.topics-view,
.voting-view,
.celebration-view {
  contain: layout paint;
}

body.portal-subpage {
  padding-bottom: var(--ticker-h);
}

.landing-fullscreen-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: var(--ticker-h);
}

.home-join-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  padding: 12px 20px;
  font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #081018;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border-bottom: 2px solid rgba(0, 242, 254, 0.6);
}

.home-join-banner:hover,
.home-join-banner:focus {
  color: #081018;
  filter: brightness(1.08);
}

/* ==========================================================================
   2026 GAMING PORTAL - LANDING PAGE & WIREFRAME STYLES
   ========================================================================== */

/* STICKY PORTAL NAVBAR */
.portal-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 14px 32px;
  background: rgba(10, 12, 22, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.portal-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.portal-nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.portal-nav-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  font-weight: 700;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.portal-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.portal-nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .portal-navbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .portal-nav-tag {
    display: none;
  }
  .portal-nav-logo {
    font-size: 1.15rem;
  }
  .portal-nav-actions {
    gap: 6px;
  }
  .portal-nav-actions .btn,
  .portal-nav-actions a.btn,
  .portal-nav-actions button {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .portal-nav-logo {
    font-size: 0.95rem;
  }
  #btn-nav-auth {
    display: none;
  }
  .hero-main-title {
    font-size: 1.85rem;
  }
  .hero-description {
    font-size: 0.88rem;
    margin-bottom: 12px;
  }
  .hero-cta-deck {
    margin-bottom: 14px;
    justify-content: center;
  }
  .btn-hero-primary {
    padding: 12px 22px;
    font-size: 1rem;
  }
}

/* PORTAL HERO SPLIT-SCREEN LAYOUT */
.portal-hero-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px 8px 24px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 10;
  flex: 1;
  min-height: 0;
}

@media (max-width: 1024px) {
  .portal-hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 12px 16px 4px 16px;
  }
  .portal-nav-links {
    display: none;
  }
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 1024px) {
  .hero-left-col {
    align-items: center;
    text-align: center;
  }
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.hero-description {
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 560px;
}

.hero-cta-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .hero-cta-deck {
    justify-content: center;
  }
}

.btn-hero-primary {
  padding: 16px 34px;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 0, 127, 0.55);
}

.btn-hero-secondary {
  padding: 16px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust-chips span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3D HERO SHOWCASE STAGE */
.hero-visual-col {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-tv-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(46vh, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-neon);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.35), 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.hero-stage-img {
  width: 100%;
  height: 100%;
  max-height: min(46vh, 420px);
  object-fit: cover;
  display: block;
  filter: contrast(1.06) brightness(1.02);
}

.hero-tv-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 0 70px rgba(255, 0, 127, 0.5), 0 35px 80px rgba(0, 0, 0, 0.9);
}

.hero-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,22,0.1) 0%, rgba(10,12,22,0.65) 85%, rgba(10,12,22,0.95) 100%);
  pointer-events: none;
}

.hero-frame-badge-left {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 0, 80, 0.88);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  box-shadow: 0 0 16px rgba(255, 0, 80, 0.6);
  animation: pulseOnAir 2s infinite;
}

.hero-frame-badge-right {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.hero-frame-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* SECTION WRAPPERS */
.portal-section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  position: relative;
  z-index: 10;
}

.portal-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* HOW IT WORKS — compact strip inside the fold */
.how-it-works-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 24px 8px 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.how-step-compact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
}

.how-step-compact .step-num-badge {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.how-step-compact .step-title {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.how-step-compact .step-body {
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 1024px) {
  .portal-hero-section {
    overflow: hidden;
  }
  .how-it-works-strip {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 4px 12px 6px 12px;
  }
  .how-step-compact {
    padding: 8px 12px;
    align-items: center;
  }
  .how-step-compact .step-body {
    display: none;
  }
  .hero-visual-col {
    max-height: 22vh;
    overflow: hidden;
  }
  .hero-tv-frame {
    transform: none;
    max-height: 22vh;
  }
  .hero-stage-img {
    max-height: 22vh;
  }
  .hero-live-pill {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }
  .hero-frame-badge-left,
  .hero-frame-badge-right,
  .hero-frame-caption {
    display: none;
  }
}

/* 1. HOW IT WORKS 3-STEP GRID (subpages) */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.how-step-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.how-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.step-icon-large {
  font-size: 3rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.step-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 2. 6 CATEGORIES SHOWCASE GRID */
.categories-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.category-showcase-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
  backdrop-filter: blur(18px);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
}

.category-card-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.category-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 3. PRICING GAME PACKS SECTION */
.portal-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-pack-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-pack-card.featured {
  border: 2px solid var(--accent-yellow);
  background: rgba(255, 189, 0, 0.06);
  box-shadow: 0 0 40px rgba(255, 189, 0, 0.25);
  transform: scale(1.03);
}

.pricing-pack-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.pack-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-magenta));
  color: #000;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  box-shadow: 0 0 15px rgba(255, 189, 0, 0.6);
}

.pack-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.pack-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.pack-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.pricing-pack-card.featured .pack-price {
  color: var(--accent-yellow);
}

.pack-unit-price {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pack-features-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.pack-features-list li::before {
  content: '✓ ';
  color: var(--accent-green);
  font-weight: 900;
}

/* PORTAL FOOTER */
.portal-site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 8, 16, 0.9);
  padding: 8px 24px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

body.portal-subpage .portal-site-footer {
  padding: 18px 24px;
  margin-bottom: 0;
}

.portal-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portal-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subpage-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 48px 24px;
  position: relative;
  z-index: 10;
}

.payment-status-banner {
  display: none;
  max-width: 1080px;
  margin: 0 auto 24px auto;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  font-weight: 800;
  text-align: center;
}

.payment-status-banner.error {
  border-color: rgba(255, 80, 80, 0.4);
  background: rgba(255, 80, 80, 0.1);
  color: #ff8080;
}

.payment-status-banner a {
  color: inherit;
  margin-left: 8px;
}

.purchase-celebration {
  display: flex;
  justify-content: center;
  padding: 12px 0 40px;
}

.purchase-celebration[hidden] {
  display: none !important;
}

.purchase-celebration-card {
  width: min(560px, 100%);
  text-align: center;
  padding: 42px 32px 36px;
  background: rgba(18, 24, 42, 0.94);
  border: 1.5px solid rgba(255, 189, 0, 0.55);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 189, 0, 0.18);
}

.purchase-celebration-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 10px;
}

.purchase-celebration-kicker {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin: 0 0 8px;
}

.purchase-celebration-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 16px;
  color: #fff;
}

.purchase-celebration-added {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 0 0 6px;
}

.purchase-celebration-total {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-yellow);
  margin: 0 0 28px;
}

.portal-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.portal-footer-links a, .portal-footer-links button {
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.portal-footer-links a:hover, .portal-footer-links button:hover {
  color: var(--accent-cyan);
}

