/* jingjing-lin.com — Social entertainment | Gaming theme
   Modern palette: dark base + teal/emerald accent
   Libraries: AOS (scroll), particles.js (background) */

:root {
  --bg-dark: #0a0f0e;
  --bg-mid: #0f1614;
  --bg-card: #141d1a;
  --bg-card-hover: #1a2521;
  --accent: #2dd4bf;
  --accent-dim: #14b8a6;
  --accent-glow: rgba(45, 212, 191, 0.4);
  --text: #f0fdfa;
  --text-muted: #99b8ad;
  --border: rgba(45, 212, 191, 0.22);
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --topbar-h: 36px;
  --section-padding: clamp(4rem, 10vw, 6rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ========== DYNAMIC BACKGROUND ========== */
.site-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

/* Animated gradient base */
.site-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 80% at 20% 20%, rgba(20, 45, 42, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 80% 80%, rgba(26, 61, 56, 0.6) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45, 212, 191, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0f0e 0%, #0f1614 40%, #141d1a 70%, #0a0f0e 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 300%;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0 0, 0 0, 0 0, 0 0; opacity: 1; }
  33% { background-position: 10% 10%, -5% -5%, 0 0, 0 -50px; }
  66% { background-position: -5% 5%, 10% 10%, 0 0, 0 -100px; }
}

/* Optional background image (gaming theme from Unsplash) */
.site-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1920&q=60');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Particles canvas — above gradient, below content */
.site-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.site-bg-particles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Dark overlay so content is readable */
.site-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,14,0.88) 0%, rgba(15,22,20,0.9) 50%, rgba(10,15,14,0.92) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ========== AOS overrides ========== */
[data-aos] { pointer-events: auto; }

/* ========== Top bar (eSports style) ========== */
.jjl-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border);
  z-index: 1001;
  display: flex;
  align-items: center;
}

.jjl-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.jjl-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jjl-topbar-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.jjl-topbar-right { }
.jjl-topbar-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.jjl-topbar-link:hover { text-decoration: underline; }

/* Badges (eSports style) */
.jjl-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.jjl-badge-live {
  background: var(--accent);
  color: var(--bg-dark);
  animation: badgePulse 2s ease-in-out infinite;
}

.jjl-badge-free { background: rgba(45, 212, 191, 0.2); color: var(--accent); border: 1px solid var(--accent); }
.jjl-badge-new { background: rgba(255, 180, 0, 0.25); color: #fbbf24; border: 1px solid #fbbf24; }
.jjl-badge-18 { background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent); }

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.9; box-shadow: 0 0 12px 2px var(--accent-glow); }
}

@media (max-width: 576px) {
  .jjl-topbar-text { display: none; }
}

/* ========== Header (below top bar) ========== */
.jjl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(13, 24, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
}

.jjl-header.scrolled {
  background: rgba(13, 24, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.jjl-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jjl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.jjl-logo:hover { color: var(--accent); }

.jjl-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.jjl-logo:hover .jjl-logo-icon {
  transform: scale(1.05);
  box-shadow: 0 0 32px var(--accent-glow);
}

.jjl-logo-icon svg { width: 24px; height: 24px; fill: var(--bg-dark); }

.jjl-nav { display: flex; align-items: center; gap: 28px; }

.jjl-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.jjl-nav a:hover, .jjl-nav a.active {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.jjl-header-btns { display: flex; align-items: center; gap: 12px; }

.jjl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  border: none;
  text-decoration: none;
}

.jjl-btn:hover { transform: translateY(-3px); }
.jjl-btn:active { transform: translateY(-1px); }

.jjl-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.jjl-btn-outline:hover {
  box-shadow: 0 0 28px var(--accent-glow);
  filter: brightness(1.1);
}

.jjl-btn-primary {
  background: linear-gradient(135deg, #5eead4 0%, var(--accent) 50%, var(--accent-dim) 100%);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
}

.jjl-btn-primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
  filter: brightness(1.08);
}

/* Burger at 991px */
.jjl-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: background 0.2s, border-color 0.2s;
}

.jjl-burger:hover { background: rgba(45, 212, 191, 0.15); }

.jjl-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.jjl-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.jjl-burger.open span:nth-child(2) { opacity: 0; }
.jjl-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
  .jjl-burger { display: flex; }
  .jjl-nav { display: none; }
  .jjl-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: calc(var(--topbar-h) + var(--header-h) + 32px);
    background: #0c1210;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 100%;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .jjl-nav.open a {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(45, 212, 191, 0.08);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .jjl-nav.open a:hover,
  .jjl-nav.open a.active {
    color: var(--accent);
    background: rgba(45, 212, 191, 0.15);
    border-color: var(--accent);
  }
  .jjl-header-btns { display: none; }
  .jjl-header-btns.open {
    display: flex;
    position: fixed;
    bottom: 32px;
    left: 24px;
    right: 24px;
    justify-content: center;
    gap: 12px;
    z-index: 1002;
  }
  .jjl-header-btns.open .jjl-btn {
    flex: 1;
    max-width: 200px;
  }
}

.jjl-main { padding-top: var(--header-h); min-height: 100vh; }
body.jjl-has-topbar .jjl-header { top: var(--topbar-h); }
body.jjl-has-topbar .jjl-main { padding-top: calc(var(--topbar-h) + var(--header-h)); }

.jjl-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Hero — full viewport, strong CTA ========== */
.jjl-hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: var(--section-padding) 0;
  position: relative;
}

.jjl-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.jjl-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.jjl-hero-content h1 span {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  display: inline-block;
}

.jjl-hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.jjl-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.jjl-hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow);
}

.jjl-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.jjl-hero-fallback {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-mid) 100%);
  border-radius: var(--radius);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .jjl-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .jjl-hero-content p { margin-left: auto; margin-right: auto; }
  .jjl-hero-cta { justify-content: center; }
  .jjl-hero-visual { order: -1; }
}

/* ========== Hero eSports (PixieFreak-style) ========== */
.jjl-hero-esports { padding: 3rem 0 4rem; }
.jjl-hero-esports-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.jjl-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.jjl-hero-esports-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.jjl-hero-esports-content h1 span { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.jjl-hero-esports-content p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 420px; }
.jjl-btn-lg { padding: 14px 28px; font-size: 1rem; }

.jjl-hero-featured { position: relative; }

/* Match-style card (featured + horizontal) */
.jjl-match-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.jjl-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(45,212,191,0.12);
}

.jjl-match-card--featured {
  aspect-ratio: 16/10;
  min-height: 280px;
}

.jjl-match-card-bg {
  position: absolute;
  inset: 0;
}

.jjl-match-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.jjl-match-card--featured .jjl-badge { position: absolute; top: 16px; right: 16px; z-index: 2; }
.jjl-match-card--featured .jjl-match-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13,24,20,0.95) 60%);
}

.jjl-match-card-content h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.jjl-match-card-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.jjl-match-card--horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 120px;
  align-items: stretch;
}

.jjl-match-card-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-mid);
}

.jjl-match-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jjl-match-card--horizontal .jjl-badge { position: absolute; top: 8px; left: 8px; }
.jjl-match-card-info {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jjl-match-card-info h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.25rem; }
.jjl-match-card-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.jjl-match-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .jjl-hero-esports-inner { grid-template-columns: 1fr; text-align: center; }
  .jjl-hero-esports-content p { margin-left: auto; margin-right: auto; }
  .jjl-hero-featured { order: -1; }
  .jjl-match-card--horizontal { grid-template-columns: 1fr; }
  .jjl-match-row { grid-template-columns: 1fr; }
}

/* ========== Tabs (eSports style) ========== */
.jjl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.jjl-section-head .jjl-section-title { margin-bottom: 0; }

.jjl-tabs {
  display: flex;
  gap: 0;
  background: rgba(26, 47, 40, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.jjl-tab {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.jjl-tab:hover { color: var(--text); }
.jjl-tab.active {
  color: var(--bg-dark);
  background: var(--accent);
}

.jjl-tab-panels { }
.jjl-tab-panel { display: none; }
.jjl-tab-panel.active { display: block; }

/* ========== Leaderboard ========== */
.jjl-section-dark {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 100%);
}

.jjl-leaderboard-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(26, 47, 40, 0.5);
}

.jjl-leaderboard {
  width: 100%;
  border-collapse: collapse;
}

.jjl-leaderboard th,
.jjl-leaderboard td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.jjl-leaderboard th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(45, 212, 191, 0.06);
}

.jjl-leaderboard tr:last-child td { border-bottom: none; }
.jjl-leaderboard tbody tr:hover { background: rgba(45, 212, 191, 0.06); }
.jjl-leaderboard td:first-child { font-weight: 700; color: var(--accent); width: 60px; }
.jjl-leaderboard td:nth-child(3) { font-weight: 600; color: var(--text); }

/* ========== News cards ========== */
.jjl-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .jjl-news-grid { grid-template-columns: 1fr; } }

.jjl-news-card {
  background: linear-gradient(145deg, rgba(30, 61, 52, 0.5) 0%, rgba(26, 47, 40, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.jjl-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.jjl-news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-mid);
}

.jjl-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.jjl-news-card:hover .jjl-news-card-img img { transform: scale(1.05); }

.jjl-news-card-body { padding: 1.25rem; }
.jjl-news-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.jjl-news-card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.55; }

.jjl-news-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.jjl-news-link:hover { text-decoration: underline; }

/* ========== Partners section ========== */
.jjl-partners { }
.jjl-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.jjl-partner-logo {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.jjl-partner-logo img { height: 50px; width: auto; object-fit: contain; }
.jjl-partner-logo:hover { opacity: 1; }

.jjl-partners-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Game card badge position */
.jjl-game-card-thumb { position: relative; }
.jjl-game-card-thumb .jjl-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ========== Sections ========== */
.jjl-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.jjl-section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px var(--accent-glow);
}

.jjl-section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: -1.5rem auto 3rem;
  font-size: 1.05rem;
}

/* ========== Feature cards ========== */
.jjl-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .jjl-features { grid-template-columns: 1fr; }
}

.jjl-feature-card {
  background: linear-gradient(145deg, rgba(30, 61, 52, 0.6) 0%, rgba(26, 47, 40, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.jjl-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 40px rgba(45,212,191,0.1);
  border-color: rgba(45, 212, 191, 0.35);
}

.jjl-feature-card .icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45,212,191,0.2) 0%, rgba(45,212,191,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid var(--border);
}

.jjl-feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.jjl-feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* ========== Game cards ========== */
.jjl-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .jjl-games-grid { grid-template-columns: 1fr; }
}

.jjl-game-card {
  background: linear-gradient(145deg, rgba(30, 61, 52, 0.5) 0%, rgba(26, 47, 40, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.jjl-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 56px rgba(0,0,0,0.4), 0 0 48px rgba(45,212,191,0.12);
  border-color: rgba(45, 212, 191, 0.35);
}

.jjl-game-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-mid);
  position: relative;
}

.jjl-game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.jjl-game-card:hover .jjl-game-card-thumb img { transform: scale(1.08); }

.jjl-game-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,24,20,0.6) 100%);
  pointer-events: none;
}

.jjl-game-card-body { padding: 1.5rem; }

.jjl-game-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.jjl-game-card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.jjl-game-card-body .jjl-btn { width: 100%; }

/* ========== Testimonials ========== */
.jjl-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .jjl-testimonials { grid-template-columns: 1fr; }
}

.jjl-testimonial-card {
  background: linear-gradient(145deg, rgba(30, 61, 52, 0.4) 0%, rgba(26, 47, 40, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.jjl-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.jjl-testimonial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.jjl-testimonial-card .author {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========== CTA block ========== */
.jjl-cta-block {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.06) 0%, rgba(26, 61, 56, 0.3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.jjl-cta-block h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.jjl-cta-block p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ========== Disclaimer ========== */
.jjl-disclaimer-box {
  background: linear-gradient(145deg, rgba(45,212,191,0.08) 0%, rgba(45,212,191,0.03) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
  box-shadow: 0 0 30px rgba(45,212,191,0.06);
}

.jjl-disclaimer-box p { color: var(--text); margin-bottom: 0.5rem; }

.jjl-disclaimer-box a { color: var(--accent); }

/* ========== Modals ========== */
.jjl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}

.jjl-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.jjl-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.35s ease-out;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.jjl-modal-overlay.open .jjl-modal { transform: scale(1); }

.jjl-modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jjl-modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--accent);
}

.jjl-modal-close {
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(45,212,191,0.1);
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.jjl-modal-close:hover { color: var(--accent); background: rgba(45,212,191,0.2); }

.jjl-modal-body { padding: 1.5rem; }

.jjl-game-modal .jjl-modal {
  max-width: 95vw;
  max-height: 92vh;
  width: 1000px;
  height: 700px;
}

.jjl-game-modal .jjl-modal-body {
  padding: 0;
  height: 100%;
  min-height: 600px;
}

.jjl-game-modal iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ========== Footer ========== */
.jjl-footer {
  background: linear-gradient(180deg, rgba(13,24,20,0.98) 0%, rgba(26,47,40,0.95) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.jjl-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .jjl-footer-grid { grid-template-columns: 1fr 1fr; }
}

.jjl-footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jjl-footer-col ul { list-style: none; }

.jjl-footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

.jjl-footer-col a:hover { color: var(--accent); }

.jjl-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.jjl-footer-badges a { display: block; padding: 0; }

.jjl-footer-badges img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.jjl-footer-badges a:hover img { opacity: 1; }

.jjl-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.jjl-footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ========== Cookie banner ========== */
.jjl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  z-index: 1500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.jjl-cookie-banner.show { transform: translateY(0); }

.jjl-cookie-banner p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ========== Page content (policy, etc.) ========== */
.jjl-page { padding: 5rem 0 4rem; }

.jjl-page h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.jjl-page h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--text); }

.jjl-page p, .jjl-page li { color: var(--text-muted); margin-bottom: 0.75rem; }

.jjl-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
