/* ═══════════════════════════════════════════
   TrivGang — Trivia Content Hub Styles
   Immersive dark navy game aesthetic.
   Matches homepage energy: grid, glow, scanlines, pixel-art.
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   GLOBAL NAV — shared across ALL pages
   ═══════════════════════════════════════════ */

/* ── Nav wrapper ──────────────────────────── */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 58px;
  background: rgba(10,18,40,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(78,238,255,0.15);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 0 40px rgba(78,238,255,0.04);
  gap: 12px;
}

/* ── Brand (logo only, no text) ────────────── */
.t-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.t-nav-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(78,238,255,0.35));
  transition: filter 0.3s;
  display: block;
}
.t-nav-brand:hover .t-nav-logo {
  filter: drop-shadow(0 0 14px rgba(78,238,255,0.6));
}

/* ── Desktop center links ─────────────────── */
.t-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.t-nav-link {
  color: var(--text-2, #8aa8d4);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.t-nav-link:hover { color: #4eefff; background: rgba(78,238,255,0.06); }

/* ── More dropdown ────────────────────────── */
.t-nav-more-wrap {
  position: relative;
}

.t-nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2, #8aa8d4);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  white-space: nowrap;
}
.t-nav-more-btn:hover { color: #4eefff; background: rgba(78,238,255,0.06); }
.t-nav-more-btn.open { color: #4eefff; background: rgba(78,238,255,0.08); }

.t-nav-chevron {
  font-size: 0.65rem;
  transition: transform 0.18s;
  display: inline-block;
}
.t-nav-more-btn.open .t-nav-chevron { transform: rotate(180deg); }

.t-nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(10,18,40,0.98);
  border: 1px solid rgba(78,238,255,0.18);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(78,238,255,0.05);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
  z-index: 300;
}
.t-nav-more-wrap.open .t-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.t-nav-dropdown a {
  display: block;
  padding: 9px 18px;
  color: var(--text-2, #8aa8d4);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.14s, background 0.14s;
}
.t-nav-dropdown a:hover { color: #4eefff; background: rgba(78,238,255,0.07); }

.t-nav-sep {
  height: 1px;
  background: rgba(78,238,255,0.1);
  margin: 6px 12px;
}

/* ── Auth buttons (right side) ────────────── */
.t-nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.t-nav-login {
  color: var(--text-2, #8aa8d4);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.18s;
  white-space: nowrap;
}
.t-nav-login:hover { color: #4eefff; }

.t-nav-signup {
  color: #4eefff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid rgba(78,238,255,0.35);
  border-radius: 8px;
  transition: all 0.18s;
  white-space: nowrap;
  background: rgba(78,238,255,0.06);
}
.t-nav-signup:hover {
  background: rgba(78,238,255,0.14);
  border-color: rgba(78,238,255,0.6);
  color: #4eefff;
}

/* ── Hamburger (mobile only) ──────────────── */
.t-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.t-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(78,238,255,0.8);
  border-radius: 2px;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
.t-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.t-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile slide-out menu ────────────────── */
.t-mobile-menu {
  position: fixed;
  inset: 58px 0 0 0;
  z-index: 190;
  background: rgba(8,15,33,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.t-mobile-menu.open {
  transform: translateX(0);
}

.t-mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 16px 0 32px;
}

.t-mobile-inner a {
  display: block;
  padding: 14px 24px;
  color: var(--text, #e8f0ff);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.14s, background 0.14s;
  letter-spacing: 0.01em;
}
.t-mobile-inner a:hover { color: #4eefff; background: rgba(78,238,255,0.05); }

.t-mobile-login {
  color: var(--text-2, #8aa8d4) !important;
  font-weight: 600 !important;
}

.t-mobile-signup {
  color: #4eefff !important;
  font-weight: 800 !important;
}

.t-mobile-sep {
  height: 1px;
  background: rgba(78,238,255,0.1);
  margin: 8px 24px;
}

.t-mobile-footer-links {
  display: flex;
  gap: 0;
  padding: 4px 24px;
}
.t-mobile-footer-links a {
  padding: 8px 12px 8px 0 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-3, #4d6890) !important;
  letter-spacing: 0.03em;
}
.t-mobile-footer-links a:hover { color: #4eefff !important; background: none !important; }

/* Legacy .t-nav-cta still works for old markup */
.t-nav-cta {
  padding: 7px 18px;
  background: linear-gradient(135deg, #4eefff 0%, #2ab8d8 100%) !important;
  color: #0a1228 !important;
  border-radius: 8px;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  transition: all 0.18s !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(78,238,255,0.3);
}
.t-nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px rgba(78,238,255,0.5) !important;
  color: #0a1228 !important;
}

/* ── Ambient Background (matching homepage) ── */
/* Grid overlay */
.t-page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(93,133,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,133,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center center;
}

/* Neon glow */
.t-page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(78,238,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(255,30,142,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 30% 20% at 10% 70%, rgba(78,238,255,0.04) 0%, transparent 50%);
}

/* Scanlines */
.t-page-scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.02) 2px,
    rgba(0,0,0,0.02) 4px
  );
}

/* ── Pixel Art Animated Accents ─────────── */
.px-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.px-top-right {
  top: 20px;
  right: -10px;
  width: 180px;
  height: 180px;
}

/* Floating hexagon keyframes */
@keyframes px-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
  33% { transform: translateY(-8px) rotate(6deg); opacity: 0.9; }
  66% { transform: translateY(-4px) rotate(-3deg); opacity: 0.7; }
}

@keyframes px-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(78,238,255,0.4)); opacity: 0.5; }
  50% { filter: drop-shadow(0 0 12px rgba(78,238,255,0.8)); opacity: 0.9; }
}

@keyframes px-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes px-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes px-blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

@keyframes px-orbit {
  from { transform: rotate(0deg) translateX(28px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(28px) rotate(-360deg); }
}

/* ── Pixel Sprite Animations ─────────────── */
/* Small funky pixel-art sprites that float around the page */

@keyframes px-sprite-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(6px, -12px) rotate(8deg); }
  50% { transform: translate(-4px, -20px) rotate(-4deg); }
  75% { transform: translate(8px, -10px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes px-sprite-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes px-glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -1px); }
  98% { transform: translate(1px, 1px); }
}

@keyframes px-warp {
  0%, 100% { clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); }
  50% { clip-path: polygon(25% 5%, 75% 5%, 95% 25%, 95% 75%, 75% 95%, 25% 95%, 5% 75%, 5% 25%); }
}

/* Pixel sprite container — placed on content pages */
.px-sprites {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.px-sprite {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 1px;
}

/* Individual sprites with varied colors and positions */
.px-sprite-1 {
  top: 15%;
  left: 5%;
  background: #4eefff;
  animation: px-sprite-drift 8s ease-in-out infinite, px-sprite-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(78,238,255,0.5);
}
.px-sprite-2 {
  top: 25%;
  right: 8%;
  width: 6px;
  height: 6px;
  background: #ff1e8e;
  animation: px-sprite-drift 10s ease-in-out infinite 1s, px-sprite-pulse 2.5s ease-in-out infinite 0.5s;
  box-shadow: 0 0 6px rgba(255,30,142,0.5);
}
.px-sprite-3 {
  top: 45%;
  left: 3%;
  width: 5px;
  height: 5px;
  background: #5d85ff;
  animation: px-sprite-drift 12s ease-in-out infinite 2s, px-sprite-pulse 4s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(93,133,255,0.5);
}
.px-sprite-4 {
  top: 65%;
  right: 4%;
  width: 7px;
  height: 7px;
  background: #4eefff;
  animation: px-sprite-drift 9s ease-in-out infinite 3s, px-sprite-pulse 3.5s ease-in-out infinite 1s;
  box-shadow: 0 0 5px rgba(78,238,255,0.4);
}
.px-sprite-5 {
  top: 80%;
  left: 7%;
  width: 6px;
  height: 6px;
  background: #ff1e8e;
  animation: px-sprite-drift 11s ease-in-out infinite 1.5s, px-sprite-pulse 2.8s ease-in-out infinite 0.8s;
  box-shadow: 0 0 6px rgba(255,30,142,0.4);
}
.px-sprite-6 {
  top: 35%;
  right: 12%;
  width: 4px;
  height: 4px;
  background: #5d85ff;
  animation: px-sprite-drift 7s ease-in-out infinite 0.5s, px-sprite-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(93,133,255,0.5);
}

/* Animated pixel "T" hexagon badge — used in hero/headers */
.px-hex-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  animation: px-float 4s ease-in-out infinite;
}
.px-hex-badge svg {
  filter: drop-shadow(0 0 8px rgba(78,238,255,0.4));
  animation: px-pulse-glow 2.5s ease-in-out infinite alternate;
}

/* Pixel blips (reused from homepage) */
.t-pixel-blips {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
}
.t-blip {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  animation: px-blip-pulse 1.4s ease-in-out infinite;
}
.t-blip:nth-child(1) { background: #4eefff; animation-delay: 0s; }
.t-blip:nth-child(2) { background: #ff1e8e; animation-delay: 0.15s; }
.t-blip:nth-child(3) { background: #4eefff; animation-delay: 0.3s; }
.t-blip:nth-child(4) { background: #ff1e8e; animation-delay: 0.45s; }
.t-blip:nth-child(5) { background: #4eefff; animation-delay: 0.6s; }

@keyframes px-blip-pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1.6); }
}

/* Dot grid accent */
.px-dots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  opacity: 0.5;
}

.px-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-l, #5d85ff);
  animation: px-blink 2s ease-in-out infinite;
}
.px-dot:nth-child(2) { animation-delay: 0.25s; }
.px-dot:nth-child(3) { animation-delay: 0.5s; }
.px-dot:nth-child(4) { animation-delay: 0.75s; }
.px-dot:nth-child(5) { animation-delay: 0.3s; }
.px-dot:nth-child(6) { animation-delay: 0.6s; }
.px-dot:nth-child(7) { animation-delay: 0.9s; background: #4eefff; }
.px-dot:nth-child(8) { animation-delay: 0.15s; }

/* ── Article Page Layout ──────────────────── */
.t-article-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  z-index: 1;
}

/* ── Article Header (Game Card Style) ─────── */
.t-article-header {
  background: linear-gradient(135deg, rgba(15,25,41,0.95) 0%, rgba(21,33,60,0.9) 100%);
  border: 1.5px solid rgba(78,238,255,0.15);
  border-top: 3px solid #4eefff;
  border-radius: var(--radius-lg, 18px);
  padding: 36px 36px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(78,238,255,0.06), 0 0 60px rgba(78,238,255,0.04);
  backdrop-filter: blur(8px);
}

.t-article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(78,238,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}

/* Corner decorations on article header (arcade style) */
.t-article-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-color: rgba(78,238,255,0.3);
  border-style: solid;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 18px 0;
  pointer-events: none;
}

.t-article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.t-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(78,238,255,0.1);
  border: 1px solid rgba(78,238,255,0.25);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4eefff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t-tag.tag-science { background: rgba(0,184,144,0.12); border-color: rgba(0,184,144,0.3); color: #3dbf82; }
.t-tag.tag-history { background: rgba(196,92,58,0.12); border-color: rgba(196,92,58,0.3); color: #e07050; }
.t-tag.tag-culture { background: rgba(192,59,142,0.12); border-color: rgba(192,59,142,0.3); color: #e06bb0; }
.t-tag.tag-sports  { background: rgba(45,158,106,0.12); border-color: rgba(45,158,106,0.3); color: #3dbf82; }
.t-tag.tag-strategy { background: rgba(112,64,255,0.12); border-color: rgba(112,64,255,0.3); color: #9070ff; }
.t-tag.tag-tv { background: rgba(78,238,255,0.1); border-color: rgba(78,238,255,0.25); color: #4eefff; }

.t-article-header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text, #e8f0ff);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.t-article-subtitle {
  font-size: 1.05rem;
  color: var(--text-2, #8aa8d4);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 600px;
}

.t-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3, #4d6890);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Article Body ─────────────────────────── */
.t-article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2, #8aa8d4);
}

.t-article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text, #e8f0ff);
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 3px solid #4eefff;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.t-article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4eefff;
  margin: 28px 0 10px;
}

.t-article-body p {
  margin-bottom: 18px;
  color: var(--text-2, #8aa8d4);
}

.t-article-body p:first-of-type {
  font-size: 1.1rem;
  color: rgba(232,240,255,0.85);
}

.t-article-body strong {
  color: var(--text, #e8f0ff);
  font-weight: 700;
}

.t-article-body a {
  color: #4eefff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(78,238,255,0.3);
}
.t-article-body a:hover { color: #ff1e8e; }

.t-article-body ul, .t-article-body ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.t-article-body li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-2, #8aa8d4);
  border-bottom: 1px solid rgba(78,238,255,0.06);
}

.t-article-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #4eefff;
  font-size: 0.8rem;
}

.t-article-body ol {
  counter-reset: list-counter;
}
.t-article-body ol li {
  counter-increment: list-counter;
}
.t-article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background: rgba(78,238,255,0.1);
  border: 1px solid rgba(78,238,255,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4eefff;
  top: 8px;
  font-family: var(--font-body);
}

/* ── Pull Quotes ─────────────────────────── */
.t-pull-quote {
  background: linear-gradient(135deg, rgba(78,238,255,0.06) 0%, rgba(255,30,142,0.04) 100%);
  border-left: 4px solid #4eefff;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #e8f0ff);
  font-style: italic;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 0 40px rgba(78,238,255,0.02);
}

.t-pull-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 4rem;
  font-weight: 900;
  color: #4eefff;
  opacity: 0.25;
  line-height: 1;
  font-style: normal;
}

/* ── Accent Blocks (Callouts) ─────────────── */
.t-accent-block {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  border: 1px solid;
  backdrop-filter: blur(4px);
}

.t-accent-blue {
  background: rgba(61,111,255,0.09);
  border-color: rgba(61,111,255,0.25);
  color: var(--cream, #e8f0ff);
}
.t-accent-blue strong { color: var(--gold-l, #5d85ff); }

.t-accent-cyan {
  background: rgba(78,238,255,0.07);
  border-color: rgba(78,238,255,0.22);
  color: var(--cream, #e8f0ff);
}
.t-accent-cyan strong { color: #4eefff; }

.t-accent-pink {
  background: rgba(255,30,142,0.07);
  border-color: rgba(255,30,142,0.22);
  color: var(--cream, #e8f0ff);
}
.t-accent-pink strong { color: #ff6ba8; }

.t-accent-green {
  background: rgba(45,158,106,0.09);
  border-color: rgba(45,158,106,0.25);
  color: var(--cream, #e8f0ff);
}
.t-accent-green strong { color: var(--green-l, #3dbf82); }

/* Numbered stat boxes */
.t-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.t-stat-box {
  background: rgba(15,25,41,0.8);
  border: 1px solid rgba(78,238,255,0.12);
  border-radius: var(--radius, 10px);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.t-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #4eefff;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(78,238,255,0.3);
}

.t-stat-label {
  font-size: 0.8rem;
  color: var(--text-3, #4d6890);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Article CTA ──────────────────────────── */
.t-article-cta {
  background: linear-gradient(135deg, rgba(10,18,40,0.9) 0%, rgba(78,238,255,0.08) 100%);
  border: 1.5px solid rgba(78,238,255,0.2);
  border-radius: var(--radius-lg, 18px);
  padding: 32px;
  text-align: center;
  margin: 48px 0 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 60px rgba(78,238,255,0.04);
}

.t-article-cta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4eefff, #ff1e8e, transparent);
  opacity: 0.6;
}

.t-article-cta p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #e8f0ff);
  margin-bottom: 20px;
}

/* ── Related Articles ────────────────────── */
.t-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(78,238,255,0.1);
}

.t-related h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-3, #4d6890);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.t-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.t-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(15,25,41,0.8);
  border: 1px solid rgba(78,238,255,0.1);
  border-radius: var(--radius, 10px);
  text-decoration: none;
  transition: all 0.18s;
  backdrop-filter: blur(4px);
}
.t-related-card:hover {
  border-color: rgba(78,238,255,0.35);
  background: rgba(20,31,53,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(78,238,255,0.06);
}

.t-related-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4eefff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.t-related-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #e8f0ff);
  line-height: 1.4;
}

/* ── Footer ──────────────────────────────── */
.t-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  border-top: 1px solid rgba(78,238,255,0.08);
  font-size: 0.85rem;
  color: var(--text-3, #4d6890);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.t-footer a {
  color: var(--text-3, #4d6890);
  text-decoration: none;
  transition: color 0.18s;
}
.t-footer a:hover { color: #4eefff; }
.t-footer span { color: rgba(78,238,255,0.15); }

/* ═══════════════════════════════════════════
   TRIVIA HUB INDEX PAGE
   ═══════════════════════════════════════════ */

.t-hub-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Hero section */
.t-hub-hero {
  text-align: center;
  padding: 32px 0 52px;
  position: relative;
}

/* Logo in hub hero */
.t-hub-hero-logo {
  width: min(200px, 50vw);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 24px rgba(78,238,255,0.35)) drop-shadow(0 0 48px rgba(78,238,255,0.1));
  animation: px-logo-float 4s ease-in-out infinite, px-logo-glow 2.5s ease-in-out infinite alternate;
}

@keyframes px-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes px-logo-glow {
  from { filter: drop-shadow(0 0 20px rgba(78,238,255,0.3)) drop-shadow(0 0 40px rgba(78,238,255,0.08)); }
  to   { filter: drop-shadow(0 0 32px rgba(78,238,255,0.5)) drop-shadow(0 0 60px rgba(255,30,142,0.15)); }
}

.t-hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(78,238,255,0.08);
  border: 1px solid rgba(78,238,255,0.2);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4eefff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Animated hex badge icon */
.t-hub-hero-badge svg {
  animation: px-pulse-glow 2s ease-in-out infinite;
}

.t-hub-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--text, #e8f0ff);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.t-hub-hero h1 span {
  background: linear-gradient(135deg, #4eefff, #ff1e8e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.t-hub-hero p {
  font-size: 1.1rem;
  color: var(--text-2, #8aa8d4);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Article grid */
.t-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

/* Featured article (spans 2 cols on desktop) */
.t-hub-card-featured {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .t-hub-card-featured {
    grid-column: span 2;
  }
}

.t-hub-card {
  background: rgba(15,25,41,0.8);
  border: 1px solid rgba(78,238,255,0.1);
  border-radius: var(--radius-lg, 18px);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.t-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4eefff, #ff1e8e);
  opacity: 0;
  transition: opacity 0.22s;
}

.t-hub-card:hover {
  border-color: rgba(78,238,255,0.3);
  background: rgba(20,31,53,0.9);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(78,238,255,0.08), 0 0 30px rgba(78,238,255,0.05);
}
.t-hub-card:hover::before { opacity: 1; }

.t-hub-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4eefff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.t-hub-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text, #e8f0ff);
  line-height: 1.35;
  margin: 0;
}

.t-hub-card-featured h2 {
  font-size: 1.4rem;
}

.t-hub-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-2, #8aa8d4);
  line-height: 1.6;
  flex: 1;
}

.t-hub-card-meta {
  font-size: 0.75rem;
  color: var(--text-3, #4d6890);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* Arrow icon on hover */
.t-hub-card-arrow {
  font-size: 1rem;
  color: #4eefff;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s;
  align-self: flex-end;
}
.t-hub-card:hover .t-hub-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Section label above grid */
.t-hub-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3, #4d6890);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-hub-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(78,238,255,0.1);
}

/* ── Play CTA Band ─────────────────────────── */
.t-hub-cta-band {
  background: linear-gradient(135deg, rgba(10,18,40,0.9) 0%, rgba(78,238,255,0.08) 100%);
  border: 1.5px solid rgba(78,238,255,0.2);
  border-radius: var(--radius-xl, 26px);
  padding: 40px 32px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.t-hub-cta-band::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4eefff, #ff1e8e, transparent);
  opacity: 0.5;
}

.t-hub-cta-band h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text, #e8f0ff);
  margin-bottom: 12px;
}

.t-hub-cta-band p {
  color: var(--text-2, #8aa8d4);
  margin-bottom: 24px;
}

/* ── FAQ Page ─────────────────────────────── */
.t-faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

.t-faq-header {
  text-align: center;
  margin-bottom: 52px;
}

.t-faq-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text, #e8f0ff);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.t-faq-header p {
  color: var(--text-2, #8aa8d4);
  font-size: 1.05rem;
}

.t-faq-group {
  margin-bottom: 40px;
}

.t-faq-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4eefff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(78,238,255,0.1);
}

.t-faq-item {
  background: rgba(15,25,41,0.8);
  border: 1px solid rgba(78,238,255,0.08);
  border-radius: var(--radius, 10px);
  margin-bottom: 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.t-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #e8f0ff);
  transition: background 0.18s;
  user-select: none;
}
.t-faq-q::-webkit-details-marker { display: none; }
.t-faq-q::marker { display: none; }

.t-faq-item[open] .t-faq-q {
  background: rgba(78,238,255,0.05);
  border-bottom: 1px solid rgba(78,238,255,0.1);
  color: #4eefff;
}

.t-faq-q::before {
  content: '▸';
  color: #4eefff;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.18s;
}
.t-faq-item[open] .t-faq-q::before {
  transform: rotate(90deg);
}

.t-faq-a {
  padding: 16px 20px 18px 48px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2, #8aa8d4);
}
.t-faq-a strong { color: var(--text, #e8f0ff); }
.t-faq-a a { color: #4eefff; }

/* ── How to Play Page ────────────────────── */
.t-htp-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

.t-htp-header {
  background: linear-gradient(135deg, rgba(15,25,41,0.95), rgba(78,238,255,0.05));
  border: 1.5px solid rgba(78,238,255,0.15);
  border-top: 3px solid #4eefff;
  border-radius: var(--radius-lg, 18px);
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(78,238,255,0.04);
}

.t-htp-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text, #e8f0ff);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.t-htp-header p {
  color: var(--text-2, #8aa8d4);
  font-size: 1.05rem;
}

/* Step cards */
.t-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.t-steps-list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(180deg, #4eefff, rgba(255,30,142,0.3), transparent);
  opacity: 0.3;
}

.t-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

.t-step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2554dc, #4eefff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(78,238,255,0.35);
  position: relative;
  z-index: 1;
}

.t-step-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text, #e8f0ff);
  margin-bottom: 8px;
  margin-top: 10px;
}

.t-step-content p {
  color: var(--text-2, #8aa8d4);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Rules grid */
.t-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.t-rule-card {
  background: rgba(15,25,41,0.8);
  border: 1px solid rgba(78,238,255,0.1);
  border-radius: var(--radius, 10px);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: all 0.18s;
}
.t-rule-card:hover {
  border-color: rgba(78,238,255,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 20px rgba(78,238,255,0.04);
}

.t-rule-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.t-rule-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4eefff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-rule-card p {
  font-size: 0.8rem;
  color: var(--text-2, #8aa8d4);
  line-height: 1.5;
}

/* ── Decorative pixel art hexagons ─────────── */
.px-hex-scene {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  gap: 12px;
  opacity: 0.6;
}

.px-hex {
  animation: px-float 3s ease-in-out infinite;
}
.px-hex:nth-child(2) { animation-delay: 0.5s; animation-duration: 2.5s; }
.px-hex:nth-child(3) { animation-delay: 1s; animation-duration: 3.5s; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop links + auth */
  .t-nav-links { display: none; }
  .t-nav-auth { display: none; }
  .t-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .t-nav { padding: 0 16px; }
  .t-nav-logo { height: 28px; }
  .t-article-wrap { padding: 32px 16px 60px; }
  .t-article-header { padding: 24px 20px; }
  .t-article-header h1 { font-size: 1.5rem; }
  .t-hub-wrap { padding: 32px 16px 60px; }
  .t-hub-hero-logo { width: min(160px, 44vw); }
  .t-faq-wrap { padding: 32px 16px 60px; }
  .t-htp-wrap { padding: 32px 16px 60px; }
  .t-htp-header { padding: 28px 20px; }
  .t-stat-row { grid-template-columns: repeat(2, 1fr); }
  .t-steps-list::before { display: none; }
  /* Hide some sprites on mobile */
  .px-sprite-3, .px-sprite-6 { display: none; }
}
