/* ============================================
   GERCH-VERSE GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
  --gold: #00FFFF;
  --pink: #FF007F;
  --dark: #000428;
  --glass: rgba(0,255,255,.08);
  --glow: rgba(0,255,255,.35);
  --link: #00FFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--dark);
  position: relative;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('images/bg.jpg') center/cover no-repeat;
  opacity: .35;
  z-index: -1;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.2rem;
  padding: .75rem 1rem;
  box-shadow: 0 0 20px var(--glow);
}

nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  padding: .4rem .8rem;
  /* UPDATED: Much rounder corners */
  border-radius: 20px;
  transition: .3s;
  /* UPDATED: Much thicker borders */
  border: 3px solid var(--gold);
  /* UPDATED: Stronger glow */
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4), inset 0 0 8px rgba(0, 255, 255, 0.1);
}

nav a:hover {
  background: var(--pink);
  color: #000;
  /* UPDATED: Thick pink border on hover */
  border-color: var(--pink);
  /* UPDATED: Stronger pink glow */
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.6), inset 0 0 10px rgba(255, 0, 127, 0.2);
}

/* ============================================
   HEADER DISCLAIMER
   ============================================ */

.header-disclaimer {
  background: rgba(255, 0, 127, 0.08);
  border-bottom: 1px dashed #FF007F;
  padding: 0.5rem 1rem;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
}

.header-disclaimer .warning-label {
  color: #FF007F;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
  display: block;
}

.header-disclaimer p {
  color: #E0E0E0;
  font-size: 0.7rem;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

.header-disclaimer .stamp {
  color: #FF007F;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
  display: block;
  opacity: 0.8;
}

/* ============================================
   FOOTER DISCLAIMER
   ============================================ */

.footer-disclaimer {
  background: rgba(0, 255, 255, 0.05);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  padding: 1rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.footer-disclaimer p {
  color: #E0E0E0;
  font-size: 0.8rem;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   PROFIT TICKER
   ============================================ */

.profit {
  position: fixed;
  top: 10px; /* Changed from 180px to match hamburger */
  right: 10px; /* Keep on right side */
  background: rgba(0,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 2px solid #00FFFF;
  border-radius: 8px;
  color: #00FFFF;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  box-shadow: 0 0 25px rgba(0,255,255,0.5);
  z-index: 10000;
  transition: all 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

.profit.glitching {
  color: #FF007F;
  text-shadow: 0 0 20px #FF007F;
  background: rgba(255,0,127,0.15);
  border-color: #FF007F;
}


/* ============================================
   Q5 BADGE ANIMATION
   ============================================ */

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.6); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(255,215,0,0.9); transform: scale(1.05); }
}

/* ============================================
   GOD MODE GLITCH
   ============================================ */

@keyframes glitchBorder {
  0%, 100% { border-color: #FF00FF; }
  50% { border-color: #00FFFF; }
}


/* ============================================
   GLASS CARDS
   ============================================ */

.glass-card {
  background: rgba(0,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,255,255,.35);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 4px 20px rgba(0,255,255,.2);
  margin-bottom: 1.2rem;
}

.glass-card h2,
.glass-card h3 {
  color: #00FFFF;
  font-family: 'Orbitron', sans-serif;
  margin: 0 0 .5rem 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.glass-card p,
.glass-card li {
  color: #E0E0E0;
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0;
}

.glass-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glass-card li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,255,255,.2);
}

.glass-card li:last-child {
  border-bottom: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 8vw, 5rem);
}

.hero-compact {
  min-height: auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 12vw, 7rem);
  background: linear-gradient(45deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--gold); }
  to { text-shadow: 0 0 25px var(--pink); }
}

.hero-sub {
  font-size: clamp(1.2rem, 5vw, 2rem);
  margin: 1rem 0 2rem;
  color: var(--gold);
  text-shadow: 0 2px 4px #000;
}

.hero-warn {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 90vw;
  box-shadow: 0 0 20px var(--glow);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  margin: .75rem .5rem;
  padding: clamp(.6rem, 2vw, 1rem) clamp(1.2rem, 3vw, 2rem);
  background: var(--glass);
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
  box-shadow: 0 0 10px var(--glow);
}

.btn:hover {
  background: var(--pink);
  color: #000;
  box-shadow: 0 0 20px var(--pink);
}

.btn-massive {
  display: inline-block;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #FF007F 0%, #00FFFF 100%);
  color: #000;
  border: 4px solid #fff;
  border-radius: 100px;
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.6), 0 0 80px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-massive:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 60px rgba(255, 0, 127, 0.8), 0 0 120px rgba(0, 255, 255, 0.5);
}

.btn-massive::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.btn-massive:hover::before {
  left: 100%;
}

/* ============================================
   PAGE TITLE
   ============================================ */

.page-title {
  text-align: center;
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--gold);
  margin: clamp(2rem, 6vw, 4rem) 0;
  text-shadow: 0 0 15px var(--glow);
}

/* ============================================
   LOGO STRIP
   ============================================ */

.logo-strip {
  width: 100%;
  padding: clamp(2rem, 8vw, 4rem) 1rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--glow);
}

.logo-strip img {
  width: clamp(180px, 45vw, 500px);
  filter: drop-shadow(0 0 15px var(--gold));
  border: 1px solid var(--gold);
  border-radius: 12px;
}

/* ============================================
   CHARACTER CARDS
   ============================================ */

.character-grid {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.card {
  width: 100%;
  max-width: clamp(320px, 90vw, 600px);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: .3s;
  box-shadow: 0 8px 32px var(--glow);
}

.card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 12px 40px var(--pink);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1rem;
}

.avatar {
  width: clamp(90px, 15vw, 120px);
  height: clamp(90px, 15vw, 120px);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, var(--gold), var(--pink));
  display: grid;
  place-items: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  box-shadow: 0 0 15px var(--glow);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.names h3 {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  color: var(--gold);
}

.names .handle {
  color: var(--pink);
  font-size: clamp(.8rem, 2.8vw, 1rem);
}

.names a,
.handle a {
  color: var(--link);
  text-decoration: none;
  transition: .3s;
}

.names a:hover,
.handle a:hover {
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
}

.desc {
  font-size: clamp(.9rem, 2.8vw, 1.1rem);
}

.catch {
  font-size: clamp(.8rem, 2.5vw, 1rem);
  font-style: italic;
  color: #00FF00;
  background: rgba(0,0,0,0.3);
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px dashed #00FF00;
  text-align: center;
}

/* ============================================
   CREATOR SECTION
   ============================================ */

.creators .character-grid {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 2rem;
  padding: 0 1rem;
}

.creators .card {
  width: 100%;
  max-width: clamp(320px, 90vw, 500px);
}

.creators .avatar {
  width: clamp(90px, 15vw, 120px);
  height: clamp(90px, 15vw, 120px);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, var(--gold), var(--pink));
  display: grid;
  place-items: center;
}

.creators .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   MANIFESTO
   ============================================ */

.manifesto {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

/* ============================================
   SORA BANNER
   ============================================ */

.sora-banner-tight {
  text-align: center;
  margin: clamp(1rem, 3vw, 2rem) auto;
  max-width: clamp(280px, 85vw, 500px);
  background: rgba(0,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 12px;
  padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: 0 4px 20px rgba(0,255,255,.15);
}

.sora-banner-tight h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00FFFF;
  font-size: clamp(0.85rem, 2.3vw, 1.1rem);
  margin: 0 0 0.3rem 0;
  opacity: 0.9;
}

.sora-banner-tight p {
  color: #E0E0E0;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  margin: 0;
  line-height: 1.4;
}

.sora-banner-tight a {
  color: #00FFFF;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #00FFFF;
  transition: .3s;
}

.sora-banner-tight a:hover {
  color: #FF007F;
  border-bottom-color: #FF007F;
}

.sora-disclaimer {
  text-align: center;
  margin: clamp(2rem, 6vw, 4rem) auto;
  max-width: clamp(280px, 85vw, 500px);
  background: rgba(0,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
  box-shadow: 0 4px 20px rgba(0,255,255,.15);
}

.sora-disclaimer h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00FFFF;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  margin: 0 0 0.4rem 0;
  opacity: 0.9;
}

.sora-disclaimer p {
  color: #E0E0E0;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  margin: 0;
  line-height: 1.4;
}

.sora-disclaimer a {
  color: #00FFFF;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #00FFFF;
  transition: .3s;
}

.sora-disclaimer a:hover {
  color: #FF007F;
  border-bottom-color: #FF007F;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  color: #00FFFF;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem) 0;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.section-title .subtitle {
  display: block;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  color: #FF007F;
  font-style: italic;
  margin-top: 0.5rem;
  text-shadow: none;
}

/* ============================================
   PROPAGANDA PAGE
   ============================================ */

.propaganda-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  gap: clamp(2.5rem, 8vw, 5rem);
}

.propaganda-wrapper .glass-card {
  max-width: clamp(340px, 90vw, 780px);
  width: 100%;
  border: 1px solid #00FFFF;
  border-radius: 12px;
  padding: 1rem;
}

.propaganda-wrapper h3 {
  margin: 0 0 1rem 0;
  color: #00FFFF;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
}

.propaganda-wrapper p {
  margin: 0 0 0 1.2rem 0;
  font-size: clamp(.9rem, 2.8vw, 1.1rem);
  color: #E0E0E0;
  text-align: left;
}

.propaganda-wrapper img {
  border: 1px solid #00FFFF;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: zoom-in;
  transition: transform 0.2s;
}

.propaganda-wrapper img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
}

/* ============================================
   GULAG PAGE
   ============================================ */

.gulag-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  gap: clamp(2.5rem, 8vw, 5rem);
}

.gulag-wrapper .glass-card {
  max-width: clamp(340px, 90vw, 780px);
  width: 100%;
}

.gulag-wrapper h3 {
  margin: 0 0 1rem 0;
  color: #00FFFF;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
}

.gulag-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  text-align: left;
}

.gulag-wrapper li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,255,255,.15);
  font-size: clamp(.9rem, 2.8vw, 1.1rem);
  color: #E0E0E0;
}

.gulag-wrapper li:last-child {
  border-bottom: none;
}

.gulag-wrapper .catch {
  margin-top: 1rem;
  font-style: italic;
  color: #00FFFF;
  font-size: clamp(.9rem, 3vw, 1.2rem);
}

/* ============================================
   FINE PRINT PAGE
   ============================================ */

.fine-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  gap: clamp(2.5rem, 8vw, 5rem);
}

.fine-wrapper .glass-card {
  max-width: clamp(340px, 90vw, 780px);
  width: 100%;
}

.fine-wrapper h3 {
  margin: 0 0 1rem 0;
  color: #00FFFF;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
}

.fine-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  text-align: left;
}

.fine-wrapper li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,255,255,.15);
  font-size: clamp(.9rem, 2.8vw, 1.1rem);
  color: #E0E0E0;
  line-height: 1.6;
}

.fine-wrapper li:last-child {
  border-bottom: none;
}

.fine-wrapper .catch {
  margin-top: 1rem;
  font-style: italic;
  color: #00FFFF;
  font-size: clamp(.9rem, 3vw, 1.2rem);
}

/* ============================================
   MEDIOCRATES CLAUSE
   ============================================ */

.mediocrates-clause {
  display: flex;
  flex-direction: row;
  align-items: center; /* Changed from flex-start to center */
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
  padding: 0;
  background: transparent;
  border: none;
}

.mediocrates-clause img {
  width: clamp(120px, 30vw, 210px);
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mediocrates-clause img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

.mediocrates-text {
  color: #E0E0E0;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  flex: 1; /* Allow text to take remaining space */
}

.mediocrates-text em {
  color: #00FFFF;
  font-style: italic;
}

/* Mobile: keep row layout but adjust */
@media (max-width: 480px) {
  .mediocrates-clause {
    gap: 0.75rem;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */

#propLightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

#propLightbox img {
  max-width: 95vw;
  max-height: 95vh;
  border: 2px solid #00FFFF;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,255,255,0.5);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -8px 32px var(--glow);
}

footer p {
  font-size: clamp(.9rem, 2.8vw, 1.1rem);
  max-width: 700px;
  margin: .5rem auto;
}

/* ============================================
   CHAOS POPUP STYLES (REVISED - 2s FADE)
   ============================================ */

.chaos-popup {
  position: fixed;
  padding: 1.2rem 1.8rem;
  background: rgba(0,0,0,0.75);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  border-radius: 12px;
  text-align: center;
  z-index: 9999;
  white-space: pre-line;
  max-width: 300px;
  opacity: 0;
  animation: fadeInOut 2s ease-in-out forwards;
  pointer-events: none;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  10% {
    opacity: 0.7; /* Reduced from 0.95 */
    transform: translate(-50%, -50%) scale(1) rotate(var(--rotation, 0deg));
  }
  80% {
    opacity: 0.7; /* Reduced from 0.95 */
    transform: translate(-50%, -50%) scale(1) rotate(var(--rotation, 0deg));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) rotate(var(--rotation, 0deg));
  }
}

.chaos-popup.regular {
  color: #E0E0E0;
  border: 2px solid #00FFFF;
  box-shadow: 0 0 30px rgba(0,255,255,0.4);
}

.chaos-popup.final {
  color: #00FFFF;
  border: 2px solid #FF007F;
  box-shadow: 0 0 30px rgba(255,0,127,0.4);
}

.chaos-cow {
  position: fixed;
  font-size: 2.5rem;
  pointer-events: none;
  z-index: 10000;
  filter: drop-shadow(0 0 10px #FF007F);
  opacity: 0;
  animation: cowFadeInOut 2s ease-in-out forwards;
}

@keyframes cowFadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% {
    opacity: 0.7; /* Reduced from 0.9 */
    transform: translate(-50%, -50%) scale(1.2);
  }
  25% {
    opacity: 0.7; /* Reduced from 0.9 */
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 0.7; /* Reduced from 0.9 */
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ============================================
   TIER DISPLAY (BOTTOM RIGHT GPU REGRET MESSAGES)
   ============================================ */

.tier-display {
  position: fixed;
  bottom: 80px;
  right: 10px;
  max-width: 250px;
  background: rgba(255, 0, 127, 0.08);
  border: 1px dashed rgba(255, 0, 127, 0.4);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  color: rgba(224, 224, 224, 0.7);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: right;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 998;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ============================================
   FAM PAGE - SECTION HEADERS (MATCHING GULAG/FINE PRINT)
   ============================================ */

.fam-main-title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--gold);
  margin: clamp(2rem, 6vw, 4rem) 0;
  text-shadow: 0 0 15px var(--glow);
  position: relative;
}

.fam-main-title::before {
  content: '🐄';
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 8px var(--gold));
}

.fam-main-title::after {
  content: '🐂';
  margin-left: 0.5rem;
  filter: drop-shadow(0 0 8px var(--gold));
}

.section-title-containment {
  display: inline-block;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  color: var(--gold);
  margin: clamp(1.5rem, 5vw, 3rem) auto clamp(1.2rem, 3vw, 2rem) auto;
  padding: clamp(0.6rem, 2vw, 1rem) clamp(1.2rem, 3vw, 2rem);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 2px solid #00FF00;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,255,0,0.3), 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  min-width: auto;
  max-width: 90vw;
  line-height: 1.3;
}

.section-title-containment .subtitle {
  display: block;
  font-size: clamp(0.7rem, 2.2vw, 0.9rem);
  color: #00FF00;
  font-style: italic;
  margin-top: 0.25rem;
  text-shadow: none;
  font-weight: 400;
  line-height: 1.4;
}


/* ---------------- BUG BUTTON & MODAL ---------------- */
#reportBugBtn {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  background: #00FFFF;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: transform 0.1s ease;
  margin-bottom: 20px;
}
#reportBugBtn:hover { transform: scale(1.05); }

/* BUG MODAL */
#bugModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#bugModal.active { display: flex !important; }

#bugModalContent {
  background: #111;
  border: 2px solid #00FFFF;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  color: #FFF;
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

/* Header & text in modal */
#bugModalContent h3 { color: #FF007F; margin-bottom: 1rem; }
#bugModalContent p { margin: 0.5rem 0; color: #ccc; font-size: 0.9rem; }
#bugModalContent p.response { color: #FF007F; font-weight: 700; }

/* Animation */
@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  80% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
#bugModal.active #bugModalContent { animation: modalPop 0.5s ease-out forwards; }

/* Optional extra styles for bug button glow */
#reportBugBtn {
  box-shadow: 0 0 10px #00FFFF, 0 0 20px #FF007F;
}

#reportBugBtn:hover {
  box-shadow: 0 0 20px #00FFFF, 0 0 40px #FF007F;
}

/* ============================================
   BUG MODAL ANIMATIONS (JS TRIGGERED)
   ============================================ */

/* Fade-in overlay when modal activates */
#bugModal.active {
  animation: fadeInOverlay 0.4s ease-out forwards;
}

@keyframes fadeInOverlay {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

/* Slight pop animation for modal content */
#bugModal.active #bugModalContent {
  animation: modalPop 0.5s ease-out forwards; /* already exists above */
}

/* Optional: shake effect for error response */
#bugModalContent p.response.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* ============================================
   SPIN ANIMATION (for bug modal)
   ============================================ */

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   CAREERS PAGE SPECIFIC (moved from inline)
   ============================================ */

.careers-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.job-card {
  background: rgba(0,255,255,0.05);
  border: 1px solid #00FFFF;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s;
}

.job-card:hover {
  border-color: #FF007F;
  transform: translateX(5px);
}

.job-status {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: #FF007F;
  color: #000;
  padding: 0.2rem 0.8rem;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
}

.job-status.filled {
  background: #333;
  color: #666;
}

.job-title {
  color: #00FFFF;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.job-meta {
  color: #FF007F;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.job-desc {
  color: #E0E0E0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.job-requirements {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.job-requirements li {
  color: #EBE8E8;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.job-requirements li::before {
  content: '✋';
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.apply-btn {
  background: transparent;
  border: 1px solid #00FFFF;
  color: #00FFFF;
  padding: 0.6rem 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.apply-btn:hover {
  background: #00FFFF;
  color: #000;
}

.apply-btn:disabled {
  border-color: #333;
  color: #333;
  cursor: not-allowed;
}

.application-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.application-modal.active {
  display: flex;
}

.application-modal .modal-content {
  background: #000;
  border: 2px solid #FF007F;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
}

.application-modal .modal-content h3 {
  color: #FF007F;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
}

.application-modal .modal-content p {
  color: #E0E0E0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.eternity-counter {
  font-family: 'Courier New', monospace;
  color: #00FFFF;
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ============================================
   MOBILE HAMBURGER NAV (Chaos-Bulletproof)
   ============================================ */

/* Desktop nav - default state, ALWAYS visible on desktop */
nav {
  display: flex !important; /* Force show on desktop */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold);
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.2rem;
  padding: .75rem 1rem;
  box-shadow: 0 0 20px var(--glow);
}

/* Hide mobile-only elements on desktop */
.mobile-nav-wrapper,
.mobile-menu {
  display: none !important;
}

@media (max-width: 768px) {
  /* Hide desktop nav on mobile - use specific selector */
  nav:not(.mobile-menu) {
    display: none !important;
  }
  
  /* Show mobile wrapper */
  .mobile-nav-wrapper {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
  }
  
  /* Hamburger button - LEFT SIDE */
  .hamburger-btn {
    display: flex !important;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--gold);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
  }
  
  /* X transformation */
  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--pink);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--pink);
  }
  .hamburger-btn.active {
    border-color: var(--pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
  }
  
  /* Mobile menu - slides from left */
  .mobile-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 20px 20px 20px;
    gap: 0.8rem;
    z-index: 9999;
    pointer-events: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 3px solid var(--gold);
    box-shadow: 5px 0 30px rgba(0, 255, 255, 0.2);
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
      /* Mobile nav links - EQUAL WIDTH, CENTERED TEXT */
  .mobile-menu a {
    width: 100%; /* Full width of container */
    max-width: 100%; /* Don't exceed container */
    padding: 1rem 1.5rem;
    text-align: center; /* Center the text */
    color: var(--gold);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 3px solid var(--gold);
    border-radius: 50px;
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-30px);
    white-space: nowrap;
    box-sizing: border-box; /* Include padding in width calculation */
  }
  
  .mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Staggered slide-out delays */
  .mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
  .mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
  .mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
  .mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
  .mobile-menu.active a:nth-child(7) { transition-delay: 0.4s; }
  
  .mobile-menu a:hover,
  .mobile-menu a:active {
    background: var(--pink);
    color: #000;
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
    transform: translateX(10px);
  }
  
  /* Backdrop */
  .mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .mobile-backdrop.active {
    display: block;
    opacity: 1;
  }
  
  /* Push content down */
  body {
    padding-top: 60px;
  }
  
  .header-disclaimer {
    margin-top: 0;
  }
}
}
}


/* ============================================
   COMPACT HORIZONTAL STOCK TICKER v3.0
   ============================================ */

.stock-ticker-container {
  position: fixed;
  top: calc(80px + 3.5rem);
  right: 10px;
  width: auto;
  min-width: 200px;
  background: rgba(0, 10, 20, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid #00FFFF;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3), 
              inset 0 0 15px rgba(0, 255, 255, 0.05);
  z-index: 999;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticker-marquee {
  position: fixed;
  top: calc(80px + 2rem);
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 10, 20, 0.95);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.35rem 0;
  overflow: hidden;
  z-index: 998;
  backdrop-filter: blur(10px);
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.marquee-content {
  color: #00FFFF;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-right: 3rem;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  gap: 0.8rem;
}

.ticker-label {
  color: #FF007F;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
  white-space: nowrap;
}

.market-status {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  align-items: center;
}

.ticker-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 255, 255, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ticker-item:hover {
  background: rgba(0, 255, 255, 0.12);
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.ticker-symbol {
  color: #00FFFF;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.ticker-price {
  color: #FFFFFF;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.ticker-change {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.ticker-up {
  color: #00FF00;
  background: rgba(0, 255, 0, 0.15);
}

.ticker-down {
  color: #FF4444;
  background: rgba(255, 68, 68, 0.15);
}

.ticker-volume {
  color: #999;
  font-size: 0.55rem;
  font-family: 'Courier New', monospace;
}

.ticker-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.3rem;
  border-top: 1px dashed rgba(255, 0, 127, 0.2);
}

.last-update {
  color: #666;
  font-size: 0.5rem;
  font-family: 'Courier New', monospace;
}

.market-status[data-status="OPEN"] {
  color: #00FF00;
  border-color: #00FF00;
  animation: pulseOpen 2s ease-in-out infinite;
}

.market-status[data-status="PRE"] {
  color: #FFA500;
  border-color: #FFA500;
}

.market-status[data-status="AFTER"] {
  color: #FF007F;
  border-color: #FF007F;
  animation: pulseAfter 2s ease-in-out infinite;
}

.market-status[data-status="CLOSED"] {
  color: #FF3333;
  border-color: #FF3333;
  opacity: 0.6;
}

@keyframes pulseOpen {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); }
  50% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.6); }
}

@keyframes pulseAfter {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 127, 0.3); }
  50% { box-shadow: 0 0 10px rgba(255, 0, 127, 0.6); }
}

@media (max-width: 768px) {
  .ticker-marquee {
    top: calc(60px + 2rem);
  }
  
  .stock-ticker-container {
    position: fixed;
    top: calc(60px + 3.2rem);
    right: 10px;
    left: auto;
    width: auto;
    min-width: unset;
    max-width: calc(100vw - 20px);
    padding: 0.5rem 0.7rem;
  }
  
  .ticker-content {
    gap: 0.5rem;
  }
  
  .ticker-item {
    padding: 0.25rem 0.4rem;
    gap: 0.3rem;
  }
  
  .ticker-symbol {
    font-size: 0.7rem;
  }
  
  .ticker-price {
    font-size: 0.7rem;
  }
  
  .ticker-change {
    font-size: 0.55rem;
    padding: 0.08rem 0.25rem;
  }
  
  .ticker-volume {
    font-size: 0.5rem;
    color: #BBB;
  }
  
  .ticker-label {
    font-size: 0.6rem;
  }
  
  .market-status {
    font-size: 0.5rem;
    padding: 0.1rem 0.3rem;
  }
  
  .last-update {
    font-size: 0.45rem;
  }
}

@media (max-width: 480px) {
  .ticker-content {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .ticker-item {
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }
}
}