:root {
  --bg: #111827;
  --text: #f3f4f6;
  --neon: #06d6a0;
  --muted: #9ca3af;
  --card: #1f2937;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, #1f2937 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(#ffffff 0.6px, transparent 0.6px);
  background-size: 2px 2px;
}

.app-shell {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 28px 16px 38px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
}

.label {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.event-name {
  margin: 8px 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  text-shadow: 0 0 14px rgba(6, 214, 160, 0.38);
}

.event-time {
  margin: 0;
  color: #d1d5db;
}

.countdown-card,
.compass-card {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(6, 214, 160, 0.08), 0 0 26px rgba(6, 214, 160, 0.16);
}

.countdown {
  margin: 10px 0 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(6, 214, 160, 0.5);
}

.compass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arrow-hit-area {
  width: min(72vw, 310px);
  aspect-ratio: 1;
  margin: 12px 0;
  border-radius: 999px;
  border: 1px solid rgba(6, 214, 160, 0.2);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.13), transparent 70%);
  cursor: pointer;
  user-select: none;
}

.arrow {
  font-size: min(34vw, 148px);
  color: var(--neon);
  transform: rotate(0deg);
  transition: transform 120ms linear;
  text-shadow: 0 0 12px rgba(6, 214, 160, 0.85), 0 0 28px rgba(6, 214, 160, 0.7);
}

.distance {
  margin: 6px 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.2rem;
}

.hint {
  margin: 0;
  color: #d1d5db;
  font-size: 0.9rem;
}

.footer-note {
  margin: 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.82rem;
}

.btn {
  border: 1px solid transparent;
  background: var(--neon);
  color: #042f2e;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(6, 214, 160, 0.45);
}

.hidden {
  display: none !important;
}

.admin-trigger {
  position: fixed;
  bottom: 10px;
  right: 8px;
  width: 24px;
  height: 24px;
  opacity: 0.02;
  border: 0;
  background: #ffffff;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}

.modal {
  width: min(94vw, 460px);
  background: #0f172a;
  border: 1px solid rgba(6, 214, 160, 0.45);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 30px rgba(6, 214, 160, 0.22);
}

.modal h2 {
  margin: 0 0 8px;
  font-family: Orbitron, Inter, sans-serif;
}

.modal-note {
  margin: 4px 0 12px;
  color: #cbd5e1;
}

.label-stack {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.input {
  width: 100%;
  border: 1px solid #334155;
  background: #020617;
  color: #f8fafc;
  border-radius: 9px;
  padding: 10px;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: #bfdbfe;
  font-size: 0.88rem;
}

.status.error {
  color: var(--danger);
}

@media (min-width: 768px) {
  .event-name {
    font-size: 2rem;
  }

  .countdown {
    font-size: 2.4rem;
  }
}
