/* ELEVATE — Quest narratif — UI 2D hors VR */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: #0b0d12;
  color: #f4f4f4;
  overflow: hidden;
  height: 100vh;
  position: relative;
}

/* Hide 2D UI when scene is in VR */
.a-enter-vr-modal,
.a-enter-vr-button {
  display: none !important;
}

#ui-2d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffae00;
}

.subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: #ffae00;
  color: #0b0d12;
}

#ui-2d-main {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 50;
  padding: 24px;
  gap: 18px;
  pointer-events: none;
}

#ui-2d-main h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

#ui-2d-main p {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

#ui-2d-main p.small {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

#enter-vr-btn {
  pointer-events: auto;
  background: #ffae00;
  color: #0b0d12;
  border: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 18px 40px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,174,0,0.4);
  transition: transform 0.12s, box-shadow 0.12s;
}

#enter-vr-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,174,0,0.55);
}

#enter-vr-btn:active {
  transform: translateY(0);
}

#ui-2d-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.badge {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.badge code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(255,174,0,0.85);
}

/* Hide 2D UI once scene enters VR */
.a-fullscreen #ui-2d,
.a-fullscreen #ui-2d-main,
.a-fullscreen #ui-2d-footer {
  display: none;
}
