:root {
  --bg: #111113;
  --fg: #f4f3ef;
  --fg-dim: rgba(244, 243, 239, 0.55);
  --accent: #d7fd50;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  /* mobil: aşağı çekince yenileme / lastik kayması olmasın */
  overscroll-behavior: none;
  position: fixed;
  width: 100%;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  /* mobil: dokunma hareketini tarayıcıya kaptırma — sürükleme + momentum çalışsın */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

#scene.is-hovering {
  cursor: pointer;
}

/* ---------- header ---------- */
.ui-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: difference;
}

.logo {
  pointer-events: auto;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
}

.logo span {
  font-size: 11px;
  vertical-align: super;
}

.nav {
  display: flex;
  gap: 28px;
  pointer-events: auto;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.nav a:hover {
  opacity: 1;
}

/* ---------- footer ---------- */
.ui-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 36px;
  z-index: 10;
  pointer-events: none;
}

.hint {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.counter {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

#counter-current {
  color: var(--fg);
}

/* ---------- cursor label ---------- */
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
  will-change: transform;
}

.cursor-label__offset {
  transform: translate(-50%, calc(-100% - 18px));
}

.cursor-label__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--accent);
  color: #111;
  border-radius: 4px;
  transform: scale(0);
  transform-origin: bottom center;
  opacity: 0;
}

.cursor-label__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cursor-label__meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  white-space: nowrap;
}

/* ---------- detail page ---------- */
.detail {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  pointer-events: none;
}

.detail.is-open {
  visibility: visible;
  pointer-events: auto;
}

.detail__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateY(100%);
}

.detail__inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 110px clamp(24px, 6vw, 90px) 80px;
}

.detail__back {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 5;
  background: none;
  border: 1px solid rgba(244, 243, 239, 0.25);
  border-radius: 999px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s ease, color 0.25s ease;
  opacity: 0;
}

.detail__back:hover {
  background: var(--fg);
  color: #111;
}

.detail__hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.detail__img-wrap {
  width: min(1000px, 100%);
  max-height: 82vh;
  overflow: hidden;
  border-radius: 12px;
}

.detail__img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}

.detail__content {
  max-width: 1000px;
  margin: 56px auto 0;
}

.detail__meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.detail__title {
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 28px;
  overflow: hidden;
}

.detail__desc {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-dim);
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader__logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.loader__progress {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   🎂 DOĞUM GÜNÜ TEMASI
============================================================ */
body.birthday {
  --bg: #151016;
  --accent: #f1c27d; /* sıcak altın */
}

body.birthday #scene {
  background: radial-gradient(120% 120% at 50% 0%, #241826 0%, #151016 60%);
}

/* konfeti katmanı */
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 45;
}

/* logo (teyzenin adı) */
.birthday .logo {
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* karşılama ekranı */
.welcome {
  text-align: center;
  gap: 14px !important;
  padding: 0 24px;
}

.welcome__hi {
  font-size: clamp(13px, 3.5vw, 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.welcome__name {
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-size: clamp(56px, 16vw, 120px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, #f7e6c4, #f1c27d 45%, #f4a7b9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome__sub {
  font-size: clamp(13px, 3.5vw, 16px);
  color: var(--fg-dim);
}

.welcome .loader__progress {
  margin-top: 10px;
}

/* detay sayfası: anı notu (sahte İngilizce metinleri gizle) */
.birthday .detail__meta {
  display: none;
}

.birthday .detail__desc {
  display: none;
}

.birthday .detail__content {
  text-align: center;
}

.birthday .detail__title {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
}

/* ============================================================
   ✎ PAYLAŞIMLI ANI NOTU
============================================================ */
.birthday .detail__title {
  display: none; /* notu .note-text gösteriyor, statik başlığı gizle */
}

.note-area {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.note-text {
  font-size: clamp(18px, 3.4vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
}

.note-edit-btn {
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: none;
  border: 1px solid rgba(241, 194, 125, 0.45);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.note-edit-btn:hover {
  background: var(--accent);
  color: #1a1410;
}

.note-editor {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(241, 194, 125, 0.4);
  border-radius: 12px;
  outline: none;
}

.note-input:focus {
  border-color: var(--accent);
}

.note-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.note-save,
.note-cancel {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

.note-save {
  color: #1a1410;
  background: var(--accent);
}

.note-save:disabled {
  opacity: 0.6;
  cursor: default;
}

.note-cancel {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}
