/* Winter Wonder theme tokens and shared components.
   Source of every value: the client's poster (Winter Wonder 2026 50x70.psd).
   Sky and navy sampled from the poster, gold from its fairy lights, sign style from the
   "Atlıkarınca / Sahne / Workshop" boards, question card from the Hediye Küpü LED face. */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gece: #071a4d;
  --gece-2: #0c2a74;
  --kraliyet: #1a46a8;
  --gok: #3f78d0;
  --buz: #e4eefc;
  --buz-2: #c9daf3;
  --lacivert: #142f7d;
  --lacivert-yumusak: #3a5596;
  --altin: #f3bd52;
  --altin-acik: #fff0c2;
  --altin-koyu: #b47a22;
  --kar: #f8fbff;
  --hata: #b4232f;
  --tamam: #1d7a52;
  --golge-altin: 0 0 0 2px var(--altin-acik), 0 0 0 4px var(--altin-koyu), 0 10px 30px rgba(255, 196, 92, 0.28);
  --r-buyuk: 24px;
  --r-orta: 16px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: var(--lacivert);
  background: var(--gece);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.gizli {
  display: none !important;
}

.ekran-okuyucu {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Poster headline voice: Outfit black, uppercase, navy on light / snow on dark. */
.baslik {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
}

/* ---------- Festival sign (white enamel board with gold rim) ---------- */
.tabela {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6fe 100%);
  border-radius: var(--r-buyuk);
  box-shadow: var(--golge-altin);
  color: var(--lacivert);
}

/* ---------- Form fields (participant registration and panel login) ---------- */
.alan {
  display: block;
  margin-bottom: 14px;
}

.alan > span {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px 4px;
  color: var(--lacivert);
}

.alan input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid var(--buz-2);
  background: #fbfdff;
  font-size: 18px;
  font-weight: 600;
  color: var(--lacivert);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.alan input::placeholder {
  color: #9aaccd;
  font-weight: 500;
}

.alan input:focus {
  border-color: var(--altin);
  box-shadow: 0 0 0 4px rgba(243, 189, 82, 0.28);
}

.alan--hata input {
  border-color: var(--hata);
}

.alan-hata {
  display: block;
  margin: 6px 0 0 4px;
  color: var(--hata);
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Gold sign button ---------- */
.dugme {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3b2506;
  background: linear-gradient(180deg, #ffe7a6 0%, #f3bd52 48%, #d99a35 100%);
  box-shadow: 0 0 0 2px #fff5d6 inset, 0 0 0 3px var(--altin-koyu), 0 8px 22px rgba(243, 189, 82, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.dugme:active {
  transform: translateY(1px) scale(0.99);
}

.dugme:disabled {
  filter: grayscale(0.6) brightness(0.92);
  cursor: not-allowed;
  opacity: 0.7;
}

.dugme--ikincil {
  color: var(--lacivert);
  background: linear-gradient(180deg, #ffffff 0%, #e8f0fc 100%);
  box-shadow: 0 0 0 2px var(--altin-acik) inset, 0 0 0 3px var(--altin-koyu);
}

/* ---------- Gold light-bulb ring (shared by cube card and highlights) ---------- */
.ampul-cerceve {
  position: relative;
  isolation: isolate;
}

.ampul-cerceve::before,
.ampul-cerceve::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: calc(var(--r-buyuk) + 7px);
  padding: 8px;
  background: radial-gradient(circle, #fffaf0 0 1.6px, #ffd47a 2.6px, rgba(243, 189, 82, 0.55) 4px, transparent 5.2px) 0 0 / 15px 15px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}

.ampul-cerceve::after {
  background-position: 7.5px 7.5px;
  opacity: 0.35;
  animation: ampul-yanip-son 1.6s steps(48, jump-none) infinite alternate; /* 30 steps a second, like the snow */
}

@keyframes ampul-yanip-son {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 0.85;
  }
}

/* ---------- Hediye Küpü face (deep blue LED panel, starry glitter, snow cap) ---------- */
.kup-yuz {
  position: relative;
  border-radius: var(--r-buyuk);
  color: var(--kar);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px) 0 0 / 53px 47px,
    radial-gradient(circle at 70% 60%, rgba(190, 220, 255, 0.85) 0 1px, transparent 1.8px) 0 0 / 37px 41px,
    radial-gradient(circle at 40% 80%, rgba(255, 236, 190, 0.8) 0 0.8px, transparent 1.6px) 0 0 / 29px 31px,
    radial-gradient(120% 90% at 50% 0%, #3b7ff0 0%, #1a4fc0 38%, #0d2f86 72%, #081d57 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 200, 255, 0.35), inset 0 -30px 60px rgba(4, 14, 50, 0.55), 0 18px 40px rgba(2, 10, 40, 0.55);
}

.kar-sapka {
  /* wider than the card and draping down both sides: the bezel corners stay covered */
  position: absolute;
  left: -9px;
  width: calc(100% + 18px);
  top: -22px;
  height: 52px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(20, 50, 120, 0.35));
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Screenshot mode: freeze every animation so captures are deterministic. */
.dondur *,
.dondur *::before,
.dondur *::after {
  animation-play-state: paused !important;
  transition: none !important;
}
