:root { --pad: clamp(16px, 3vw, 32px); }

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
}

#webgl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  background: radial-gradient(1200px 800px at 30% 20%, rgba(255,255,255,.95), rgba(255,255,255,.65));
}

.loader {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 14px;
}

.topbar {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.brand { font-weight: 800; letter-spacing: .2px; }

.nav a {
  text-decoration: none;
  color: inherit;
  margin-left: 14px;
  opacity: .85;
}
.nav a:hover { opacity: 1; }

.content { position: relative; z-index: 1; }

.panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--pad) * 2) var(--pad);
}

.panel-inner {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 12px 30px rgba(2,6,23,0.10);
}

h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 10px; }
h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 10px; }
p { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.9);
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  padding: 14px;
  background: rgba(255,255,255,0.8);
}

.form { display: grid; gap: 10px; margin-top: 10px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.18);
  background: rgba(255,255,255,0.9);
  outline: none;
}
.status { margin-top: 6px; font-weight: 800; }

@media (max-width: 720px) {
  .nav { display: none; }
  .loader { top: 70px; }
}
