/* ==========================================================================
   VERITY GAMES HUB — STYLESHEET
   ========================================================================== */

:root {
  --bg-primary: #07080d;
  --bg-secondary: #0d101a;
  --bg-tertiary: #131726;
  --bg-card: rgba(18, 22, 36, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 209, 102, 0.3);
  
  --gold-primary: #ffd166;
  --gold-metallic: linear-gradient(135deg, #fff2a6 0%, #ffd166 40%, #c48c26 80%, #ffd166 100%);
  --gold-glow: rgba(255, 209, 102, 0.35);
  --cyan-accent: #00f5d4;
  --cyan-glow: rgba(0, 245, 212, 0.35);
  --green-accent: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.35);

  --text-main: #f0f3fa;
  --text-muted: #8b96ad;
  --text-dim: #5a6479;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

.glow-top {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--gold-primary), transparent 70%);
}

.glow-bottom {
  bottom: -200px;
  left: -100px;
  background: radial-gradient(circle, var(--cyan-accent), transparent 70%);
}

.page-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Top Navigation
   -------------------------------------------------------------------------- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(13, 16, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 48px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-crest {
  font-size: 1.4rem;
  color: var(--gold-primary);
  text-shadow: 0 0 12px var(--gold-glow);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tcg-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 209, 102, 0.05));
  color: var(--gold-primary);
  border: 1px solid var(--border-highlight);
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 209, 102, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-accent);
  letter-spacing: 1px;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   Hero Header
   -------------------------------------------------------------------------- */
.games-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(0, 245, 212, 0.08));
  border: 1px solid var(--border-highlight);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
}

.badge-icon {
  font-size: 0.85rem;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.text-gradient-gold {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 18px rgba(255, 209, 102, 0.35));
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Games Grid Showcase
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
  margin-bottom: 60px;
}

.game-showcase-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 25, 42, 0.85) 0%, rgba(10, 13, 24, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.game-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.catapult-theme:hover {
  border-color: rgba(255, 209, 102, 0.55);
  box-shadow: 0 20px 50px rgba(255, 209, 102, 0.15), 0 0 30px rgba(255, 209, 102, 0.1);
}

.company-theme:hover {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.15), 0 0 30px rgba(0, 245, 212, 0.1);
}

.night-theme:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.18), 0 0 30px rgba(239, 68, 68, 0.12);
}

.card-inner {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.game-genre-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.company-genre {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.night-genre {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.game-status-pill.live {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 1px;
}

/* Media Preview Banner */
.card-media-preview {
  position: relative;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 50%, #1e1b4b 0%, #0c0e1a 100%);
  opacity: 0.9;
}

.company-backdrop {
  background: radial-gradient(circle at 50% 50%, #064e3b 0%, #060914 100%);
}

.preview-elements {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.preview-ball-anim {
  font-size: 3rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 16px var(--gold-glow));
  animation: ballHover 2.5s infinite ease-in-out;
}

@keyframes ballHover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

.preview-mushroom, .preview-cloud, .preview-ring {
  font-size: 1.8rem;
  opacity: 0.85;
}

.preview-verity-worker {
  display: flex;
  align-items: center;
  font-size: 3rem;
  color: var(--gold-primary);
  position: relative;
}

.worker-cap {
  font-size: 1.3rem;
  position: absolute;
  top: -8px;
  right: -8px;
  transform: rotate(20deg);
}

.preview-scanner-grid {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-accent);
  border: 1px dashed var(--cyan-accent);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.preview-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(7, 9, 18, 0.85);
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-primary);
  z-index: 3;
}

.company-badge-tag {
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Card Body */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.game-icon-pill {
  font-size: 1.1rem;
}

.game-url-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.game-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 8px;
}

.game-tagline {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Feature List */
.game-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.game-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.feature-bullet {
  color: var(--gold-primary);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.company-bullet {
  color: #22c55e;
}

.night-bullet {
  color: #ef4444;
}

.game-features-list strong {
  color: #ffffff;
}

/* Controls Pill Row */
.game-controls-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 24px;
}

.ctrl-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 2px;
}

.ctrl-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #e2e8f0;
}

/* Card Action */
.card-action-row {
  margin-top: auto;
}

.btn-play-game {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.catapult-btn {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d48806 100%);
  color: #0b0c14;
  box-shadow: 0 4px 18px rgba(255, 209, 102, 0.35);
}

.catapult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 209, 102, 0.55);
}

.company-btn {
  background: linear-gradient(135deg, #22c55e 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35);
}

.company-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.55);
}

.night-btn {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
}

.night-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.65);
}

.night-backdrop {
  background: radial-gradient(circle at 50% 50%, #450a0a 0%, #030408 100%);
}

.preview-giant-stalker {
  font-size: 3.5rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.8));
  animation: giantStompAnim 2s infinite ease-in-out;
}

@keyframes giantStompAnim {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
}

.preview-flashlight-cone {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px #fde047);
}

.preview-house-door {
  font-size: 2.2rem;
  opacity: 0.85;
}

.night-badge-tag {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-play-game:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Lore / Community Box
   -------------------------------------------------------------------------- */
.games-lore-box {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.6), rgba(12, 16, 28, 0.7));
  border: 1px solid var(--border-highlight);
  border-radius: 18px;
  padding: 28px 36px;
  margin-bottom: 60px;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.lore-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lore-crest {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.lore-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-primary);
}

.lore-copy {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.page-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.info-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-email {
  color: var(--gold-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.footer-email:hover {
  opacity: 0.8;
}

.arrow-icon {
  font-size: 0.8rem;
}

.footer-bottom-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mono-text {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Responsive Queries
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  .page-container {
    padding: 16px 16px 60px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .status-indicator {
    display: none;
  }

  .card-inner {
    padding: 24px 20px;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-contact-info {
    align-items: flex-start;
  }
}
