/* Window Edition additions on top of the original styles.css */
html, body { height: 100%; margin: 0; background: #0a0d0e; }
.stage { height: 100vh; height: 100dvh; }
#glitch-canvas { cursor: default; }

.dive-toggle {
  margin-left: 10px; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; cursor: pointer; opacity: .82;
}
.dive-toggle:hover, .dive-toggle:focus-visible { color: #dfff29; opacity: 1; outline: none; }

/* UI fades away while diving so only the window remains */
.topbar, .status, .coordinates, .interaction-note, .world-dots, .world-arrow, .memory-link {
  transition: opacity .9s ease, filter .9s ease;
}
.stage.diving .topbar, .stage.diving .status, .stage.diving .coordinates,
.stage.diving .interaction-note, .stage.diving .world-dots,
.stage.diving .world-arrow, .stage.diving .memory-link {
  opacity: 0; pointer-events: none; filter: blur(6px);
}
.stage.diving .surface-noise { opacity: .1; }
.dive-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 9px; letter-spacing: .2em; opacity: 0; pointer-events: none; transition: opacity .6s;
}
.stage.diving .dive-hint { opacity: .38; animation: hint-out 1s 3s forwards; }
@keyframes hint-out { to { opacity: 0; } }

.coordinates #tracking-state.live { color: #dfff29; }

/* Entry choice replaces the auto-start of the original */
.enter { display: grid; gap: 10px; justify-items: center; margin-top: 4px; }
.enter[hidden] { display: none; }
.enter button {
  display: grid; gap: 5px; min-width: min(340px, 80vw); padding: 14px 20px;
  border: 1px solid #13191a; background: rgba(255,255,255,.35); color: #13191a;
  font: 700 12px/1 "Courier New", monospace; letter-spacing: .14em; cursor: pointer;
}
.enter button small { font: 400 10px/1.2 sans-serif; letter-spacing: .08em; opacity: .7; }
.enter button:hover, .enter button:focus-visible { background: #13191a; color: #e8ff1f; outline: none; }
.enter p { margin: 4px 0 0; font-size: 9px; letter-spacing: .06em; opacity: .55; }
.loading .loading-track { display: none; }

@media (max-width: 760px) {
  .dive-toggle { margin-left: 0; }
  .stage { min-height: 0; }
}
