/* ==========================================================================
   HUC99 CLUB — Midnight Obsidian & Champagne Rose-Gold Casino Design System
   Prefix: h99-
   ========================================================================== */

:root {
  color-scheme: dark;
  --h99-bg-deep: #0b0f1a;
  --h99-bg-mid: #111827;
  --h99-surface: #161e31;
  --h99-surface-elevated: #1c263d;
  --h99-surface-dark: #090d16;
  --h99-border-gold: rgba(243, 201, 139, 0.18);
  --h99-border-subtle: rgba(255, 255, 255, 0.08);
  --h99-gold-light: #f6d598;
  --h99-gold-mid: #d4954a;
  --h99-gold-deep: #b6782f;
  --h99-gold-grad: linear-gradient(135deg, #f6d598 0%, #d4954a 55%, #b6782f 100%);
  --h99-gold-grad-hover: linear-gradient(135deg, #fbe2b4 0%, #e1a45a 55%, #c58638 100%);
  --h99-emerald: #10b981;
  --h99-emerald-bright: #34d399;
  --h99-emerald-soft: rgba(16, 185, 129, 0.14);
  --h99-dragon-grad: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 45%, #dc2626 100%);
  --h99-tiger-grad: linear-gradient(90deg, #2563eb 0%, #1d4ed8 55%, #1e3a8a 100%);
  --h99-text-primary: #f8fafc;
  --h99-text-secondary: #94a3b8;
  --h99-text-muted: #64748b;
  --h99-font-display: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --h99-font-body: 'Noto Sans Thai', 'Prompt', system-ui, -apple-system, sans-serif;
  --h99-radius-card: 14px;
  --h99-radius-btn: 8px;
  --h99-shadow-card: 0 12px 32px rgba(2, 6, 23, 0.55);
  --h99-container-max: 1380px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--h99-font-body);
  color: var(--h99-text-primary);
  background-color: var(--h99-bg-deep);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 82% 24%, rgba(212, 149, 74, 0.09) 0%, transparent 46%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 28px
    ),
    linear-gradient(180deg, var(--h99-bg-deep) 0%, var(--h99-bg-mid) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--h99-gold-light);
  outline-offset: 2px;
}

.h99-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.h99-container {
  width: min(var(--h99-container-max), calc(100% - 32px));
  margin-inline: auto;
}

/* ==========================================================================
   1. Two-Tier Sticky Header
   ========================================================================== */
.h99-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--h99-border-gold);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.h99-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding-block: 10px;
}

.h99-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.h99-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.h99-mirror-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 0.78rem;
  color: var(--h99-emerald-bright);
  font-weight: 500;
  white-space: nowrap;
}

.h99-mirror-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h99-emerald-bright);
  box-shadow: 0 0 8px var(--h99-emerald-bright);
}

.h99-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.h99-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 22px;
  border-radius: var(--h99-radius-btn);
  font-family: var(--h99-font-display);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.h99-btn:active {
  transform: translateY(1px);
}

.h99-btn-login {
  min-width: 142px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 213, 152, 0.38);
  color: var(--h99-text-primary);
}

.h99-btn-login:hover {
  background: rgba(246, 213, 152, 0.1);
  border-color: var(--h99-gold-light);
}

.h99-btn-register {
  min-width: 152px;
  background: var(--h99-gold-grad);
  color: #161108;
  box-shadow: 0 4px 18px rgba(212, 149, 74, 0.35);
}

.h99-btn-register:hover {
  background: var(--h99-gold-grad-hover);
  box-shadow: 0 6px 24px rgba(246, 213, 152, 0.45);
}

.h99-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-subtle);
  color: var(--h99-text-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.h99-icon-btn:hover {
  border-color: var(--h99-gold-light);
  background: var(--h99-surface-elevated);
}

.h99-bell-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h99-emerald-bright);
  border: 2px solid var(--h99-surface);
}

.h99-lang-wrap {
  position: relative;
}

.h99-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-subtle);
  font-size: 0.85rem;
}

.h99-lang-btn:hover {
  border-color: var(--h99-gold-light);
}

.h99-lang-popover {
  margin: 8px 0 0;
  padding: 6px;
  min-width: 160px;
  border-radius: 12px;
  background: var(--h99-surface-elevated);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
  color: var(--h99-text-primary);
}

.h99-lang-popover[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  inset: auto;
  position: fixed;
  top: 72px;
  right: 90px;
}

.h99-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: left;
}

.h99-lang-option:hover,
.h99-lang-option[aria-checked='true'] {
  background: rgba(246, 213, 152, 0.14);
  color: var(--h99-gold-light);
}

.h99-tz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--h99-border-subtle);
  font-size: 0.78rem;
  color: var(--h99-text-secondary);
}

/* Tier 2 Nav Bar */
.h99-nav-bar-wrap {
  background: rgba(22, 30, 49, 0.88);
  border-top: 1px solid var(--h99-border-subtle);
}

.h99-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.h99-nav-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 6px;
  flex: 1;
}

.h99-nav-scroll::-webkit-scrollbar {
  display: none;
}

.h99-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 14px;
  border-radius: 10px;
  font-family: var(--h99-font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.h99-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--h99-gold-light);
}

.h99-nav-item.is-featured {
  background: var(--h99-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--h99-emerald-bright);
}

.h99-nav-item.is-featured:hover {
  background: rgba(16, 185, 129, 0.22);
}

.h99-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.h99-live-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.h99-nav-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--h99-surface-elevated);
  border: 1px solid var(--h99-border-gold);
  color: var(--h99-gold-light);
  flex-shrink: 0;
}

.h99-nav-next:hover {
  background: rgba(246, 213, 152, 0.16);
}

/* ==========================================================================
   2. Hero Carousel (4:1 / 16:9 responsive aspect, CSS scroll-snap)
   ========================================================================== */
.h99-hero {
  position: relative;
  width: 100%;
  background: radial-gradient(ellipse at 50% 45%, rgba(212, 149, 74, 0.14) 0%, #070b14 68%);
  border-bottom: 1px solid var(--h99-border-gold);
}

.h99-hero-viewport {
  position: relative;
  max-width: 1380px;
  margin-inline: auto;
}

.h99-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: manipulation;
}

.h99-carousel-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .h99-carousel-track {
    scroll-behavior: smooth;
  }
}

.h99-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 16 / 6.5;
  min-height: 220px;
  max-height: 520px;
  overflow: hidden;
  display: block;
}

.h99-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.h99-hero-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 18px;
  pointer-events: none;
  z-index: 3;
}

.h99-hero-arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 15, 26, 0.68);
  border: 1px solid rgba(246, 213, 152, 0.35);
  color: var(--h99-gold-light);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.18s ease;
}

.h99-hero-arrow:hover {
  background: rgba(212, 149, 74, 0.28);
  transform: scale(1.06);
}

.h99-carousel-markers {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(6px);
  z-index: 4;
}

.h99-carousel-markers button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h99-carousel-markers button::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.22s ease, background 0.22s ease;
}

.h99-carousel-markers button[aria-current='true']::after {
  width: 20px;
  background: var(--h99-gold-light);
  box-shadow: 0 0 8px rgba(246, 213, 152, 0.7);
}

/* ==========================================================================
   3. Announcement / Maintenance Ticker
   ========================================================================== */
.h99-ticker-bar {
  background: #060911;
  border-bottom: 1px solid var(--h99-border-subtle);
  overflow: hidden;
  padding-block: 9px;
}

.h99-ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.h99-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(246, 213, 152, 0.14);
  border: 1px solid var(--h99-border-gold);
  color: var(--h99-gold-light);
  font-size: 0.76rem;
  font-weight: 600;
  flex-shrink: 0;
}

.h99-marquee-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.h99-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  color: var(--h99-gold-light);
  font-size: 0.87rem;
  animation: h99-marquee 34s linear infinite;
}

.h99-ticker-bar:hover .h99-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .h99-marquee-track {
    animation: none;
  }
}

@keyframes h99-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   4. 4-Column Feature / Category Cards
   ========================================================================== */
.h99-section {
  padding-block: 28px;
}

.h99-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.h99-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--h99-radius-card);
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  overflow: hidden;
  box-shadow: var(--h99-shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.h99-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 213, 152, 0.45);
}

.h99-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--h99-gold-grad);
  color: #161108;
  font-family: var(--h99-font-display);
  font-weight: 700;
  font-size: 0.96rem;
}

.h99-cat-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.82);
  color: var(--h99-emerald-bright);
  font-size: 0.7rem;
  font-weight: 600;
}

.h99-cat-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1322;
}

.h99-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.h99-cat-card:hover .h99-cat-media img {
  transform: scale(1.05);
}

.h99-cat-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  flex: 1;
}

.h99-cat-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.h99-btn-outline-sm {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding-inline: 14px;
  border-radius: 8px;
  border: 1px solid rgba(246, 213, 152, 0.55);
  color: var(--h99-gold-light);
  font-family: var(--h99-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.h99-btn-outline-sm:hover {
  background: var(--h99-gold-grad);
  color: #161108;
  border-color: transparent;
}

/* ==========================================================================
   5. SEO Editorial Intro Block
   ========================================================================== */
.h99-seo-intro {
  text-align: center;
  max-width: 960px;
  margin-inline: auto;
  padding: 26px 24px;
  border-radius: var(--h99-radius-card);
  background: rgba(22, 30, 49, 0.55);
  border: 1px solid var(--h99-border-subtle);
}

.h99-seo-intro h1,
.h99-seo-intro h2 {
  margin: 0 0 12px;
  font-family: var(--h99-font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 700;
  background: var(--h99-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h99-seo-intro p {
  margin: 0;
  color: var(--h99-text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ==========================================================================
   6. 2-Column Featured Games Showcase (Newest + Popular/Special)
   ========================================================================== */
.h99-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.h99-panel {
  position: relative;
  border-radius: var(--h99-radius-card);
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.h99-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.h99-gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--h99-gold-grad);
  color: #161108;
  font-family: var(--h99-font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.h99-tab-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--h99-surface-dark);
  border: 1px solid var(--h99-border-subtle);
}

.h99-tab-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--h99-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--h99-text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.h99-tab-btn[aria-selected='true'] {
  background: var(--h99-gold-grad);
  color: #161108;
}

.h99-circle-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.h99-mini-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--h99-surface-elevated);
  border: 1px solid var(--h99-border-gold);
  color: var(--h99-gold-light);
}

.h99-mini-arrow:hover {
  background: rgba(246, 213, 152, 0.2);
}

/* Spotlight Left Panel */
.h99-spotlight-card {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: rgba(9, 13, 22, 0.65);
  border: 1px solid var(--h99-border-subtle);
  overflow: hidden;
}

.h99-spotlight-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(22px) brightness(0.28);
  pointer-events: none;
  z-index: 0;
}

.h99-spotlight-thumb {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--h99-border-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.h99-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h99-provider-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid var(--h99-border-gold);
  color: var(--h99-gold-light);
  font-family: var(--h99-font-display);
  font-size: 0.7rem;
  font-weight: 700;
}

.h99-spotlight-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h99-spotlight-info h3 {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: 1.24rem;
  color: #fff;
}

.h99-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h99-plays-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--h99-emerald-bright);
  font-size: 0.78rem;
  font-weight: 600;
}

.h99-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: transform 0.16s ease, color 0.16s ease;
}

.h99-fav-btn[aria-pressed='true'] {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.16);
}

.h99-spotlight-desc {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h99-spotlight-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.h99-btn-play-real {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding-inline: 18px;
  border-radius: 8px;
  background: var(--h99-gold-grad);
  color: #161108;
  font-family: var(--h99-font-display);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
}

.h99-btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding-inline: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--h99-font-display);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
}

.h99-btn-demo:hover {
  border-color: var(--h99-gold-light);
  color: var(--h99-gold-light);
}

/* Right Panel 2x2 Game Grid */
.h99-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
}

.h99-game-card {
  position: relative;
  border-radius: 12px;
  background: var(--h99-surface-dark);
  border: 1px solid var(--h99-border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.h99-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--h99-gold-light);
}

.h99-game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.h99-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.h99-game-card:hover .h99-game-thumb img {
  transform: scale(1.06);
}

.h99-game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.h99-rtp-chip {
  font-size: 0.72rem;
  color: var(--h99-emerald-bright);
  background: var(--h99-emerald-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

/* ==========================================================================
   7. Dragon & Tiger Leaderboard Banner
   ========================================================================== */
.h99-leaderboard {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
  background: var(--h99-surface-dark);
}

.h99-lb-side {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  min-height: 104px;
}

.h99-lb-dragon {
  background: var(--h99-dragon-grad);
  border-radius: 15px 0 0 15px;
}

.h99-lb-tiger {
  background: var(--h99-tiger-grad);
  border-radius: 0 15px 15px 0;
  flex-direction: row-reverse;
  text-align: right;
}

.h99-lb-thumb {
  width: 136px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.h99-lb-text h3 {
  margin: 0 0 2px;
  font-family: var(--h99-font-display);
  font-size: 1.05rem;
  color: #fff;
}

.h99-lb-user {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}

.h99-lb-score {
  font-family: var(--h99-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--h99-gold-light);
}

.h99-lb-medal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  margin-inline: -16px;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a, #d4954a 60%, #78350f 100%);
  border: 4px solid var(--h99-bg-deep);
  box-shadow: 0 0 28px rgba(246, 213, 152, 0.45);
}

/* ==========================================================================
   8. 4-Column Platform Value-Proposition Cards
   ========================================================================== */
.h99-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 34px;
}

.h99-value-card {
  position: relative;
  padding: 54px 18px 22px;
  border-radius: var(--h99-radius-card);
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  text-align: center;
  box-shadow: var(--h99-shadow-card);
}

.h99-value-medallion {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1c263d, #0f172a);
  border: 2px solid var(--h99-gold-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  color: var(--h99-gold-light);
}

.h99-value-card h3 {
  margin: 0 0 8px;
  font-family: var(--h99-font-display);
  font-size: 1.02rem;
  color: var(--h99-gold-light);
}

.h99-value-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--h99-text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   9. 2-Column App Download & Affiliate Partner Cards
   ========================================================================== */
.h99-promo-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.h99-promo-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--h99-radius-card);
  background: var(--h99-surface-dark);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
}

.h99-promo-media {
  width: 152px;
  height: 152px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--h99-border-gold);
}

.h99-promo-media.is-dark {
  background: #0d1322;
}

.h99-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h99-promo-text h3 {
  margin: 0 0 8px;
  font-family: var(--h99-font-display);
  font-size: 1.15rem;
  color: var(--h99-gold-light);
}

.h99-promo-text p {
  margin: 0 0 12px;
  font-size: 0.87rem;
  color: var(--h99-text-secondary);
  line-height: 1.6;
}

.h99-os-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.h99-os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--h99-surface-elevated);
  border: 1px solid var(--h99-border-subtle);
  font-size: 0.78rem;
  color: #e2e8f0;
}

/* ==========================================================================
   10. Recent Winners Ticker Strip
   ========================================================================== */
.h99-winners-strip {
  position: relative;
  margin-top: 10px;
  padding-block: 14px;
  background-color: #16090e;
  background-image: linear-gradient(90deg, rgba(11, 15, 26, 0.85), rgba(69, 10, 10, 0.65), rgba(11, 15, 26, 0.85)),
    url('/images/winners-bg.webp');
  background-size: cover;
  background-position: center;
  border-block: 1px solid var(--h99-border-gold);
  overflow: hidden;
}

.h99-winners-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: h99-marquee 38s linear infinite;
}

.h99-winners-strip:hover .h99-winners-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .h99-winners-track {
    animation: none;
  }
}

.h99-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(246, 213, 152, 0.25);
  white-space: nowrap;
}

.h99-winner-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--h99-gold-light);
}

.h99-winner-meta {
  font-size: 0.8rem;
  line-height: 1.3;
}

.h99-winner-amount {
  color: var(--h99-emerald-bright);
  font-weight: 700;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.h99-footer {
  background: #070a12;
  border-top: 1px solid var(--h99-border-gold);
  padding-top: 28px;
}

.h99-providers-title {
  text-align: center;
  margin: 0 0 14px;
  font-family: var(--h99-font-display);
  font-size: 0.96rem;
  color: var(--h99-gold-light);
}

.h99-providers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--h99-border-subtle);
}

.h99-provider-pill {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--h99-border-subtle);
  font-family: var(--h99-font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.h99-provider-pill:hover {
  color: var(--h99-gold-light);
  border-color: var(--h99-border-gold);
}

.h99-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.3fr;
  gap: 28px;
  padding-block: 30px;
}

.h99-footer-col h4,
.h99-footer-heading {
  margin: 0 0 12px;
  font-family: var(--h99-font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--h99-gold-light);
}

.h99-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--h99-text-secondary);
}

.h99-footer-links a:hover {
  color: var(--h99-gold-light);
}

.h99-footer-brand p {
  margin: 8px 0 14px;
  font-size: 0.85rem;
  color: var(--h99-text-secondary);
}

.h99-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.h99-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--h99-surface-elevated);
  border: 1px solid var(--h99-border-gold);
  color: #fff;
  transition: transform 0.18s ease, background 0.18s ease;
}

.h99-social-circle:hover {
  transform: translateY(-2px);
}

.h99-social-circle.is-tg { background: #0284c7; border-color: transparent; }
.h99-social-circle.is-line { background: #16a34a; border-color: transparent; }
.h99-social-circle.is-support { background: #d97706; border-color: transparent; }
.h99-social-circle.is-app { background: #2563eb; border-color: transparent; }

.h99-copyright {
  text-align: center;
  padding-block: 14px;
  border-top: 1px solid var(--h99-border-subtle);
  font-size: 0.8rem;
  color: var(--h99-text-muted);
}

/* ==========================================================================
   12. Floating Widgets
   ========================================================================== */
.h99-float-chest {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 35;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h99-float-chest-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--h99-gold-light);
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.45);
  background: #0b0f1a;
  transition: transform 0.2s ease;
}

.h99-float-chest-btn:hover {
  transform: scale(1.06);
}

.h99-float-chest-close {
  position: absolute;
  top: -4px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h99-float-dock {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid var(--h99-border-gold);
  backdrop-filter: blur(10px);
}

.h99-scroll-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 35;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--h99-gold-grad);
  color: #161108;
  box-shadow: 0 6px 20px rgba(212, 149, 74, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.h99-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Native <dialog> Modals (Modern Web Guidance)
   ========================================================================== */
dialog.h99-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--h99-border-gold);
  border-radius: 16px;
  background: var(--h99-surface);
  color: var(--h99-text-primary);
  max-width: min(940px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

dialog.h99-dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog.h99-dialog::backdrop {
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog.h99-dialog:modal {
  overscroll-behavior: contain;
}

.h99-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--h99-surface-dark);
  border-bottom: 1px solid var(--h99-border-subtle);
}

.h99-dialog-title {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: 1.08rem;
  color: var(--h99-gold-light);
}

.h99-dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h99-dialog-close:hover {
  background: rgba(246, 213, 152, 0.22);
  color: var(--h99-gold-light);
}

.h99-welcome-body {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 440px;
  overflow: auto;
}

.h99-welcome-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: rgba(9, 13, 22, 0.65);
  border-right: 1px solid var(--h99-border-subtle);
}

.h99-welcome-tab {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
  transition: background 0.16s ease, color 0.16s ease;
}

.h99-welcome-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.h99-welcome-tab[aria-selected='true'] {
  background: var(--h99-gold-grad);
  color: #161108;
  font-weight: 700;
}

.h99-welcome-pane {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h99-welcome-poster {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #070b14;
  border-radius: 12px;
  border: 1px solid var(--h99-border-gold);
}

.h99-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--h99-surface-dark);
  border-top: 1px solid var(--h99-border-subtle);
  font-size: 0.84rem;
  color: var(--h99-text-secondary);
}

.h99-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.h99-checkbox-label input {
  accent-color: var(--h99-gold-mid);
  width: 16px;
  height: 16px;
}

/* Auth Modal */
dialog.h99-auth-dialog {
  max-width: 440px;
  width: calc(100vw - 24px);
}

.h99-auth-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h99-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.h99-field input {
  height: 42px;
  padding-inline: 12px;
  border-radius: 8px;
  border: 1px solid var(--h99-border-subtle);
  background: var(--h99-surface-dark);
  color: #fff;
  font: inherit;
}

.h99-field input:focus {
  outline: 2px solid var(--h99-gold-light);
  border-color: transparent;
}

/* Toast Notification */
.h99-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.95);
  color: #052e16;
  font-family: var(--h99-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.h99-toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .h99-cat-grid,
  .h99-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .h99-showcase-grid {
    grid-template-columns: 1fr;
  }
  .h99-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .h99-mirror-pill,
  .h99-tz-badge,
  .h99-float-dock {
    display: none;
  }
  .h99-leaderboard {
    grid-template-columns: 1fr;
  }
  .h99-lb-dragon {
    border-radius: 15px 15px 0 0;
  }
  .h99-lb-tiger {
    border-radius: 0 0 15px 15px;
    flex-direction: row;
    text-align: left;
  }
  .h99-lb-medal {
    margin: -22px auto;
  }
  .h99-promo-dual {
    grid-template-columns: 1fr;
  }
  .h99-welcome-body {
    grid-template-columns: 1fr;
  }
  .h99-welcome-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--h99-border-subtle);
  }
}

@media (max-width: 600px) {
  .h99-header-top {
    flex-wrap: wrap;
  }
  .h99-btn-login,
  .h99-btn-register {
    min-width: auto;
    padding-inline: 14px;
    height: 38px;
    font-size: 0.85rem;
  }
  .h99-cat-grid,
  .h99-values-grid,
  .h99-games-grid,
  .h99-footer-grid {
    grid-template-columns: 1fr;
  }
  .h99-spotlight-card {
    grid-template-columns: 1fr;
  }
  .h99-promo-card {
    flex-direction: column;
    text-align: center;
  }
  .h99-os-badges {
    justify-content: center;
  }
}


/* ==========================================================================
   Subpages Shared Shell & Upgraded Category UI (Slots, Live, Sports, Fishing)
   ========================================================================== */
.h99-nav-item.is-active {
  background: linear-gradient(135deg, rgba(246, 213, 152, 0.22), rgba(212, 149, 74, 0.14));
  border: 1px solid rgba(246, 213, 152, 0.55);
  color: var(--h99-gold-light);
  box-shadow: 0 0 18px rgba(212, 149, 74, 0.2);
}

.h99-page-hero {
  position: relative;
  padding-block: 26px;
  border-bottom: 1px solid var(--h99-border-gold);
  background:
    radial-gradient(circle at 12% 30%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 86% 20%, rgba(246, 213, 152, 0.16) 0%, transparent 48%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(11, 15, 26, 0.98) 100%);
}

.h99-page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.h99-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.h99-page-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(246, 213, 152, 0.18), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(246, 213, 152, 0.45);
  color: var(--h99-gold-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.h99-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--h99-text-secondary);
  margin-bottom: 4px;
}

.h99-breadcrumb a:hover {
  color: var(--h99-gold-light);
}

.h99-page-title-wrap h1 {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  background: var(--h99-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h99-page-subtitle {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--h99-text-secondary);
}

.h99-page-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.h99-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  font-size: 0.82rem;
  color: #e2e8f0;
}

.h99-stat-pill strong {
  color: var(--h99-emerald-bright);
  font-family: var(--h99-font-display);
}

/* Filter Toolbar (Category Tabs + Search Box) */
.h99-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.h99-theme-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.h99-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-subtle);
  color: #cbd5e1;
  font-family: var(--h99-font-display);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.h99-filter-pill:hover {
  border-color: var(--h99-border-gold);
  color: var(--h99-gold-light);
}

.h99-filter-pill[aria-pressed='true'] {
  background: var(--h99-gold-grad);
  border-color: transparent;
  color: #161108;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 149, 74, 0.35);
}

.h99-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 100%);
}

.h99-search-box svg {
  position: absolute;
  left: 12px;
  color: var(--h99-text-secondary);
  pointer-events: none;
}

.h99-search-input {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 38px;
  border-radius: 10px;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.h99-search-input::placeholder {
  color: var(--h99-text-muted);
}

.h99-search-input:focus {
  outline: 2px solid var(--h99-gold-light);
  border-color: transparent;
}

.h99-search-clear {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--h99-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h99-search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Provider Filter Bar (HUC99 Square Tile Strip + KTV789 Logo Icons) */
.h99-provider-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--h99-radius-card);
  background: rgba(11, 15, 26, 0.72);
  border: 1px solid var(--h99-border-subtle);
  margin-bottom: 22px;
}

.h99-provider-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.h99-provider-scroll::-webkit-scrollbar {
  display: none;
}

.h99-prov-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 92px;
  height: 86px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-subtle);
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.h99-prov-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 213, 152, 0.45);
}

.h99-prov-tile[aria-pressed='true'] {
  background: linear-gradient(160deg, rgba(246, 213, 152, 0.2), rgba(22, 30, 49, 0.95));
  border-color: var(--h99-gold-light);
  box-shadow: 0 0 18px rgba(246, 213, 152, 0.22);
}

.h99-prov-tile img {
  height: 36px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.h99-prov-tile span {
  font-family: var(--h99-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.h99-prov-tile[aria-pressed='true'] span {
  color: var(--h99-gold-light);
}

.h99-hot-ribbon {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* KTV789 Provider Showcase Strip (Slots Page) */
.h99-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.h99-section-head h2 {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: 1.16rem;
  color: var(--h99-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.h99-section-head .h99-count-note {
  font-size: 0.82rem;
  color: var(--h99-text-secondary);
}

.h99-provider-banners {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.h99-prov-banner-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  aspect-ratio: 3 / 4;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.h99-prov-banner-card:hover {
  transform: translateY(-4px);
  border-color: var(--h99-gold-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.h99-prov-banner-card[aria-pressed='true'] {
  border-color: var(--h99-emerald-bright);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.45), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.h99-prov-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h99-prov-banner-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 8px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 22, 0.92) 70%);
  text-align: center;
  font-family: var(--h99-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

/* Upgraded 4-Column Catalog Grid + Hover Action Scrim */
.h99-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.h99-catalog-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
  aspect-ratio: 16 / 10;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.h99-catalog-grid.is-portrait .h99-catalog-card {
  aspect-ratio: 4 / 4.8;
}

.h99-catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--h99-gold-light);
}

.h99-catalog-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.h99-catalog-card:hover > img {
  transform: scale(1.06);
}

.h99-catalog-top {
  position: absolute;
  top: 10px;
  inset-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.h99-catalog-tags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.h99-demo-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(246, 213, 152, 0.94);
  color: #161108;
  font-family: var(--h99-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.h99-card-tag-rtp {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.88);
  color: #042f2e;
  font-family: var(--h99-font-display);
  font-size: 0.7rem;
  font-weight: 700;
}

.h99-catalog-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 17, 0.92) 78%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.h99-catalog-title {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.h99-catalog-sub {
  font-size: 0.74rem;
  color: var(--h99-gold-light);
}

.h99-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.84);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.h99-catalog-card:hover .h99-card-overlay,
.h99-catalog-card:focus-within .h99-card-overlay {
  opacity: 1;
}

.h99-overlay-plays {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
}

.h99-overlay-fav {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h99-overlay-fav[aria-pressed='true'] {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.2);
}

/* Sportsbook Hero Banner (HUC99 Login-Gated Style + Live Match Strip) */
.h99-sport-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
  margin-bottom: 26px;
  min-height: 290px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #090d16;
}

.h99-sport-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.15);
}

.h99-sport-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.72) 78%, transparent 100%);
}

.h99-sport-hero-content h2 {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: #fff;
}

.h99-sport-hero-content p {
  margin: 0;
  color: var(--h99-text-secondary);
  font-size: 0.92rem;
  max-width: 520px;
}

.h99-sport-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.h99-sport-live-box {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: blur(8px);
  border-left: 1px solid var(--h99-border-subtle);
}

.h99-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 30, 49, 0.85);
  border: 1px solid var(--h99-border-subtle);
  font-size: 0.82rem;
}

.h99-match-odds {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--h99-emerald-soft);
  color: var(--h99-emerald-bright);
  font-family: var(--h99-font-display);
  font-weight: 700;
}

.h99-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 20px;
  border-radius: 14px;
  background: var(--h99-surface);
  border: 1px dashed var(--h99-border-gold);
  color: var(--h99-text-secondary);
}

@media (max-width: 1120px) {
  .h99-provider-banners {
    grid-template-columns: repeat(4, 1fr);
  }
  .h99-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .h99-sport-hero {
    grid-template-columns: 1fr;
  }
  .h99-sport-live-box {
    border-left: 0;
    border-top: 1px solid var(--h99-border-subtle);
  }
}

@media (max-width: 780px) {
  .h99-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .h99-provider-banners {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .h99-catalog-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   AI Mode Passage Architecture, Editorial Inner Pages, Responsive Table & Accordion
   ========================================================================== */
.h99-seo-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.h99-passage-block {
  padding: 26px 28px;
  border-radius: var(--h99-radius-card);
  background: rgba(22, 30, 49, 0.72);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
}

.h99-passage-block h2 {
  margin: 0 0 12px;
  font-family: var(--h99-font-display);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 700;
  color: var(--h99-gold-light);
  line-height: 1.38;
}

.h99-passage-block h3 {
  margin: 18px 0 8px;
  font-family: var(--h99-font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: #fff;
}

.h99-passage-block p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.78;
}

.h99-passage-block p:last-child {
  margin-bottom: 0;
}

.h99-lead-answer {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--h99-emerald-bright);
  color: #f1f5f9 !important;
}

.h99-inline-link {
  color: var(--h99-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(246, 213, 152, 0.45);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.h99-inline-link:hover {
  color: var(--h99-emerald-bright);
  text-decoration-color: var(--h99-emerald-bright);
}

.h99-steps-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.93rem;
  line-height: 1.7;
}

.h99-steps-list li::marker {
  color: var(--h99-gold-light);
  font-weight: 700;
}

.h99-bullet-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.7;
}

.h99-bullet-list li::marker {
  color: var(--h99-emerald-bright);
}

.h99-callout {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(212, 149, 74, 0.1);
  border: 1px solid rgba(246, 213, 152, 0.32);
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.65;
}

.h99-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: var(--h99-radius-card);
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.96), rgba(9, 13, 22, 0.98));
  border: 1px solid rgba(246, 213, 152, 0.45);
}

.h99-cta-strip-copy strong {
  display: block;
  font-family: var(--h99-font-display);
  font-size: 1.08rem;
  color: var(--h99-gold-light);
  margin-bottom: 4px;
}

.h99-cta-strip-copy span {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.h99-cta-strip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.h99-inner-figure {
  margin: 0;
  border-radius: var(--h99-radius-card);
  overflow: hidden;
  background: var(--h99-surface-dark);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
}

.h99-inner-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.h99-inner-figure.is-square img {
  aspect-ratio: 1 / 1;
  max-height: 440px;
  object-fit: contain;
  background: #070b14;
}

.h99-inner-figure figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--h99-text-secondary);
  border-top: 1px solid var(--h99-border-subtle);
  background: rgba(9, 13, 22, 0.85);
}

.h99-meta-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.h99-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--h99-border-subtle);
}

.h99-status-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--h99-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--h99-emerald-bright);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.h99-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.h99-cluster-cards,
.h99-blog-grid,
.h99-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.h99-editorial-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--h99-radius-card);
  background: var(--h99-surface);
  border: 1px solid var(--h99-border-gold);
  overflow: hidden;
  box-shadow: var(--h99-shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.h99-editorial-card:hover {
  transform: translateY(-3px);
  border-color: var(--h99-gold-light);
}

.h99-editorial-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090d16;
}

.h99-editorial-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h99-editorial-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.h99-editorial-card-body h3 {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: 1rem;
  color: var(--h99-gold-light);
  line-height: 1.4;
}

.h99-editorial-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  flex: 1;
}

.h99-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: var(--h99-surface-dark);
  border: 1px solid var(--h99-border-subtle);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.h99-related-card:hover {
  border-color: var(--h99-gold-light);
  transform: translateY(-2px);
}

.h99-related-card strong {
  font-family: var(--h99-font-display);
  font-size: 0.94rem;
  color: var(--h99-gold-light);
}

.h99-related-card span {
  font-size: 0.82rem;
  color: var(--h99-text-secondary);
  line-height: 1.5;
}

/* Modern Web Guidance: Responsive Table with @container + Sticky Headers */
.h99-table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 80vh);
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--h99-border-gold);
  background: var(--h99-surface-dark);
  container-type: inline-size;
}

.h99-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  text-align: left;
}

.h99-table caption {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--h99-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--h99-gold-light);
  background: rgba(22, 30, 49, 0.95);
  border-bottom: 1px solid var(--h99-border-subtle);
}

.h99-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.h99-table thead th {
  padding: 12px 14px;
  background: #161e31;
  color: var(--h99-gold-light);
  font-family: var(--h99-font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--h99-border-gold);
  white-space: nowrap;
}

.h99-table tbody th,
.h99-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--h99-border-subtle);
  color: #e2e8f0;
  vertical-align: top;
}

.h99-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: #0d1322;
  color: #fff;
  font-family: var(--h99-font-display);
  font-weight: 600;
}

.h99-table tbody tr:last-child th,
.h99-table tbody tr:last-child td {
  border-bottom: 0;
}

@container (width < 600px) {
  .h99-table,
  .h99-table thead,
  .h99-table tbody,
  .h99-table tr,
  .h99-table th,
  .h99-table td {
    display: block;
  }

  .h99-table thead {
    display: none;
  }

  .h99-table tbody tr {
    margin: 10px;
    border-radius: 10px;
    border: 1px solid var(--h99-border-gold);
    background: var(--h99-surface);
    overflow: hidden;
  }

  .h99-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #1c263d;
    color: var(--h99-gold-light);
    border-bottom: 1px solid var(--h99-border-gold);
  }

  .h99-table tbody td {
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 8px;
    align-items: start;
  }

  .h99-table tbody td::before {
    content: attr(data-label) ": ";
    color: var(--h99-gold-light);
    font-weight: 600;
    font-size: 0.8rem;
  }
}

/* Modern Web Guidance: Native <details> FAQ Accordion */
.h99-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.h99-faq details {
  border-radius: 12px;
  background: var(--h99-surface-dark);
  border: 1px solid var(--h99-border-subtle);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.h99-faq details[open] {
  border-color: var(--h99-border-gold);
}

.h99-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--h99-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
}

.h99-faq summary::-webkit-details-marker {
  display: none;
}

.h99-faq summary:hover {
  background: rgba(246, 213, 152, 0.06);
  color: var(--h99-gold-light);
}

.h99-faq summary::before {
  content: "";
  inline-size: 0.85em;
  block-size: 0.85em;
  flex-shrink: 0;
  background-color: var(--h99-gold-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.h99-faq details[open] > summary::before {
  rotate: 0deg;
}

.h99-faq details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.h99-faq details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .h99-faq summary::before {
    transition: rotate 0.2s ease;
  }
  .h99-faq details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.h99-faq-body {
  padding: 0 16px 16px 38px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .h99-cluster-cards,
  .h99-blog-grid,
  .h99-related-grid,
  .h99-dual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .h99-passage-block {
    padding: 20px 16px;
  }
  .h99-cluster-cards,
  .h99-blog-grid,
  .h99-related-grid,
  .h99-dual-grid {
    grid-template-columns: 1fr;
  }
}

/* Sports Live/Recent Scoreboard Widget (/sports/) */
.h99-hero-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--h99-font-display);
  font-weight: 700;
  color: var(--h99-gold-light);
  font-size: 0.9rem;
}

.h99-hero-live-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--h99-emerald-bright);
  white-space: nowrap;
}

.h99-hero-live-more:hover {
  text-decoration: underline;
}

.h99-hero-live-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h99-score-section {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--h99-border-gold);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--h99-shadow-card);
}

.h99-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.h99-score-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.h99-score-title-wrap h2 {
  margin: 0;
  font-family: var(--h99-font-display);
  font-size: 1.08rem;
  color: #fff;
}

.h99-score-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h99-emerald-bright);
  box-shadow: 0 0 8px var(--h99-emerald-bright);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes h99ScorePulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.55;
      transform: scale(1.22);
    }
  }
  .h99-score-live-dot {
    animation: h99ScorePulse 2.2s ease-in-out infinite;
  }
}

.h99-score-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.h99-score-updated {
  font-size: 0.78rem;
  color: var(--h99-text-secondary);
  font-variant-numeric: tabular-nums;
}

.h99-score-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.h99-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 140px;
}

.h99-score-skeleton {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 12px;
  border: 1px dashed var(--h99-border-subtle);
  background: rgba(22, 30, 49, 0.55);
  color: var(--h99-text-secondary);
  font-size: 0.88rem;
}

.h99-score-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(22, 30, 49, 0.92);
  border: 1px solid var(--h99-border-subtle);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.h99-score-card:hover {
  border-color: rgba(246, 213, 152, 0.4);
  background: rgba(28, 38, 61, 0.95);
}

.h99-score-card.is-live {
  border-color: rgba(52, 211, 153, 0.42);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(22, 30, 49, 0.94) 65%);
}

.h99-score-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
}

.h99-score-league {
  color: var(--h99-gold-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h99-score-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.h99-score-status.is-live {
  background: var(--h99-emerald-soft);
  color: var(--h99-emerald-bright);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.h99-score-status.is-post {
  background: rgba(246, 213, 152, 0.1);
  color: var(--h99-gold-light);
  border: 1px solid rgba(246, 213, 152, 0.2);
}

.h99-score-status.is-pre {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.h99-score-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.h99-score-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.h99-score-team.is-home {
  justify-content: flex-end;
  text-align: right;
}

.h99-score-team.is-away {
  justify-content: flex-start;
  text-align: left;
}

.h99-score-team.is-winner {
  color: #f8fafc;
  font-weight: 700;
}

.h99-score-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.h99-score-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h99-score-val {
  min-width: 58px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: var(--h99-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--h99-gold-light);
  white-space: nowrap;
}

.h99-score-val.is-live {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--h99-emerald-bright);
}

.h99-score-val.is-pre {
  color: var(--h99-text-secondary);
  font-size: 0.82rem;
}

.h99-score-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--h99-border-subtle);
}

.h99-score-note {
  font-size: 0.78rem;
  color: var(--h99-text-secondary);
}

.h99-score-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .h99-score-section {
    padding: 15px 14px;
  }
  .h99-score-grid {
    grid-template-columns: 1fr;
  }
  .h99-score-matchup {
    gap: 7px;
  }
  .h99-score-team {
    font-size: 0.84rem;
  }
  .h99-score-val {
    min-width: 52px;
    padding: 4px 8px;
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   Static Footer Quick Access, Accessible Contact Form & Mobile Responsive UI
   ========================================================================== */
.h99-social-circle.is-static {
  cursor: default;
  pointer-events: none;
}

.h99-social-circle.is-static:hover {
  transform: none;
}

.h99-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}

.h99-contact-intro {
  font-size: 0.92rem;
  color: var(--h99-text-secondary);
  line-height: 1.7;
}

.h99-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.h99-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h99-contact-field label,
.h99-radio-group legend {
  font-family: var(--h99-font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: #f8fafc;
}

.h99-contact-field input,
.h99-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 13, 22, 0.88);
  color: #fff;
  font: inherit;
  font-size: max(1rem, 1em);
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.h99-contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.h99-contact-field input:focus-visible,
.h99-contact-field textarea:focus-visible {
  outline: 2px solid var(--h99-gold-light);
  outline-offset: 1px;
  border-color: transparent;
}

.h99-contact-field input:user-invalid,
.h99-contact-field textarea:user-invalid,
.h99-contact-field [aria-invalid='true'] {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.h99-field-hint {
  font-size: 0.8rem;
  color: var(--h99-text-muted);
  line-height: 1.5;
}

.h99-field-err {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.45;
}

.h99-field-err:empty {
  display: none;
}

.h99-radio-group {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 13, 22, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h99-radio-group[aria-invalid='true'] {
  border-color: #f87171;
}

.h99-radio-group legend {
  padding-inline: 6px;
}

.h99-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.h99-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 30, 49, 0.72);
  color: #e2e8f0;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.h99-radio-option:has(input:checked) {
  border-color: var(--h99-gold-light);
  background: rgba(245, 196, 81, 0.12);
  color: var(--h99-gold-light);
  font-weight: 600;
}

.h99-radio-option input[type='radio'] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--h99-gold-light);
}

.h99-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.h99-contact-submit {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  justify-content: center;
}

.h99-contact-result {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ecfdf5;
}

.h99-contact-result-title {
  display: block;
  margin-bottom: 10px;
  font-family: var(--h99-font-display);
  font-size: 1.02rem;
  color: var(--h99-emerald-bright);
}

.h99-contact-result-meta {
  margin: 0 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
  color: #d1fae5;
}

.h99-contact-result-note {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: #a7f3d0;
  line-height: 1.55;
}

.h99-contact-live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  text-decoration: none;
}

.h99-mobile-dock {
  display: none;
}

@media (pointer: coarse) {
  .h99-contact-field input,
  .h99-contact-field textarea,
  .h99-radio-option,
  .h99-contact-submit {
    min-height: 52px;
  }
}

@media (max-width: 900px) {
  .h99-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
  }

  .h99-float-dock {
    display: none;
  }

  .h99-scroll-top {
    bottom: 82px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .h99-toast {
    bottom: 84px;
    width: min(92vw, 380px);
    text-align: center;
  }

  .h99-header-top {
    padding-block: 8px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .h99-logo-img {
    width: 124px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
  }

  .h99-header-actions {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .h99-lang-btn {
    min-height: 34px;
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .h99-header-actions .h99-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .h99-nav-bar-wrap {
    padding-block: 4px;
  }

  .h99-nav-item {
    padding: 7px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .h99-page-hero {
    padding-block: 16px;
  }

  .h99-page-hero-inner {
    gap: 12px;
  }

  .h99-page-icon-box {
    width: 42px;
    height: 42px;
  }

  .h99-page-hero h1 {
    font-size: 1.32rem;
    line-height: 1.32;
  }

  .h99-page-subtitle {
    font-size: 0.86rem;
  }

  .h99-page-badges {
    gap: 6px;
  }

  .h99-stat-pill {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .h99-catalog-grid,
  .h99-games-grid,
  .h99-cat-grid,
  .h99-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .h99-catalog-top {
    padding: 7px;
  }

  .h99-catalog-bottom {
    padding: 8px 9px;
  }

  .h99-catalog-title {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .h99-catalog-sub {
    font-size: 0.72rem;
  }

  .h99-cat-card {
    border-radius: 12px;
  }

  .h99-cat-head {
    padding: 10px 10px 6px;
    font-size: 0.88rem;
  }

  .h99-cat-body {
    padding: 8px 10px 12px;
  }

  .h99-cat-desc {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .h99-values-grid {
    padding-top: 26px;
  }

  .h99-value-card {
    padding: 36px 10px 14px;
  }

  .h99-value-medallion {
    top: -24px;
    width: 50px;
    height: 50px;
  }

  .h99-value-card h3 {
    font-size: 0.88rem;
  }

  .h99-value-card p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .h99-promo-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }

  .h99-cta-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .h99-cta-strip-actions {
    width: 100%;
    justify-content: stretch;
  }

  .h99-cta-strip-actions .h99-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .h99-passage-block {
    padding: 18px 14px;
  }

  .h99-dual-grid,
  .h99-cluster-cards,
  .h99-blog-grid,
  .h99-related-grid,
  .h99-radio-grid {
    grid-template-columns: 1fr;
  }

  .h99-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding-block: 22px;
  }

  .h99-footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }

  .h99-footer-col:nth-child(3) .h99-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .h99-footer-brand {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }

  .h99-footer-brand p {
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .h99-mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(245, 196, 81, 0.28);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  }

  .h99-mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #cbd5e1;
    font-family: var(--h99-font-display);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
  }

  .h99-mobile-dock-item.is-active {
    color: var(--h99-gold-light);
    background: rgba(245, 196, 81, 0.12);
  }

  .h99-mobile-dock-item.is-cta {
    background: linear-gradient(135deg, #f5c451, #d97706);
    color: #0b0f19;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .h99-logo-img {
    width: 106px;
  }

  .h99-header-actions .h99-btn {
    padding: 5px 8px;
    font-size: 0.73rem;
  }

  .h99-hero-arrow {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   Review Scorecard & Balanced Pros/Cons E-E-A-T Layout
   ========================================================================== */
.h99-review-figure {
  margin: 18px 0;
}

.h99-scorecard-box {
  margin: 18px 0 22px;
  padding: 20px;
  border-radius: var(--h99-radius-card);
  background: rgba(9, 13, 22, 0.72);
  border: 1px solid var(--h99-border-gold);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.h99-scorecard-summary {
  padding: 18px 14px;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(246, 213, 152, 0.14), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(246, 213, 152, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h99-scorecard-overall {
  font-family: var(--h99-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--h99-gold-light);
}

.h99-scorecard-label {
  font-family: var(--h99-font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.h99-scorecard-sub {
  font-size: 0.78rem;
  color: var(--h99-text-secondary);
  line-height: 1.45;
}

.h99-scorecard-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h99-sc-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.h99-sc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.h99-sc-name {
  font-weight: 600;
  color: #f8fafc;
}

.h99-sc-score {
  font-family: var(--h99-font-display);
  font-weight: 700;
  color: var(--h99-emerald-bright);
  white-space: nowrap;
}

.h99-sc-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.h99-sc-fill {
  width: var(--pct, 90%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--h99-emerald), var(--h99-gold-light));
}

.h99-pros-cons-grid {
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.h99-pros-card,
.h99-cons-card {
  padding: 18px 20px;
  border-radius: var(--h99-radius-card);
  background: rgba(9, 13, 22, 0.68);
}

.h99-pros-card {
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.h99-cons-card {
  border: 1px solid rgba(245, 196, 81, 0.4);
}

.h99-pros-card h3,
.h99-cons-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.h99-pros-card h3 {
  color: var(--h99-emerald-bright);
}

.h99-cons-card h3 {
  color: var(--h99-gold-light);
}

.h99-pros-card ul,
.h99-cons-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .h99-scorecard-box,
  .h99-pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Real Playable Slot Demo Player & Crawlable Demo Hub Cards
   ========================================================================== */
.h99-demo-stage {
  margin-bottom: 24px;
  border-radius: var(--h99-radius-card);
  background: rgba(11, 15, 26, 0.96);
  border: 1px solid var(--h99-border-gold);
  box-shadow: var(--h99-shadow-card);
  overflow: hidden;
}

.h99-demo-stage:fullscreen {
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

.h99-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(90deg, #111827, #161e31);
  border-bottom: 1px solid var(--h99-border-subtle);
}

.h99-demo-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.h99-demo-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--h99-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--h99-emerald-bright);
  font-family: var(--h99-font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.h99-demo-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.h99-demo-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  background: #060911;
}

.h99-demo-stage:fullscreen .h99-demo-frame-wrap {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}

.h99-demo-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.h99-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.h99-demo-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--h99-border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.h99-demo-card:hover {
  border-color: var(--h99-border-gold);
  transform: translateY(-2px);
}

.h99-demo-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070b14;
}

.h99-demo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h99-demo-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  flex: 1;
}

.h99-demo-card-body h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #f8fafc;
}

.h99-demo-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--h99-text-secondary);
  line-height: 1.5;
  flex: 1;
}

.h99-demo-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .h99-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .h99-demo-frame-wrap {
    aspect-ratio: auto;
    min-height: 460px;
    height: 70vh;
    max-height: 620px;
  }

  .h99-demo-toolbar {
    padding: 10px 12px;
  }

  .h99-demo-toolbar-actions {
    width: 100%;
  }

  .h99-demo-toolbar-actions .h99-btn,
  .h99-demo-toolbar-actions .h99-btn-outline-sm {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .h99-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .h99-demo-card-body {
    padding: 10px;
  }
}

/* Homepage Quick-Access Bar & Visible Section Headers */
.h99-quick-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-block: 14px 4px;
}

.h99-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--h99-border-subtle);
  color: #f8fafc;
  font-family: var(--h99-font-display);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.h99-quick-btn:hover {
  transform: translateY(-1px);
  border-color: var(--h99-border-gold);
  background: rgba(22, 30, 49, 0.96);
  color: var(--h99-gold-light);
}

.h99-quick-btn.is-primary {
  background: var(--h99-gold-grad);
  border-color: transparent;
  color: #161108;
  font-weight: 700;
}

.h99-quick-btn.is-accent {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--h99-emerald-bright);
}

.h99-home-heading {
  margin: 0 0 14px;
  font-family: var(--h99-font-display);
  font-size: 1.32rem;
  color: var(--h99-gold-light);
}

.h99-demo-inline-preview {
  margin: 18px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--h99-border-subtle);
  background: #070b14;
}

.h99-demo-inline-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.h99-demo-inline-preview figcaption {
  padding: 9px 14px;
  font-size: 0.8rem;
  color: var(--h99-text-secondary);
  border-top: 1px solid var(--h99-border-subtle);
}

@media (max-width: 900px) {
  .h99-quick-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .h99-quick-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .h99-quick-btn:first-child {
    grid-column: 1 / -1;
  }

  .h99-home-heading {
    font-size: 1.15rem;
  }
}
