/* ==========================================================================
   KHELV GAME PORTAL GUIDE – khelv.pro
   Design System: Midnight Sapphire, Electric Blue, Vivid Coral Pink & Royal Gold
   Colors & Aesthetics strictly matched to Khelv mobile app & official logo
   Fonts: Manrope (Headings/Buttons/Pills) + Inter (Body/Tables/Content)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800;900&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── DESIGN SYSTEM TOKENS ── */
:root {
  /* Surface colors matched to Khelv app screenshot (#060b24 / #0a1236 / #0d1b48) */
  --bg-body:          #060b24;
  --bg-canvas:        #081233;
  --card-bg:          #0a1844;
  --card-bg-elevated: #0f225c;
  --card-glass:       rgba(10, 24, 68, 0.92);
  --card-border:      rgba(59, 130, 246, 0.22);
  --card-border-glow: rgba(56, 189, 248, 0.45);

  /* Typography Colors */
  --ink:              #030718;
  --text-main:        #f8fafc;
  --text-muted:       #94a3b8;
  --text-dim:         #64748b;

  /* Primary Vivid Coral/Pink from screenshot Register and Detail buttons */
  --primary:          #e11d48;
  --primary2:         #be123c;
  --primary-glow:     rgba(225, 29, 72, 0.42);
  --primary-grad:     linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #db2777 100%);

  /* Royal Blues & Cyans from Khelv logo and hero */
  --accent-cyan:      #38bdf8;
  --accent-blue:      #2563eb;
  --accent-blue-deep: #1d4ed8;

  /* Royal Casino Gold & Accents from Khelv logo crown/stars/dice */
  --accent-gold:      #facc15;
  --accent-gold-warm: #f59e0b;
  --accent-gold-dk:   #d97706;
  --accent-red:       #ef4444;
  --accent-green:     #22c55e;

  /* Elevation Shadows */
  --shadow-card:      0 18px 50px rgba(2, 6, 23, 0.65);
  --shadow-card-sm:   0 10px 30px rgba(2, 6, 23, 0.45);
  --shadow-btn:       0 14px 35px rgba(225, 29, 72, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --shadow-glow:      0 0 35px rgba(56, 189, 248, 0.35);

  /* Typography */
  --font-head:        'Manrope', Inter, system-ui, -apple-system, sans-serif;
  --font-body:        'Inter', system-ui, -apple-system, Arial, sans-serif;

  /* Radii */
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        18px;
  --radius-xl:        24px;
  --radius-pill:      9999px;

  /* Layout */
  --max-width:        1080px;
}

/* ── RESET & BASE SETUP ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-body);
  background-image:
    radial-gradient(900px 600px at 15% -10%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(900px 600px at 90% 40%, rgba(225, 29, 72, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 80%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(600px 500px at 80% 110%, rgba(250, 204, 21, 0.08), transparent 60%),
    linear-gradient(180deg, #050a22 0%, #070e2b 50%, #04081c 100%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── TOP MARQUEE / ANNOUNCEMENT BAR (MATCHED TO SCREENSHOT) ── */
.announcement-bar {
  background: linear-gradient(90deg, #09173f 0%, #0d2258 50%, #09173f 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  padding: 8px 16px;
  position: relative;
  z-index: 501;
  font-size: 0.82rem;
}

.announcement-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.announcement-text .ico-speaker {
  color: var(--accent-cyan);
  font-size: 1rem;
  flex-shrink: 0;
  animation: pulse-speaker 2s infinite ease-in-out;
}

@keyframes pulse-speaker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.announcement-btn {
  background: var(--primary-grad);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.announcement-btn:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
  opacity: 0.94;
}

/* ── HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(6, 11, 36, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.logo-link:hover img {
  transform: scale(1.03);
}

.logo-link .logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--accent-gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.logo-link .logo-text span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── NAV TOGGLE (MOBILE HAMBURGER) ── */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 10px;
  flex-shrink: 0;
  margin-left: auto;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

#nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-gold);
}

#nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

#nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-gold);
}

/* ── DESKTOP NAV ── */
#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

#main-nav ul li a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Header Login / Register Action Buttons (matched to screenshot top-right) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.btn-header-login {
  background: #0d1b46 !important;
  color: #fff !important;
  border: 1.5px solid #284c98 !important;
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-pill) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.btn-header-login:hover {
  background: #152b6d !important;
  border-color: var(--accent-cyan) !important;
  transform: translateY(-1px);
}

.btn-header-reg, .nav-cta a {
  background: var(--primary-grad) !important;
  color: #fff !important;
  font-family: var(--font-head) !important;
  font-weight: 900 !important;
  font-size: 0.82rem !important;
  padding: 7px 18px !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.45) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.btn-header-reg:hover, .nav-cta a:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6) !important;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: rgba(10, 24, 68, 0.6);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.78rem;
  padding: 10px 16px;
  color: var(--text-dim);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-width);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb ol li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--text-dim);
  font-weight: bold;
}

.breadcrumb ol li a {
  color: var(--accent-cyan);
  font-weight: 600;
}

.breadcrumb ol li a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.breadcrumb ol li span {
  color: var(--text-muted);
}

/* ── HERO SECTION (APP SHOWCASE WITH SCREENSHOT BANNER) ── */
.hero {
  padding: 44px 16px 36px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(225, 29, 72, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #091238 0%, #060b24 100%);
  border-bottom: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 34, 92, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--accent-gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Hero Showcase Card on Right (with Jackpot Banner) */
.hero-banner-card {
  background: var(--card-bg-elevated);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.25);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.4);
}

.hero-banner-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-banner-footer {
  padding: 14px 18px;
  background: rgba(8, 18, 50, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-banner-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5f3fc;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.btn-banner-action {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #032049 !important;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  text-decoration: none !important;
}

/* ── REBRAND NOTICE BANNER ── */
.rebrand-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(225, 29, 72, 0.12) 100%), var(--card-bg-elevated);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 22px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.rebrand-banner .rb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rebrand-banner p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.rebrand-banner p strong {
  color: #fff;
}

/* ── BUTTONS & CTAS (SHINE ANIMATION) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-primary, .cta-top, .cta-bottom, .cta-mid {
  background: var(--primary-grad);
  color: #fff !important;
  box-shadow: var(--shadow-btn);
}

/* Conic/Linear Shine Overlay */
.btn-primary::after, .cta-top::after, .cta-bottom::after {
  content: "";
  position: absolute;
  left: -20%;
  top: -200%;
  width: 140%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0) 25%
  );
  animation: shine 2.6s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}

@keyframes shine {
  to { transform: rotate(360deg); }
}

.btn-outline {
  background: rgba(15, 34, 92, 0.6);
  color: #fff !important;
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  color: var(--accent-cyan) !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-btn);
  opacity: 0.96;
}

.btn:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
  text-align: center;
  display: flex;
}

/* ── STATS BAR ── */
.stats-bar {
  background: rgba(9, 22, 60, 0.9);
  border-bottom: 1px solid var(--card-border);
  padding: 18px 16px;
  backdrop-filter: blur(12px);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.stat-item .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--accent-gold);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}

.stat-item .lbl {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  display: block;
}

/* ── APP CATEGORIES CAPSULE BAR (NEW LAYOUT FROM SCREENSHOT) ── */
.category-bar-wrapper {
  max-width: var(--max-width);
  margin: 22px auto 0;
  padding: 0 16px;
}

.category-capsule-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.category-capsule-bar::-webkit-scrollbar {
  height: 4px;
}

.category-capsule-bar::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

.category-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(15, 34, 92, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.category-badge-item:hover, .category-badge-item.active {
  background: linear-gradient(180deg, #16337a 0%, #102456 100%);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.category-badge-item .cat-icon {
  font-size: 1.4rem;
  display: inline-block;
}

.category-badge-item .cat-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
}

/* ── POPULAR GAMES SHOWCASE GRID (STYLED EXACTLY LIKE SCREENSHOT) ── */
.popular-games-section {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 0 16px;
}

.section-ribbon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #09173c;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0;
  overflow: hidden;
}

.ribbon-tab {
  background: linear-gradient(90deg, #dc2626 0%, #be123c 40%, #2563eb 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: var(--radius-md) 28px 0 0;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
}

.ribbon-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
}

.ribbon-btn-all {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8 !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.ribbon-btn-all:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}

.ribbon-nav-arrows {
  display: flex;
  gap: 4px;
}

.ribbon-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 0.72rem;
  cursor: pointer;
  border: none;
}

.ribbon-arrow:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.popular-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background: #09173c;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.khelv-game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  text-decoration: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.khelv-game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.35);
  border-color: var(--accent-cyan);
}

.khelv-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.khelv-card-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── DESKTOP / MOBILE PWA PROMO BANNER (FROM SCREENSHOT) ── */
.desktop-pwa-bar {
  max-width: var(--max-width);
  margin: 22px auto 0;
  padding: 0 16px;
}

.desktop-pwa-inner {
  background: linear-gradient(90deg, #172b68 0%, #1d357d 50%, #15275e 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.pwa-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-left img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pwa-text {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.pwa-text span {
  color: var(--accent-gold);
  font-weight: 900;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pwa-install {
  background: var(--primary-grad);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35);
}

.btn-pwa-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-pwa-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── QUICK LINKS (APP LAUNCHER GRID) ── */
.quicklinks {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.ql-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ql-card:hover {
  background: var(--card-bg-elevated);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(37, 99, 235, 0.25);
  color: var(--accent-gold);
}

.ql-card .ico {
  font-size: 1.4rem;
}

/* ── MODERN CARD-BASED STREAM LAYOUT ── */
.site-body {
  padding: 36px 16px 70px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

#main-content {
  width: 100%;
}

.content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
  backdrop-filter: blur(14px);
}

/* ── TYPOGRAPHY INSIDE CONTENT ── */
.content h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.8vw, 1.85rem);
  color: #fff;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
  border-radius: 2px;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin: 24px 0 10px;
}

.content h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  margin: 18px 0 8px;
}

.content p {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content p strong {
  color: #fff;
}

/* ── BULLET POINTS & OK CHECKMARKS ── */
.bullets, .check-list {
  margin: 14px 0;
}

.bullets p, .check-list li {
  margin: 10px 0;
  color: var(--text-main);
  font: 700 14px/1.6 var(--font-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ok, .ok-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.2 16.6L4.6 12l1.8-1.8 2.8 2.8 7.4-7.4L18.4 7l-9.2 9.6z" fill="black"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.2 16.6L4.6 12l1.8-1.8 2.8 2.8 7.4-7.4L18.4 7l-9.2 9.6z" fill="black"/></svg>') center/contain no-repeat;
  flex-shrink: 0;
}

.offer {
  margin: 14px 0 6px;
  font: 900 15px/1.6 var(--font-head);
  color: var(--primary);
}

.note {
  margin: 10px 0 0;
  color: var(--text-dim);
  font: 600 13px/1.7 var(--font-body);
}

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 18px;
}

.toc ol li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.toc ol li a:hover {
  color: #fff;
}

/* ── CALLOUT BOXES ── */
.box {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.65;
}

.box.green {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

/* ── STEPS LIST (VISUAL TIMELINE CARDS) ── */
.steps {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 16px 20px 16px 56px;
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.steps li::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-blue), #1e40af);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ── FEATURE & GAME GRIDS ── */
.feat-grid, .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.feat-card, .game-card {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feat-card:hover, .game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.25);
}

.feat-card .ico, .game-card .g-ico {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.feat-card h4, .game-card h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 8px;
}

.feat-card p, .game-card .game-card-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── BONUS BOX ── */
.bonus-box {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12) 0%, rgba(225, 29, 72, 0.12) 100%), var(--card-bg-elevated);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 22px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.bonus-box .amt {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--accent-gold);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bonus-box p {
  color: var(--text-main);
  font-weight: 600;
  margin: 8px auto 0;
  max-width: 440px;
}

/* ── TABLES (MODERN MATRIX) ── */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg-elevated);
}

.tbl thead tr {
  background: rgba(37, 99, 235, 0.15);
}

.tbl th {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.tbl td {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tbl tbody tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

/* ── FAQ ACCORDION (SUPPORTS BOTH DETAILS/SUMMARY & BUTTON MODES) ── */
.faq, .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0;
}

.faq-item, details.faq-item {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover, details.faq-item:hover, details.faq-item[open] {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.faq-q, summary.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

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

.faq-q .ico {
  font-size: 1.25rem;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

summary.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  font-weight: 800;
}

.faq-q[aria-expanded="true"] .ico {
  transform: rotate(45deg);
  color: var(--primary);
}

details.faq-item[open] summary.faq-question::after {
  content: '−';
  color: var(--primary);
}

.faq-a, .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-a {
  display: none;
}

.faq-q[aria-expanded="true"] + .faq-a,
.faq-a.open {
  display: block;
}

/* ── UTILITY GRID (REIMAGINED SIDEBAR) ── */
.sidebar {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.sw-cta, .tg-banner, .sw, .disclaimer-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sw-cta {
  text-align: center;
  align-items: center;
}

.sw-cta img {
  height: 54px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.sw-cta h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}

.sw-cta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tg-banner {
  text-align: center;
  align-items: center;
}

.tg-banner img {
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tg-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tg-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0284c7, #0369a1);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  width: 100%;
}

.sw h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.sw ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw ul li a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  padding: 8px 12px;
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sw ul li a:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(4px);
  text-decoration: none;
}

.disclaimer-box {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.25);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── FOOTER ── */
#site-footer {
  background: #04081c;
  border-top: 1px solid var(--card-border);
  padding: 44px 16px 32px;
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-col img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-disc {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  text-align: center;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 18px auto 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE OPTIMIZATIONS
   Tested across 320px, 360px, 375px, 390px, 414px, 430px & tablets
   ========================================================================== */

/* Tablet & Intermediate (< 960px) */
@media (max-width: 960px) {
  .hero-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .popular-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Mobile Screens (< 768px) – Primary Target */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 0 !important; /* Dock removed */
  }

  /* Header Bar */
  #site-header {
    background: rgba(6, 11, 36, 0.98);
  }

  .header-inner {
    padding: 8px 12px;
    gap: 8px;
    justify-content: space-between;
  }

  /* Hide verbose text next to logo so brand graphic stays prominent */
  .logo-link {
    gap: 0;
  }

  .logo-link img {
    height: 38px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
  }

  .logo-link .logo-text {
    display: none; /* Logo image already contains Khelv branding */
  }

  /* Header action pills: KEPT VISIBLE on mobile for high conversion */
  .header-actions {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .btn-header-login {
    padding: 6px 12px !important;
    font-size: 0.76rem !important;
    border-radius: var(--radius-pill) !important;
    line-height: 1.2 !important;
  }

  .btn-header-reg {
    padding: 6px 14px !important;
    font-size: 0.76rem !important;
    border-radius: var(--radius-pill) !important;
    line-height: 1.2 !important;
  }

  /* Mobile Hamburger Toggle */
  #nav-toggle {
    display: flex;
    margin-left: 2px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
  }

  #nav-toggle span {
    width: 20px;
    height: 2px;
  }

  /* Slide-Down Mobile Drawer */
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 11, 36, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 2px solid var(--accent-blue);
    padding: 14px 16px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    z-index: 999;
  }

  #main-nav.open {
    display: block;
    animation: drawer-slide-down 0.22s ease-out;
  }

  @keyframes drawer-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  #main-nav ul li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 10px;
    color: #e2e8f0;
    background: rgba(15, 34, 92, 0.35);
    border: 1px solid rgba(59, 130, 246, 0.15);
  }

  #main-nav ul li a.active {
    background: rgba(37, 99, 235, 0.3);
    border-color: var(--accent-cyan);
    color: #fff;
  }

  #main-nav ul li.nav-cta a {
    justify-content: center;
    min-height: 48px;
    font-size: 0.96rem;
    font-weight: 900;
    margin-top: 6px;
    background: var(--primary-grad) !important;
    border: none !important;
  }

  /* Announcement Bar */
  .announcement-bar {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .announcement-inner {
    gap: 8px;
  }

  .announcement-text {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .announcement-btn {
    padding: 3px 10px;
    font-size: 0.68rem;
    flex-shrink: 0;
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  .breadcrumb ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .breadcrumb ol::-webkit-scrollbar {
    display: none;
  }

  /* Hero Section */
  .hero {
    padding: 22px 12px 18px;
  }

  .hero-content {
    text-align: left;
  }

  .hero .hero-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(1.42rem, 5.8vw, 1.75rem);
    line-height: 1.24;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 0.88rem;
    line-height: 1.58;
    margin-bottom: 16px;
    color: #cbd5e1;
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-banner-card {
    margin-top: 14px;
    border-radius: 14px;
  }

  /* App Categories Capsule Bar (4 columns on mobile like native app) */
  .category-bar-wrapper {
    margin: 14px auto 0;
    padding: 0 10px;
  }

  .category-capsule-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
    scrollbar-width: none;
  }

  .category-capsule-bar::-webkit-scrollbar {
    display: none;
  }

  .category-badge-item {
    min-width: 70px;
    padding: 8px 10px;
    border-radius: 10px;
    gap: 4px;
    flex-shrink: 0;
  }

  .category-badge-item .cat-icon {
    font-size: 1.3rem;
  }

  .category-badge-item .cat-name {
    font-size: 0.7rem;
    font-weight: 800;
  }

  /* Popular Games Grid (3 columns on mobile) */
  .popular-games-section {
    margin: 14px auto 0;
    padding: 0 10px;
  }

  .section-ribbon-header {
    padding: 6px 10px;
    border-radius: 10px 10px 0 0;
  }

  .ribbon-tab {
    padding: 5px 10px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .ribbon-btn-all {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .popular-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 6px;
    border-radius: 0 0 10px 10px;
  }

  .khelv-game-card {
    border-radius: 10px;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
  }

  .khelv-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .khelv-card-tag {
    top: 3px;
    right: 3px;
    font-size: 0.52rem;
    padding: 1px 4px;
  }

  /* PWA Promo Bar */
  .desktop-pwa-bar {
    margin: 14px auto 0;
    padding: 0 10px;
  }

  .desktop-pwa-inner {
    padding: 6px 12px;
    gap: 6px;
    border-radius: var(--radius-pill);
  }

  .pwa-app-icon, .pwa-left img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .pwa-title {
    font-size: 0.74rem;
    font-weight: 800;
  }

  .pwa-subtitle {
    display: none; /* Keep single line on mobile */
  }

  .pwa-install-btn, .btn-pwa-install {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .pwa-close-btn, .btn-pwa-close {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  /* Quick Launcher */
  .quicklinks {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 14px auto 0;
    padding: 0 10px;
  }

  .ql-card {
    padding: 8px 2px;
    font-size: 0.68rem;
    border-radius: 10px;
  }

  .ql-card .ico {
    font-size: 1.15rem;
  }

  /* Site Body & Content */
  .site-body {
    padding: 16px 10px 36px;
  }

  .layout {
    gap: 20px;
  }

  .content {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .content h2 {
    font-size: 1.25rem;
    margin: 22px 0 10px;
    padding-bottom: 6px;
  }

  .content h3 {
    font-size: 1.05rem;
    margin: 16px 0 6px;
  }

  .content h4 {
    font-size: 0.95rem;
    margin: 12px 0 4px;
  }

  .content p {
    font-size: 0.88rem;
    line-height: 1.62;
    margin-bottom: 12px;
  }

  .content ul, .content ol {
    padding-left: 1.2em;
  }

  .content li {
    font-size: 0.86rem;
    margin-bottom: 6px;
    line-height: 1.55;
  }

  .box {
    padding: 12px 12px;
    font-size: 0.84rem;
    border-radius: 10px;
    margin: 14px 0;
  }

  .bonus-box {
    padding: 16px 12px;
    margin: 14px 0;
    border-radius: 12px;
  }

  .bonus-box .amt {
    font-size: 1.8rem;
  }

  .bonus-box p {
    font-size: 0.82rem;
  }

  .steps {
    margin: 14px 0;
    gap: 8px;
  }

  .steps li {
    padding: 10px 10px 10px 42px;
    font-size: 0.84rem;
    border-radius: 10px;
  }

  .steps li::before {
    left: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
    border-radius: 6px;
  }

  .toc {
    padding: 12px 12px;
    border-radius: 10px;
    margin-bottom: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .toc ol li a {
    font-size: 0.82rem;
  }

  .feat-grid, .game-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
  }

  .feat-card, .game-card {
    padding: 14px;
    border-radius: 10px;
  }

  /* Mobile-Scrollable Tables (Prevents Any Page-Level Overflow) */
  .tbl {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
    border-radius: 8px;
    margin: 14px 0;
  }

  .tbl th, .tbl td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Touch-Optimized Accordions */
  .faq-q, summary.faq-question {
    padding: 12px 12px;
    font-size: 0.86rem;
    min-height: 44px;
  }

  .faq-a, .faq-answer {
    padding: 0 12px 12px;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* Sidebar Stack */
  .sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .sw-cta, .tg-banner, .sw, .disclaimer-box {
    padding: 16px 12px;
    border-radius: 12px;
  }

  /* Footer */
  #site-footer {
    padding: 28px 12px 20px;
    margin-top: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .footer-col ul {
    gap: 6px;
  }

  .footer-col ul li a {
    font-size: 0.82rem;
  }

  .footer-disc {
    padding: 14px 0;
    font-size: 0.74rem;
  }

  .footer-bottom {
    font-size: 0.74rem;
    margin-top: 14px;
  }
}

/* Small Screens (< 360px: e.g. iPhone SE 1st gen, small Androids) */
@media (max-width: 360px) {
  .logo-link img {
    height: 32px;
    max-width: 90px;
  }
  .btn-header-login {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }
  .btn-header-reg {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }
  #nav-toggle {
    padding: 5px 6px;
  }
  .category-badge-item .cat-name {
    font-size: 0.64rem;
  }
  .popular-games-grid {
    gap: 4px;
    padding: 6px 4px;
  }
}
