/* ==========================================================================
   CONTROL GUYS COUNT - Website Stylesheet (AlphaPost-Inspired Architecture)
   Warm golden header, cream body, rounded cards, 3-column layout, and responsive UI.
   ========================================================================== */

:root {
  --primary-gold: #ffd000;
  --primary-amber: #f59e0b;
  --header-grad: linear-gradient(135deg, #ffd000 0%, #f59e0b 100%);
  --brand-navy: #0b1120;
  --brand-cyan: #00d2ff;
  --brand-green: #00e676;
  --brand-red: #ff3366;
  --brand-purple: #8b5cf6;

  --bg-cream: #fcfaf6;
  --bg-cream-alt: #f5f2ea;
  --card-bg: #ffffff;
  --card-border: #e8e4dc;
  --card-border-hover: #d1cbc0;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   NAVIGATION BAR - OPTIMIZED WITH ADJUSTED WIDTH, HEIGHT & LOGO POSITION
   ========================================================================== */
.site-header {
  background: var(--header-grad);
  border-bottom: 1px solid rgba(180, 83, 9, 0.22);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.nav-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover {
  transform: scale(1.08);
}

.nav-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 208, 0, 0.9);
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.25), 0 0 14px rgba(255, 208, 0, 0.4);
  transition: all 0.25s ease;
}

.nav-logo:hover .nav-logo-icon {
  box-shadow: 0 6px 20px rgba(11, 17, 32, 0.35), 0 0 20px rgba(255, 208, 0, 0.7);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 750;
  color: #1e293b;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0 !important;
  min-width: fit-content;
  margin-left: auto;
}

.btn-nav-cta {
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 850;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0 !important;
}

.btn-nav-cta:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 17, 32, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--brand-navy);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   LANGUAGE TRANSLATION SWITCHER (HEADER)
   ========================================================================== */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover, .lang-switcher.open .lang-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--brand-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.lang-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1100;
  max-height: 360px;
  overflow-y: auto;
}

.lang-switcher.open .lang-dropdown {
  display: flex;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lang-option {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-cream);
  color: var(--primary-amber);
}

.lang-option.active {
  background: #fef3c7;
  color: #b45309;
  font-weight: 900;
}

.lang-option .flag {
  font-size: 1.15rem;
}

/* Hide Google Translate attribution banner for clean UI */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-simple {
  display: none !important;
}
body {
  top: 0px !important;
}

/* ==========================================================================
   HERO BAND (AlphaPost Warm Yellow Gradient)
   ========================================================================== */
.hero-band {
  background: var(--header-grad);
  padding: 56px 24px 72px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--brand-navy);
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-title-highlight {
  color: #0284c7;
  position: relative;
  display: inline-block;
}

.hero-title-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: #00d2ff;
  border-radius: 3px;
  opacity: 0.6;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 580px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(11, 17, 32, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11, 17, 32, 0.3);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
}

.btn-hero-secondary:hover {
  background: #ffffff;
}

.hero-meta-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual-card {
  position: relative;
  background: var(--brand-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 17, 32, 0.22);
  border: 4px solid rgba(255, 255, 255, 0.5);
  aspect-ratio: 16 / 9;
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   CENTERED SEARCH BAR
   ========================================================================== */
.search-band {
  max-width: 1280px;
  margin: -28px auto 32px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.search-input-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap:focus-within {
  border-color: var(--primary-amber);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.search-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
}

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

.search-tag-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-cream-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-pill:hover {
  background: var(--primary-gold);
  color: var(--brand-navy);
}

/* ==========================================================================
   THREE-COLUMN MAIN PAGE LAYOUT
   ========================================================================== */
.main-layout {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 270px 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Generic Card Container */
.site-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   LEFT SIDEBAR: 2X2 STATS & BROWSE LIST
   ========================================================================== */
.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}

.stat-box-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1.2;
}

.stat-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Browse List Links */
.browse-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.browse-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.browse-item-link:hover {
  background: var(--bg-cream-alt);
  color: var(--brand-navy);
  transform: translateX(3px);
}

.browse-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--card-border);
  color: var(--text-muted);
}

/* Quick Tips Widget */
.quick-tip-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.quick-tip-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.quick-tip-text {
  font-size: 0.88rem;
  color: #1e3a8a;
  line-height: 1.5;
}

/* ==========================================================================
   CENTER COLUMN: EMBEDDED GAME CONSOLE
   ========================================================================== */
.game-console-card {
  background: var(--brand-navy);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 17, 32, 0.25);
  margin-bottom: 32px;
}

.console-header-bar {
  background: #0f172a;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-status-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.console-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.console-pill-live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-green);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}

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

.console-tools-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.console-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.console-frame-wrap {
  width: 100%;
  height: 640px;
  position: relative;
  background: #000000;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.console-footer-bar {
  background: #0f172a;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.console-key-hints {
  display: flex;
  align-items: center;
  gap: 16px;
}

.key-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ffffff;
}

/* ==========================================================================
   CENTER COLUMN: HOW TO PLAY & MECHANICS
   ========================================================================== */
.section-heading {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mechanics-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mech-card {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.mech-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.mech-badge.green { background: #dcfce7; color: #15803d; }
.mech-badge.blue { background: #e0f2fe; color: #0369a1; }
.mech-badge.red { background: #ffe4e6; color: #be123c; }
.mech-badge.purple { background: #f3e8ff; color: #7e22ce; }
.mech-badge.amber { background: #fef3c7; color: #b45309; }

.mech-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.mech-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CENTER COLUMN: FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.feature-item-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.feature-item-card:hover {
  border-color: var(--primary-amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-circle img {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CENTER COLUMN: BLOG FEED CARDS
   ========================================================================== */
.blog-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.blog-view-all {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0284c7;
}

.blog-view-all:hover {
  text-decoration: underline;
}

.blog-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.blog-post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: all 0.2s ease;
}

.blog-post-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-tag-pill {
  background: #f1f5f9;
  color: #0369a1;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card-title a:hover {
  color: #0284c7;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

.read-more-link {
  font-weight: 800;
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  color: #0284c7;
}

/* ==========================================================================
   CENTER COLUMN: FAQ ACCORDION SECTION
   ========================================================================== */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item.active {
  border-color: var(--primary-amber);
  background: var(--card-bg);
}

.faq-question-btn {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--primary-amber);
}

.faq-answer-panel {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-item.active .faq-answer-panel {
  display: block;
}

/* ==========================================================================
   RIGHT SIDEBAR: MEDIA CARD, LEADERBOARD & AD ZONE
   ========================================================================== */
.media-preview-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.media-preview-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.media-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Leaderboard List */
.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
}

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

.leader-rank {
  font-size: 0.85rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-border);
  color: var(--text-dark);
}

.leader-rank.gold { background: #fef08a; color: #854d0e; }
.leader-rank.silver { background: #e2e8f0; color: #475569; }
.leader-rank.bronze { background: #fed7aa; color: #9a3412; }

.leader-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
}

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

.leader-score {
  font-size: 0.85rem;
  font-weight: 900;
  color: #0284c7;
}

/* Clearly Labeled AdSense Safe Zone */
.ad-slot-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  margin-top: 24px;
}

.ad-slot-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ad-placeholder-box {
  width: 100%;
  min-height: 250px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   BLOG ARTICLE SINGLE PAGE STYLING
   ========================================================================== */
.breadcrumbs-bar {
  max-width: 1280px;
  margin: 20px auto 10px;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-bar a:hover {
  color: #0284c7;
}

.article-layout {
  max-width: 900px;
  margin: 24px auto 64px;
  padding: 0 24px;
}

.article-header {
  margin-bottom: 32px;
}

.article-category-pill {
  display: inline-block;
  background: var(--header-grad);
  color: var(--brand-navy);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-headline {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
}

.article-featured-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #1e293b;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 28px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-callout-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
  font-size: 1rem;
  color: #14532d;
}

.article-callout-box.amber {
  background: #fffbeb;
  border-left-color: #d97706;
  color: #78350f;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.article-table th, .article-table td {
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  text-align: left;
}

.article-table th {
  background: var(--bg-cream-alt);
  font-weight: 800;
  color: var(--text-dark);
}

.article-table tr:nth-child(even) {
  background: var(--bg-cream);
}

/* Related Guides Module */
.related-guides-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--card-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-card-content {
  padding: 14px;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ==========================================================================
   FOOTER SITEMAP
   ========================================================================== */
.site-footer {
  background: var(--brand-navy);
  color: #94a3b8;
  padding: 56px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   PORTAL LAYOUT ARCHITECTURE & RESPONSIVE MODULES
   Spacious full-page flow, modular cards, data tables, and bestiary grids
   ========================================================================== */

/* Main Portal Wrapper */
.portal-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Sticky Table of Contents Navigation Bar */
.toc-nav-bar {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(252, 250, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
  margin-bottom: 40px;
}

.toc-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.toc-nav-inner::-webkit-scrollbar {
  height: 4px;
}
.toc-nav-inner::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.toc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toc-pill:hover {
  background: var(--primary-gold);
  border-color: var(--primary-amber);
  color: var(--brand-navy);
  transform: translateY(-1px);
}

/* Stat Ribbon Banner */
.stat-ribbon {
  background: var(--brand-navy);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 48px;
  box-shadow: 0 16px 36px rgba(11, 17, 32, 0.16);
  border: 2px solid rgba(56, 189, 248, 0.2);
}

.stat-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-ribbon-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 16px;
}

.stat-ribbon-item:last-child {
  border-right: none;
}

.stat-ribbon-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-ribbon-num.cyan { color: #00f0ff; }
.stat-ribbon-num.gold { color: #ffd000; }
.stat-ribbon-num.green { color: #10b981; }
.stat-ribbon-num.purple { color: #c084fc; }

.stat-ribbon-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Full Width Portal Module Section */
.portal-module {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.portal-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--bg-cream-alt);
  padding-bottom: 24px;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.portal-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-navy);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.portal-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 880px;
}

/* Typography Inside Modules */
.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.content-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 36px 0 16px;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 12px;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body ul, .content-body ol {
  margin: 0 0 24px 24px;
  line-height: 1.8;
}

.content-body li {
  margin-bottom: 10px;
}

/* Multi-Column Responsive Grids */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 28px 0;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0;
}

/* Feature & Bestiary Cards */
.sub-card {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sub-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-sm);
}

.sub-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.sub-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.sub-card-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Callout Boxes */
.callout-box {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
  line-height: 1.7;
}

.callout-box.tip {
  background: #ecfdf5;
  border-left: 5px solid #10b981;
  color: #065f46;
}

.callout-box.math {
  background: #f0fdfa;
  border-left: 5px solid #06b6d4;
  color: #155e75;
}

.callout-box.warning {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
  color: #92400e;
}

.callout-box.danger {
  background: #fef2f2;
  border-left: 5px solid #ef4444;
  color: #991b1b;
}

.callout-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Formula Highlight Box */
.formula-block {
  background: var(--brand-navy);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
  overflow-x: auto;
}

/* Data Tables */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-body);
}

.data-table tr:nth-child(even) td {
  background: var(--bg-cream);
}

.data-table tr:hover td {
  background: #f1f5f9;
}

/* Bestiary Cards */
.bestiary-card {
  background: #ffffff;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.bestiary-card:hover {
  border-color: #ef4444;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.12);
}

.bestiary-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  padding: 18px 20px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bestiary-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.bestiary-level {
  font-size: 0.75rem;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.bestiary-body {
  padding: 20px;
}

.bestiary-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.bestiary-stat-label {
  color: var(--text-muted);
  font-weight: 600;
}

.bestiary-stat-val {
  color: var(--text-dark);
  font-weight: 800;
}

/* Biome Atlas Cards */
.biome-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  padding: 24px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.biome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.biome-card.neon::before { background: #00f0ff; }
.biome-card.candy::before { background: #ec4899; }
.biome-card.frozen::before { background: #38bdf8; }
.biome-card.volcanic::before { background: #f97316; }
.biome-card.forest::before { background: #10b981; }
.biome-card.cosmic::before { background: #a855f7; }

/* AdSense Billboard Safe Zone */
.adsense-banner-wrap {
  margin: 48px auto;
  max-width: 970px;
  text-align: center;
}

.adsense-banner-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.adsense-tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.adsense-slot-placeholder {
  min-height: 90px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 4px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .portal-module {
    padding: 32px 24px;
  }
  .grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-ribbon-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .grid-4col {
    grid-template-columns: 1fr;
  }
  .mechanics-steps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .blog-post-card {
    grid-template-columns: 1fr;
  }
  .blog-card-thumb {
    height: 200px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-title {
    font-size: 1.75rem;
  }
}



@media (max-width: 600px) {
  .console-frame-wrap {
    height: 360px;
  }
  .hero-band {
    padding: 36px 16px 56px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .stat-ribbon-grid {
    grid-template-columns: 1fr;
  }
  .stat-ribbon-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
  }
  .stat-ribbon-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .portal-module {
    padding: 24px 16px;
    margin-bottom: 32px;
  }
  .cookie-consent-sidebar {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
}

/* ==========================================================================
   COOKIE CONSENT POPUP (SIDE / FLOATING CARD)
   ========================================================================== */
.cookie-consent-sidebar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: var(--brand-navy);
  border: 2px solid var(--primary-amber);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-consent-sidebar.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.cookie-text {
  color: #cbd5e1;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.cookie-text a {
  color: var(--brand-cyan);
  text-decoration: underline;
}

.cookie-options-toggle {
  margin-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: none;
}

.cookie-options-toggle.open {
  display: block;
}

.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.cookie-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cookie-primary {
  background: var(--header-grad);
  color: var(--brand-navy);
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}

.btn-cookie-primary:hover {
  transform: scale(1.02);
}

.btn-cookie-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.btn-cookie-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   INTERACTIVE MATH GATE CALCULATOR WIDGET
   ========================================================================== */
.calc-widget-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 2px solid #00f0ff;
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 240, 255, 0.15);
  margin: 32px 0;
}

.calc-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 18px;
}

.calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #0b0f19;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease;
}

.calc-input:focus, .calc-select:focus {
  border-color: #00f0ff;
}

.calc-result-panel {
  background: #0b0f19;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.calc-result-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-result-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 12px;
}

.calc-result-explanation {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ==========================================================================
   AUTHOR PROFILE DOSSIER CARDS
   ========================================================================== */
/* ==========================================================================
   AUTHOR CARDS — Redesigned vertical profile cards
   ========================================================================== */
.author-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.author-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.author-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

/* Coloured top accent bar */
.author-card::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--author-accent, #f59e0b);
  width: 100%;
}

/* Photo banner area */
.author-card-photo-wrap {
  background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 0;
}

.author-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  display: block;
}

/* Fallback monogram avatar (no image needed) */
.author-card-monogram {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
  background: var(--author-accent, #f59e0b);
  flex-shrink: 0;
  letter-spacing: -1px;
}

/* Card body */
.author-card-body {
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.author-card-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.2;
}

.author-card-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--author-accent, #f59e0b);
  padding: 4px 12px;
  border-radius: 20px;
  margin: 0 auto 12px;
}

/* Star rating row */
.author-card-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 12px;
  color: #f59e0b;
  font-size: 0.85rem;
}

.author-card-bio {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  text-align: left;
}

/* Stats row */
.author-card-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.author-stat-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #334155;
}

.author-stat-pill strong {
  color: #0f172a;
}

/* CTA link */
.author-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-navy, #0f172a);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 9px 18px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: auto;
}

.author-card-cta:hover {
  background: #1e3a5f;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 1100px) {
  .author-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .author-card-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Legacy compat — keep old classes non-breaking for blog articles */
.author-profile-box {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.author-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-amber);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.author-info { flex: 1; }

.author-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.author-role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 10px;
}

.author-meta-links {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.author-meta-links a {
  color: var(--brand-navy);
  text-decoration: underline;
}

/* ==========================================================================
   COMMUNITY POLL & DAILY CHALLENGE WIDGETS
   ========================================================================== */
.widget-panel-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.poll-option-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.poll-option-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-amber);
}

.poll-option-btn.selected {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

@media (max-width: 860px) {
  .calc-widget-grid {
    grid-template-columns: 1fr;
  }
  .author-profile-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   CONTENT EMBEDDED REAL GRAPHICS & FIGURE CARDS
   ========================================================================== */
.content-figure-card {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 28px 0;
  box-shadow: var(--shadow-md), 0 0 15px rgba(255, 208, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-figure-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 208, 0, 0.2);
}

.content-figure-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.content-figure-caption {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.content-figure-caption strong {
  color: var(--brand-navy);
}

@media (max-width: 600px) {
  .content-figure-card img {
    height: 220px;
  }
}

/* ==========================================================================
   KEYFRAME ANIMATIONS & GLOW SHADOWS
   ========================================================================== */
@keyframes float-bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes pulse-glow-gold {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 208, 0, 0.25), 0 0 0 1px rgba(255, 208, 0, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 208, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.4), 0 0 0 2px rgba(255, 208, 0, 0.6);
  }
}

@keyframes pulse-glow-cyan {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.25);
  }
  50% {
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.6), 0 0 18px rgba(0, 210, 255, 0.4);
  }
}

@keyframes shimmer-sweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.anim-float {
  animation: float-bob 4s ease-in-out infinite;
}

.anim-pulse-gold {
  animation: pulse-glow-gold 3s ease-in-out infinite;
}

.anim-pulse-cyan {
  animation: pulse-glow-cyan 3s ease-in-out infinite;
}

/* Enhanced multi-tier shadow accents */
.game-console-card {
  box-shadow: 0 16px 48px -12px rgba(11, 17, 32, 0.4), 0 0 24px rgba(255, 208, 0, 0.15) !important;
  border: 1px solid rgba(255, 208, 0, 0.3) !important;
}

.btn-hero-play {
  background: linear-gradient(90deg, #10b981 0%, #00d2ff 50%, #10b981 100%) !important;
  background-size: 200% auto !important;
  animation: shimmer-sweep 5s linear infinite !important;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35) !important;
}

.btn-hero-play:hover {
  box-shadow: 0 10px 28px rgba(0, 210, 255, 0.55), 0 0 20px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   POKI-STYLE GAME SPECIFICATIONS & QUICK OVERVIEW MODULE
   ========================================================================== */
.poki-overview-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 208, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.poki-overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffd000, #f59e0b, #00d2ff, #10b981);
}

/* Header Row: Icon + Meta + Primary Action */
.poki-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.poki-meta-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.poki-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 16px rgba(255, 208, 0, 0.3);
  border: 2px solid #ffd000;
  flex-shrink: 0;
  animation: float-bob 4s ease-in-out infinite;
}

.poki-meta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poki-game-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--brand-navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.poki-dev-byline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.poki-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

/* Live Stats Chips */
.poki-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.poki-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.poki-stat-chip.highlight {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.poki-stat-chip.live {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.poki-stat-chip .dot-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-glow-cyan 2s infinite;
}

/* Action CTA Group */
.poki-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-poki-play {
  background: linear-gradient(135deg, #ffd000 0%, #f59e0b 100%);
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-poki-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  filter: brightness(1.05);
}

.btn-poki-secondary {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-poki-secondary:hover {
  background: #f1f5f9;
  border-color: var(--brand-navy);
}

/* Poki Expandable Synopsis */
.poki-synopsis-section {
  margin-bottom: 28px;
}

.poki-synopsis-preview {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 12px;
}

.poki-expandable-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.poki-expandable-content.is-expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--card-border);
}

.poki-expanded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 16px 0;
}

.poki-info-tile {
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.poki-info-tile h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poki-info-tile p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 0;
}

.btn-poki-toggle {
  background: none;
  border: none;
  color: #b45309;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.btn-poki-toggle:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

/* Poki In-Game Screenshot Carousel */
.poki-carousel-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b1120;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
}

.poki-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.poki-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: scale(0.98);
}

.poki-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.poki-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poki-slide-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.85) 40%, rgba(11, 17, 32, 0.95) 100%);
  padding: 32px 24px 16px 24px;
  color: #ffffff;
}

.poki-slide-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd000;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poki-slide-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 0;
}

/* Carousel Nav Controls */
.poki-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.poki-carousel-btn:hover {
  background: #ffd000;
  color: #0b1120;
  border-color: #ffd000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(255, 208, 0, 0.6);
}

.poki-carousel-prev {
  left: 16px;
}

.poki-carousel-next {
  right: 16px;
}

.poki-counter-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd000;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 5;
}

/* Dots indicator */
.poki-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 6px 0;
  background: #ffffff;
}

.poki-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.poki-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: #f59e0b;
}

/* Poki Specifications Table ("About This Game") */
.poki-specs-panel {
  border-top: 1px solid var(--card-border);
  padding-top: 28px;
}

.poki-specs-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poki-specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.92rem;
}

.poki-specs-table tr {
  border-bottom: 1px solid var(--card-border);
  transition: background 0.15s ease;
}

.poki-specs-table tr:last-child {
  border-bottom: none;
}

.poki-specs-table tr:hover {
  background: #fafaf9;
}

.poki-specs-label {
  padding: 12px 18px;
  font-weight: 700;
  color: var(--text-muted);
  width: 28%;
  background: var(--bg-cream);
  border-right: 1px solid var(--card-border);
}

.poki-specs-value {
  padding: 12px 18px;
  font-weight: 600;
  color: var(--brand-navy);
}

.poki-badge-tag {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .poki-overview-card {
    padding: 20px;
  }
  .poki-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .poki-actions-group {
    width: 100%;
  }
  .btn-poki-play {
    flex: 1;
    justify-content: center;
  }
  .poki-specs-table, .poki-specs-table tbody, .poki-specs-table tr, .poki-specs-table td {
    display: block;
    width: 100%;
  }
  .poki-specs-label {
    border-right: none;
    border-bottom: 1px dashed var(--card-border);
    padding: 8px 14px;
  }
  .poki-specs-value {
    padding: 8px 14px 14px 14px;
  }
}


/* ==========================================================================
   COMPREHENSIVE RESPONSIVE OVERHAUL — All Devices
   ========================================================================== */

/* --- Ensure no horizontal overflow on any element --- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

*, *::before, *::after {
  max-width: 100%;
}

/* --- MOBILE MENU OVERLAY --- */
.nav-menu.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 20px;
  gap: 6px;
  overflow-y: auto;
  z-index: 999;
  border-top: 2px solid var(--primary-gold);
}

.nav-menu.mobile-open .nav-link {
  font-size: 1.1rem;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-menu.mobile-open .nav-link:hover,
.nav-menu.mobile-open .nav-link.active {
  background: rgba(255, 208, 0, 0.15);
  color: var(--primary-gold);
  border-bottom-color: rgba(255, 208, 0, 0.2);
}

/* --- THREE-COLUMN LAYOUT → TABLET → MOBILE --- */
@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 240px 1fr 260px;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  /* Show left sidebar content inline, no float */
  .main-left-sidebar,
  .main-right-sidebar {
    display: block;
    width: 100%;
  }

  .stats-grid-2x2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-layout {
    padding: 0 12px;
  }
}

/* --- HEADER RESPONSIVE — Professional Hamburger --- */
@media (max-width: 1250px) {
  .nav-container {
    padding: 0 16px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--brand-navy);
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .btn-nav-cta {
    padding: 8px 16px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .lang-current-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 60px;
  }

  .nav-logo-icon {
    width: 38px;
    height: 38px;
  }

  .nav-container {
    padding: 0 10px;
    gap: 8px;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn-nav-cta {
    padding: 7px 12px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .btn-nav-cta img {
    width: 15px !important;
    height: 15px !important;
  }

  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .lang-btn {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .nav-menu.mobile-open {
    top: 60px;
  }
}

@media (max-width: 360px) {
  .nav-container {
    padding: 0 6px;
    gap: 4px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-logo-icon {
    width: 34px;
    height: 34px;
  }

  .btn-nav-cta {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .lang-btn {
    padding: 5px 6px;
  }

  .lang-arrow {
    display: none;
  }
}

/* --- HERO SECTION --- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-pill-badge {
    margin: 0 auto 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-meta-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual-card {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-band {
    padding: 32px 14px 56px;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
}

/* --- BLOG POST CARDS --- */
@media (max-width: 720px) {
  .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-card-thumb {
    height: 200px;
    width: 100%;
    min-height: unset;
  }
}

/* --- GAME CONSOLE CARD --- */
@media (max-width: 600px) {
  .console-frame-wrap {
    height: 360px;
  }

  .console-header-bar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .console-tools-group {
    flex-wrap: wrap;
  }

  .console-btn {
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .console-footer-bar {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .console-frame-wrap {
    height: 300px;
  }
}

/* --- ARTICLE PAGES --- */
@media (max-width: 768px) {
  .article-wrapper {
    padding: 0 16px !important;
    margin: 24px auto 56px !important;
  }

  .article-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }

  .article-lead {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.45rem !important;
  }

  .breadcrumbs-bar {
    flex-wrap: wrap;
    font-size: 0.78rem;
    padding: 0 14px;
    gap: 4px;
  }

  section h2 {
    font-size: 1.3rem !important;
  }
}

/* --- AUTHOR PROFILE BOX --- */
@media (max-width: 600px) {
  .author-profile-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .author-meta-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- FOOTER LAYOUT FIX --- */
.site-footer {
  overflow: hidden;
}

/* article_builder_base footer uses .footer-container / .footer-top */
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 280px;
}

.footer-col h4,
.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  padding: 16px 0 0;
}

/* Footer responsive breakpoints */
@media (max-width: 900px) {
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .footer-container {
    padding: 0 16px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* --- POKI OVERVIEW CARD responsive --- */
@media (max-width: 600px) {
  .poki-overview-card {
    padding: 16px;
  }

  .poki-game-title {
    font-size: 1.4rem;
  }

  .poki-app-icon {
    width: 64px;
    height: 64px;
  }
}

/* --- SEARCH BAR --- */
@media (max-width: 600px) {
  .search-band {
    padding: 0 14px;
    margin: -20px auto 24px;
  }

  .search-tag-pills {
    display: none;
  }
}

/* --- RELATED GUIDES --- */
@media (max-width: 680px) {
  .related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- STAT RIBBON --- */
@media (max-width: 480px) {
  .stat-ribbon {
    padding: 20px 16px;
  }
}

/* --- PORTAL CONTAINER --- */
@media (max-width: 600px) {
  .portal-container {
    padding: 0 14px 48px;
  }

  .portal-title {
    font-size: 1.55rem;
  }
}

/* --- TABLE OVERFLOW HANDLING --- */
.data-table-wrap,
.article-table,
.poki-specs-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

table {
  min-width: 420px;
}

/* --- MECHANICS GRID TABLET --- */
@media (max-width: 720px) {
  .mechanics-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 440px) {
  .mechanics-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FEATURES GRID TABLET --- */
@media (max-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CALC WIDGET --- */
@media (max-width: 600px) {
  .calc-widget-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calc-widget-card {
    padding: 20px 16px;
  }
}

/* --- TOC NAV BAR --- */
@media (max-width: 600px) {
  .toc-nav-bar {
    top: 60px;
  }

  .toc-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* --- COOKIE CONSENT --- */
@media (max-width: 480px) {
  .cookie-consent-sidebar {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: 100%;
    padding: 18px;
  }
}

/* --- LANG DROPDOWN on mobile --- */
@media (max-width: 480px) {
  .lang-dropdown {
    right: auto;
    left: 0;
    width: 170px;
  }
}

/* ==========================================================================
   BACK TO TOP FLOATING ARROW BUTTON
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fbbf24;
  border: 2px solid rgba(251, 191, 36, 0.85);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.35), 0 0 14px rgba(251, 191, 36, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.back-to-top-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  border-color: #ffd000;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.45), 0 0 20px rgba(251, 191, 36, 0.5);
}

.back-to-top-btn:active {
  transform: translateY(-1px) scale(0.96);
}

.back-to-top-arrow {
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
  font-size: 22px;
}

.back-to-top-btn:hover .back-to-top-arrow {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 22px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .back-to-top-arrow {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .back-to-top-btn {
    bottom: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top-arrow {
    font-size: 18px;
  }
}


