:root{--bg:#08050c;--panel:#0f0b12;--accent:#ff6b6b;--accent2:#8cff6b;--muted:#bdb7c7}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:linear-gradient(180deg,#030003,#0b0b12);color:#fff}
header{display:flex;align-items:center;justify-content:space-between;padding:20px 40px;background:rgba(255,255,255,0.03);position:sticky;top:0;z-index:10}
.logo{font-size:28px;font-weight:800;color:var(--accent)}
nav a{color:var(--muted);margin-left:18px;text-decoration:none}
.section{padding:48px 40px}
.hero{display:flex;gap:28px;align-items:center;flex-wrap:wrap;padding:36px 40px}
.hero .col{flex:1 1 380px}
.media{border-radius:12px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.6)}
.card{background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(0,0,0,0.25));padding:16px;border-radius:12px;border:1px solid rgba(255,255,255,0.05)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.footer{padding:28px 40px;background:rgba(255,255,255,0.03);display:flex;justify-content:space-between;align-items:center}
.small{font-size:12px;color:var(--muted)}
.char-card img{width:100%;border-radius:10px;display:block}
.char-card h3{margin:10px 0 6px}
#field{position:relative;height:220px;margin-top:12px;background:rgba(255,255,255,0.05);border-radius:12px;overflow:hidden}

/* Fullscreen background hero */
.hero-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image:url('../assets/char_pumpqueen.png');
  background-size:contain;
  background-repeat:no-repeat;
  background-color:#000;
  background-position:center;
}
.hero-overlay{
  position:relative;
  width:100%;
  max-width:1080px;
  padding:32px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(0,0,0,0.55),rgba(0,0,0,0.35));
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}
.hero-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.hero-btn{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  padding:10px 14px;border-radius:10px;color:#fff;cursor:pointer
}
.toast{
  position:fixed;bottom:16px;left:50%;transform:translateX(-50%);
  background:rgba(0,0,0,0.7);color:#fff;padding:8px 12px;border-radius:8px;font-size:12px;display:none
}
.show{display:block}

/* --- THEME TOGGLE --- */
:root{--bg:#08050c;--panel:#0f0b12;--accent:#ff6b6b;--accent2:#8cff6b;--muted:#bdb7c7;--text:#ffffff}
.theme-light{--bg:#f8f5ff;--panel:#ffffff;--accent:#5a2df0;--accent2:#1db954;--muted:#5b5670;--text:#120b1a}
body.theme-light{background:linear-gradient(180deg,#f4f0ff,#fff)}
body{color:var(--text)}
header{background:rgba(255,255,255,0.03)}
body.theme-light header{background:rgba(0,0,0,0.03)}
.card{border:1px solid rgba(255,255,255,0.05)}
body.theme-light .card{border:1px solid rgba(0,0,0,0.06)}
.theme-btn{margin-left:12px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.12);padding:8px 12px;border-radius:10px;color:var(--text);cursor:pointer}
body.theme-light .theme-btn{background:rgba(0,0,0,0.06);border-color:rgba(0,0,0,0.12)}

/* Start Experience Overlay */
.start-overlay{
  position:fixed;inset:0;z-index:999;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,rgba(0,0,0,0.8),rgba(0,0,0,0.6));
  backdrop-filter:blur(6px);
}
.start-card{
  width:min(680px,92vw);
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:16px;
  padding:28px;
  text-align:center;
  color:#fff;
}
.start-btn{
  margin-top:14px;
  padding:12px 18px;
  border-radius:12px;
  background:linear-gradient(90deg,var(--accent),#f08a5d);
  color:#111; border:none; cursor:pointer; font-weight:700;
}
body.theme-light .start-card{background:rgba(255,255,255,0.9);color:#111}

/* Ensure hero image is right aligned */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
}

.hero-image {
  margin-left: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Hero text styling update */
.hero-text {
  max-width: 40%;
  text-align: left;
}

/* Creepy hero text styling */
.hero-text h1, 
.hero-text p {
  font-family: 'Creepster', cursive;
  color: #00ff00;
  text-shadow: 2px 2px 6px #000000;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}

/* Fullscreen hero image styling */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Hero as background image */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  
  background-size: cover;
}

/* Hero background image styling */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 40%;
  text-align: left;
}

/* Hero background image: avoid top cropping */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* show more of the top (crown/halo) */
  z-index: 0;
}

/* Adjust hero-text position */
.hero-text {
  padding-left: 5%;
}

/* Align hero-text, navbar, and section titles to same left axis */
.hero-text,
.navbar,
.section-title {
  padding-left: 5%;
  box-sizing: border-box;
}

/* Align hero-text with Teaser Clip and Candy Mining */
.hero-text {
  margin-left: 5%;
}

/* Move hero-text fully left aligned */
.hero-text {
  margin-left: 0 !important;
}

/* Align navbar contents to the right */
.navbar {
  display: flex;
  justify-content: flex-end !important;
  text-align: right;
}

/* Ensure hero background covers full width without black bars */
.hero-background {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Adjust hero to display full image without cropping */
.hero {
  position: relative;
  width: 100vw;
  height: auto;
  overflow: hidden;
}

.hero-background {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Arrange hero as column: image on top, text below */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-background {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-text {
  margin-top: 1rem;
  text-align: center;
}

/* Place hero-text top-left over hero image */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 1;
  max-width: 40%;
  text-align: left;
}

/* Ensure hero image fully visible by enlarging hero section */
.hero {
  position: relative;
  width: 100vw;
  min-height: 120vh;
  overflow: visible;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Force hero image to start at very left of browser */
.hero {
  position: relative;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Make hero-background behave like normal content, aligned with other sections */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: relative !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

/* Align hero image with section content (same left/right padding) */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 5%; /* same as other content sections */
  box-sizing: border-box;
}

.hero-background {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Align hero with global content container */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px; /* same as other content sections */
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.hero-background {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Final hero image placed under all boxes, aligned with content */
.final-hero {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

/* Page-wide background image fixed at top */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Remove hero box overlay */
.hero {
  background: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Ensure background image starts at top and spacing only below */
.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  object-fit: contain !important;
  z-index: -1;
}

body::before {
  content: "";
  display: block;
  height: 100vh; /* spacing below */
  margin-top: 0;
}

/* Align background image with top edge of navigation */
.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  object-fit: contain !important;
  z-index: -1;
}

nav, header, .navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10; /* ensures nav stays above background */
  background: transparent;
}

/* Align background top with nav; remove top spacer; add content spacer below nav */
body { margin: 0; }
.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  object-fit: contain !important;
  z-index: -1;
}
nav, header, .navbar { position: relative; top: 0; left: 0; width: 100%; z-index: 10; }
body::before { content: none !important; display: none !important; height: 0 !important; }
.background-spacer { height: 100vh; }

.candy-intro {
  font-family: 'Creepster', cursive, sans-serif;
  color: #00ff00;
  font-size: 1.4em;
  text-align: center;
  margin: 30px 0; /* Abstand ober- und unterhalb */
  text-shadow: 1px 1px 5px black;
}

.candy-intro-btn {
  display: inline-block;
  font-family: 'Creepster', cursive, sans-serif;
  color: #00ff00;
  font-size: 1.4em;
  text-align: left;
  margin: 30px 0;
  text-shadow: 1px 1px 5px black;
  background: black;
  padding: 12px 20px;
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 10px #00ff00;
  text-decoration: none;
  transition: all 0.3s ease;
}

.candy-intro-btn:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00;
}

.second-btn {
  display: block;     /* direkt unter dem ersten */
  margin-top: 6cm;    /* Abstand */
  font-size: 1.4em;   /* gleiche Größe wie erster Button */
  padding: 12px 20px;
  width: fit-content; /* Box endet am Text */
}

#candy-mining {
  margin-top: -12cm; /* Box 12cm weiter nach oben schieben */
}

#candy {
  position: relative;
  top: -14cm; /* Box 14cm nach oben verschoben */
}

#candy {
  position: relative;
  top: -14cm; /* Box 14cm nach oben verschoben */
}

.bloody-text {
  color: #8A0303; /* tiefes Blutrot */
  font-family: 'Creepster', cursive, sans-serif;
  font-size: 1.6em;
  text-shadow: 2px 2px 8px black;
  text-align: center;
  margin: 40px 0;
}

.bloody-text {
  color: #8A0303; /* tiefes Blutrot */
  font-family: 'Creepster', cursive, sans-serif;
  font-size: 1.6em;
  text-shadow: 2px 2px 8px black;
  text-align: center;
  margin: 40px 0;
  position: relative;
  display: inline-block;
}

/* Blut-Tropfen-Effekt */
.bloody-text::after,
.bloody-text::before {
  content: '';
  position: absolute;
  top: 100%;
  width: 6px;
  height: 20px;
  background: #8A0303;
  border-radius: 50%;
  animation: drip linear infinite;
}

.bloody-text::after {
  left: 30%;
  animation-duration: 2.5s;
}

.bloody-text::before {
  left: 70%;
  animation-duration: 3.2s;
}

@keyframes drip {
  0% { height: 0; opacity: 1; }
  50% { height: 20px; opacity: 1; }
  100% { height: 30px; opacity: 0; transform: translateY(15px); }
}

/* Responsive Anpassung für Story-Grid */
.storybook6__grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;   /* Karten umbrechen auf kleinen Bildschirmen */
    list-style: none;
    margin-top: 0;
    padding-top: 0;
}
.storybook6__card {
    flex: 1 1 200px;   /* Basisgröße, aber flexibel */
    max-width: 250px;  /* maximale Breite */
}

/* Volle Breite für Story-Bilder: erstes links, letztes rechts, Rest gleichmäßig dazwischen */
.storybook6__grid {
    display: flex;
    justify-content: space-between; /* verteilt Bilder über gesamte Breite */
    align-items: flex-start;
    gap: 5px;       /* minimale Abstände */
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.storybook6__card {
    flex: 1 1 auto;
    max-width: 300px; /* Bilder größer */
}

/* Story-Bilder größer machen */
.storybook6__card {
    flex: 1 1 auto;
    max-width: 400px; /* größere Breite für Bilder */
}

/* Story-Karten komplett mit Bild füllen und Text als Overlay darstellen */
.storybook6__card {
    position: relative;
    flex: 1 1 400px;
    max-width: 400px;
    height: 300px;
    overflow: hidden;
}

.storybook6__figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.storybook6__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Bild füllt die Karte komplett */
}

.storybook6__figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6); /* halbtransparentes Overlay */
    color: #fff;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Hintergrund für Characters-Seite */
body.characters-page {
    background: url("../assets/characters_bg.png") no-repeat center center fixed;
    background-size: cover;
}

/* Lightbox für Charakterbilder */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;

  overflow: auto;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
    border: 2px solid #fff;
}

.lightbox-content {
  width: 150vw;   /* größer als Bildschirmbreite */
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain; /* oder "cover" wenn es komplett füllen soll */
}

.lightbox .prev,
.lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 3em;
  transition: 0.3s;
  user-select: none;
  z-index: 1000;
}

.lightbox .prev { left: 0; }
.lightbox .next { right: 0; }

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00;
}

.lightbox {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;

  overflow: auto;
}

.lightbox-content {
  max-width: none;
  max-height: none;
  width: 180vw;   /* sehr groß */
  height: auto;
}

.lightbox .prev,
.lightbox .next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 4em;
  padding: 10px;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00;
}

.lightbox-content {
  max-width: none;
  max-height: none;
  height: 100vh;   /* passt sich der Höhe des Viewports an */
  width: auto;
  object-fit: contain;
}

.lightbox-content {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: none !important;
  display: block;
}

/* Force original pixel size in lightbox, allow scrolling */
#lightbox .lightbox-content {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: unset !important;
  transform: none !important;
  display: block;
}

/* video placeholder */
.video-coming-soon{
  margin: 16px auto;
  padding: 24px;
  text-align: center;
  font-family: 'Creepster', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(18px, 2.4vw, 32px);
  color: var(--slime, #39ff14);
  text-shadow: 0 0 8px rgba(57,255,20,.45), 0 0 22px rgba(57,255,20,.25);
  border: 1px dashed rgba(57,255,20,.35);
  border-radius: 14px;
  background: rgba(0,0,0,.35);
}

/* injected neon 90s styles */
.neon-90s {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #f0f,
    0 0 40px #0ff,
    0 0 80px #ff0,
    0 0 120px #f0f;
  letter-spacing: 1px;
}
.blink-wild {
  animation: neon-blink 1.15s infinite steps(1,end), neon-pulse 3.5s infinite ease-in-out;
}
@keyframes neon-blink {
  0%, 9%, 11%, 20%, 22%, 39%, 41%, 55%, 57%, 100% { opacity: 1; }
  10%, 21%, 40%, 56% { opacity: 0; }
}
@keyframes neon-pulse {
  0%, 100% { filter: saturate(1.2) brightness(1); }
  50% { filter: saturate(1.8) brightness(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .blink-wild { animation: none !important; }
}
