:root {
  --bg: #0c0b10;
  --surface: #16141d;
  --surface-inset: #100f15;
  --purple: #a894c0;
  --purple-dim: #8878a4;
  --purple-soft: #d4c8e8;
  --text: #ebe6f4;
  --muted: #9a94aa;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(22, 20, 28, 0.96);
  --font-display: "Syne", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --inset-shadow:
    inset 0 2px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --matte-elev: 0 8px 28px rgba(0, 0, 0, 0.34);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

#graph-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}

#graph-canvas.is-grabbing { cursor: grabbing; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(8, 7, 12, 0.55) 100%);
}

.site-logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  padding: 0.85rem 1.1rem;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.hud {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.hud__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-dim);
}

.intro-block {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  visibility: hidden;
  width: min(280px, calc(100vw - 2.5rem));
  padding: 1.2rem 1.25rem 1.3rem;
  background: linear-gradient(165deg, #181620 0%, #110f16 55%, #15131c 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--inset-shadow), var(--matte-elev);
  cursor: grab;
  user-select: none;
  text-align: center;
}

.intro-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.35);
}

.intro-block:active { cursor: grabbing; }

.intro-block__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.intro-block__line {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--muted);
}

.intro-block__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.intro-block__btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  padding: 0.58rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #1c1a26 0%, #13111a 100%);
  box-shadow: var(--inset-shadow);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.intro-block__btn--ghost {
  display: inline-block !important;
  background: transparent;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.35);
  color: var(--muted);
}

#check-ticket-btn.is-visible {
  display: inline-block !important;
}

.intro-block__btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1e1b28 0%, #14121a 100%);
}

@media (max-width: 640px) {
  .intro-block { width: min(240px, calc(100vw - 1.5rem)); padding: 1rem; }
  .hud { padding: 0.85rem 1rem; }
}
