:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06070d;
  color: #eef4ff;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.2), rgba(6, 7, 13, 0.96)),
    radial-gradient(circle at 70% 18%, rgba(62, 220, 190, 0.18), transparent 38%),
    #06070d;
}

.hidden {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aab8cc;
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45f5a6;
  box-shadow: 0 0 18px #45f5a6;
}

.hero {
  max-width: 560px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 14vw, 72px);
  line-height: 0.94;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: #b9c4d6;
  font-size: 17px;
  line-height: 1.5;
}

.panel {
  display: grid;
  gap: 12px;
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: #58e5b2;
  color: #06100d;
  font-size: 17px;
  font-weight: 750;
}

button.secondary {
  background: #1a2233;
  color: #eff6ff;
  border: 1px solid #334055;
}

#support {
  min-height: 22px;
  font-size: 13px;
  color: #8ea0b8;
}

#preview-canvas {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 110px);
  align-self: center;
  border: 1px solid #263349;
  border-radius: 8px;
  background: #070a11;
}

.mobile-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ar-ui {
  position: fixed;
  inset: auto 12px max(14px, env(safe-area-inset-bottom)) 12px;
  z-index: 20;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.ar-ui.hidden {
  display: none;
}

.ar-hint {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(6, 9, 16, 0.82);
  border: 1px solid rgba(88, 229, 178, 0.45);
  color: #edf7ff;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

.ar-controls {
  display: grid;
  grid-template-columns: 1fr 58px 58px 82px;
  gap: 8px;
  pointer-events: auto;
}

.ar-controls button {
  min-height: 48px;
  background: rgba(18, 26, 40, 0.9);
  color: #edf7ff;
  border: 1px solid rgba(149, 168, 194, 0.4);
  backdrop-filter: blur(10px);
}
