:root {
  --bg: #030408;
  --surface: #0a0d16;
  --border: rgba(244, 63, 94, 0.3);
  --poneglyph-red: #f43f5e;
  --poneglyph-glow: rgba(244, 63, 94, 0.6);
  --cyan: #00f0ff;
  --text: #f8fafc;
  --text-muted: #94a3b8;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

body.auth-pending #canvas-container,
body.auth-pending #hud-overlay {
  display: none !important;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: auto;
}

.title-badge {
  background: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--poneglyph-red);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.2);
}

.main-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  margin-top: 4px;
}

.status-panel {
  background: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.status-val-red {
  color: var(--poneglyph-red);
  font-weight: 700;
}

.status-val-cyan {
  color: var(--cyan);
  font-weight: 700;
}

.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}

.terminal-box {
  width: 520px;
  background: rgba(10, 13, 22, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.term-header {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--poneglyph-red);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 63, 94, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.term-body {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
  max-height: 150px;
  overflow-y: auto;
}

.controls-hint {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(10, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
}

.gate-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #030408;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-box {
  width: 90%;
  max-width: 440px;
  background: #0a0d16;
  border: 1px solid var(--poneglyph-red);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 0 50px rgba(244, 63, 94, 0.25);
}

.gate-icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.gate-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 8px;
}

.gate-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.google-btn {
  width: 100%;
  padding: 12px 18px;
  background: #fff;
  border: none;
  border-radius: 10px;
  color: #030408;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.error-msg {
  margin-top: 14px;
  color: #fca5a5;
  font-size: 12px;
}
