/* ========================================
   ENTRY PAGE
   ======================================== */

html, body.entry-page {
  height: 100%;
}

body.entry-page {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}


body.entry-page::before,
body.entry-page::after {
  content: none;
}

.entry-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(115, 65, 90, 0.35);
  z-index: -1;
}

.entry-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 4px;
}

.entry-title {
  font-family: 'SUPERCAR', monospace;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: #ebe3df;
  text-shadow:
    3px 3px 0 rgba(115, 65, 90, 0.6),
    5px 5px 10px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(115, 65, 90, 0.4);
  margin: 0 0 18px;
  line-height: 1.15;
}

.entry-tagline {
  font-family: 'cyber', monospace;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #f5f5f5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0 0 40px;
}

.entry-title {
  cursor: pointer;
}

/* ----- friends (bird) reveal ----- */

.friend-birds {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.friend-bird {
  position: absolute;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.friend-birds.show .friend-bird {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.friend-bird img {
  display: block;
  filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.6));
}

.bird-dove {
  top: 8%;
  left: 6%;
}
.bird-dove img { width: clamp(90px, 12vw, 150px); }

.bird-owl {
  top: 10%;
  right: 6%;
}
.bird-owl img { width: clamp(100px, 13vw, 170px); }

.bird-raven {
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
}
.friend-birds.show .bird-raven {
  transform: translateX(-50%) scale(1);
}
.bird-raven .bird-message {
  top: 50%;
  left: 110%;
  right: auto;
  transform: translateY(-120%) translateX(8px);
  width: max(220px, 26vw);
  max-width: 280px;
}

.friend-bird.bird-raven:hover .bird-message {
  transform: translateY(-120%) translateX(0);
}
.bird-raven img { width: clamp(90px, 11vw, 140px); }

.friend-birds.show .bird-owl { transition-delay: 0.15s; }
.friend-birds.show .bird-raven { transition-delay: 0.3s; }

.bird-message {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max(200px, 24vw);
  max-width: 260px;
  font-family: 'kodemono', monospace;
  font-size: clamp(10px, 1.1vw, 12px);
  line-height: 1.5;
  color: #f5f5f5;
  background: rgba(88, 65, 93, 0.6);
  border: 1px solid rgba(245, 245, 245, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  text-shadow: none;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.friend-bird:hover .bird-message {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .friend-bird { display: none; }
}

.entry-btn-mouth {
  position: relative;
  display: inline-block;
  width: clamp(150px, 18vw, 200px);
  aspect-ratio: 240 / 172;
  margin-bottom: 22px;
  text-decoration: none;
}

.mouth-closed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: auto;
  transform: translate(-50%, -50%);
  /*transition: opacity 0.35s ease;*/
  opacity: 1;
}

.mouth-teeth-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouth-top,
.mouth-bottom {
  display: block;
  height: auto;
  opacity: 0;
}

.mouth-top {
  width: 110%;
}

.mouth-bottom {
  width: 85%;
}

.entry-btn-mouth:hover,
.entry-btn-mouth:focus-visible {
  transform: scale(1.06);
}

.entry-btn-mouth:hover .mouth-closed,
.entry-btn-mouth:focus-visible .mouth-closed {
  opacity: 0;
}

.entry-btn-mouth:hover .mouth-top,
.entry-btn-mouth:focus-visible .mouth-top {
  opacity: 1;
  transform: translateY(-16px);
}

.entry-btn-mouth:hover .mouth-bottom,
.entry-btn-mouth:focus-visible .mouth-bottom {
  opacity: 1;
  transform: translateY(16px);
}

.mouth-enter-text {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-family: 'cyber', Verdana, Geneva, Tahoma, sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #e3dbdf;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.entry-risk {
  font-family: 'kodemono', monospace;
  font-size: clamp(12px, 1.4vw, 14px);
  color: #f5f5f5;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
  margin: 20px 0 6px;
  letter-spacing: 0.03em;
}

.entry-note {
  font-family: 'kodemono', monospace;
  font-size: clamp(10px, 1.1vw, 11.5px);
  color: rgba(245, 245, 245, 0.75);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .entry-title { font-size: 2rem; }
  .entry-tagline { font-size: 1rem; margin-bottom: 30px; }
  .entry-btn-mouth { width: 140px; margin-bottom: 18px; }
}

.now-playing {
  position: fixed;
  bottom: 14px;
  left: 18px;
  z-index: 2;
  font-family: 'kodemono', monospace;
  font-size: clamp(9px, 1vw, 11px);
  color: rgba(245, 245, 245, 0.7);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
  margin: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.now-playing:hover {
  color: rgba(245, 245, 245, 0.95);
}

/* ----- nest (friends message trigger) ----- */

.nest-wrap {
  position: fixed;
  bottom: 10px;
  right: 16px;
  z-index: 6;
  cursor: pointer;
}

.nest-icon {
  display: block;
  width: clamp(64px, 8vw, 96px);
  height: auto;
  filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.nest-wrap:hover .nest-icon,
.nest-wrap:focus-within .nest-icon {
  transform: scale(1.08);
}

.nest-message {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: max(240px, 55vw);
  max-width: 320px;
  font-family: 'kodemono', monospace;
  font-size: clamp(11px, 1.3vw, 13px);
  line-height: 1.5;
  color: #f5f5f5;
  background: rgba(88, 65, 93, 0.6);
  border: 1px solid rgba(245, 245, 245, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  text-shadow: none;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nest-wrap:hover .nest-message,
.nest-wrap:focus-within .nest-message,
.nest-message.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 720px) {
  .nest-icon { width: 56px; }
  .nest-message { width: max(200px, 62vw); right: -8px; }
}