:root {
  --scene-max-width: 1200px;
  --scene-padding: 20px;

  --frame-border-width: 0.5px;
  --frame-border-color: #ff2b2b;

  --hero-title-font-size: clamp(32px, 6vw, 64px);
  --hero-title-letter-spacing: 0.18em;
  --hero-title-margin-top: 12vh;
  --hero-title-text-align: center;

  --mute-btn-font-size: clamp(14px, 1.6vw, 18px);
  --mute-btn-margin-top: 20px;
  --mute-btn-padding-y: 12px;
  --mute-btn-padding-x: 26px;

  --mute-status-font-size: 12px;
  --mute-status-margin-top: 10px;

  --about-max-width: 720px;
  --about-margin-top: 40px;
  --about-title-font-size: 20px;
  --about-text-font-size: 15px;
  --about-extra-font-size: 13px;

  --footer-font-size: 11px;
  --mobile-padding: 14px;

  --scanlines-duration: 8s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #000;
  color: #f5f5f5;
}

.page-frame {
  position: relative;
  min-height: 100vh;
  border: var(--frame-border-width) solid var(--frame-border-color);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.page-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("bg_static.gif");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.7s ease;
}

.page-frame::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.22;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
  animation: scanlines var(--scanlines-duration) linear infinite;
  animation-play-state: running;
  transition:
    opacity 0.7s ease,
    animation-play-state 0.2s ease;
}

@keyframes scanlines {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 100px;
  }
}

.page-frame.noise-off::before {
  opacity: 0.04;
}

.page-frame.noise-off::after {
  opacity: 0.03;
  animation-play-state: paused;
}

.scene {
  max-width: var(--scene-max-width);
  margin: 0 auto;
  padding: var(--scene-padding);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-layout {
  display: flex;
  flex: 1 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--hero-title-margin-top);
  text-align: var(--hero-title-text-align);
}

.hero-title {
  font-size: var(--hero-title-font-size);
  letter-spacing: var(--hero-title-letter-spacing);
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.35);
}

.mute-button {
  margin-top: var(--mute-btn-margin-top);
  padding: var(--mute-btn-padding-y) var(--mute-btn-padding-x);
  font-size: var(--mute-btn-font-size);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
  border: 1px solid #ff3c3c;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.mute-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 60, 60, 0.5),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.mute-button:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 60, 60, 0.65);
  border-color: #ff5c5c;
}

.mute-button:hover::before {
  opacity: 1;
}

.mute-button:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.4);
}

.mute-status {
  margin-top: var(--mute-status-margin-top);
  font-size: var(--mute-status-font-size);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.mute-status.visible {
  opacity: 0.9;
  transform: translateY(0);
  color: #b8ffb8;
}

.about-section {
  max-width: var(--about-max-width);
  margin-top: var(--about-margin-top);
  line-height: 1.6;
}

.about-title {
  font-size: var(--about-title-font-size);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-text {
  font-size: var(--about-text-font-size);
  opacity: 0.9;
}

.about-extra {
  font-size: var(--about-extra-font-size);
  opacity: 0.7;
  margin-top: 10px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-bottom: 8px;
  font-size: var(--footer-font-size);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-btn {
  background: transparent;
  border: none;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}

.social-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #ff3c3c;
  transition: width 0.2s ease;
}

.social-btn:hover::after {
  width: 100%;
}

.footer-note {
  opacity: 0.6;
}

body.glitch {
  animation: body-glitch 0.22s linear;
}

@keyframes body-glitch {
  0% {
    filter: hue-rotate(0deg);
  }
  30% {
    filter: hue-rotate(-18deg) contrast(1.2);
  }
  60% {
    filter: hue-rotate(12deg) contrast(1.3);
  }
  100% {
    filter: none;
  }
}

@media (max-width: 768px) {
  .scene {
    padding: var(--mobile-padding);
  }

  .hero-layout {
    justify-content: center;
  }

  .hero-center {
    margin-top: 14vh;
  }

  .about-section {
    margin-top: 28px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
