:root {
  --gece: #0b1528;
  --lacivert: #13233f;
  --lacivert2: #1c3459;
  --kraft: #c9a26b;
  --kraft-acik: #ead9b6;
  --amber: #f2b03c;
  --turuncu: #e4572e;
  --kagit: #fbf6ea;
  --murekkep: #1d1a16;
  --soluk: #9fb0cc;
  --baslik: "Anton", Impact, "Arial Narrow", sans-serif;
  --yazi: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% -10%, #284a80 0%, var(--lacivert) 45%, var(--gece) 100%) fixed;
  color: var(--kagit);
  font-family: var(--yazi);
  font-weight: 600;
  line-height: 1.4;
  padding: 0 16px env(safe-area-inset-bottom);
}
a { color: var(--amber); }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.halat { position: fixed; inset: 0 0 auto 0; height: 34px; display: grid; gap: 5px; padding-top: 6px; z-index: 0; pointer-events: none; }
.halat span { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--turuncu), var(--amber) 50%, var(--turuncu)); opacity: .55; }
.halat span:nth-child(2) { background: linear-gradient(90deg, var(--kraft), var(--kraft-acik) 50%, var(--kraft)); }

main { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 48px 0 24px; }

.logo { text-align: center; margin: 4px 0 18px; }
.logo h1 { font-family: var(--baslik); font-weight: 400; font-size: clamp(44px, 13vw, 64px); line-height: .95; letter-spacing: 1px; margin: 0; text-transform: uppercase; }
.logo h1 em { font-style: normal; color: var(--amber); }
.logo p { margin: 10px auto 0; color: var(--soluk); max-width: 360px; }

.kutu { background: var(--kagit); color: var(--murekkep); border-radius: 18px; padding: 20px 18px; box-shadow: 0 14px 30px rgba(0,0,0,.35); margin-bottom: 16px; }
.kutu h2 { font-family: var(--baslik); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 0 0 10px; color: var(--lacivert); letter-spacing: .5px; }
.kutu.koyu { background: var(--lacivert2); color: var(--kagit); }
.kutu.koyu h2 { color: var(--amber); }

label { display: block; font-weight: 800; font-size: 14px; color: #5b5346; margin: 12px 0 6px; }
.kutu.koyu label { color: var(--soluk); }
input[type=text] {
  width: 100%; border: 3px solid var(--lacivert); border-radius: 12px; padding: 12px 14px; font-size: 17px; font-weight: 800;
  background: #fff; color: var(--murekkep); outline: none;
}
input[type=text]:focus { border-color: var(--turuncu); }
.kutu.koyu input[type=text] { border-color: var(--kraft); }

.sablonlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sablon { border: 0; border-radius: 14px; background: var(--kraft-acik); color: var(--lacivert); padding: 10px 4px; font-weight: 900; font-size: 14px; display: grid; gap: 2px; justify-items: center; }
.sablon b { font-size: 24px; line-height: 1.1; }
.sablon[aria-pressed=true] { background: var(--amber); }

.secenek { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.secenek .no { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lacivert); color: var(--kagit); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.secenek .sil { flex: none; width: 44px; height: 48px; border: 0; border-radius: 12px; background: #eadfca; color: var(--lacivert); font-size: 22px; font-weight: 900; }
.ekle { border: 3px dashed var(--kraft); background: transparent; color: var(--lacivert); width: 100%; padding: 10px; border-radius: 12px; font-weight: 900; }

.buyuk {
  display: block; width: 100%; border: 0; border-radius: 16px; padding: 16px; margin-top: 16px;
  background: var(--turuncu); color: #fff; font-family: var(--baslik); font-weight: 400; font-size: 26px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 6px 0 #9c3417; transition: transform .08s;
}
.buyuk:active { transform: translateY(4px); box-shadow: 0 2px 0 #9c3417; }
.buyuk:disabled { opacity: .6; }
.buyuk.amber { background: var(--amber); color: var(--lacivert); box-shadow: 0 6px 0 #a8731a; }
.buyuk.wp { background: #1f8f4e; box-shadow: 0 6px 0 #11592f; }
.ikincil { display: block; width: 100%; margin-top: 10px; border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 14px; padding: 11px; font-weight: 900; }
.hata { color: var(--turuncu); font-weight: 900; margin: 10px 0 0; min-height: 1em; }
.not { color: #6d655a; font-size: 13px; margin: 10px 0 0; }
.kutu.koyu .not { color: var(--soluk); }

.ust-bilgi { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.etiket { background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; color: var(--kraft-acik); }
.etiket.canli::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--turuncu); margin-right: 6px; animation: nabiz 1.2s infinite; }
@keyframes nabiz { 50% { opacity: .2; } }

.soru { font-family: var(--baslik); font-weight: 400; text-align: center; font-size: clamp(30px, 9vw, 42px); line-height: 1.05; margin: 0 0 14px; text-transform: uppercase; overflow-wrap: anywhere; }
.kapisanlar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.kapisanlar span { background: var(--kraft-acik); color: var(--lacivert); border-radius: 8px; padding: 4px 10px; font-weight: 900; font-size: 14px; }

/* Düello */
.raunt-karti {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(11,21,40,.82); pointer-events: none;
  animation: kartGit 1.15s ease forwards;
}
.raunt-karti div { background: var(--kagit); color: var(--lacivert); font-family: var(--baslik); font-size: 64px; padding: 18px 40px; border-radius: 16px; transform: rotate(-4deg); text-transform: uppercase; box-shadow: 0 20px 40px rgba(0,0,0,.4); text-align: center; line-height: 1; }
.raunt-karti small { display: block; font-family: var(--yazi); font-weight: 900; font-size: 16px; color: var(--turuncu); margin-top: 8px; letter-spacing: 2px; }
@keyframes kartGit { 0% { opacity: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.raunt-karti div { animation: kartZipla 1.15s ease forwards; }
@keyframes kartZipla { 0% { transform: rotate(-4deg) scale(.4); } 14% { transform: rotate(-4deg) scale(1.08); } 22% { transform: rotate(-4deg) scale(1); } 100% { transform: rotate(-4deg) scale(1); } }

.ilerleme { display: flex; gap: 4px; margin: 0 0 14px; }
.ilerleme i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.ilerleme i.dolu { background: var(--amber); }
.duello-baslik { text-align: center; color: var(--kraft-acik); font-weight: 900; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
.duello { display: grid; gap: 0; }
.kose {
  position: relative; border: 0; border-radius: 20px; min-height: 150px; padding: 18px 16px 18px; color: #fff; text-align: center;
  font-family: var(--baslik); font-weight: 400; font-size: clamp(30px, 9vw, 44px); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere;
  box-shadow: 0 8px 0 rgba(0,0,0,.35); transition: transform .15s, opacity .2s, filter .2s;
}
.kose small { position: absolute; top: 10px; left: 0; right: 0; font-family: var(--yazi); font-weight: 900; font-size: 11px; letter-spacing: 3px; opacity: .8; }
.kose.k1 { background: linear-gradient(160deg, #f0703f, var(--turuncu) 60%, #b8401c); }
.kose.k2 { background: linear-gradient(160deg, #2c5596, var(--lacivert2) 60%, #0f1f3a); border: 3px solid #3a66a8; }
.kose:active { transform: scale(.97); }
.kose.vurdu { animation: yumruk .45s ease forwards; z-index: 2; }
.kose.yedi { opacity: .25; filter: grayscale(1); transform: scale(.94) rotate(-2deg); }
@keyframes yumruk { 0% { transform: scale(1); } 35% { transform: scale(1.08) rotate(1.5deg); } 100% { transform: scale(1.02); } }
.vs { justify-self: center; margin: -14px 0; z-index: 3; width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: var(--lacivert); display: grid; place-items: center; font-family: var(--baslik); font-size: 28px; border: 5px solid var(--gece); }
.bay { text-align: center; color: var(--soluk); font-size: 14px; margin-top: 12px; }

/* Sonuç */
.sonuc { text-align: center; position: relative; }
.sonuc .durum { font-weight: 900; letter-spacing: 3px; color: var(--amber); font-size: 14px; text-transform: uppercase; }
.kemer {
  position: relative; margin: 14px auto 10px; max-width: 420px; padding: 26px 18px 22px; border-radius: 26px;
  background: radial-gradient(circle at 50% 0%, #ffd77a, var(--amber) 45%, #c98a1d); color: var(--lacivert);
  box-shadow: 0 0 0 6px var(--gece), 0 0 0 10px var(--kraft), 0 24px 40px rgba(0,0,0,.45);
  animation: kemerGel .8s cubic-bezier(.2,1.6,.4,1) both;
}
.kemer .el { font-size: 54px; display: block; animation: elKalk 1.2s .5s ease both; transform-origin: 50% 100%; }
.kemer .kazanan { font-family: var(--baslik); font-size: clamp(40px, 13vw, 64px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; margin-top: 4px; }
.kemer .alt-yazi { font-weight: 900; margin-top: 8px; }
@keyframes kemerGel { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes elKalk { 0% { transform: translateY(40px) rotate(-30deg); opacity: 0; } 60% { transform: translateY(-14px) rotate(8deg); opacity: 1; } 100% { transform: none; } }
.final { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 6px; }
.final .ad { font-family: var(--baslik); font-size: 22px; text-transform: uppercase; overflow-wrap: anywhere; }
.final .skor { font-family: var(--baslik); font-size: 34px; background: var(--kagit); color: var(--lacivert); padding: 2px 14px; border-radius: 12px; white-space: nowrap; }
.siralama { list-style: none; margin: 0; padding: 0; text-align: left; }
.siralama li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 2px dashed #e1d5bd; }
.siralama li:last-child { border-bottom: 0; }
.siralama .sira { font-family: var(--baslik); font-size: 20px; color: var(--turuncu); text-align: center; }
.siralama .ad { font-weight: 900; overflow-wrap: anywhere; }
.siralama .cubuk { height: 8px; border-radius: 4px; background: var(--amber); margin-top: 4px; }
.siralama .puan { font-weight: 900; font-size: 13px; color: #6d655a; text-align: right; white-space: nowrap; }
.isimler { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.isimler span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
.konfeti { position: fixed; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
.konfeti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: dus linear forwards; }
@keyframes dus { to { transform: translateY(110vh) rotate(720deg); } }

.alt { position: relative; z-index: 1; text-align: center; color: var(--soluk); font-size: 13px; padding: 10px 0 28px; }
.alt a { color: var(--kraft-acik); }
.gizlilik p { margin: 0 0 10px; }
.yukleniyor { text-align: center; color: var(--soluk); padding: 60px 0; }

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