* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}


/* ===== Blue orb cursor follower ===== */

.blue-orb {
  position: fixed;
  width: 450px;
  height: 450px;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: left, top;
  opacity: 0.64;
}

.blue-orb-glow {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(80,115,200,0.45) 0%,
    rgba(70,105,190,0.35) 8%,
    rgba(60,92,175,0.25) 18%,
    rgba(50,78,155,0.16) 30%,
    rgba(40,62,130,0.08) 45%,
    rgba(30,48,100,0.03) 62%,
    rgba(20,32,70,0.008) 78%,
    transparent 92%
  );
  filter: blur(40px);
}

.blue-orb-glow2 {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(85,120,210,0.3) 0%,
    rgba(65,100,180,0.15) 25%,
    transparent 60%
  );
  filter: blur(60px);
}

.blue-orb-noise {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  opacity: 0.5;
  overflow: hidden;
}

/* ===== Hole container ===== */

.hole-container {
  position: fixed;
  width: 48px;
  height: 48px;
  cursor: pointer;
  overflow: visible;
  z-index: 10;
}

.hole {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #111;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.rotating-text {
  position: absolute;
  left: -26px;
  bottom: -26px;
  z-index: 1;
  animation: rotateText 13.2s linear infinite;
}

@keyframes rotateText {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Mouse in hole ===== */

.mouse {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 2;
  pointer-events: none;
  filter:
    drop-shadow(0 0 4px white)
    drop-shadow(0 0 4px white)
    drop-shadow(0 0 4px white);
}

.mouse-head {
  position: relative;
  width: 28px;
  height: 26px;
}

.ear {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  background: #b0b0b0;
  border-radius: 50%;
  border: 2px solid #888;
}

.ear::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: #f0a0b0;
  border-radius: 50%;
}

.left-ear { left: -3px; }
.right-ear { right: -3px; }

.face {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 20px;
  background: #c8c8c8;
  border-radius: 50% 50% 45% 45%;
  border: 2px solid #999;
  overflow: visible;
}

.eye {
  position: absolute;
  top: 5px;
  width: 4px;
  height: 5px;
  background: #222;
  border-radius: 50%;
}

.left-eye { left: 4px; }
.right-eye { right: 4px; }

.nose {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 3px;
  background: #f08090;
  border-radius: 50%;
}

.whiskers {
  position: absolute;
  top: 12px;
}

.left-whiskers { left: -8px; }
.right-whiskers { right: -8px; }

.whiskers span {
  display: block;
  width: 10px;
  height: 1px;
  background: #888;
  margin: 2px 0;
}

.left-whiskers span:nth-child(1) { transform: rotate(-15deg); }
.left-whiskers span:nth-child(2) { transform: rotate(0deg); }
.left-whiskers span:nth-child(3) { transform: rotate(15deg); }
.right-whiskers span:nth-child(1) { transform: rotate(15deg); }
.right-whiskers span:nth-child(2) { transform: rotate(0deg); }
.right-whiskers span:nth-child(3) { transform: rotate(-15deg); }

/* ===== Mouse peek animation ===== */

@keyframes peekOut {
  0%  { transform: translateX(-50%) translateY(0); }
  15% { transform: translateX(-50%) translateY(-32px); }
  28% { transform: translateX(-60%) translateY(-32px); }
  38% { transform: translateX(-60%) translateY(-32px); }
  48% { transform: translateX(-50%) translateY(-32px); }
  58% { transform: translateX(-40%) translateY(-32px); }
  68% { transform: translateX(-40%) translateY(-32px); }
  78% { transform: translateX(-50%) translateY(-32px); }
  92% { transform: translateX(-50%) translateY(0); }
  100%{ transform: translateX(-50%) translateY(0); }
}

.mouse.peeking {
  animation: peekOut 2.8s ease-in-out forwards;
}

@keyframes lookLeftRight {
  0%  { transform: translateX(0); }
  15% { transform: translateX(0); }
  28% { transform: translateX(-1px); }
  38% { transform: translateX(-1px); }
  48% { transform: translateX(0); }
  58% { transform: translateX(1px); }
  68% { transform: translateX(1px); }
  78% { transform: translateX(0); }
  100%{ transform: translateX(0); }
}

.mouse.peeking .left-eye,
.mouse.peeking .right-eye {
  animation: lookLeftRight 2.8s ease-in-out forwards;
}

/* ===== Simple peek (no looking around) ===== */

@keyframes peekOnly {
  0%   { transform: translateX(-50%) translateY(0); }
  30%  { transform: translateX(-50%) translateY(-32px); }
  70%  { transform: translateX(-50%) translateY(-32px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.mouse.peek-only {
  animation: peekOnly 1.2s ease-in-out forwards;
}

/* ===== Mouse retreat animation ===== */

@keyframes retreatIntoHole {
  0%   { transform: translateX(-50%) translateY(-32px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.mouse.retreating {
  animation: retreatIntoHole 0.4s ease-in forwards;
}

/* ===== Implode animation (second hole destruction) ===== */

.hole-container.imploding .mouse {
  display: none !important;
}

.hole-container.imploding .hole {
  animation: implodeHole 0.35s ease-in forwards !important;
}

.hole-container.imploding .rotating-text {
  animation: implodeText 0.35s ease-in forwards !important;
}

@keyframes implodeHole {
  0%   { transform: translateX(-50%) scale(1); opacity: 1; }
  80%  { transform: translateX(-50%) scale(0.08); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(0); opacity: 0; }
}

@keyframes implodeText {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

/* Exploding dots after implosion */
.explode-dot {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, #111 0%, #111 60%, transparent 100%);
  z-index: 15;
  pointer-events: none;
}

/* ===== Scurrying mouse ===== */

.scurry-mouse {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  animation: scurryBounce 0.12s ease-in-out infinite;
}

@keyframes scurryBounce {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -2px; }
}

.scurry-tail {
  margin-right: -2px;
  animation: wagTail 0.15s ease-in-out infinite alternate;
  transform-origin: right center;
}

@keyframes wagTail {
  from { transform: rotate(-15deg); }
  to { transform: rotate(15deg); }
}

.scurry-body {
  width: 14px;
  height: 11px;
  background: #c0c0c0;
  border-radius: 55% 45% 45% 55%;
  border: 1.5px solid #999;
  position: relative;
}

.scurry-head {
  position: absolute;
  right: -8px;
  top: -1px;
  width: 11px;
  height: 9px;
  background: #c8c8c8;
  border-radius: 40% 55% 55% 40%;
  border: 1.5px solid #999;
}

.scurry-ear {
  position: absolute;
  top: -5px;
  right: 1px;
  width: 7px;
  height: 7px;
  background: #b0b0b0;
  border-radius: 50%;
  border: 1px solid #888;
}

.scurry-ear::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 3px;
  height: 3px;
  background: #f0a0b0;
  border-radius: 50%;
}

.scurry-eye {
  position: absolute;
  top: 2px;
  right: 1.5px;
  width: 2.5px;
  height: 2.5px;
  background: #222;
  border-radius: 50%;
}

.scurry-cheese {
  position: absolute;
  right: -7px;
  top: 2px;
  width: 7px;
  height: 5px;
  background: #ffd700;
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
}

.scurry-cheese::before {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 1.5px;
  background: #e6b800;
  border-radius: 50%;
  top: 2px;
  left: 3px;
}

/* ===== Text trail ===== */

.trail-char {
  position: fixed;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #333;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  animation: fadeTrail 0.5s ease-out forwards;
}

@keyframes fadeTrail {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ===== Black expansion overlay ===== */

.black-expand {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 100;
  pointer-events: none;
}

/* ===== Phase 2: black screen with name ===== */

.phase2-nav {
  position: fixed;
  top: 40px;
  left: 60px;
  z-index: 200;
}

.lock-icon {
  position: fixed;
  top: 40px;
  right: 60px;
  z-index: 200;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.lock-icon:hover {
  opacity: 1;
}


.phase2-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.phase2-links {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  padding-left: 0;
  position: relative;
}

.phase2-links.open {
  max-height: 200px;
  overflow: visible;
}

.phase2-links a {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  color: #999;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.2s;
}

.phase2-links a:hover {
  color: #ffffff;
}

.phase2-links a.active-tab {
  color: #ffffff;
}

.phase2-about {
  position: absolute;
  left: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #bbb;
  line-height: 1.6;
  width: 36vw;
  margin-top: 2px;
}

.phase2-about.open {
  opacity: 1;
  pointer-events: auto;
}

.phase2-link-item {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.phase2-links.about-open .phase2-link-item {
  opacity: 0;
  pointer-events: none;
}


/* ===== Photo gallery ===== */

.photo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.photo-overlay.open {
  opacity: 1;
}

.photo-overlay.closing {
  opacity: 0;
}

.photo-stack {
  position: relative;
  width: 32vw;
  height: 55vh;
}

.photo-card {
  position: absolute;
  top: 0;
  left: 0;
  background: #1a1a1a;
  padding: 8px 8px 24px 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  cursor: grab;
  transition: transform 0.35s ease, opacity 0.35s ease;
  user-select: none;
}

.photo-card:active {
  cursor: grabbing;
}

.photo-card img {
  display: block;
  max-width: 32vw;
  max-height: 55vh;
  object-fit: contain;
  pointer-events: none;
}

.photo-arrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 36px;
  color: #999;
  cursor: pointer;
  user-select: none;
  padding: 0 80px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  height: 55vh;
  justify-content: center;
}

.photo-arrow:hover {
  color: #ffffff;
}

.phase2-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 59.8vw;
  max-height: 59.8vh;
  object-fit: contain;
  pointer-events: none;
  transition: left 1.8s ease, opacity 0.4s ease;
  cursor: pointer;
}

.phase2-video.shifted {
  left: 58%;
}

/* ===== Stats panel ===== */

.phase2-stats {
  position: absolute;
  left: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-top: 4px;
}

.phase2-stats.open {
  opacity: 1;
  pointer-events: auto;
}

.phase2-stats table {
  border-collapse: collapse;
}

.phase2-stats td {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #bbb;
  padding: 2px 0;
  vertical-align: top;
}

.phase2-stats td:first-child {
  color: #999;
  padding-right: 8px;
  white-space: nowrap;
}

.phase2-stats td:last-child {
  color: #bbb;
  white-space: nowrap;
}

.stats-bars {
  margin-top: 12px;
}

.stats-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.stats-bar-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  min-width: 120px;
}

.stats-bar-pips {
  display: flex;
  gap: 4px;
}

.stats-pip {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: #333;
  transition: background 0.3s ease;
}

.stats-pip.filled {
  background: #fff;
}
