/* Canlı doğru/yanlış yarışması.

   İki ayrı görsel dünya var:
   1) Kurulum — sitenin normal açık teması (dosya yükleme, odayı açma).
   2) Sahne   — oda açılınca ekranı kaplayan KOYU katman. Aydınlık bir sınıfta
      projektör beyaz zemini yıkıyor; koyu zeminde kontrast arkadan da okunuyor.
   3) Telefon — öğrencinin elindeki ekran, açık tema, iki büyük tuş.

   Sahnedeki her ölçü clamp() ile yazıldı: aynı sayfa 1024'lük bir projektörde de
   4K bir ekranda da orantılı görünsün. */

.yr {
  --dogru: #0f8a52;
  --yanlis: #c8372c;
  --altin: #b7791f;
}

.yr-gizli { display: none !important }

/* ===================================================================
   1) KURULUM
   =================================================================== */

/* --- karşılama bandı --- */
.yr-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  align-items: center;
  gap: 1.5rem;
  margin: .25rem 0 1.75rem;
  padding: clamp(1.6rem, 3.5vw, 2.5rem) clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid hsl(38 55% 82%);
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(30rem 16rem at 10% -25%, hsl(38 90% 88% / .95) 0%, transparent 65%),
    radial-gradient(26rem 14rem at 92% 125%, hsl(14 80% 92% / .9) 0%, transparent 65%),
    linear-gradient(135deg, #fff 0%, hsl(40 45% 98%) 100%);
  box-shadow: var(--shadow-sm);
}
.yr-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(38 60% 45% / .07) 1px, transparent 1px),
    linear-gradient(90deg, hsl(38 60% 45% / .07) 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 0%, transparent 100%);
  pointer-events: none;
}
.yr-banner-ic { position: relative; max-width: 36rem }
.yr-etiket {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / .8);
  border: 1px solid hsl(38 50% 80%);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--altin);
}
.yr-banner h1 {
  margin: .7rem 0 0;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.yr-banner p { margin: .5rem 0 0; font-size: 1rem; color: var(--muted-foreground) }
.yr-adimlar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.yr-adimlar li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .8rem .32rem .35rem;
  border: 1px solid hsl(38 45% 84%);
  border-radius: 999px;
  background: hsl(0 0% 100% / .85);
  font-size: .8rem;
  font-weight: 600;
  color: #6b5526;
}
.yr-adimlar b {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--altin);
  color: #fff;
  font-size: .72rem;
}
.yr-banner-gorsel { position: relative; display: grid; place-items: center }
.yr-banner-gorsel svg { width: 100%; max-width: 11rem; height: auto }
.yr-ciz .s { fill: var(--altin) }
.yr-ciz .g2 { fill: var(--altin); opacity: .45 }
.yr-ciz .g1 { fill: var(--altin); opacity: .18 }
.yr-ciz .c {
  fill: none;
  stroke: var(--altin);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}

/* --- yükleme + hazır örnekler --- */
.yr-kurulum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.yr-birak {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 19rem;
  height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px dashed hsl(38 45% 78%);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, hsl(40 60% 99%) 0%, hsl(40 40% 97%) 100%);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.yr-birak:hover, .yr-birak.over {
  border-color: var(--altin);
  background: hsl(40 80% 96%);
}
.yr-birak.over { transform: scale(1.01) }
.yr-birak-ikon { font-size: 2.8rem; line-height: 1 }
.yr-birak > b { font-size: 1.15rem; letter-spacing: -.01em }
.yr-birak-not { max-width: 24rem; font-size: .85rem; line-height: 1.6; color: var(--muted-foreground) }
.yr-birak-dugme {
  margin-top: .6rem;
  padding: .55rem 1.1rem;
  border-radius: .55rem;
  background: var(--altin);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}
.yr-birak:hover .yr-birak-dugme { filter: brightness(1.07) }

.yr-sag { display: flex; flex-direction: column; gap: .75rem }
.yr-alt-baslik {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.yr-alt-baslik::before {
  content: "";
  width: 1.4rem;
  height: .2rem;
  border-radius: 999px;
  background: var(--altin);
}
.yr-alt-baslik::after { content: ""; flex: 1; height: 1px; background: var(--border) }

.yr-ornek-liste { display: grid; gap: .7rem }
.yr-ornek-kart {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s;
}
.yr-ornek-kart:hover { border-color: hsl(38 55% 70%); transform: translateY(-1px) }
.yr-ornek-ikon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .7rem;
  background: hsl(38 75% 94%);
  font-size: 1.15rem;
}
.yr-ornek-yazi { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35 }
.yr-ornek-yazi b { font-size: .92rem }
.yr-ornek-yazi > span { font-size: .78rem; color: var(--muted-foreground) }
.yr-ornek-islem { display: flex; gap: .35rem; flex: 0 0 auto }

.yr-bicim {
  margin-top: .3rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--card);
  overflow: hidden;
}
.yr-bicim > summary {
  padding: .8rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.yr-bicim > summary::-webkit-details-marker { display: none }
.yr-bicim > summary::before { content: "📐"; font-size: 1rem }
.yr-bicim > summary::after { content: "+"; margin-left: auto; font-size: 1.1rem; color: var(--muted-foreground) }
.yr-bicim[open] > summary::after { content: "−" }
.yr-bicim-ic { padding: 0 1rem 1rem; border-top: 1px solid var(--border) }
.yr-bicim-ic p { font-size: .85rem; line-height: 1.6 }
.yr-bicim-ic pre {
  margin: .7rem 0;
  padding: .9rem 1rem;
  border-radius: .7rem;
  background: #232a31;
  color: #e8eef3;
  font: 12.5px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow: auto;
}
.yr-bicim-ic code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace }
.yr-bicim-ic pre code { color: inherit }

/* --- dosya yüklendikten sonra: odayı aç --- */
.yr-hazir-kart {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
  border: 1px solid hsl(38 50% 82%);
  border-radius: 1.25rem;
  background:
    radial-gradient(34rem 16rem at 50% -30%, hsl(38 90% 88% / .9), transparent 70%),
    var(--card);
  box-shadow: var(--shadow-sm);
}
.yr-hazir-ikon { font-size: 3rem; line-height: 1 }
.yr-hazir-kart h2 { margin: .7rem 0 .3rem; font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.03em }
.yr-hazir-bilgi { margin: 0; color: var(--muted-foreground) }
.yr-hazir-kart .btn {
  margin-top: 1.4rem;
  height: auto;
  padding: .95rem 1.8rem;
  font-size: 1rem;
  border-radius: .8rem;
}
.yr-hazir-not { margin: 1rem auto 0; max-width: 28rem; font-size: .8rem; color: var(--muted-foreground) }

@media (max-width: 860px) {
  .yr-banner { grid-template-columns: 1fr }
  .yr-banner-gorsel { display: none }
  .yr-kurulum { grid-template-columns: 1fr }
  .yr-birak { min-height: 15rem }
}

/* ===================================================================
   2) SAHNE — projeksiyon
   =================================================================== */

.yr-sahne-kat {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  color: #eef2ff;
  background:
    radial-gradient(1200px 700px at 12% -10%, #1e2f7a 0%, transparent 60%),
    radial-gradient(1000px 650px at 88% 110%, #16265f 0%, transparent 62%),
    linear-gradient(160deg, #0a1030 0%, #0d1538 48%, #0a1030 100%);
  font-family: var(--font-display, Inter, system-ui, sans-serif);
  overflow: hidden;
}

/* Çok hafif, sürekli kayan bir ışık — ekran ölü durmasın diye */
.yr-sahne-kat::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, hsl(226 90% 60% / .16), transparent);
  width: 70vmax; height: 70vmax;
  animation: yrIsik 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes yrIsik {
  from { transform: translate(-6%, -4%) scale(1) }
  to { transform: translate(18%, 12%) scale(1.25) }
}

/* ---- Üst şerit ---- */

.sahne-ust {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(10px, 1.4vh, 18px) clamp(14px, 2.2vw, 34px);
  border-bottom: 1px solid hsl(226 60% 70% / .14);
  flex-wrap: wrap;
}

.sahne-ust .baslik {
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 20px);
  letter-spacing: -.02em;
  color: #cdd8ff;
}

.sahne-ust .bosluk { flex: 1 }

.sahne-rozet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: hsl(226 60% 70% / .13);
  border: 1px solid hsl(226 60% 75% / .18);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  color: #dbe3ff;
  white-space: nowrap;
}

.sahne-rozet.kod {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: .18em;
  font-weight: 800;
}

.sahne-rozet.canli::before,
.sahne-rozet.kopuk::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: yrNabiz 1.8s ease-in-out infinite;
}

.sahne-rozet.kopuk::before { background: #f87171; box-shadow: 0 0 12px #f87171; animation: none }

@keyframes yrNabiz { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

.sahne-dugme {
  border: 1px solid hsl(226 60% 75% / .22);
  background: hsl(226 60% 70% / .1);
  color: #dbe3ff;
  border-radius: 10px;
  padding: 8px 14px;
  font: 700 clamp(12px, 1vw, 15px)/1 inherit;
  cursor: pointer;
}

.sahne-dugme:hover { background: hsl(226 60% 70% / .2) }

/* ---- Orta alan ---- */

.sahne-govde {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  /* safe center: içerik ekrana sığmadığında ortalama üstten kırpmasın, yukarı yaslasın */
  justify-content: safe center;
  padding: clamp(16px, 2.6vh, 40px) clamp(16px, 3vw, 54px);
}

/* ---- Alt şerit: öğretmenin düğmeleri ---- */

.sahne-alt {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: clamp(10px, 1.6vh, 20px);
  border-top: 1px solid hsl(226 60% 70% / .14);
  background: hsl(226 60% 20% / .25);
}

.sahne-ana-dugme {
  border: 0;
  border-radius: 14px;
  padding: clamp(11px, 1.5vh, 16px) clamp(20px, 2.4vw, 34px);
  font: 800 clamp(14px, 1.25vw, 19px)/1 inherit;
  cursor: pointer;
  color: #0a1030;
  background: linear-gradient(135deg, #a9c4ff, #dfe8ff);
  box-shadow: 0 10px 30px hsl(226 90% 60% / .3);
  transition: transform .1s ease, filter .15s ease;
}

.sahne-ana-dugme:hover { filter: brightness(1.06) }
.sahne-ana-dugme:active { transform: translateY(1px) }
.sahne-ana-dugme:disabled { opacity: .4; cursor: default; box-shadow: none; filter: none }
.sahne-ana-dugme.sessiz {
  background: hsl(226 60% 70% / .12);
  color: #cdd8ff;
  border: 1px solid hsl(226 60% 75% / .2);
  box-shadow: none;
}

/* ---- LOBİ ---- */

.lobi {
  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
}

.lobi-karekod {
  text-align: center;
}

.karekod-cerceve {
  display: inline-block;
  padding: clamp(10px, 1.2vw, 18px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px hsl(226 80% 10% / .55), 0 0 0 1px hsl(226 60% 80% / .2);
}

.karekod-cerceve svg {
  display: block;
  width: clamp(190px, 22vw, 330px);
  height: auto;
}

.lobi-kod {
  margin-top: clamp(14px, 2vh, 24px);
  display: flex;
  gap: clamp(5px, .6vw, 10px);
  justify-content: center;
}

.lobi-kod span {
  display: grid;
  place-items: center;
  width: clamp(38px, 4.2vw, 64px);
  height: clamp(48px, 5.4vw, 82px);
  border-radius: 12px;
  background: hsl(226 60% 70% / .12);
  border: 1px solid hsl(226 60% 75% / .22);
  font: 800 clamp(24px, 2.9vw, 44px)/1 ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #fff;
}

.lobi-ipucu {
  margin: clamp(8px, 1.2vh, 14px) 0 0;
  color: #9fb0e8;
  font-size: clamp(13px, 1.05vw, 17px);
}

.lobi-adres {
  margin-top: 4px;
  font-size: clamp(11px, .85vw, 14px);
  color: #7b8cc4;
  word-break: break-all;
}

.lobi-sag { min-width: 0 }

.lobi-sayac {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.lobi-sayac b {
  font-size: clamp(54px, 7.5vw, 110px);
  line-height: .95;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, #fff, #9fb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lobi-sayac span {
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 700;
  color: #aebbe8;
}

.lobi-isimler {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(7px, .8vw, 12px);
  margin-top: clamp(14px, 2vh, 26px);
  max-height: 46vh;
  overflow: auto;
  align-content: flex-start;
}

.lobi-isim {
  padding: clamp(8px, .9vh, 13px) clamp(14px, 1.3vw, 22px);
  border-radius: 999px;
  background: hsl(226 60% 70% / .14);
  border: 1px solid hsl(226 60% 80% / .22);
  font-size: clamp(14px, 1.25vw, 21px);
  font-weight: 650;
  color: #eaf0ff;
  animation: yrPop .4s cubic-bezier(.18, .9, .3, 1.3) both;
}

@keyframes yrPop {
  from { opacity: 0; transform: scale(.6) translateY(10px) }
}

.lobi-bos { color: #7b8cc4; font-size: clamp(14px, 1.2vw, 19px) }

/* ---- SORU ---- */

.soru-ekran { text-align: center; width: 100%; }

.soru-ust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(10px, 1.8vh, 22px);
}

.soru-etiket {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8fa3e0;
}

/* Soru sayısı kadar nokta; geçilenler dolu, şimdiki büyük */
.soru-noktalar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60vw }

.soru-noktalar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: hsl(226 60% 75% / .25);
  transition: all .3s ease;
}

.soru-noktalar i.gecti { background: hsl(226 70% 75% / .6) }
.soru-noktalar i.simdi { width: 26px; border-radius: 99px; background: #9fb6ff }

.soru-metni {
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -.035em;
  margin: 0 auto clamp(18px, 3vh, 38px);
  max-width: 22ch;
  text-wrap: balance;
  color: #fff;
}

.secenekler {
  display: flex;
  gap: clamp(12px, 1.6vw, 26px);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 2.6vh, 34px);
}

.secenek {
  position: relative;
  min-width: clamp(180px, 20vw, 300px);
  padding: clamp(14px, 2vh, 26px) clamp(20px, 2.4vw, 40px);
  border-radius: 20px;
  border: 2px solid transparent;
  font-size: clamp(22px, 2.5vw, 40px);
  font-weight: 850;
  letter-spacing: -.02em;
  transition: all .35s cubic-bezier(.2, .8, .3, 1);
}

.secenek.d { background: hsl(152 60% 40% / .18); color: #4ade80; border-color: hsl(152 60% 55% / .3) }
.secenek.y { background: hsl(6 70% 50% / .16); color: #fb7185; border-color: hsl(6 70% 60% / .3) }

.secenek.kazanan {
  transform: scale(1.08);
  color: #fff;
}

.secenek.d.kazanan {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: #4ade80;
  box-shadow: 0 0 0 6px hsl(152 70% 50% / .18), 0 20px 50px hsl(152 70% 40% / .4);
}

.secenek.y.kazanan {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-color: #fb7185;
  box-shadow: 0 0 0 6px hsl(6 70% 55% / .18), 0 20px 50px hsl(6 70% 45% / .4);
}

.secenek.soluk { opacity: .22; transform: scale(.94) }

/* Cevap sayacı */

.ilerleme {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  justify-content: center;
  flex-wrap: wrap;
}

.ilerleme .oran {
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ilerleme .oran small { color: #8fa3e0; font-weight: 700; font-size: .55em }

.cubuk {
  width: min(560px, 60vw);
  height: clamp(12px, 1.4vh, 20px);
  border-radius: 999px;
  background: hsl(226 60% 70% / .16);
  overflow: hidden;
}

.cubuk i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d8cff, #a9c4ff);
  box-shadow: 0 0 22px hsl(226 90% 70% / .55);
  transition: width .45s cubic-bezier(.2, .8, .3, 1);
}

.cevaplayanlar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: clamp(14px, 2vh, 24px);
  max-height: 22vh;
  overflow: hidden;
}

.cevaplayan {
  padding: 6px 14px;
  border-radius: 999px;
  background: hsl(226 70% 70% / .16);
  color: #cdd8ff;
  font-size: clamp(12px, 1.05vw, 17px);
  font-weight: 650;
  animation: yrPop .35s cubic-bezier(.18, .9, .3, 1.3) both;
}

/* ---- SONUÇ ---- */

.sonuc-ekran { text-align: center; width: 100% }

.dogru-cevap-serit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(9px, 1.2vh, 15px) clamp(18px, 2vw, 32px);
  border-radius: 999px;
  font-size: clamp(16px, 1.7vw, 27px);
  font-weight: 850;
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.dogru-cevap-serit.d { background: hsl(152 60% 45% / .2); color: #4ade80 }
.dogru-cevap-serit.y { background: hsl(6 70% 55% / .2); color: #fb7185 }

.sonuc-aciklama {
  max-width: 60ch;
  margin: 0 auto;
  font-size: clamp(14px, 1.3vw, 21px);
  line-height: 1.55;
  color: #b9c6ee;
}

/* Kazananın kartı — haftanın en gösterişli parçası */
.kazanan-kart {
  position: relative;
  margin: clamp(16px, 2.6vh, 30px) auto clamp(10px, 1.4vh, 16px);
  max-width: clamp(380px, 48vw, 720px);
  padding: clamp(18px, 2.8vh, 34px) clamp(22px, 3vw, 46px);
  border-radius: 26px;
  background: linear-gradient(135deg, hsl(42 80% 58% / .22), hsl(42 90% 70% / .08) 55%, hsl(42 80% 58% / .2));
  border: 2px solid hsl(42 85% 65% / .5);
  box-shadow: 0 26px 70px hsl(42 80% 40% / .3);
  overflow: hidden;
  animation: yrKazananGir .55s cubic-bezier(.18, .9, .3, 1.25) both;
}

@keyframes yrKazananGir {
  from { opacity: 0; transform: translateY(26px) scale(.9) }
}

/* Arkadan vuran ışınlar */
.kazanan-kart::before {
  content: "";
  position: absolute;
  top: -120%; left: 50%;
  width: 180%; height: 260%;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg,
      hsl(42 95% 70% / .22) 0deg 8deg, transparent 8deg 30deg,
      hsl(42 95% 70% / .22) 30deg 38deg, transparent 38deg 60deg,
      hsl(42 95% 70% / .22) 60deg 68deg, transparent 68deg 90deg,
      hsl(42 95% 70% / .22) 90deg 98deg, transparent 98deg 120deg,
      hsl(42 95% 70% / .22) 120deg 128deg, transparent 128deg 150deg,
      hsl(42 95% 70% / .22) 150deg 158deg, transparent 158deg 180deg,
      hsl(42 95% 70% / .22) 180deg 188deg, transparent 188deg 210deg,
      hsl(42 95% 70% / .22) 210deg 218deg, transparent 218deg 240deg,
      hsl(42 95% 70% / .22) 240deg 248deg, transparent 248deg 270deg,
      hsl(42 95% 70% / .22) 270deg 278deg, transparent 278deg 300deg,
      hsl(42 95% 70% / .22) 300deg 308deg, transparent 308deg 330deg,
      hsl(42 95% 70% / .22) 330deg 338deg, transparent 338deg 360deg);
  animation: yrIsinlar 26s linear infinite;
  pointer-events: none;
}

@keyframes yrIsinlar { to { transform: translateX(-50%) rotate(360deg) } }

.kazanan-kart > * { position: relative }

.kazanan-kart .kupa {
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1;
  filter: drop-shadow(0 6px 18px hsl(42 90% 50% / .5));
  animation: yrZipla 2.6s ease-in-out infinite;
}

@keyframes yrZipla { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }

.kazanan-kart .etiket {
  font-size: clamp(11px, .95vw, 15px);
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffd98a;
  margin-top: 8px;
}

.kazanan-kart .ad {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 6px 0 4px;
  color: #fff;
  text-shadow: 0 4px 24px hsl(42 90% 50% / .35);
}

.kazanan-kart .sure {
  font-size: clamp(14px, 1.3vw, 21px);
  color: #ffe2a8;
  font-weight: 650;
}

.kazanan-kart.kimse {
  background: hsl(226 60% 70% / .1);
  border-color: hsl(226 60% 75% / .2);
  box-shadow: none;
}

.kazanan-kart.kimse::before { display: none }
.kazanan-kart.kimse .ad { font-size: clamp(22px, 2.6vw, 38px); text-shadow: none }

/* Üç liste */

.listeler {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(14px, 2.2vh, 28px);
  text-align: left;
}

.liste {
  border-radius: 18px;
  border: 1px solid hsl(226 60% 75% / .16);
  background: hsl(226 60% 60% / .08);
  padding: clamp(12px, 1.6vh, 18px) clamp(14px, 1.4vw, 20px);
  max-height: 30vh;
  overflow: auto;
}

.liste h3 {
  margin: 0 0 10px;
  font-size: clamp(11px, .95vw, 15px);
  text-transform: uppercase;
  letter-spacing: .12em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.liste h3 b { font-size: 1.5em; letter-spacing: -.02em }

.liste.d { border-color: hsl(152 60% 55% / .3); background: hsl(152 60% 40% / .12) }
.liste.d h3 { color: #6ee7a8 }
.liste.y { border-color: hsl(6 70% 60% / .28); background: hsl(6 70% 50% / .1) }
.liste.y h3 { color: #fca5a5 }
.liste.bos h3 { color: #9fb0e8 }

.liste ol, .liste ul {
  margin: 0;
  padding-left: 22px;
  font-size: clamp(13px, 1.15vw, 19px);
  line-height: 1.75;
  color: #e6ecff;
}

.liste li span { color: #9fb0e8; font-size: .78em; margin-left: 7px; font-variant-numeric: tabular-nums }
.liste .yok { list-style: none; padding: 0; color: #7b8cc4; font-size: clamp(13px, 1.1vw, 17px) }

/* ---- FİNAL: podyum ---- */

.final-ekran { text-align: center; width: 100% }

.final-ekran h2 {
  font-size: clamp(26px, 3.4vw, 52px);
  letter-spacing: -.04em;
  margin: 0 0 clamp(14px, 2.4vh, 30px);
  color: #fff;
}

.podyum {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 24px);
  margin-bottom: clamp(16px, 2.6vh, 32px);
}

.basamak {
  width: clamp(110px, 15vw, 230px);
  border-radius: 18px 18px 0 0;
  padding: clamp(10px, 1.4vh, 18px) 12px clamp(12px, 1.6vh, 20px);
  background: hsl(226 60% 65% / .14);
  border: 1px solid hsl(226 60% 80% / .2);
  border-bottom: 0;
  animation: yrBasamak .6s cubic-bezier(.2, .9, .3, 1.15) both;
}

@keyframes yrBasamak { from { opacity: 0; transform: translateY(40px) } }

.basamak .madalya { font-size: clamp(28px, 3.2vw, 48px); line-height: 1 }
.basamak .ad {
  font-size: clamp(14px, 1.4vw, 23px);
  font-weight: 800;
  margin: 6px 0 2px;
  color: #fff;
  overflow-wrap: anywhere;
}
.basamak .puan { font-size: clamp(18px, 2vw, 32px); font-weight: 850; color: #cdd8ff }
.basamak .alt { font-size: clamp(11px, .9vw, 14px); color: #9fb0e8 }

.basamak.bir {
  height: clamp(180px, 26vh, 290px);
  background: linear-gradient(180deg, hsl(42 92% 62% / .45), hsl(42 88% 55% / .14));
  border-color: hsl(44 95% 70% / .75);
  box-shadow: 0 -12px 60px hsl(42 90% 55% / .35), inset 0 1px 0 hsl(48 100% 85% / .6);
  animation-delay: .25s;
}

.basamak.bir .ad { text-shadow: 0 2px 14px hsl(42 90% 40% / .6) }
.basamak.bir .puan { color: #ffe9b0 }
.basamak.bir .alt { color: #f3d9a0 }

.basamak.iki {
  height: clamp(140px, 20vh, 225px);
  background: linear-gradient(180deg, hsl(220 20% 80% / .24), hsl(220 20% 75% / .08));
  border-color: hsl(220 25% 85% / .36);
  animation-delay: .1s;
}

.basamak.uc {
  height: clamp(118px, 17vh, 190px);
  background: linear-gradient(180deg, hsl(25 55% 55% / .26), hsl(25 55% 50% / .08));
  border-color: hsl(25 60% 65% / .38);
  animation-delay: .4s;
}

.final-liste {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  max-height: 32vh;
  overflow: auto;
}

.final-satir {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: clamp(8px, 1.1vh, 13px) 16px;
  border-radius: 12px;
  background: hsl(226 60% 65% / .09);
  border: 1px solid hsl(226 60% 80% / .14);
  margin-bottom: 8px;
  font-size: clamp(14px, 1.2vw, 19px);
}

.final-satir .yer { font-weight: 850; color: #8fa3e0; text-align: center }
.final-satir .ad { font-weight: 700; color: #fff; overflow-wrap: anywhere }
.final-satir .ad small { display: block; color: #9fb0e8; font-size: .76em; font-weight: 500 }
.final-satir .puan { font-weight: 850; color: #a9c4ff; font-variant-numeric: tabular-nums }

/* ---- Sahnede dar ekran (öğretmen dizüstünde denerse) ---- */

@media (max-width: 900px) {
  .lobi { grid-template-columns: 1fr; gap: 18px }
  .lobi-isimler { max-height: 24vh }
  .soru-metni { max-width: none }
}

@media (prefers-reduced-motion: reduce) {
  .yr-sahne-kat::before,
  .kazanan-kart::before,
  .kazanan-kart .kupa { animation: none }
  .lobi-isim, .cevaplayan, .kazanan-kart, .basamak { animation-duration: .01ms }
}

/* ===================================================================
   3) TELEFON — öğrenci
   =================================================================== */

.yr-tel { max-width: 460px; margin: 0 auto }

/* Giriş */

.tel-giris {
  padding: 26px 22px 28px;
  text-align: center;
  background:
    radial-gradient(600px 220px at 50% -30%, hsl(226 64% 44% / .12), transparent 70%),
    var(--card);
}

.tel-giris .ikon { font-size: 44px; line-height: 1 }
.tel-giris h1 { font-size: 25px; margin: 8px 0 4px; letter-spacing: -.03em }
.tel-giris .muted { margin: 0 }
.tel-giris label { display: block; font-weight: 700; margin: 18px 0 6px; font-size: 13px; text-align: left }

.tel-giris input {
  width: 100%;
  padding: 15px 16px;
  font-size: 18px;
  border-radius: 14px;
  border: 1px solid var(--input);
  font-family: inherit;
  background: #fff;
}

.tel-giris input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent }
.tel-giris input.kod { text-transform: uppercase; letter-spacing: .3em; font-weight: 800; text-align: center; font-size: 22px }

.tel-giris .btn { width: 100%; height: auto; margin-top: 20px; padding: 16px; font-size: 17px; border-radius: 14px }

/* Oyun başlığı */

.tel-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, hsl(226 64% 44%), hsl(226 64% 54%));
  color: #fff;
  margin-bottom: 14px;
}

.tel-ust .ad { font-weight: 800; font-size: 16px; line-height: 1.2 }
.tel-ust .oda { font-size: 11.5px; opacity: .8 }

.tel-rozet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: hsl(0 0% 100% / .18);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tel-rozet::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #86efac;
  animation: yrNabiz 1.8s ease-in-out infinite;
}

.tel-rozet.kopuk::before { background: #fca5a5; animation: none }

/* Bekleme */

.tel-bekle {
  text-align: center;
  padding: 40px 22px;
}

.tel-bekle .buyuk { font-size: 62px; line-height: 1.1 }
.tel-bekle h2 { margin: 12px 0 6px; font-size: 22px; letter-spacing: -.02em }
.tel-bekle p { margin: 0; color: var(--muted-foreground) }

/* Soru ve tuşlar */

.tel-soru { padding: 20px 20px 22px }

.tel-soru .no {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tel-soru .metin {
  font-size: 21px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}

.tel-tuslar { display: grid; gap: 14px; margin-top: 22px }

.tel-tus {
  border: 0;
  border-radius: 20px;
  padding: 30px 20px;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -.02em;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  transition: transform .09s ease, filter .18s ease, opacity .18s ease;
}

.tel-tus.d { background: linear-gradient(160deg, #18a862, #0d7a48); box-shadow: 0 12px 28px hsl(152 70% 30% / .32) }
.tel-tus.y { background: linear-gradient(160deg, #e0574a, #b82f24); box-shadow: 0 12px 28px hsl(6 70% 35% / .3) }
.tel-tus:active { transform: scale(.97) }
.tel-tus:disabled { filter: grayscale(.7); opacity: .45; cursor: default; transform: none; box-shadow: none }
.tel-tus.secilen { filter: none; opacity: 1; outline: 4px solid hsl(226 64% 50% / .45); outline-offset: 3px }

.tel-secim-bilgi {
  text-align: center;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
  min-height: 20px;
}

/* Sonuç */

.tel-sonuc {
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
  color: #fff;
  animation: yrPop .4s cubic-bezier(.18, .9, .3, 1.25) both;
}

.tel-sonuc.d { background: linear-gradient(160deg, #16a34a, #0d7a48) }
.tel-sonuc.y { background: linear-gradient(160deg, #dc2626, #991b1b) }
.tel-sonuc.bos { background: linear-gradient(160deg, #64748b, #475569) }
.tel-sonuc .buyuk { font-size: 66px; line-height: 1 }
.tel-sonuc h2 { margin: 8px 0 4px; font-size: 27px; letter-spacing: -.02em }
.tel-sonuc .puanlama { font-size: 17px; font-weight: 700; opacity: .95 }
.tel-sonuc .aciklama {
  margin: 14px auto 0;
  font-size: 14.5px;
  line-height: 1.55;
  opacity: .92;
  max-width: 34ch;
}

/* Puan şeridi */

.tel-puan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 16px;
  background: var(--muted);
  color: var(--primary);
  font-weight: 750;
  margin-top: 16px;
}

.tel-puan b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
