/* Participant phone screens. Layout target: 360-430 px wide phones, works up to desktop. */

/* ---------- Stage: the festival meadow at night ---------- */
.sahne {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 18, 60, 0.82) 0%, rgba(8, 30, 90, 0.35) 34%, rgba(8, 30, 90, 0.1) 55%, rgba(6, 20, 64, 0.55) 100%),
    url("../assets/bg-genis.webp?v=4") center 35% / cover no-repeat,
    var(--gece);
}

.sahne::after {
  /* the poster's white halo behind the logo */
  content: "";
  position: absolute;
  left: 50%;
  top: 2vh;
  width: 120vw;
  max-width: 640px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.34), rgba(160, 200, 255, 0.12) 55%, transparent 75%);
}

#kar {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Nothing to scroll (Yusuf, 16 Nov): a screen taller than the visible area is scaled down as a
   whole until it fits. katilim.js measures and sets --sigdir (1 = natural size); the heights and
   widths below are divided by it so that, scaled, the screen still fills the phone. Why it
   matters beyond looks: a page that scrolls can be pulled down, the browser takes that as
   "reload", and the contestant lands on "Bağlanıyor" in the middle of a question. */
html,
body {
  overscroll-behavior: none;
}

html.sigdi,
html.sigdi body {
  overflow: hidden;
}

.ekran {
  zoom: var(--sigdir, 1);
  min-height: calc(100svh / var(--sigdir, 1));
  max-width: calc(480px / var(--sigdir, 1));
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Header with the glitter logo ---------- */
.ust {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.logo {
  width: min(64vw, 270px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(3, 12, 45, 0.55));
}

.ust--kucuk .logo {
  width: min(38vw, 150px);
}

.ust-alt {
  margin-top: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 15px;
  color: var(--altin-acik);
  text-shadow: 0 1px 8px rgba(243, 189, 82, 0.6);
}

/* ---------- Registration ---------- */
.kayit {
  padding: 26px 20px 22px;
}

.kayit .baslik {
  font-size: 25px;
  text-align: center;
}

.kayit-not {
  margin: 8px 0 18px;
  text-align: center;
  color: var(--lacivert-yumusak);
  font-size: 16.5px;
}

.kayit-not b {
  color: var(--lacivert);
  font-variant-numeric: tabular-nums;
}

.yan-yana {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dogum {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
}

.dogum input {
  text-align: center;
  padding: 0 6px;
}

.onaylar {
  margin: 18px 0 20px;
  display: grid;
  gap: 10px;
}

.onay {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 14px;
  background: var(--buz);
  font-size: 15.5px;
  line-height: 1.38;
  cursor: pointer;
}

.onay input {
  appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 8px;
  border: 2px solid var(--lacivert-yumusak);
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.onay input::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #3b2506;
  border-bottom: 3px solid #3b2506;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.onay input:checked {
  background: linear-gradient(180deg, #ffe7a6, #f3bd52);
  border-color: var(--altin-koyu);
}

.onay input:checked::after {
  opacity: 1;
}

.onay a,
.metin-ac {
  color: var(--kraliyet);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.kayit .dugme {
  width: 100%;
}

/* ---------- Hanging bauble timer ---------- */
.top-sayac {
  position: relative;
  width: var(--top-w, 96px);
  aspect-ratio: 344 / 869;
  flex: none;
}

.top-sayac img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(3, 12, 45, 0.5));
}

.top-sayac .top-ic {
  /* measured on top-beyaz.webp (6 Nov): the ball is right of the image centre because the
     baked gold glow widens the image on the left */
  position: absolute;
  left: 55.2%;
  top: 79.9%;
  width: 79.1%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.top-sayac svg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  transform: rotate(-90deg);
  overflow: visible;
}

.top-sayac .halka-iz {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 5;
}

.top-sayac .halka {
  fill: none;
  stroke: var(--altin);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 210, 120, 0.9));
  transition: stroke-dashoffset 0.2s steps(6); /* the ring is set every 200 ms: six steps, 30 a second */
}

.top-sayac .sayi {
  position: relative;
  font-weight: 900;
  color: var(--lacivert);
  font-size: calc(var(--top-w, 96px) * 0.27);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.top-sayac--az .halka {
  stroke: #ff8a5c;
}

.top-sayac--az .sayi {
  color: #a3261d;
}

/* ---------- Question screen ---------- */
.soru-ust {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
  /* the bauble hangs from the top edge of the screen */
  margin-top: calc(-1 * max(14px, env(safe-area-inset-top)));
}

.soru-ust .top-sayac {
  --top-w: 96px;
  margin-top: -108px;
}

.soru-bilgi {
  padding-top: 14px;
}

.soru-bilgi .ust-alt {
  margin: 0 0 8px;
  text-align: left;
}

.soru-no {
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--kar);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(3, 12, 45, 0.6);
}

.soru-no small {
  font-size: 18px;
  opacity: 0.75;
}

/* light string (SVG built in gorunum.js) */
.isik-zinciri {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin-top: 4px;
  overflow: visible;
}

.ampul-cam {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.6;
}

.ampul-isik {
  opacity: 0;
}

.ampul--sonuk .ampul-cam {
  fill: rgba(170, 195, 235, 0.22);
  stroke: rgba(210, 225, 255, 0.45);
}

.ampul--yandi .ampul-cam {
  fill: #ffcf6b;
}
.ampul--yandi .ampul-isik {
  fill: rgba(255, 196, 90, 0.55);
  opacity: 1;
  filter: blur(4px);
}

.ampul--dogru .ampul-cam {
  fill: #3ee08a;
}
.ampul--dogru .ampul-isik {
  fill: rgba(60, 230, 140, 0.6);
  opacity: 1;
  filter: blur(4px);
}

.ampul--yanlis .ampul-cam {
  fill: #ff5a5a;
}
.ampul--yanlis .ampul-isik {
  fill: rgba(255, 80, 80, 0.6);
  opacity: 1;
  filter: blur(4px);
}

.ampul--simdi .ampul-cam {
  fill: #f4fbff;
}
.ampul--simdi .ampul-isik {
  fill: rgba(190, 228, 255, 0.85);
  opacity: 1;
  filter: blur(5px);
  animation: ampul-nabiz 1.1s steps(33, jump-none) infinite alternate; /* 30 steps a second, like the snow */
}

@keyframes ampul-nabiz {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

.soru-kart {
  margin-top: 10px;
  padding: 34px 14px 26px;
  min-height: 150px;
  display: grid;
  place-items: center;
  /* metallic gold bezel around the LED face, then the bulbs, then the glass */
  border: 3px solid transparent;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0 22%, rgba(255, 255, 255, 0) 22.5%) padding-box,
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px) 0 0 / 53px 47px padding-box,
    radial-gradient(circle at 70% 60%, rgba(190, 220, 255, 0.85) 0 1px, transparent 1.8px) 0 0 / 37px 41px padding-box,
    radial-gradient(120% 90% at 50% 0%, #3b7ff0 0%, #1a4fc0 38%, #0d2f86 72%, #081d57 100%) padding-box,
    linear-gradient(135deg, #fff3c4 0%, #d9a441 22%, #fbe7a8 45%, #b7801f 68%, #f6d27a 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, 0.35), inset 0 -34px 60px rgba(4, 14, 50, 0.55), 0 18px 40px rgba(2, 10, 40, 0.55);
}

.soru-metin {
  margin: 0;
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: clamp(21px, 6.3vw, 26px);
  line-height: 1.3;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(2, 8, 35, 0.6);
}

.siklar {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  /* options share the remaining height: no empty band under them on tall phones */
  flex: 1 1 auto;
  grid-auto-rows: minmax(64px, 1fr);
  max-height: 520px;
}

.sik {
  appearance: none;
  cursor: pointer;
  position: relative;
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 10px 18px 10px 12px;
  border-radius: 20px;
  /* enamel sign inside a metallic gold frame */
  border: 3px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 48%) padding-box,
    radial-gradient(130% 160% at 0% 0%, #ffffff 0%, #f2f6ff 55%, #dfe8f8 100%) padding-box,
    linear-gradient(135deg, #fff3c4 0%, #d9a441 24%, #fbe7a8 48%, #b7801f 72%, #f6d27a 100%) border-box;
  box-shadow: inset 0 -3px 8px rgba(20, 47, 125, 0.1), 0 8px 18px rgba(3, 12, 45, 0.35);
  color: var(--lacivert);
  font-weight: 800;
  font-size: clamp(17px, 4.8vw, 19px);
  line-height: 1.22;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.25s ease;
}

.sik:active:not(:disabled) {
  transform: scale(0.985);
}

/* letter badge: a glass Christmas bauble. Depth comes from five light layers: specular
   highlight, soft secondary glint, bounce light from below, a dark rim (core shadow) and a
   cast shadow on the enamel sign. Cap and loop are drawn with ::before / ::after. */
.sik .harf {
  --cam-1: #a9c8ff;
  --cam-2: #3d74e0;
  --cam-3: #173f9e;
  --cam-4: #071a52;
  position: relative;
  width: 46px;
  height: 46px;
  margin-top: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 0 6px rgba(0, 0, 0, 0.25);
  background:
    radial-gradient(ellipse 34% 22% at 36% 24%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 75%),
    radial-gradient(circle at 64% 30%, rgba(255, 255, 255, 0.35) 0 4%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(ellipse 60% 34% at 50% 92%, rgba(170, 210, 255, 0.55) 0%, rgba(170, 210, 255, 0) 70%),
    radial-gradient(circle at 40% 34%, var(--cam-1) 0%, var(--cam-2) 26%, var(--cam-3) 58%, var(--cam-4) 100%);
  box-shadow:
    inset -6px -8px 12px rgba(0, 0, 0, 0.42),
    inset 3px 3px 8px rgba(255, 255, 255, 0.22),
    0 7px 9px -3px rgba(3, 12, 45, 0.55),
    0 2px 2px rgba(3, 12, 45, 0.25);
}

.sik .harf::before {
  /* gold cap with ridges */
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 14px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 3px 3px 2px 2px;
  background:
    repeating-linear-gradient(90deg, rgba(90, 60, 10, 0.45) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #7a561a, #f7dc8f 40%, #fff3c4 50%, #b88a2c 75%, #6b4c16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sik .harf::after {
  /* hanging loop */
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.6px solid #d9b25a;
}

.sik:disabled {
  cursor: default;
}

/* chosen, waiting for the reveal */
.sik.secili {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 48%) padding-box,
    radial-gradient(130% 160% at 0% 0%, #fffaf0 0%, #ffeec4 60%, #ffe0a0 100%) padding-box,
    linear-gradient(135deg, #fff3c4 0%, #f3bd52 30%, #fff1c2 50%, #d99a35 75%, #ffe7a6 100%) border-box;
  box-shadow: 0 0 0 2px rgba(255, 220, 140, 0.6), 0 0 28px 6px rgba(255, 200, 100, 0.6);
}

.sik.secili .harf {
  --cam-1: #fff6cf;
  --cam-2: #f6c75c;
  --cam-3: #c88a2c;
  --cam-4: #6e4708;
  color: #3b2506;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* locked, not chosen: solid frosted boards (the meadow must not show through) */
.siklar.kilitli .sik:not(.secili):not(.dogru):not(.yanlis),
.sik.pasif {
  filter: saturate(0.55) brightness(0.93);
  box-shadow: 0 4px 10px rgba(3, 12, 45, 0.25);
}

/* reveal: right answer, unmistakably green */
.sik.dogru {
  color: #0b4d2c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 48%) padding-box,
    radial-gradient(130% 160% at 0% 0%, #f2fff7 0%, #c9f5dc 60%, #a6ecc4 100%) padding-box,
    linear-gradient(135deg, #b8ffd6 0%, #1fae63 35%, #8af0b8 55%, #0f7a43 80%, #5fe39a 100%) border-box;
  box-shadow: 0 0 0 2px rgba(80, 230, 150, 0.45), 0 0 30px 8px rgba(40, 210, 120, 0.55);
}

.sik.dogru .harf {
  --cam-1: #c9ffe0;
  --cam-2: #3fd98a;
  --cam-3: #158a4c;
  --cam-4: #053d20;
  font-size: 22px;
}

/* reveal: my wrong answer, unmistakably red */
.sik.yanlis {
  color: #7a1414;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 48%) padding-box,
    radial-gradient(130% 160% at 0% 0%, #fff4f4 0%, #ffd4d4 60%, #ffb8b8 100%) padding-box,
    linear-gradient(135deg, #ffc9c9 0%, #d93636 35%, #ff9a9a 55%, #9e1c1c 80%, #ff7070 100%) border-box;
  box-shadow: 0 0 0 2px rgba(255, 90, 90, 0.4), 0 0 24px 6px rgba(230, 50, 50, 0.45);
}

.sik.yanlis .harf {
  --cam-1: #ffd0d0;
  --cam-2: #f05454;
  --cam-3: #b51f1f;
  --cam-4: #4e0606;
  font-size: 20px;
}

.etiket-benim {
  position: absolute;
  right: 12px;
  top: -11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lacivert);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sik.dogru::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -18px;
  width: 54px;
  height: 58px;
  background: url("../assets/parilti.webp") center / contain no-repeat;
  animation: parilti 1.4s steps(42, jump-none) infinite alternate; /* 30 steps a second */
}

@keyframes parilti {
  from {
    transform: scale(0.8) rotate(-8deg);
    opacity: 0.7;
  }
  to {
    transform: scale(1.1) rotate(6deg);
    opacity: 1;
  }
}

.durum-serit {
  min-height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--kar);
  background: rgba(7, 26, 77, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(190, 215, 255, 0.28);
}

.durum-serit b {
  color: var(--altin-acik);
  font-variant-numeric: tabular-nums;
}

.durum-serit--altin {
  color: #3b2506;
  background: linear-gradient(180deg, #ffe7a6, #f3bd52);
  box-shadow: 0 0 0 2px #fff5d6 inset, 0 8px 22px rgba(243, 189, 82, 0.45);
  backdrop-filter: none;
}

.durum-serit--altin b {
  color: #3b2506;
}

.durum-serit--dogru {
  color: #fff;
  font-size: 19px;
  background: linear-gradient(180deg, #34d27f, #128a4b);
  box-shadow: 0 0 0 2px rgba(190, 255, 220, 0.6) inset, 0 8px 22px rgba(20, 160, 90, 0.45);
  backdrop-filter: none;
}

.durum-serit--yanlis {
  color: #fff;
  font-size: 18px;
  background: linear-gradient(180deg, #ef4b4b, #a81d1d);
  box-shadow: 0 0 0 2px rgba(255, 200, 200, 0.55) inset, 0 8px 22px rgba(190, 30, 30, 0.45);
  backdrop-filter: none;
}

.durum-serit--dogru b,
.durum-serit--yanlis b {
  color: #fff;
  font-size: 1.15em;
}

.durum-serit .isaret {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

/* ---------- Waiting / finish ---------- */
.merkez {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.merkez .ust .logo {
  width: min(66vw, 280px);
}

.merkez .baslik {
  color: var(--kar);
  font-size: 30px;
  text-shadow: 0 3px 16px rgba(3, 12, 45, 0.7);
}

/* scrim behind light copy: the meadow behind is busy (trees, lights) */
.merkez p {
  margin: 0;
  color: #eef4ff;
  font-size: 17px;
  font-weight: 500;
  max-width: 34ch;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(6, 22, 70, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(3, 12, 45, 0.7);
}

.karakter {
  width: min(48vw, 200px);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(3, 12, 45, 0.5));
}

.bekleme-sayac {
  --top-w: 132px;
  margin-top: calc(-1 * max(14px, env(safe-area-inset-top)) - 196px);
}

.bekleme-sayac .sayi {
  font-size: 30px;
}

.kurallar-ozet {
  width: 100%;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.kurallar-ozet div {
  display: grid;
  gap: 2px;
}

.kurallar-ozet b {
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: var(--lacivert);
}

/* same label voice as the result card: short, one line, uppercase, tracked */
.kurallar-ozet span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lacivert-yumusak);
  line-height: 1.2;
  white-space: nowrap;
}

.sonuc-kart {
  width: 100%;
  padding: 22px 20px;
  display: grid;
  gap: 4px;
}

.sonuc-kart .buyuk {
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  color: var(--lacivert);
  font-variant-numeric: tabular-nums;
}

.sonuc-kart .buyuk small {
  font-size: 22px;
  color: var(--lacivert-yumusak);
}

.sonuc-kart .etiket {
  font-size: 15px;
  font-weight: 700;
  color: var(--lacivert-yumusak);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sonuc-kart hr {
  border: 0;
  border-top: 2px dashed var(--buz-2);
  margin: 12px 0;
}

.kazanan .baslik {
  color: var(--altin-acik);
}

/* ---------- Text sheet (rules, KVKK, gift card terms) ---------- */
.perde {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(3, 12, 40, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.perde-icerik {
  width: 100%;
  max-width: 560px;
  max-height: 86svh;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--lacivert);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

.perde-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 2px solid var(--buz);
}

.perde-ust .baslik {
  font-size: 19px;
}

.perde-kapat {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--buz);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.perde-metin {
  overflow-y: auto;
  padding: 16px 20px 28px;
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-line;
}

.alt-logo {
  display: block;
  width: min(48vw, 190px);
  height: auto; /* without this the 111 px height attribute squeezed the logo */
  margin: 10px auto 0;
  opacity: 0.95;
}

.kayit-alt {
  margin: 14px 0 0;
  font-size: 15px;
}

.dugmeler-dikey {
  width: 100%;
  display: grid;
  gap: 12px;
}

.kayit-alt.itiraz {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 40, 80, 0.12);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- winners of the day (end screen) ---------- */
.kazananlar-kart {
  width: 100%;
  padding: 18px 16px 12px;
  text-align: left;
}

.kazananlar-kart .etiket,
.sonuc-kart .etiket--baslik {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lacivert);
  margin-bottom: 8px;
}

/* minimal list: the number is typography, rows are separated by hairlines (Yusuf, 6 Nov:
   no icons next to the ranks) */
.kazananlar-kart ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kazananlar-kart li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 6px;
}

.kazananlar-kart li + li {
  border-top: 1px solid var(--buz-2);
}

.kazananlar-kart li.ben {
  border-radius: 10px;
  background: rgba(243, 189, 82, 0.16);
}

.kazananlar-kart li.ben + li,
.kazananlar-kart li:has(+ li.ben) + li.ben {
  border-top-color: transparent;
}

.kz-sira {
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: var(--lacivert);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.kz-ad {
  font-weight: 800;
  font-size: 17px;
  color: var(--lacivert);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kz-ad small {
  font-weight: 700;
  color: var(--altin-koyu);
}

.kz-skor {
  font-weight: 600;
  font-size: 14px;
  color: var(--lacivert-yumusak);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* own result: one band of three values instead of three stacked blocks */
.sonuc-serit {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  text-align: center;
}

.sonuc-serit > div {
  display: grid;
  gap: 2px;
  padding: 2px 4px;
}

.sonuc-serit > div + div {
  border-left: 2px dashed var(--buz-2);
}

.sonuc-serit .buyuk {
  font-size: clamp(26px, 8vw, 34px);
}

.sonuc-serit .buyuk small {
  font-size: 0.5em;
  margin-left: 2px;
}

/* ---------- Trial mode strip (python -m yarisma deneme; never present on contest days) ---------- */
.deneme-serit {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: calc(env(safe-area-inset-top) + 5px) 10px 5px;
  background: rgba(4, 12, 40, 0.92);
  color: #dfe9ff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.deneme-serit button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: #ffd98a;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.deneme .ekran {
  padding-top: calc(max(14px, env(safe-area-inset-top)) + 26px);
}

/* ---------- Form screens (registration, "continue"): the longest ones ----------
   Tighter than the other screens, so that with the scale's floor (katilim.js) the whole form
   fits typical phones; on shorter ones and with the keyboard open it scrolls. What is typed is
   divided by the scale so it stays 17 px on screen: smaller type in a field makes iPhones zoom
   the page when the field is touched. */
html.form-ekrani .ekran {
  gap: 8px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

html.form-ekrani .logo {
  width: min(32vw, 150px);
}

html.form-ekrani .ust-alt {
  margin-top: 3px;
  font-size: 12.5px;
}

html.form-ekrani .kayit {
  padding: 13px 18px 10px;
}

html.form-ekrani .kayit .baslik {
  font-size: 23px;
}

html.form-ekrani .kayit-not {
  margin: 4px 0 10px;
  font-size: 15.5px;
}

html.form-ekrani .alan {
  margin-bottom: 9px;
}

html.form-ekrani .alan > span {
  margin-bottom: 4px;
}

html.form-ekrani .alan input {
  min-height: calc(37px / var(--sigdir, 1));
  font-size: calc(17px / var(--sigdir, 1));
}

html.form-ekrani .onaylar {
  margin: 10px 0 10px;
  gap: 6px;
}

html.form-ekrani .onay {
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.3;
}

html.form-ekrani .dugme {
  min-height: 52px;
}

html.form-ekrani .kayit-alt {
  margin-top: 9px;
  font-size: 14.5px;
}

html.form-ekrani .kayit-alt.itiraz {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13.5px;
}

html.form-ekrani .alt-logo {
  width: min(30vw, 120px);
  margin-top: 0;
}
