/* =============================================
   QuizyBitz - Main Stylesheet
   Fully Responsive + AdSense Compliant
   ============================================= */

:root {
  --primary: #6C3DE8;
  --primary-dark: #4e1fc7;
  --secondary: #9B59B6;
  --accent: #F4C542;
  --accent2: #FF6B6B;
  --bg-dark: #0D0D2B;
  --bg-card: #1A1A40;
  --bg-card2: #21215A;
  --text-light: #FFFFFF;
  --text-muted: #A0A0C0;
  --border-color: rgba(108,61,232,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(108,61,232,0.2);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Nunito', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-light); }

/* ===== NAVBAR ===== */
.gtz-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,43,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}
.gtz-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 12px;
}
.gtz-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.gtz-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}
.gtz-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-decoration: none;
}
.gtz-logo { width: 36px; height: 36px; object-fit: contain; }
.gtz-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.gtz-nav-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== SIDEBAR DRAWER ===== */
.gtz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1099;
  backdrop-filter: blur(2px);
}
.gtz-overlay.show { display: block; }
.gtz-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  z-index: 1100;
  overflow-y: auto;
  transition: left 0.3s ease;
  border-right: 1px solid var(--border-color);
}
.gtz-drawer.open { left: 0; }
.gtz-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}
.gtz-drawer-user { display: flex; align-items: center; gap: 12px; }
.gtz-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.gtz-drawer-username { font-weight: 700; font-size: 0.85rem; color: #fff; word-break: break-all; max-width: 150px; }
.gtz-drawer-coins { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.gtz-drawer-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.gtz-drawer-nav { padding: 12px 0; }
.gtz-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.gtz-drawer-item:hover {
  background: rgba(108,61,232,0.15);
  color: var(--accent);
  border-left-color: var(--accent);
}
.gtz-drawer-item i { width: 20px; color: var(--primary); font-size: 0.9rem; }
.gtz-drawer-item:hover i { color: var(--accent); }
.gtz-drawer-divider { height: 1px; background: var(--border-color); margin: 8px 16px; }
.gtz-drawer-share { padding: 14px 20px; }
.gtz-drawer-share p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.gtz-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  margin-right: 8px;
  font-size: 1rem;
}
.gtz-social-btn.fb { background: #1877F2; }
.gtz-social-btn.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* ===== PAGE WRAPPER ===== */
.gtz-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.gtz-page-narrow { max-width: 540px; margin: 0 auto; padding: 20px 16px 40px; }

/* ===== HERO SECTION (index.php) ===== */
.gtz-hero {
  text-align: center;
  padding: 32px 16px 24px;
}
.gtz-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.gtz-hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gtz-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SECTION TITLE ===== */
.gtz-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gtz-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== GAME CARDS GRID ===== */
.gtz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media(min-width:600px){ .gtz-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media(min-width:900px){ .gtz-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.gtz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
.gtz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}
.gtz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.gtz-card:hover::before { opacity: 0.08; }
.gtz-card > * { position: relative; z-index: 1; }
.gtz-card-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(108,61,232,0.4));
}
.gtz-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.gtz-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.gtz-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.gtz-card-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(108,61,232,0.4); }
.gtz-card.quiz-card { background: linear-gradient(160deg, #1e0860 0%, #2d0d7e 100%); }
.gtz-card.puzzle-card { background: linear-gradient(160deg, #0d2b60 0%, #0d4278 100%); }
.gtz-card.riddle-card { background: linear-gradient(160deg, #1a0d40 0%, #3b1580 100%); }
.gtz-card.custom-card { background: linear-gradient(160deg, #0d3b2b 0%, #0d5c40 100%); }

/* ===== LANGUAGE SELECT CARDS ===== */
.gtz-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.gtz-lang-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.gtz-lang-card:hover, .gtz-lang-card:active {
  border-color: var(--primary);
  background: var(--bg-card2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.gtz-lang-card img { width: 70px; height: 70px; object-fit: contain; margin-bottom: 12px; }
.gtz-lang-card .lang-name { font-size: 1rem; font-weight: 700; color: #fff; }
.gtz-lang-card .lang-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ===== RIDDLE SLIDER ===== */
.gtz-riddle-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 24px;
}
.gtz-riddle-section .gtz-section-title { color: var(--accent); }
.gtz-slide { display: none; }
.gtz-slide.active { display: block; }
.gtz-slide-text {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 14px;
  min-height: 60px;
}
.gtz-slide-counter {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.gtz-slide-answer {
  display: none;
  background: rgba(108,61,232,0.15);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.gtz-slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.gtz-slide-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gtz-slide-btn:hover { background: var(--primary); border-color: var(--primary); }
.gtz-ans-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--accent);
  padding: 6px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.gtz-ans-btn:hover { background: var(--primary); color: #fff; }

/* ===== INFO SECTION ===== */
.gtz-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.gtz-info-section h3 { font-size: 1rem; color: var(--accent); margin-bottom: 14px; }
.gtz-info-list {
  list-style: none;
  padding: 0;
}
.gtz-info-list li {
  padding: 7px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.gtz-info-list li:last-child { border-bottom: none; }
.gtz-info-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== ADSENSE CONTAINERS ===== */
.gtz-ad-container {
  width: 100%;
  overflow: hidden;
  background: transparent;
  margin: 16px 0;
  text-align: center;
  min-height: 90px;
}
.gtz-ad-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

/* ===== PUZZLE GRID ===== */
.gtz-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media(min-width:500px){ .gtz-puzzle-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:768px){ .gtz-puzzle-grid { grid-template-columns: repeat(4, 1fr); } }

.gtz-puzzle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.gtz-puzzle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.gtz-puzzle-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gtz-puzzle-card-body { padding: 8px 10px; }
.gtz-puzzle-card-name { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.gtz-puzzle-play-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.gtz-puzzle-play-btn:hover { opacity: 0.85; }

/* ===== TABS ===== */
.gtz-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.gtz-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.gtz-tab-btn.active, .gtz-tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.gtz-tab-pane { display: none; }
.gtz-tab-pane.active { display: block; }

/* ===== RIDDLE LIST (mosttrendyriddle) ===== */
.gtz-riddle-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.gtz-riddle-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.gtz-riddle-q { font-size: 0.9rem; color: #fff; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.gtz-riddle-ans-area { display: none; padding: 10px 0 4px; }
.gtz-riddle-ans-text { font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.gtz-reveal-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.gtz-reveal-btn:hover { background: var(--primary); color: #fff; }

/* ===== ABOUT / INFO PAGE ===== */
.gtz-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
}
.gtz-content-card h2 { font-size: 1.2rem; color: var(--accent); margin-bottom: 16px; }
.gtz-content-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.gtz-content-card p:last-child { margin-bottom: 0; }

/* ===== BUTTON STYLES ===== */
.gtz-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
}
.gtz-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,61,232,0.4); color: #fff; }
.gtz-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
}
.gtz-btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== FOOTER ===== */
.gtz-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 28px 16px;
  margin-top: 40px;
}
.gtz-footer-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.gtz-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gtz-footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.gtz-footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.gtz-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
}
.gtz-footer-social a:first-child { background: #1877F2; }
.gtz-footer-social a:nth-child(2) { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.gtz-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 16px; }
.gtz-footer-nav a { font-size: 0.83rem; color: var(--text-muted); }
.gtz-footer-nav a:hover { color: var(--accent); }
.gtz-footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ===== QUIZ CATEGORY SECTION ===== */
.gtz-quiz-categories { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.gtz-category-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  gap: 12px;
}
.gtz-category-item:hover { border-color: var(--primary); background: var(--bg-card2); }
.gtz-category-img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.gtz-category-info { flex: 1; }
.gtz-category-name { font-size: 0.9rem; font-weight: 700; color: #fff; }
.gtz-category-count { font-size: 0.76rem; color: var(--text-muted); }
.gtz-category-arrow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE HELPERS ===== */
@media(max-width: 400px) {
  .gtz-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gtz-card { min-height: 140px; padding: 14px 10px; }
  .gtz-card-icon { width: 48px; height: 48px; }
  .gtz-card-title { font-size: 0.82rem; }
  .gtz-card-sub { font-size: 0.7rem; }
}

/* ===== PAGE TRANSITION ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.gtz-page, .gtz-page-narrow { animation: fadeInUp 0.4s ease; }

/* ===== COIN POPUP ===== */
.gtz-coin-popup {
  position: fixed;
  top: 70px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(108,61,232,0.5);
  display: none;
  animation: coinPop 0.4s ease;
}
@keyframes coinPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== QUIZ QUESTION PAGES – Responsive Fixes ===== */
.boomsplash { background: transparent !important; }
.mobilebox { max-width: 540px !important; margin: 0 auto; padding: 0 12px; }
.new-language-page, .gamepageb1, .gamepageb2, .gamepageb3 {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  padding: 20px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 160px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}
.new-language-page:hover, .gamepageb1:hover, .gamepageb2:hover, .gamepageb3:hover {
  border-color: var(--primary) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow) !important;
}
.col-xs-6 { width: 48% !important; display: inline-block !important; vertical-align: top; }
@media(max-width: 420px) { .col-xs-6 { width: 47%; } }
.bottom-text, .bottom-textmain {
  display: block !important;
  font-size: 0.88rem !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin: 4px 0 !important;
  text-align: center !important;
}
.imagdis { width: 60px !important; height: 60px !important; object-fit: contain !important; margin-bottom: 8px !important; }
.arrimg {
  width: 40px !important;
  height: 40px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  filter: drop-shadow(0 2px 6px rgba(108,61,232,0.5)) !important;
  transition: var(--transition) !important;
}
.arrimg:hover { transform: scale(1.15) !important; }
.headerpanel {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  margin-bottom: 8px !important;
}
.showrow2 {
  border-top: 1px solid var(--border-color);
  padding-top: 16px !important;
  margin-top: 20px !important;
  text-align: center !important;
}
.foot { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 4px 8px; }
.foot a { color: var(--text-muted) !important; font-size: 0.82rem !important; }
.foot a:hover { color: var(--accent) !important; }
.footimg { width: 28px !important; height: 28px !important; }
.intro_join {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px !important;
  margin: 12px 0 !important;
}
.intro_join ul { list-style: none; padding: 0; }
.intro_join ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.intro_join ul li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); }
.intro_join ul li:last-child { border-bottom: none; }
.new-riddle-page {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px !important;
  margin: 12px 0 !important;
}
/* Quiz answer buttons */
.loginbtn-parent { display: flex; justify-content: center; width: 100%; margin-top: 8px; }
.loginbtn {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  width: 100% !important;
}
.loginbtn:hover { opacity: 0.85 !important; transform: translateY(-2px) !important; }
/* Question page buttons */
.answer_btn, .userlivebtnwin {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  transition: var(--transition) !important;
}
.answer_btn:hover, .userlivebtnwin:hover { opacity: 0.8 !important; }
/* Puzzle tab styles override */
.tabbb { flex-wrap: wrap !important; gap: 6px !important; border: none !important; padding: 0 !important; }
.tabbb li a {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}
.tabbb li.active a, .tabbb li a:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.puzzleimg { width: 100% !important; max-width: 150px !important; height: 120px !important; object-fit: cover !important; border-radius: 10px !important; }
.puzz1 { display: flex; justify-content: center; }
.displaygrid { margin-bottom: 12px; }
.showpu { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 8px; }
.ueserlive2 { font-size: 0.85rem; color: #fff; font-weight: 600; flex: 1; }
.catelist { padding: 12px 0; }
.catelist h6 { color: var(--accent); font-size: 0.9rem; margin-bottom: 8px; }
.winnerbtmbg2 { background: transparent !important; }
/* Space divider */
.space-divider { height: 8px; }

/* ===== QUIZ QUESTION PAGE ===== */
.gtz-quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.gtz-quiz-header {
  padding: 14px 16px 0;
}
.gtz-quiz-progress {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gtz-quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}
.gtz-quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.gtz-quiz-counter { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.gtz-quiz-coins { font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.gtz-quiz-intro {
  padding: 14px 16px 0;
  text-align: center;
}
.gtz-quiz-tagline { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }
.gtz-coin-highlight { color: var(--accent); font-weight: 700; }
.gtz-question-text {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  padding: 16px 16px 12px;
  margin: 0;
}
.gtz-options {
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gtz-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: #fff;
}
.gtz-option-btn:hover {
  border-color: var(--primary);
  background: rgba(108,61,232,0.12);
  transform: translateX(3px);
}
.gtz-opt-letter {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(108,61,232,0.25);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.gtz-opt-text { font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.gtz-option-correct {
  border-color: #22c55e !important;
  background: rgba(34,197,94,0.15) !important;
}
.gtz-option-correct .gtz-opt-letter { background: #22c55e; color: #fff; border-color: #22c55e; }
.gtz-option-wrong {
  border-color: var(--accent2) !important;
  background: rgba(255,107,107,0.15) !important;
}
.gtz-option-wrong .gtz-opt-letter { background: var(--accent2); color: #fff; border-color: var(--accent2); }

/* ===== MODALS ===== */
.gtz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gtz-modal-overlay.show { display: flex; animation: fadeInUp 0.3s ease; }
.gtz-modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gtz-modal-box h2 { font-size: 1.5rem; margin-bottom: 8px; }
.gtz-modal-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.gtz-modal-correct { border-color: #22c55e; }
.gtz-modal-wrong { border-color: var(--accent2); }
.gtz-modal-gif { width: 100px; height: 100px; object-fit: contain; margin-bottom: 12px; border-radius: 50%; }
.gtz-modal-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===== ALERT ===== */
.gtz-alert-error {
  background: rgba(255,107,107,0.15);
  border: 1px solid var(--accent2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--accent2);
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.gtz-upload-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid #22c55e;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #22c55e;
  font-size: 0.88rem;
  margin: 12px 0;
}

/* ===== PUZZLE PLAY PAGE ===== */
.gtz-puzzle-play-header {
  text-align: center;
  padding: 24px 0 12px;
}
.gtz-puzzle-play-header h2 { font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.gtz-puzzle-play-header p { font-size: 0.85rem; color: var(--text-muted); }
.gtz-puzzle-setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.gtz-puzzle-preview { text-align: center; margin-bottom: 16px; }
.gtz-puzzle-preview img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.gtz-puzzle-hint { font-size: 0.8rem; color: var(--accent); margin-top: 8px; }
.gtz-difficulty-section { margin-bottom: 8px; }
.gtz-difficulty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gtz-diff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  text-align: center;
}
.gtz-diff-btn input { display: none; }
.gtz-diff-btn.active, .gtz-diff-btn:hover {
  border-color: var(--primary);
  background: rgba(108,61,232,0.15);
  color: #fff;
}
.gtz-puzzle-board-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}
.gtz-puzzle-stat { font-size: 0.88rem; font-weight: 600; color: var(--accent); }

/* ===== UPLOAD AREA ===== */
.gtz-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}
.gtz-upload-area:hover { border-color: var(--primary); background: rgba(108,61,232,0.05); }
.gtz-upload-area i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.gtz-upload-area p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.gtz-upload-hint { font-size: 0.75rem !important; color: rgba(160,160,192,0.6) !important; }

/* ===== GAMES PAGE COMPACT ===== */
.gtz-hero { padding: 20px 0 16px; }

/* ===== LOGIN PAGE ===== */
.gtz-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 16px;
}
.gtz-form-group { margin-bottom: 14px; }
.gtz-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.gtz-form-label i { width: 16px; color: var(--primary); }
.gtz-form-input {
  width: 100%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.gtz-form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,61,232,0.15); }
.gtz-form-input::placeholder { color: rgba(160,160,192,0.5); }
.gtz-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
}
.gtz-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 14px 0;
  position: relative;
}
.gtz-divider::before, .gtz-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border-color);
}
.gtz-divider::before { left: 0; }
.gtz-divider::after  { right: 0; }

/* ===== DRAWER LOGIN BANNER ===== */
.gtz-drawer-login-banner {
  background: linear-gradient(135deg, rgba(108,61,232,0.2), rgba(155,89,182,0.2));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: center;
}
.gtz-drawer-login-banner p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.gtz-drawer-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  text-decoration: none;
}
.gtz-drawer-item--highlight { color: var(--accent) !important; font-weight: 700 !important; }
.gtz-drawer-item--highlight i { color: var(--accent) !important; }
.gtz-nav-user-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition);
}
.gtz-nav-user-btn:hover { border-color: var(--primary); color: var(--accent); }

/* ===== LEADERBOARD ===== */
.gtz-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 24px;
}
.gtz-podium-slot { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 120px; }
.gtz-podium-crown { font-size: 1.4rem; margin-bottom: 2px; }
.gtz-podium-avatar { font-size: 2rem; margin-bottom: 4px; }
.gtz-podium-name { font-size: 0.78rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.gtz-podium-coins { font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.gtz-podium-base {
  width: 100%;
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  padding: 8px 4px;
}
.gtz-pb-1 { background: linear-gradient(135deg,#f5d020,#f39c12); height: 70px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:8px; }
.gtz-pb-2 { background: linear-gradient(135deg,#bdc3c7,#95a5a6); height: 52px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:8px; }
.gtz-pb-3 { background: linear-gradient(135deg,#cd7f32,#a0522d); height: 40px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:8px; }

.gtz-lb-table { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.gtz-lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  transition: var(--transition);
}
.gtz-lb-row:hover { border-color: var(--primary); }
.gtz-lb-me { border-color: var(--accent) !important; background: rgba(244,197,66,0.08) !important; }
.gtz-lb-rank { font-size: 1.1rem; width: 32px; text-align: center; flex-shrink: 0; font-weight: 700; }
.gtz-lb-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.gtz-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gtz-lb-initial {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.gtz-lb-info { flex: 1; min-width: 0; }
.gtz-lb-name { font-size: 0.9rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtz-lb-meta { font-size: 0.72rem; color: var(--text-muted); }
.gtz-lb-coins { font-size: 0.85rem; font-weight: 700; color: var(--accent); flex-shrink: 0; white-space: nowrap; }
.gtz-you-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ===== RESULT PAGE ===== */
.gtz-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.gtz-result-coins-anim { margin-bottom: 8px; }
.gtz-result-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.gtz-result-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.gtz-result-stats { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.gtz-result-stat-box {
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
  min-width: 100px;
}
.gtz-result-stat-val { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.gtz-result-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }

/* ===== HOME QUIZ CATEGORY CARDS ===== */
.gtz-category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.gtz-category-card:hover { border-color: var(--primary); background: var(--bg-card2); transform: translateX(3px); }
.gtz-cat-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.gtz-cat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1.5px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gtz-cat-emoji { font-size: 1.5rem; }
.gtz-cat-info { flex: 1; min-width: 0; }
.gtz-cat-name { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.gtz-cat-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gtz-cat-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.gtz-cat-meta span { font-size: 0.7rem; color: var(--text-muted); }
.gtz-cat-meta i { color: var(--primary); margin-right: 3px; }
.gtz-cat-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: 0.78rem;
}

/* ===== BLOG PAGE ===== */
.gtz-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  transition: var(--transition);
}
.gtz-blog-card:hover { border-color: var(--primary); }
.gtz-blog-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}
.gtz-blog-emoji { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.gtz-blog-meta-col { flex: 1; min-width: 0; }
.gtz-blog-cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}
.gtz-blog-title { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 5px; }
.gtz-blog-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 5px; }
.gtz-blog-meta span { font-size: 0.72rem; color: var(--text-muted); }
.gtz-blog-meta i { color: var(--primary); margin-right: 3px; }
.gtz-blog-summary { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.gtz-blog-toggle { flex-shrink: 0; color: var(--primary); font-size: 0.9rem; margin-top: 4px; }
.gtz-blog-body { padding: 0 16px 16px; border-top: 1px solid var(--border-color); }
.gtz-blog-facts { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.gtz-blog-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; }
.gtz-fact-num {
  min-width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.gtz-blog-cta { padding-top: 8px; }

/* ===== CIRCULAR TIMER ===== */
.gtz-timer-ring {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.gtz-timer-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gtz-timer-bg  { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3.8; }
.gtz-timer-fill{ fill: none; stroke: var(--primary); stroke-width: 3.8; stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.gtz-timer-ring span {
  position: relative; z-index: 1;
  font-size: 0.85rem; font-weight: 800; color: #fff;
}
.gtz-timer-orange .gtz-timer-fill { stroke: #f39c12; }
.gtz-timer-red    .gtz-timer-fill { stroke: var(--accent2); }
.gtz-timer-red    span            { color: var(--accent2); }

/* ===== DRAWER ACTIVE ITEM ===== */
.gtz-drawer-item--active {
  background: rgba(108,61,232,0.15);
  border-left-color: var(--primary) !important;
  color: #fff !important;
}
.gtz-drawer-item--active i { color: var(--primary) !important; }

/* ===== NAV LOGGED IN BADGE ===== */
.gtz-nav-logged { border-color: #22c55e !important; color: #22c55e !important; }

/* ===== QUIZ HIDE CLASS ===== */
.hide { display: none !important; }

/* ===== GUEST INFO BANNER on quiz pages ===== */
.gtz-guest-banner {
  background: rgba(244,197,66,0.1);
  border: 1px solid rgba(244,197,66,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.gtz-guest-banner i { color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.gtz-guest-banner a { color: var(--accent); font-weight: 600; }

/* ===== PUZZLE PREVIEW ===== */
.gtz-puzzle-preview-wrap { margin-bottom: 16px; }
.gtz-puzzle-preview-img-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  aspect-ratio: 1;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gtz-puzzle-preview-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gtz-preview-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 16px 10px 10px;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}
.gtz-no-img-msg {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}
.gtz-no-img-msg i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; display: block; }
.gtz-no-img-msg p { font-size: 0.88rem; margin-bottom: 0; }
.gtz-img-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto 8px;
}
.gtz-img-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.gtz-img-thumb.active  { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.gtz-img-thumb:hover   { border-color: var(--primary); transform: scale(1.05); }

/* ===== DIFFICULTY GRID (improved) ===== */
.gtz-difficulty-grid { grid-template-columns: 1fr 1fr; }
.gtz-diff-btn {
  flex-direction: column;
  gap: 3px;
  padding: 12px 8px;
}
.gtz-diff-icon  { font-size: 1.4rem; }
.gtz-diff-label { font-size: 0.85rem; font-weight: 700; color: #fff; }
.gtz-diff-sub   { font-size: 0.68rem; color: var(--text-muted); }
.gtz-diff-btn.active .gtz-diff-sub { color: rgba(255,255,255,0.7); }

/* ===== HOW TO PLAY ===== */
.gtz-how-to-play {
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gtz-htp-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.gtz-htp-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ===== GAME STATS BAR ===== */
.gtz-game-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.gtz-game-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}
.gtz-game-stat i { color: var(--primary); }
.gtz-stat-center { flex: 1; justify-content: center; }

/* ===== PUZZLE TILE ANIMATIONS ===== */
@keyframes tileAppear {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.gtz-tile { animation: tileAppear 0.3s ease; }
.gtz-tile:hover { filter: brightness(1.1); }

/* ===== WIN POPUP EXTRAS ===== */
.gtz-win-confetti {
  font-size: 1.6rem;
  letter-spacing: 4px;
  animation: confettiPop 0.5s ease;
  margin-bottom: 4px;
}
@keyframes confettiPop { from { transform: scale(0.5); opacity:0; } to { transform: scale(1); opacity:1; } }
.gtz-win-stats {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.gtz-win-stat {
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.gtz-win-stat div:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.gtz-win-coins div:first-child { color: var(--accent); }

/* ===== START BUTTON PULSE ===== */
@keyframes pulsate {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,61,232,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(108,61,232,0); }
}
.gtz-start-pulse { animation: pulsate 2s infinite; }

/* ===== FULL RESPONSIVE OVERHAUL ===== */

/* Mobile first — base (up to 480px) */
.gtz-page, .gtz-page-narrow { padding: 0 12px 40px; }

/* Tablet (480px+) */
@media (min-width: 480px) {
  .gtz-grid { grid-template-columns: repeat(3,1fr); }
  .gtz-puzzle-grid { grid-template-columns: repeat(3,1fr); }
  .gtz-lang-grid { grid-template-columns: repeat(2,1fr); }
  .gtz-puzzle-preview-img-wrap { max-width: 380px; }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
  .gtz-page { padding: 0 20px 60px; }
  .gtz-page-narrow { padding: 0 20px 60px; max-width: 600px; }
  .gtz-grid { grid-template-columns: repeat(4,1fr); gap: 18px; }
  .gtz-navbar .gtz-nav-inner { padding: 14px 24px; }
  .gtz-card { min-height: 180px; }
  .gtz-hero h1 { font-size: 2rem; }
  .gtz-puzzle-preview-img-wrap { max-width: 420px; }
}

/* Wide (1024px+) */
@media (min-width: 1024px) {
  .gtz-page { max-width: 1100px; margin: 0 auto; }
  .gtz-grid { grid-template-columns: repeat(4,1fr); }
  .gtz-category-card { padding: 16px 20px; }
}

/* Prevent content going under fixed navbar */
body { padding-top: 0; }
.gtz-page, .gtz-page-narrow { padding-top: 10px; }

/* Fix card icon size on small screens */
@media (max-width: 360px) {
  .gtz-card-icon { width: 44px; height: 44px; }
  .gtz-card-title { font-size: 0.78rem; }
  .gtz-card-sub { display: none; }
  .gtz-card-btn { font-size: 0.72rem; padding: 5px 10px; }
}

/* Puzzle board responsive – always fit screen width */
#puzzleWrap { max-width: 100% !important; overflow: hidden; }
.gtz-tile { touch-action: none; }

/* Leaderboard responsive */
@media (max-width: 400px) {
  .gtz-lb-coins { font-size: 0.78rem; }
  .gtz-lb-name  { font-size: 0.82rem; }
}

/* Blog responsive */
@media (max-width: 480px) {
  .gtz-blog-emoji { font-size: 1.6rem; }
  .gtz-blog-title { font-size: 0.88rem; }
}

/* Form responsive */
.gtz-form-input { font-size: 16px; } /* prevent iOS zoom */

/* Tabs scroll on small screens */
.gtz-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
.gtz-tabs::-webkit-scrollbar { height: 3px; }
.gtz-tabs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ================================================================
   LOGIN PAGE – Full-width two-column layout matching site design
   ================================================================ */

.gtz-login-page {
  display: flex;
  min-height: calc(100vh - 62px);
  gap: 0;
}

/* ── Left branding panel ── */
.gtz-login-brand {
  display: none; /* hidden on mobile */
  background: linear-gradient(160deg, #0d0d2b 0%, #1a0d50 40%, #2d0d7e 100%);
  border-right: 1px solid var(--border-color);
  flex: 0 0 380px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.gtz-login-brand::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(108,61,232,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.gtz-login-brand::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(244,197,66,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.gtz-login-brand-inner { position: relative; z-index: 1; }
.gtz-login-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(108,61,232,0.5));
}
.gtz-login-brand-title {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.gtz-login-brand-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.gtz-login-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.gtz-login-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.gtz-feat-icon { font-size: 1.2rem; flex-shrink: 0; }
.gtz-login-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.gtz-ls {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border-color);
}
.gtz-ls:last-child { border-right: none; }
.gtz-ls-val { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.gtz-ls-lbl { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ── Right form panel ── */
.gtz-login-form-panel {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
  overflow-y: auto;
}
.gtz-login-form-inner {
  width: 100%;
  max-width: 460px;
}

/* Mobile logo (shows on mobile only) */
.gtz-login-mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.gtz-login-mobile-logo img { width: 36px; height: 36px; object-fit: contain; }
.gtz-login-mobile-logo span {
  font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tab switcher */
.gtz-login-tabs {
  display: flex;
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.gtz-login-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 8px;
  border-radius: 11px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gtz-login-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(108,61,232,0.35);
}
.gtz-login-tab i { font-size: 0.85rem; }

/* Alert boxes */
.gtz-login-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.3s ease;
}
.gtz-login-alert i { font-size: 1rem; flex-shrink: 0; }
.gtz-login-alert-error {
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.4);
  color: #ff6b6b;
}
.gtz-login-alert-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #22c55e;
}

/* Panes */
.gtz-login-pane { display: none; }
.gtz-login-pane.active { display: block; animation: fadeInUp 0.3s ease; }

.gtz-login-form-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.gtz-login-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Form fields */
.gtz-login-form { display: flex; flex-direction: column; gap: 16px; }
.gtz-login-field { display: flex; flex-direction: column; gap: 6px; }
.gtz-login-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gtz-login-field label i { color: var(--primary); width: 14px; }
.gtz-login-field input {
  width: 100%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-size: 16px; /* prevents iOS zoom */
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.gtz-login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,61,232,0.18);
  background: var(--bg-card);
}
.gtz-login-field input::placeholder { color: rgba(160,160,192,0.45); }

/* Password wrapper */
.gtz-pwd-wrap { position: relative; }
.gtz-pwd-wrap input { padding-right: 46px; }
.gtz-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}
.gtz-pwd-toggle:hover { color: var(--accent); }

/* Password strength */
.gtz-pwd-strength {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.gtz-pwd-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.gtz-pwd-label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 3px;
  min-height: 14px;
}

/* Terms checkbox */
.gtz-login-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.gtz-login-terms input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
  margin-top: 1px;
  cursor: pointer;
  /* reset login field styles */
  padding: 0; background: transparent; border: none; font-size: inherit;
}
.gtz-login-terms a { color: var(--accent); }

/* Submit button */
.gtz-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.gtz-login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,61,232,0.45);
}
.gtz-login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gtz-login-btn-register {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.gtz-login-btn-register:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}

/* Divider */
.gtz-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.gtz-login-divider::before,
.gtz-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Guest button */
.gtz-login-guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 13px 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.gtz-login-guest-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

/* Switch link */
.gtz-login-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.gtz-login-switch a { color: var(--accent); font-weight: 600; }

/* ── Responsive ── */
@media (min-width: 768px) {
  .gtz-login-brand         { display: flex; align-items: center; }
  .gtz-login-mobile-logo   { display: none; }
  .gtz-login-form-panel    { padding: 40px 48px; }
}
@media (min-width: 1024px) {
  .gtz-login-brand  { flex: 0 0 420px; }
}

/* ── Language Card fixes ── */
.gtz-lang-card .gtz-lang-flag {
  font-size: 2rem;
  margin-bottom: 6px;
  display: block;
}
.gtz-lang-card img {
  width: 64px; height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* ================================================================
   QUIZ ANSWER REVEAL + INTERESTING FACT STYLES
   ================================================================ */
.qb-result-icon { font-size: 2.8rem; margin-bottom: 6px; }

.qb-answer-box {
  background: rgba(34,197,94,0.1);
  border: 1.5px solid rgba(34,197,94,0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: left;
}
.qb-answer-box.qb-answer-wrong {
  background: rgba(255,107,107,0.08);
  border-color: rgba(255,107,107,0.35);
}
.qb-answer-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.qb-answer-wrong .qb-answer-label { color: var(--accent2); }
.qb-answer-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.qb-fact-box {
  background: rgba(244,197,66,0.08);
  border: 1.5px solid rgba(244,197,66,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
}
.qb-fact-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qb-fact-text {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================================================================
   BLOG CARDS — Rich content style
   ================================================================ */
.qb-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  transition: var(--transition);
}
.qb-blog-card:hover { border-color: var(--primary); }

.qb-blog-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}
.qb-blog-emoji-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qb-blog-emoji { font-size: 1.6rem; }
.qb-blog-meta { flex: 1; min-width: 0; }
.qb-blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.qb-blog-title {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 5px;
}
.qb-blog-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qb-blog-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.qb-blog-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.qb-blog-info i { color: var(--primary); margin-right: 3px; }
.qb-blog-arrow {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.9rem;
  padding-top: 4px;
  transition: var(--transition);
}

/* Blog body */
.qb-blog-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.25s ease;
}
.qb-fact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}
.qb-fact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border-color);
}
.qb-fact-num {
  min-width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.qb-fact-content { flex: 1; }
.qb-fact-main {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
}
.qb-fact-why {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}
.qb-fact-why i { color: var(--accent); margin-right: 4px; }

.qb-blog-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.qb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 12px;
}
.qb-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.qb-page-btn:hover, .qb-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.qb-page-dots {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 0 4px;
  user-select: none;
}

/* ================================================================
   RIDDLE ITEM — numbered
   ================================================================ */
.gtz-riddle-item { position: relative; padding-left: 44px !important; }
.gtz-riddle-num {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================================================================
   BLOG SINGLE POST
   ================================================================ */
.qb-single-post {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.qb-single-hero {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.qb-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 0;
  font-size: .75rem;
  color: var(--text-muted);
}
.qb-single-cat {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.qb-single-meta span { display: flex; align-items: center; gap: 4px; }
.qb-single-meta i    { color: var(--primary); }
.qb-single-title {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  padding: 10px 16px 6px;
  line-height: 1.3;
  margin: 0;
}
.qb-single-summary {
  font-size: .9rem;
  color: var(--text-muted);
  padding: 0 16px 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}
.qb-single-post .qb-fact-list { padding: 0 16px; }

/* ================================================================
   BLOG CTA + AFFILIATE
   ================================================================ */
.qb-post-cta {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.qb-affiliate-box {
  margin: 0 16px 16px;
  background: rgba(244,197,66,.06);
  border: 1.5px solid rgba(244,197,66,.25);
  border-radius: 12px;
  padding: 14px 16px;
}
.qb-affiliate-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.qb-affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 8px;
}
.qb-affiliate-btn:hover { opacity: .88; color: #fff; }
.qb-affiliate-disclaimer { font-size: .68rem; color: var(--text-muted); }

/* ================================================================
   RELATED POSTS
   ================================================================ */
.qb-related { margin-bottom: 20px; }
.qb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.qb-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  gap: 8px;
}
.qb-related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.qb-related-emoji {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.qb-related-title {
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
