@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg-base: #f8f6ef;
  --focus-color: #ffe082;
}

body {
  margin: 0;
  position: relative;
  background: var(--bg-base);
  color: #000000;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 150vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.container {
  text-align: center;
  z-index: 1;
}

.intro-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.page-loaded .intro-block {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  width: 500px;
  max-width: 90vw;
  height: auto;
  margin-bottom: 1rem;
}

.logo-wrap {
  position: relative;
  display: inline-block;
}

img[src$=".gif"],
img[src$=".GIF"] {
  filter: saturate(1.22);
}

img[src*="justme.gif"],
img[src*="justme.GIF"] {
  filter: saturate(1.22);
}

.intro-logo {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

body.page-loaded .intro-logo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tagline {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.links a {
  --hover-bg: #000000;
  --hover-border: #000000;
  --hover-shadow: #000000;
  --hover-text: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto;
  padding: 0.85rem 1.1rem;
  background: #000000;
  color: #fff;
  border: 3px solid #000000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #000000;
  font-size: clamp(10px, 2.2vw, 13px);
  line-height: 1.4;
  text-decoration: none;
  width: fit-content;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.links a.link-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.links a:hover,
.links a:active {
  background: var(--hover-bg);
  border-color: var(--hover-border);
  color: var(--hover-text);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--hover-shadow);
}

.links a:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.links a[href*="spotify.com"] {
  --hover-bg: #98d5a5;
  --hover-border: #65a676;
  --hover-shadow: #4a7b57;
}

.links a[href*="music.apple.com"] {
  --hover-bg: #ebb0b8;
  --hover-border: #be7f89;
  --hover-shadow: #8c5d65;
}

.links a[href*="youtube.com"] {
  --hover-bg: #e6a0a0;
  --hover-border: #b57474;
  --hover-shadow: #865454;
}

.links a[href*="instagram.com"] {
  --hover-bg: #deb0d3;
  --hover-border: #ad7fa3;
  --hover-shadow: #7f5c78;
}

.links a[href*="tiktok.com"] {
  --hover-bg: #a4dada;
  --hover-border: #75aaaa;
  --hover-shadow: #547d7d;
}

.chars {
  margin-top: 3rem;
  max-width: 15vw;
  height: auto;
}

.intro-chars {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

body.page-loaded .intro-chars {
  opacity: 1;
  transform: translateY(0);
}

.sound-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 30;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 3px solid #000;
  background: #000;
  color: #fff;
  border-radius: 0;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.sound-toggle:hover,
.sound-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
  background: #f7d18f;
  color: #000;
}

.sound-toggle:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.mic-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;  
  z-index: 5;
  opacity: 0;               
  transition: opacity 0.25s ease-out;
}

.mic-cable {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cable-pixel {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #111;
  image-rendering: pixelated;
  pointer-events: none;
}

.mic {
  position: fixed;
  width: 30px;
  max-width: 30vw;
  height: auto;
  pointer-events: auto;    
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 10;
  opacity: 0;     
  image-rendering: pixelated;
}
@media (max-width: 768px) {
  body {
    font-size: 12px;
    line-height: 1.75;
  }

  .page {
    padding-top: 60px;
  }

  .logo {
    width: 80vw;
  }

  .links a {
    width: min(90vw, 360px);
    min-height: 52px;
    padding: 0.95rem 0.7rem;
    font-size: 11px;
  }

  .chars {
    max-width: 80vw;
  }

  .sound-toggle {
    font-size: 9px;
    top: 10px;
    right: 10px;
    padding: 0.45rem 0.5rem;
  }
}
.peeker {
  position: fixed;
  width: 120px;
  max-width: 28vw;
  height: auto;
  pointer-events: AUTO;
  opacity: 0;
  z-index: 20;
  transition: opacity 0.35s ease, transform 0.35s ease;
  image-rendering: pixelated;
}

@media (prefers-reduced-motion: reduce) {
  .intro-block,
  .intro-logo,
  .intro-chars,
  .links a,
  .sound-toggle,
  .peeker,
  .mic-layer {
    transition: none;
  }

  .intro-logo,
  .intro-logo {
    animation: none;
  }
}
