/* ==========================================================================
   Sana Bir Çiçek Çizdim — Vera için ayrı sayfa
   Ana sitenin tasarım dili: gece mavisi / kor pembesi / altın
   ========================================================================== */

:root {
  --void: #04050c;
  --deep: #0d0824;
  --nebula: #4a1d5c;
  --rose: #8c2f52;
  --star: #f6f0ff;
  --gold: #f0c489;
  --ember: #ff5d7e;

  --star-dim: rgba(246, 240, 255, 0.58);
  --star-faint: rgba(246, 240, 255, 0.3);
  --hairline: rgba(246, 240, 255, 0.16);

  --font-display: 'Bodoni Moda', 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, var(--deep) 0%, rgba(7, 5, 18, 0.9) 45%),
    var(--void);
  color: var(--star);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ember);
  color: var(--void);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#stage.is-dragging {
  cursor: grabbing;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 90% at 50% 42%, transparent 55%, rgba(4, 5, 12, 0.6) 100%);
}

/* ---- Arayüz -------------------------------------------------------------- */

.ui {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
  pointer-events: none;
}

.ui-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--star-dim);
}

.ui-bottom {
  text-align: center;
}

.ui-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1.1;
  min-height: 1.2em;
}
.ui-title em {
  font-style: italic;
  color: var(--gold);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--gold);
  animation: caret-blink 0.9s step-end infinite;
}

.caret.is-done {
  display: none;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.ui-hint {
  margin: 0.9rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--star-faint);
  opacity: 0;
  transition: opacity 1.2s ease 0.3s;
}

.ui-hint.is-visible {
  opacity: 1;
}

.ui-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  pointer-events: auto;
}

.ui-actions button,
.ui-actions a {
  padding: 0.62rem 1.4rem;
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--star-dim);
  transition: color 0.3s, border-color 0.3s;
}

.ui-actions button:hover,
.ui-actions a:hover {
  color: var(--gold);
  border-color: rgba(240, 196, 137, 0.5);
}

.ui-sign {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) * 0.72);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--star-faint);
}

/* ---- WebGL yoksa --------------------------------------------------------- */

#fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--star-dim);
}

#fallback[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
}
