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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #15130F;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

#landing {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: #15130F;
}

#landing-content {
  text-align: center;
  max-width: 400px;
  padding: 20px;
}

.title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8d1c2;
  margin-bottom: 8px;
}

.subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #76664F;
  margin-bottom: 40px;
}

.status-block, .meta-block {
  margin-bottom: 32px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(118,102,79,0.15);
}

.status-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #76664F;
}

.status-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #B9B6AA;
}

.status-value.glitch {
  color: #B94332;
  animation: textGlitch 4s infinite;
}

@keyframes textGlitch {
  0%, 92%, 100% { opacity: 1; transform: none; }
  93% { opacity: 0.7; transform: translateX(2px); }
  94% { opacity: 1; transform: translateX(-1px); }
  95% { opacity: 0.8; transform: none; }
}

.entry-block {
  margin: 40px 0;
}

.entry-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #76664F;
  margin-bottom: 16px;
}

#enter-btn {
  background: transparent;
  border: 1px solid #76664F;
  color: #d8d1c2;
  padding: 12px 32px;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

#enter-btn:hover {
  border-color: #d8d1c2;
  color: #F5F0D0;
  box-shadow: 0 0 20px rgba(216,209,194,0.08);
}

#landing-footer {
  position: absolute;
  bottom: 24px;
}

#fade-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 1.5s ease;
}

#fade-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#scene-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#scene-container canvas {
  width: 100%; height: 100%;
}

#controls-help {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  text-align: center;
  background: rgba(21,19,15,0.85);
  padding: 30px 40px;
  border: 1px solid rgba(118,102,79,0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #B9B6AA;
  line-height: 2.2;
  transition: opacity 1s ease;
}

#door-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  text-align: center;
  pointer-events: none;
}

.door-cursor {
  font-size: 32px;
  color: #d8d1c2;
  opacity: 0.7;
  margin-bottom: 4px;
}

.door-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #76664F;
  text-transform: uppercase;
}

#map-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(21,19,15,0.92);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#map-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #76664F;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#map-canvas {
  border: 1px solid rgba(118,102,79,0.3);
  background: rgba(21,19,15,0.5);
}

#map-info {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #5A5A5A;
  margin-top: 12px;
  letter-spacing: 0.06em;
}

#mobile-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 45;
  pointer-events: none;
}

.joystick {
  position: absolute;
  bottom: 40px;
  left: 40px;
  pointer-events: all;
}

.joystick-base {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(118,102,79,0.15);
  border: 1px solid rgba(118,102,79,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.joystick-knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(185,182,170,0.2);
  border: 1px solid rgba(185,182,170,0.3);
  transition: transform 0.1s ease;
}

#tap-interact {
  position: absolute;
  bottom: 70px;
  right: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #76664F;
  letter-spacing: 0.08em;
  pointer-events: all;
  padding: 10px 16px;
  border: 1px solid rgba(118,102,79,0.3);
  display: none;
}