:root {
  --bg-deep: #0a0000;
  --bg-pulse1: #1f0000;
  --bg-pulse2: #300000;
  --clr-white: #f0f0f0;
  --clr-red: #ff1a1a;
  --clr-green: #8bff37;
  --clr-purple: #b84dff;
  --heroHue: 0deg;
}

/* GLOBAL RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; overflow-x: hidden; }
body {
  background: var(--bg-deep);
  color: var(--clr-white);
  font-family: 'Courier New', monospace;
  line-height: 1.4;
}
a { text-decoration: none; color: inherit; }
button { font: inherit; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; background: #111;
  border-bottom: 2px solid var(--clr-red);
}
.nav-logo {
  font-family: 'Creepster', cursive;
  font-size: 2.5rem;
  color: var(--clr-red);
  text-shadow: 0 0 8px var(--clr-red);
}
nav a {
  margin-left: 1rem; padding: 0.3rem 0.6rem;
  transition: color .2s, text-shadow .2s;
}
nav a:hover {
  color: var(--clr-red);
  text-shadow: 0 0 6px var(--clr-red);
}

/* HERO */
.hero {
  padding: 3rem 1rem;
  text-align: center;
  animation: backgroundPulse 20s ease-in-out infinite alternate;
}
@keyframes backgroundPulse {
  from { background: var(--bg-pulse1); }
  to   { background: var(--bg-pulse2); }
}
.hero-img {
  width: 280px; border-radius: 8px;
  box-shadow: 0 0 16px var(--clr-red);
  filter: hue-rotate(var(--heroHue, 0deg));
  transition: filter 1s ease;
}
.glitch-header {
  position: relative; display: inline-block;
  font-family: 'Creepster', cursive;
  font-size: 3rem; text-transform: uppercase;
  color: var(--clr-red);
  text-shadow: 0 0 8px var(--clr-red);
  margin: 1rem 0;
}
.glitch-header::before, .glitch-header::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: .8;
}
.glitch-header::before {
  color: var(--clr-green);
  animation: glitchTop 1s infinite linear alternate-reverse;
}
.glitch-header::after {
  color: var(--clr-purple);
  animation: glitchBottom 1.3s infinite linear alternate-reverse;
}
@keyframes glitchTop {
  0%   { clip: rect(0, 9999px, 0, 0); }
  20%  { clip: rect(0, 9999px, 20px, 0); }
  40%  { clip: rect(5px, 9999px, 25px, 0); }
  60%  { clip: rect(0, 9999px, 15px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}
@keyframes glitchBottom {
  0%   { clip: rect(100px, 9999px, 100px, 0); }
  20%  { clip: rect(80px, 9999px, 120px, 0); }
  40%  { clip: rect(90px, 9999px, 110px, 0); }
  60%  { clip: rect(85px, 9999px, 115px, 0); }
  100% { clip: rect(100px, 9999px, 100px, 0); }
}
@keyframes flickerText {
  0%,100% { opacity:1; text-shadow: 0 0 8px var(--clr-red); }
  50% { opacity:.4; text-shadow: none; }
}

.buttons {
  margin-top: 1rem;
}
.btn, .wallet-btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn {
  background: var(--clr-red);
  color: #000;
  text-transform: uppercase;
}
.btn:hover {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 0 12px var(--clr-red);
}

.ghost {
  background: transparent;
  border: 2px solid var(--clr-red);
  color: var(--clr-red);
}
.ghost:hover {
  background: var(--clr-red);
  color: #000;
}
.wallet-btn {
  background: transparent;
  border: 2px dashed var(--clr-red);
  color: var(--clr-red);
}
.wallet-btn:hover {
  background: var(--clr-red);
  color: #000;
}

/* CONTRACT */
.chart-section {
  padding: 2rem 1rem;
  background: #111;
  border-top: 2px solid var(--clr-red);
}
.ca-helper {
  color: #bbb;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.ca-display {
  position: relative;
  font-family: monospace;
  font-size: 1rem;
  background: none;
  border: none;
  color: var(--clr-green);
  cursor: pointer;
  padding: 0.5rem 0;
  transition: transform 0.2s, text-shadow 0.2s;
}
.ca-display:hover {
  text-shadow: 0 0 8px var(--clr-green);
  transform: scale(1.02);
}
/* Inline-Statusmeldung */
.ca-status {
  position: absolute;
  top: 50%;
  right: -6rem;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  font-size: 0.9rem;
  color: #0f0;
  transition: opacity 0.3s ease-in-out, right 0.3s ease-in-out;
}
.ca-status.show {
  opacity: 1;
  right: -3rem;
}

/* LORE */
.lore {
  background: #111;
  padding: 2rem 1rem;
}
.lore-heading {
  font-family: 'Creepster', cursive;
  font-size: 2.5rem;
  color: var(--clr-red);
  margin-bottom: 1.5rem;
  text-align: center;
}
.lore-block {
  margin: 1.5rem auto;
  max-width: 640px;
  background: #222;
  padding: 1.2rem 1rem;
  border-left: 4px solid var(--clr-red);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}
.lore-title {
  font-size: 1.4rem;
  color: var(--clr-red);
  margin-bottom: 0.5rem;
  animation: flickerText 3s infinite;
}

/* WISDOM SEKTIONSERSATZ */
.wisdom {
  background: #0e0000;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 2px solid var(--clr-red);
  border-bottom: 2px solid var(--clr-red);
}
.wisdom-block {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  background: #1a0000;
  padding: 2rem;
  border: 2px dashed var(--clr-red);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--clr-red);
}
.wisdom-block.active {
  display: block;
}
.wisdom-block h3 {
  font-family: 'Creepster', cursive;
  font-size: 2rem;
  color: var(--clr-red);
  margin-bottom: 1rem;
  text-shadow: 0 0 6px var(--clr-red);
  animation: glitchFlicker 3s infinite;
}
.wisdom-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wisdom-block li {
  margin: 1rem 0;
  font-size: 1rem;
  color: var(--clr-white);
  position: relative;
  padding-left: 1.2rem;
  text-align: left;
}
.wisdom-block li::before {
  content: '✴️';
  position: absolute;
  left: 0;
  color: var(--clr-red);
  text-shadow: 0 0 6px var(--clr-red);
}
@keyframes glitchFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px var(--clr-red); }
  50% { opacity: 0.6; text-shadow: none; }
}

/* GALLERY */
.gallery {
  position: relative;
  background: linear-gradient(180deg, rgba(16,0,0,0.85), rgba(10,0,0,0.95));
  padding: 3rem 1rem 4rem;
  overflow: hidden;
  z-index: 1;
}
.gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/glitch-nebel.png') no-repeat center/cover;
  opacity: 0.25;
  pointer-events: none;
}
.filters {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  text-align: center;
}
.filters button {
  background: #000;
  color: var(--clr-red);
  border: 2px dashed var(--clr-red);
  margin: 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  transition: transform 0.2s, box-shadow 0.2s;
}
.filters button:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 0 0 10px var(--clr-red);
}

/* GALLERY CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}
.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
  gap: 1.5rem;
  padding: 0 1rem;
}
.carousel-item {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.3);
  position: relative;
  transform: scale(0.7);
  opacity: 0.2;
  transition: all 0.4s ease;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel states */
.carousel-item.prev2,
.carousel-item.next2 {
  transform: scale(0.5);
  opacity: 0.1;
  filter: blur(2px);
}

.carousel-item.prev,
.carousel-item.next {
  transform: scale(0.65);
  opacity: 0.4;
  filter: blur(1px);
}

.carousel-item.current {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--clr-red);
  cursor: pointer;
  z-index: 3;
  padding: 0.5rem;
  transition: color 0.2s;
}
.carousel-btn:hover {
  color: var(--clr-green);
  text-shadow: 0 0 8px var(--clr-green);
}
.carousel-btn.prev {
  left: 1rem;
}
.carousel-btn.next {
  right: 1rem;
}

/* GALLERY TOOLTIP */
.carousel-item .tooltip {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--clr-red);
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
}
.carousel-item:hover .tooltip {
  bottom: -2.8rem;
  opacity: 1;
}

/* TICKER (2-LINE FORMAT) */
#larry-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0a0000;
  border-top: 2px solid var(--clr-red);
  overflow: hidden;
  z-index: 10;
  padding: 0.6rem 0;
}

.ticker-track {
  display: flex;
  animation: scrollHoriz 60s linear infinite;
}

.ticker-item {
  flex: 0 0 auto;
  margin-right: 4rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--clr-red);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  line-height: 1.2;
}

@keyframes scrollHoriz {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* FOOTER */
footer {
  background: #111;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 2px solid var(--clr-red);
  font-size: 0.9rem;
  color: #aaa;
}
footer .socials a {
  color: var(--clr-red);
  margin: 0 0.7rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer .socials a:hover {
  color: var(--clr-green);
}
footer .disclaimer {
  font-size: 0.75rem;
  margin-top: 0.6rem;
  color: #555;
}

/* MOBILE: HERO IMAGE + HEADER ADJUSTMENTS */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .nav-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .hero-img {
    width: 200px;
    margin-top: 1rem;
  }
  .glitch-header {
    font-size: 2rem;
  }
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn, .wallet-btn {
    width: 90%;
    max-width: 280px;
    text-align: center;
  }
}

/* MOBILE: LORE BLOCKS */
@media (max-width: 600px) {
  .lore-block {
    padding: 1rem 0.8rem;
    font-size: 0.95rem;
  }
  .lore-title {
    font-size: 1.2rem;
  }
}

/* MOBILE: TICKER */
@media (max-width: 600px) {
  .ticker-item {
    font-size: 0.75rem;
    margin-right: 2rem;
  }
}

/* GALLERY CAROUSEL: BASE */
@media screen and (max-width: 768px) {
  .carousel-item {
    width: 200px;
    height: 200px;
    margin: 0 0.5rem;
  }
  .carousel-item.next,
  .carousel-item.prev {
    transform: scale(0.6);
    opacity: 0.5;
  }
  .carousel-item.next2,
  .carousel-item.prev2 {
    display: none;
  }
  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem;
  }
}

/* MOBILE BUTTON STACKING */
@media screen and (max-width: 480px) {
  .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .btn, .wallet-btn {
    width: 90%;
    text-align: center;
  }
}

/* TOOLTIP CLEANUP ON MOBILE */
@media screen and (max-width: 480px) {
  .carousel-item .tooltip {
    font-size: 0.65rem;
    padding: .2rem .4rem;
  }
}

/* FINAL FOOTER TOUCHES */
footer {
  position: relative;
  background: #111;
  padding: 2rem 1rem 4rem;
  text-align: center;
  border-top: 2px solid var(--clr-red);
}
footer .socials a {
  margin: 0 .6rem;
  color: var(--clr-white);
  font-size: 1.2rem;
  transition: color .2s, transform .2s;
}
footer .socials a:hover {
  color: var(--clr-red);
  transform: scale(1.2);
}
footer .disclaimer {
  font-size: .8rem;
  margin-top: 1rem;
  color: #777;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: var(--clr-red);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff3333;
}

/* FX: Paw & Splatter */
.paw {
  position: absolute; width: 20px; height: 20px;
  background: url('/images/paw.png') no-repeat center/contain;
  pointer-events: none; opacity: .7;
  transform: translate(-50%, -50%);
}
.splatter {
  position: absolute; width: 100px; height: 100px;
  background: url('/images/blood-splatter.png') no-repeat center/contain;
  pointer-events: none; opacity: .8;
  transform: translate(-50%, -50%) scale(0.5);
  animation: splatterAnim 0.8s ease-out forwards;
}
@keyframes splatterAnim {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Identity Glitch */
.identity-glitch {
  animation: identityInvert 2.4s ease-in-out forwards;
  cursor: url('/images/cursor-shake.gif'), auto;
}
@keyframes identityInvert {
  0%   { filter: none; }
  20%  { filter: invert(1) hue-rotate(180deg); }
  50%  { filter: invert(1) hue-rotate(90deg); }
  80%  { filter: invert(1) hue-rotate(180deg); }
  100% { filter: none; }
}
.identity-glitch * {
  animation: cursorWobble 0.15s linear infinite;
}
@keyframes cursorWobble {
  0%,100% { transform:translate(0,0); }
  25% { transform:translate(-1px,1px); }
  50% { transform:translate(1px,-1px); }
  75% { transform:translate(-1px,-1px); }
}
/* Ergänzung in styles.css für Contract-Adresse ohne Hintergrund */
.ca-display.no-bg {
  background: none !important;
  box-shadow: none !important;
}
.wisdom-block li::before {
  margin-right: 0.7em !important;  /* Deutlich mehr Abstand zum Text */
}
.wisdom-buttons {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wisdom-btn {
  background: #0e0000;
  border: 2px dashed var(--clr-red);
  color: var(--clr-red);
  font-family: 'Creepster', cursive;
  font-size: 1.1rem;
  margin: 0 0.5em;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.wisdom-btn:hover,
.wisdom-btn.active {
  background: var(--clr-red);
  color: #000;
  box-shadow: 0 0 8px var(--clr-red);
}
.carousel-item .tooltip {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--clr-red);
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
}
.carousel-item:hover .tooltip {
  bottom: -2.8rem;
  opacity: 1;
}
