:root {
  --page-bg: linear-gradient(
    180deg,
    #ffe3a3 0%,
    #ffc97a 25%,
    #ffd7b5 45%,
    #fffbbf 75%,
    #e3d68e 100%
  );

  --panel-bg: rgba(205, 241, 248, 0.55);
  --panel-border: rgba(255, 255, 255, 0.32);
  --panel-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 28px rgba(255, 215, 240, 0.28);

  --video-frame-bg: #050505;
  --video-frame-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(255, 160, 220, 0.18);

  --tagline-color: #6b2e1a;

  --button-text: #5a2d00;
  --button-bg: linear-gradient(
    180deg,
    #fff6b7 0%,
    #ffc97a 45%,
    #ffd1e8 100%
  );
  --button-border: rgba(255, 255, 255, 0.85);
  --button-shadow: 0 4px 14px rgba(255, 180, 100, 0.25), 0 0 14px rgba(255, 150, 120, 0.2), inset 0 1px 0 rgba(255,255,255,0.9);

  --toggle-text: #5a2d00;
  --toggle-bg: rgba(255, 255, 255, 0.72);
  --toggle-border: rgba(255, 255, 255, 0.8);
  --toggle-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  --title-gradient: linear-gradient(
    180deg,
    #fff6b7 0%,
    #ffb86b 40%,
    #ff6ec7 80%
  );
}

body[data-theme="dark"] {
  --page-bg: linear-gradient(
    180deg,
    #16121f 0%,
    #24182f 28%,
    #1b2b3d 62%,
    #13232f 82%,
    #0d171d 100%
  );

  --panel-bg: rgba(33, 45, 58, 0.72);
  --panel-border: rgba(189, 220, 255, 0.18);
  --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 26px rgba(114, 188, 255, 0.14);

  --video-frame-bg: #020202;
  --video-frame-shadow: 0 26px 80px rgba(0, 0, 0, 0.62), 0 0 28px rgba(255, 60, 160, 0.12);

  --tagline-color: #ffd89d;

  --button-text: #2e1800;
  --button-bg: linear-gradient(
    180deg,
    #ffe680 0%,
    #ff9d5c 45%,
    #ff8fd8 100%
  );
  --button-border: rgba(255, 245, 210, 0.75);
  --button-shadow: 0 4px 16px rgba(255, 150, 70, 0.3), 0 0 18px rgba(255, 110, 199, 0.2), inset 0 1px 0 rgba(255,255,255,0.85);

  --toggle-text: #fff1cb;
  --toggle-bg: rgba(22, 28, 38, 0.75);
  --toggle-border: rgba(255, 230, 170, 0.35);
  --toggle-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);

  --title-gradient: linear-gradient(
    180deg,
    #fff3a0 0%,
    #ff9d5c 42%,
    #ff4fc4 82%
  );
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  color: var(--text-light);
}

html {
  min-height: 100%;
  background: transparent;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
}
.theme-toggle {
  position: fixed;
  top: 50px;
  right: 120px;
  z-index: 20;
  padding: 12px 18px;
  border: 2px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-text);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-background-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 90px;
  z-index: 2;
}

.video-frame {
  background: var(--video-frame-bg);
  padding: 28px;
}

.video-background {
  display: block;
  width: min(1200px, 92vw);
  height: auto;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.video-tint-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 143, 207, 0.22) 0%,
      rgba(255, 240, 201, 0.10) 25%,
      rgba(121, 207, 255, 0.10) 70%,
      rgba(142, 227, 209, 0.22) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 20px 60px;
}

.splash-panel {
  max-width: 630px;
  width: min(82vw, 630px);
  padding: 28px 28px 30px;
  text-align: center;
  background: rgba(205, 241, 248, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.site-title {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--title-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 1px 0 rgba(0,0,0,0.45),
    0 0 1px rgba(255, 150, 100, 0.5),
    0 0 1px rgba(255, 110, 199, 0.35);
}

body[data-theme="dark"] .site-title {
  animation: neonFlicker 3.2s infinite;
}

.site-tagline {
  margin: 0 0 20px;
  font-size: 1.1rem;
  color: var(--tagline-color);
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
}

.enter-link {
  display: inline-block;
  padding: 12px 26px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--button-text);
  background: var(--button-bg);
  border: 2px solid var(--button-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.enter-link:hover {
  transform: translateY(-1px) scale(1.0);
}

.enter-link {
  position: relative;
  overflow: hidden;
}

.enter-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  opacity: 0.6;
}

.roach {
  position: absolute;
  width: 52px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
}

video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
}
.splash-panel {
  position: relative;
  max-width: 630px;
  width: min(82vw, 630px);
  padding: 28px 28px 30px;
  text-align: center;
  background: rgba(205, 241, 248, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.splash-panel {
  position: relative;
  max-width: 630px;
  width: min(82vw, 630px);
  padding: 28px 28px 30px;
  text-align: center;
  /* border-radius: 22px; */
  background: rgba(205, 241, 248, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}
.splash-panel-shell {
  position: relative;
  display: inline-block;
}

.splash-panel {
  position: relative;
  z-index: 2;
}

.roach-swarm {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  z-index: 3;
}

.moving-roach {
  position: absolute;
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  pointer-events: none;
  offset-path: path("M 55 15 H 665 Q 680 15 680 45 V 360 Q 680 360 665 360 H 55 Q 15 360 15 360 V 55 Q 15 15 55 15 Z");
  offset-rotate: auto 90deg;
  animation: crawlLoop 18s steps(72, end) infinite;
  transition: opacity 0.35s ease;
}

.roach-1  { animation-delay: 0s; }
.roach-2  { animation-delay: -0.9s; }
.roach-3  { animation-delay: -1.8s; }
.roach-4  { animation-delay: -2.7s; }
.roach-5  { animation-delay: -3.6s; }
.roach-6  { animation-delay: -4.5s; }
.roach-7  { animation-delay: -5.4s; }
.roach-8  { animation-delay: -6.3s; }
.roach-9  { animation-delay: -7.2s; }
.roach-10 { animation-delay: -8.1s; }
.roach-11 { animation-delay: -9s; }
.roach-12 { animation-delay: -9.9s; }
.roach-13 { animation-delay: -10.8s; }
.roach-14 { animation-delay: -11.7s; }
.roach-15 { animation-delay: -12.6s; }
.roach-16 { animation-delay: -13.5s; }
.roach-17 { animation-delay: -14.4s; }
.roach-18 { animation-delay: -15.3s; }
.roach-19 { animation-delay: -16.2s; }
.roach-20 { animation-delay: -17.1s; }

@keyframes crawlLoop {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

body.light-transition .moving-roach:not(.escape-roach) {
  opacity: 0;
}

body.roach-escaping .moving-roach:not(.escape-roach) {
  opacity: 0;
}

body.roach-escaping .escape-roach {
  opacity: 1;
  z-index: 4;
}

.escape-roach.is-escaping {
  transition:
    transform var(--escape-duration, 1600ms) linear,
    opacity 220ms linear;
  transform:
    translate(var(--escape-x, 0px), var(--escape-y, 0px))
    rotate(var(--escape-rotate, 0deg));
  opacity: 0;
}

body[data-theme="dark"] .roach-swarm,
body.light-transition .roach-swarm,
body.roach-escaping .roach-swarm {
  opacity: 1;
  pointer-events: none;
}

body:not([data-theme="dark"]):not(.light-transition):not(.roach-escaping) .roach-swarm {
  opacity: 0;
  pointer-events: none;
}

@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 2px rgba(255, 245, 180, 0.9),
      0 0 6px rgba(255, 180, 107, 0.9),
      0 0 12px rgba(255, 110, 199, 0.75),
      0 0 24px rgba(255, 110, 199, 0.45);
  }

  20%, 24%, 55% {
    opacity: 0.82;
    text-shadow:
      0 0 1px rgba(255, 245, 180, 0.7),
      0 0 3px rgba(255, 180, 107, 0.55),
      0 0 7px rgba(255, 110, 199, 0.45);
  }

  21%, 56% {
    opacity: 0.62;
    text-shadow:
      0 0 1px rgba(255, 245, 180, 0.4),
      0 0 2px rgba(255, 180, 107, 0.3),
      0 0 4px rgba(255, 110, 199, 0.2);
  }
}

@media (max-width: 640px) {
  .video-background-wrapper {
    margin-top: 24px;
    margin-bottom: 55px;
    width: 100%;
    padding: 0 10px;
  }

  .video-frame {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
  }

  .video-background {
    width: 100%;
    max-width: none;
    border-radius: 8px;
  }

  .splash-content {
    width: 100%;
    padding: 0 12px 36px;
  }

  .splash-panel-shell {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .splash-panel {
    width: min(94vw, 630px);
    padding: 22px 16px 24px;
    border-radius: 16px;
  }

  .site-title {
    font-size: clamp(1.9rem, 9vw, 3rem);
    letter-spacing: 0.03em;
    line-height: 1;
  }

  .site-tagline {
    font-size: 1rem;
    line-height: 1.4;
  }

  .enter-link {
    padding: 12px 18px;
    font-size: 13px;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .moving-roach {
    width: 22px;
    height: 22px;
  }

  .roach-swarm {
    inset: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-title {
    animation: none;
  }

  .moving-roach {
    animation-duration: 30s;
  }
}

.site-footer {
  margin-top: 30px;
  padding: 10px;

  font-family: Verdana, Tahoma, sans-serif;
  font-size: 12px;

  text-align: center;

  background: #fff3b0;
  border-top: 2px solid #000;

  color: #333;
}

.site-footer a {
  color: #ff00aa;
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff3b0;
  color: #333;
  border: 2px solid #000;
  padding: 8px 12px;
  font-size: 12px;
}

.cookie-banner button {
  margin-left: 10px;
  font-weight: bold;
  cursor: pointer;
  background: #ffb347;
  color: #2b1600;
  border: 2px solid #000;
}

.privacy-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 24px;
  line-height: 1.6;
  text-align: left;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(8px);
}

.privacy-container h1 {
  margin-bottom: 20px;
}

.privacy-container h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.privacy-container ul {
  padding-left: 20px;
}

.privacy-container p {
  margin-bottom: 12px;
}