:root {
  --bg-top: #120e17;
  --bg-bottom: #261729;
  --panel: rgba(18, 15, 23, 0.88);
  --text-main: #f6e7cc;
  --text-muted: #d3b891;
  --accent: #ff8e2b;
  --accent-strong: #ffb86c;
  --accent-deep: #e34b2d;
  --lcd-bg: #b8ccb1;
  --lcd-dark: #334736;
  --display-dark: #31282a;
  --display-mid: #443638;
  --display-line: rgba(255, 255, 255, 0.04);
  --display-border: #78737a;
  --display-inner: #1c1a22;
  --status-light: #d8ded2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Orbitron", sans-serif;
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 168, 84, 0.12), transparent 28%),
    linear-gradient(180deg, #09070d 0%, var(--bg-top) 36%, var(--bg-bottom) 100%);
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.vmu-shell {
  width: min(100%, 560px);
  position: relative;
  overflow: hidden;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.45));
}

.vmu-shell[data-active-screen="bio"] .vmu-dpad-nav {
  opacity: 1;
  pointer-events: auto;
}

.vmu-shell[data-active-screen="title"] .music-toggle,
.vmu-shell[data-active-screen="bio"] .music-toggle {
  opacity: 1;
  pointer-events: auto;
}

.vmu-frame-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.vmu-hotspot {
  position: absolute;
  z-index: 1;
}

.vmu-display-hotspot {
  left: 18.8%;
  top: 27.8%;
  width: 62.4%;
  height: 39.8%;
  overflow: hidden;
  border-radius: 18px;
}

.display-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.12;
  pointer-events: none;
  border-radius: 16px;
}

.screen {
  position: relative;
  min-height: 100%;
  display: none;
  padding: 4px 2px 6px;
  text-align: center;
  animation: fade-in 350ms ease;
}

.screen.active {
  display: block;
}

.screen[data-screen="bio"].active {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 38px;
}

.eyebrow,
.label,
.hint {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.56rem;
  margin-bottom: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 0.95;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(1.2rem, 2.7vw, 1.95rem);
  line-height: 1;
}

h3 {
  font-size: 0.95rem;
}

.boot-screen-frame {
  width: 136%;
  height: 136%;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
}

.boot-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.title-logo {
  width: min(100%, 172px);
  display: block;
  margin: 6px auto 8px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.38));
}

.title-logo-large {
  width: min(100%, 96%);
  max-width: none;
  margin: 42px auto 18px;
}

.action-button,
.secondary-button {
  width: 100%;
  max-width: 178px;
  padding: 11px 12px;
  border-radius: 13px;
  margin-top: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.6rem;
}

.action-button {
  color: #102030;
  background: linear-gradient(180deg, #e6fbff 0%, #9fe2ff 45%, #63c7fb 100%);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.65),
    0 8px 18px rgba(99, 199, 251, 0.3);
}

.secondary-button {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bio-nav-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  margin: 0 0 2px;
}

.bio-browser {
  display: block;
  flex: 1;
  min-height: 0;
  margin-top: 0;
  padding-bottom: 4px;
}

.bio-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  padding: 0 22px;
}

.bio-image {
  width: min(100%, 176px);
  height: 176px;
  object-fit: contain;
  display: block;
  margin: -10px auto 4px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.bio-name {
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.bio-text {
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1.5;
  text-align: left;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 6px 8px 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bio-counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.bio-home-button {
  margin-top: 0;
  padding: 9px 10px;
  font-size: 0.54rem;
  align-self: center;
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 4;
}

.bio-text::-webkit-scrollbar {
  width: 4px;
}

.bio-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.vmu-dpad-nav {
  position: absolute;
  left: 25%;
  top: 79.1%;
  width: 22%;
  height: 10.5%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.dpad-arrow {
  position: absolute;
  top: 50%;
  width: 32%;
  height: 46%;
  transform: translateY(-50%);
  background: transparent;
  color: #121528;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.dpad-arrow-left {
  left: 14%;
}

.dpad-arrow-right {
  right: 14%;
}

.music-toggle {
  position: absolute;
  left: 60.9%;
  top: 80.8%;
  width: 12.2%;
  height: 7%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.music-toggle-icon {
  position: relative;
  width: 70%;
  height: 70%;
  display: block;
}

.music-toggle-icon::before {
  content: "";
  position: absolute;
  left: 8%;
  top: 28%;
  width: 36%;
  height: 44%;
  background: #111528;
  clip-path: polygon(0 30%, 28% 30%, 58% 0, 58% 100%, 28% 70%, 0 70%);
}

.music-toggle-icon::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 18%;
  width: 28%;
  height: 64%;
  border-right: 3px solid #111528;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0 999px 999px 0;
}

.music-toggle[data-muted="true"] .music-toggle-icon::before,
.music-toggle[data-muted="true"] .music-toggle-icon::after {
  opacity: 0.35;
}

.music-toggle[data-muted="true"]::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 3px;
  background: #8b2636;
  border-radius: 999px;
  transform: rotate(-38deg);
}

@keyframes pulse {
  50% {
    opacity: 0.36;
    transform: scaleX(0.75);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 620px) {
  .bio-nav-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vmu-display-hotspot {
    left: 19.4%;
    top: 28.1%;
    width: 61.2%;
    height: 38.8%;
  }

  .screen[data-screen="bio"].active {
    gap: 0;
  }

  .bio-card {
    padding: 0 20px;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .bio-image {
    width: min(100%, 118px);
    height: 118px;
    margin: -10px auto 2px;
  }

  .bio-name {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .bio-text {
    font-size: 0.48rem;
    line-height: 1.28;
    padding: 0 2px 4px 2px;
    max-height: 100%;
  }

  .bio-home-button {
    margin-top: 2px;
    padding: 7px 10px;
    font-size: 0.46rem;
  }
}
