:root {
  --bg: #1c1715;
  --bg2: #0e0d0d;
  --metal: #111214;
  --metal-soft: #232429;
  --trim: #aab0b8;
  --trim-dark: #727780;
  --blue: #27a4ff;
  --blue-soft: #6bc0ff;
  --red: #ff3c1f;
  --red-bright: #ffb26b;
  --paper: #e7dec9;
  --paper-ink: #2e2419;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.05), transparent 30%),
    linear-gradient(180deg, #2a211d 0%, #171312 45%, #0f0d0d 100%);
  color: white;
}

body {
  overflow: hidden;
}

.wall-noise {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 150, 80, 0.08), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(255, 150, 80, 0.06), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.02), transparent 25%);
  filter: blur(2px);
  pointer-events: none;
}

.scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: 280px;
  height: 760px;
  background:
    linear-gradient(180deg, #101114 0%, #090909 100%);
  border-left: 4px solid rgba(220, 225, 235, 0.9);
  border-right: 4px solid rgba(220, 225, 235, 0.9);
  border-top: 3px solid rgba(220, 225, 235, 0.9);
  border-bottom: 3px solid rgba(220, 225, 235, 0.9);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.07),
    0 30px 60px rgba(0,0,0,0.55);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03), transparent 12%, transparent 88%, rgba(255,255,255,0.03)),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 14%, transparent 86%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.panel-header {
  padding: 18px 18px 0 18px;
}

.label {
  width: 100%;
  height: 54px;
  border: 2px solid rgba(90, 180, 255, 0.9);
  background:
    linear-gradient(90deg, rgba(39,164,255,0.95) 0 48%, rgba(21,31,48,0.95) 48% 100%);
  color: #d8f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Trebuchet MS", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(120, 220, 255, 0.4);
  box-shadow: inset 0 0 14px rgba(255,255,255,0.08);
}

.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 22px 18px;
}

.eye-wrapper {
  flex: 1;
  display: grid;
  place-items: center;
}

.eye-outer {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.95), rgba(10,10,10,1));
  border: 8px solid #cdd4dd;
  box-shadow:
    0 0 0 3px rgba(80, 90, 100, 0.8),
    inset 0 0 20px rgba(255,255,255,0.07),
    0 0 30px rgba(255, 40, 0, 0.18);
}

.eye-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.04);
}

.eye-inner {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 160, 90, 0.18), rgba(0,0,0,0.95) 55%);
  overflow: hidden;
}

.eye-core {
  position: absolute;
  width: 46px;
  height: 46px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff6cb 0%, #ff9d58 20%, #ff431d 55%, #690400 100%);
  box-shadow:
    0 0 15px rgba(255, 89, 0, 0.95),
    0 0 30px rgba(255, 89, 0, 0.65),
    0 0 60px rgba(255, 40, 0, 0.35);
  animation: pulse 2.2s infinite ease-in-out;
}

.eye-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 80, 20, 0.28), transparent 35%);
  animation: breathe 3s infinite ease-in-out;
}

.eye-reflection {
  position: absolute;
  width: 40px;
  height: 24px;
  top: 22px;
  left: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  filter: blur(2px);
  transform: rotate(-20deg);
}

.speaker {
  margin-top: 24px;
  padding: 16px 6px 10px;
  border-top: 3px solid rgba(210, 215, 220, 0.85);
  border-bottom: 3px solid rgba(210, 215, 220, 0.85);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.08));
}

.speaker-line {
  height: 6px;
  margin: 7px 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #c7ccd3 0%, #626870 100%);
  opacity: 0.9;
}

.tape-shell {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1200px, calc(100vw - 30px));
  background: linear-gradient(180deg, #e8dfcb 0%, #d5cab3 100%);
  border: 2px solid #b7a88e;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
  color: var(--paper-ink);
}

.tape-label {
  padding: 8px 14px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}

.tape-window {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px dashed rgba(40, 28, 18, 0.35);
  border-bottom: 1px dashed rgba(40, 28, 18, 0.35);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(70, 55, 40, 0.03) 0 2px,
      transparent 2px 4px
    ),
    linear-gradient(180deg, #ece4d2 0%, #dfd2bb 100%);
}

.tape-track {
  display: inline-block;
  min-width: 200%;
  padding: 12px 0;
  font-family: "Courier New", monospace;
  font-size: clamp(0.88rem, 1.7vw, 1.05rem);
  letter-spacing: 0.04em;
  animation: tape-scroll 32s linear infinite;
}

.tape-track span {
  display: inline-block;
  margin-right: 48px;
  font-weight: 700;
}

.tape-track span::before {
  content: "▸ ";
}

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

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    filter: brightness(1.18);
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .panel {
    width: 220px;
    height: 610px;
  }

  .label {
    height: 46px;
    font-size: 0.95rem;
  }

  .eye-outer {
    width: 138px;
    height: 138px;
  }

  .speaker-line {
    height: 5px;
    margin: 6px 0;
  }

  .tape-shell {
    bottom: 10px;
  }
}
