:root {
  --zemin: #fff4e8; --kart: #ffffff; --yazi: #2b1d1a; --soluk: #8a7468; --cizgi: #f0dfcf;
  --a: #e04f78; --a2: #fde3ea; --b: #23977a; --b2: #dcf3ea; --altin: #f2a93b; --kirmizi: #d93a3a; --yesil: #1f9d55;
  --r: 18px; --golge: 0 6px 18px rgba(90, 50, 30, .10);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--zemin); color: var(--yazi); }
body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
#app { min-height: 100%; max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 24px); display: flex; flex-direction: column; gap: 14px; }
button { font: inherit; border: 0; cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: default; }
h1, h2, h3, p { margin: 0; }

/* üst skor çubuğu */
.ust { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 5; background: var(--zemin); padding: 4px 0 6px; }
.tk-sira { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tk-sira::-webkit-scrollbar { display: none; }
.tk-sira .tk { flex: 1 0 auto; min-width: 84px; max-width: 50%; }
.tk { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 14px; min-width: 0; }
.tk { background: var(--t2, #f3e9df); }
.tk small { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.tk b { font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tk b { color: var(--t, var(--yazi)); }
.tk .jk { font-size: 11px; font-weight: 800; color: var(--altin); }
.orta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.orta .tur { font-size: 12px; font-weight: 800; color: var(--soluk); white-space: nowrap; }
.menu-d { width: 38px; height: 38px; border-radius: 50%; background: var(--kart); box-shadow: var(--golge); font-size: 18px; line-height: 1; }

.kart { background: var(--kart); border-radius: var(--r); padding: 18px; box-shadow: var(--golge); }
.baslik { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soluk); }
.soru { font-size: 23px; font-weight: 800; line-height: 1.25; }
.alt { color: var(--soluk); font-size: 14px; line-height: 1.45; }
.rozet { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 800; background: #fff0d9; color: #a2610b; }
.rozet[style] { background: var(--t2); color: var(--t); }

.btn { display: block; width: 100%; padding: 16px 18px; border-radius: 16px; font-size: 18px; font-weight: 800; background: var(--yazi); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn.a { background: var(--a); } .btn.b { background: var(--b); } .btn.altin { background: var(--altin); color: #3b2300; }
.btn.tm { background: var(--t); } .btn.yesil { background: var(--yesil); } .btn.kirmizi { background: var(--kirmizi); }
.btn.acik { background: var(--kart); color: var(--yazi); box-shadow: 0 3px 0 var(--cizgi), var(--golge); }
.btn.kucuk { padding: 11px 14px; font-size: 15px; }
.secenekler { display: grid; gap: 10px; }
.sec { text-align: left; padding: 15px 16px; border-radius: 15px; font-size: 17px; font-weight: 700; background: var(--kart); box-shadow: 0 3px 0 var(--cizgi), var(--golge); display: flex; align-items: center; gap: 10px; position: relative; }
.sec .h { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #fff0d9; font-size: 14px; flex: none; color: #a2610b; }
.sec.secili { outline: 3px solid var(--yazi); }
.sec.dogru { background: #dff6e7; outline: 3px solid var(--yesil); }
.sec.yanlis { background: #fde4e4; }
.sec .kimler { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cip { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #f3e9df; white-space: nowrap; }
.cip[style] { background: var(--t2); color: var(--t); }

.giris-kutu { display: flex; gap: 8px; }
.giris { flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 700; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--cizgi); background: #fff; color: var(--yazi); outline: none; }
.giris:focus { border-color: var(--yazi); }
.giris.kod { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: 24px; }

/* hazır noktaları */
.bekle { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bekle span { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: #efe4d9; color: var(--soluk); }
.bekle span.ok { background: var(--yazi); color: #fff; }
.bekle span.ok::before { content: "✓ "; }

/* süre */
.sure { height: 10px; border-radius: 99px; background: #f0e3d6; overflow: hidden; }
.sure i { display: block; height: 100%; background: linear-gradient(90deg, var(--altin), #f06a3b); border-radius: 99px; transition: width .25s linear; }
.sayac { font-size: 54px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; }
.sayac.az { color: var(--kirmizi); animation: nabiz .5s ease infinite alternate; }
@keyframes nabiz { to { transform: scale(1.08); } }

/* açılış */
.logo { text-align: center; padding: 26px 0 6px; }
.logo .kalp { font-size: 54px; display: block; animation: zipla 2.2s ease-in-out infinite; }
.logo h1 { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.02em; margin-top: 8px; }
.logo h1 span { color: var(--a); } .logo h1 em { color: var(--b); font-style: normal; }
.logo p { margin-top: 10px; color: var(--soluk); font-weight: 700; }
@keyframes zipla { 50% { transform: translateY(-8px) rotate(-4deg); } }

/* lobi */
.odakod { text-align: center; }
.odakod b { display: block; font-size: 46px; letter-spacing: .25em; padding-left: .25em; font-weight: 900; }
.cift { border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.cift { background: var(--t2, #f3e9df); }
.cift h3 { font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cift h3 { color: var(--t, var(--yazi)); display: flex; justify-content: space-between; align-items: center; }
.koltuklar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.koltuk { background: #fff; border-radius: 14px; padding: 14px 10px; text-align: center; font-weight: 800; font-size: 17px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.koltuk.bos { background: rgba(255,255,255,.55); border: 2px dashed rgba(0,0,0,.15); color: var(--soluk); }
.koltuk.ben { outline: 3px solid var(--yazi); }
.koltuk small { font-size: 11px; color: var(--soluk); font-weight: 700; }
.nokta { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9b8a9; margin-right: 4px; }
.nokta.on { background: var(--yesil); }
.cipler { display: flex; gap: 8px; }
.cipler button { flex: 1; padding: 12px 6px; border-radius: 14px; background: var(--kart); box-shadow: var(--golge); font-weight: 800; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.cipler button small { font-size: 11px; color: var(--soluk); font-weight: 700; }
.cipler button.secili { background: var(--yazi); color: #fff; }
.cipler button.secili small { color: #e6d5c6; }

/* çark */
.cark-alan { position: relative; width: min(84vw, 360px); aspect-ratio: 1; margin: 6px auto; }
.cark-alan svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(90,50,30,.18)); }
.cark-don { transform-origin: 50% 50%; animation: carkDon 4.2s cubic-bezier(.12,.7,.15,1) forwards; }
@keyframes carkDon { from { transform: rotate(0); } to { transform: rotate(var(--son)); } }
.ok-isaret { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--yazi); z-index: 2; }
.cark-sonuc { text-align: center; opacity: 0; animation: belir .5s ease 4.3s forwards; }
.cark-sonuc b { font-size: 28px; font-weight: 900; display: block; }
@keyframes belir { to { opacity: 1; } }
.final-serit { text-align: center; font-weight: 900; color: #fff; background: linear-gradient(90deg, var(--a), var(--altin), var(--b)); padding: 10px; border-radius: 14px; }

.kural-ikon { font-size: 70px; text-align: center; line-height: 1; }
.oyun-ad { font-size: 30px; font-weight: 900; text-align: center; }
.joker-aktif { text-align: center; font-weight: 900; color: #a2610b; background: #fff0d9; border-radius: 14px; padding: 10px; }

/* sonuç kartları */
.sonuc-kart { border-radius: var(--r); padding: 16px; display: grid; gap: 8px; }
.sonuc-kart { background: var(--t2, #f3e9df); }
.sonuc-kart .satir { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.sonuc-kart .satir b { text-align: right; }
.tutma { font-size: 20px; font-weight: 900; }
.tutma.evet { color: var(--yesil); } .tutma.hayir { color: var(--soluk); }
.puan-pat { display: inline-block; font-weight: 900; color: var(--yesil); animation: pat .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pat { from { transform: scale(.3); opacity: 0; } }

/* kim daha */
.oy-btn { padding: 18px 10px; border-radius: 16px; font-size: 19px; font-weight: 900; }
.oy-btn { background: var(--t2); color: var(--t); }
.oy-btn.secili { outline: 3px solid var(--yazi); }
.izgara2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cubuk { display: grid; gap: 4px; }
.cubuk .ad { display: flex; justify-content: space-between; font-weight: 800; }
.cubuk .bar { height: 14px; background: #f0e3d6; border-radius: 99px; overflow: hidden; }
.cubuk .bar i { display: block; height: 100%; border-radius: 99px; animation: uza .7s ease; }
@keyframes uza { from { width: 0 !important; } }
.cubuk.kazandi .ad::after { content: " 👑"; }

/* anlat */
.tabu-kart { background: linear-gradient(160deg, #3a2420, #5a3330); color: #fff; border-radius: 22px; padding: 22px 18px; text-align: center; display: grid; gap: 12px; box-shadow: 0 12px 24px rgba(60,20,10,.25); animation: kartGel .25s ease; }
@keyframes kartGel { from { transform: translateY(14px) rotate(-1.5deg); opacity: 0; } }
.tabu-kart .kelime { font-size: 34px; font-weight: 900; line-height: 1.1; }
.tabu-kart .yasak { display: grid; gap: 6px; border-top: 1px dashed rgba(255,255,255,.3); padding-top: 12px; }
.tabu-kart .yasak span { font-size: 18px; font-weight: 700; color: #ffc9c9; }
.dinle { text-align: center; padding: 30px 10px; display: grid; gap: 10px; }
.dinle .buyuk { font-size: 64px; }
.izgara3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.gecmis { display: flex; flex-wrap: wrap; gap: 6px; }
.gecmis span { padding: 6px 10px; border-radius: 99px; font-weight: 800; font-size: 14px; }
.gecmis .dogru { background: #dff6e7; color: var(--yesil); } .gecmis .pas { background: #efe4d9; color: var(--soluk); } .gecmis .tabu { background: #fde4e4; color: var(--kirmizi); text-decoration: line-through; }
.dev-tabu { font-size: 30px; padding: 28px; border-radius: 22px; }

/* çiz */
.tuval-yer { position: relative; width: 100%; aspect-ratio: 1; background: #fff; border-radius: var(--r); box-shadow: var(--golge); overflow: hidden; touch-action: none; }
.tuval-yer canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.renkler { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.renk { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--cizgi); }
.renk.secili { box-shadow: 0 0 0 3px var(--yazi); }
.tahminler { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow: hidden; }
.tahminler div { font-size: 14px; font-weight: 700; }
.ipucu { text-align: center; font-weight: 900; letter-spacing: .15em; color: var(--soluk); }

/* skor */
.skor-buyuk { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.skor-buyuk > div { border-radius: var(--r); padding: 16px; text-align: center; }
.skor-buyuk > div { background: var(--t2); }
.skor-buyuk small { font-weight: 800; font-size: 13px; display: block; }
.skor-buyuk b { font-size: 44px; font-weight: 900; display: block; line-height: 1.1; }
.skor-buyuk b { color: var(--t); }
.skor-buyuk em { font-style: normal; font-weight: 900; color: var(--yesil); }
.olaylar { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.olaylar div { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 10px; }
.olaylar div { background: var(--t2); }

/* görev */
.gorev-kart { background: linear-gradient(150deg, #ffcf7a, #f58a6c); border-radius: 24px; padding: 26px 20px; text-align: center; display: grid; gap: 14px; color: #3b1a0c; box-shadow: 0 12px 24px rgba(160,70,30,.25); animation: kartGel .35s ease; }
.gorev-kart .m { font-size: 24px; font-weight: 900; line-height: 1.3; }

/* final */
.kupa { font-size: 90px; text-align: center; line-height: 1; animation: zipla 1.6s ease-in-out infinite; }
.konfeti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.konfeti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: dus linear forwards; }
@keyframes dus { to { transform: translateY(110vh) rotate(720deg); } }
.tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.tablo td { padding: 7px 4px; border-bottom: 1px solid var(--cizgi); font-weight: 700; }
.tablo td:nth-child(2), .tablo td:nth-child(3) { text-align: center; width: 64px; }

/* tek telefon örtüsü */
.ortu { position: fixed; inset: 0; z-index: 40; background: var(--yazi); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 30px; text-align: center; }
.ortu[style] { background: linear-gradient(160deg, var(--t), rgba(0,0,0,.55)); background: linear-gradient(160deg, var(--t), color-mix(in srgb, var(--t) 60%, #000)); }
.ortu .tel { font-size: 74px; animation: zipla 1.8s ease-in-out infinite; }
.ortu h2 { font-size: 30px; font-weight: 900; }
.ortu p { opacity: .85; font-weight: 700; }
.ortu .btn { max-width: 320px; background: #fff; color: var(--yazi); }

/* menü */
.perde { position: fixed; inset: 0; background: rgba(40,20,10,.4); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sayfa { width: 100%; max-width: 560px; background: var(--zemin); border-radius: 24px 24px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px); display: grid; gap: 10px; animation: yukari .2s ease; }
@keyframes yukari { from { transform: translateY(40px); opacity: 0; } }
#tost { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%); background: var(--yazi); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 70; max-width: 90vw; text-align: center; }
#tost.acik { opacity: 1; }
.yigin { display: grid; gap: 10px; }
.ortala { text-align: center; }
.baglanti { position: fixed; top: 0; left: 0; right: 0; background: var(--kirmizi); color: #fff; text-align: center; font-weight: 800; font-size: 13px; padding: calc(env(safe-area-inset-top) + 4px) 0 4px; z-index: 80; }

/* sürüm 2: modlar ve yeni oyunlar */
.koltuk.bos { cursor: pointer; font: inherit; }
.sil { background: rgba(255,255,255,.7); border-radius: 50%; width: 26px; height: 26px; font-size: 13px; }
.oyun-sec { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.oyun-sec button { padding: 8px 11px; border-radius: 99px; background: #efe4d9; color: var(--soluk); font-weight: 800; font-size: 13px; }
.oyun-sec button.secili { background: var(--yazi); color: #fff; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.gecmis-mac { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--cizgi); font-weight: 700; font-size: 14px; align-items: baseline; }
.gecmis-mac small { width: 100%; }
.emoji-buyuk { font-size: 54px; text-align: center; letter-spacing: .08em; line-height: 1.2; padding: 6px 0; }
.bumu { display: grid; gap: 10px; }
.bumu-btn { padding: 26px 16px; border-radius: 20px; font-size: 21px; font-weight: 900; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.bumu-btn.a2, .bumu-sonuc.a2 { background: linear-gradient(150deg, #f06a8c, #d0436a); }
.bumu-btn.b2, .bumu-sonuc.b2 { background: linear-gradient(150deg, #3aa7d8, #2477b8); }
.bumu-btn.secili { outline: 4px solid var(--yazi); }
.bumu-btn:disabled:not(.secili) { opacity: .35; }
.veya { text-align: center; font-weight: 900; color: var(--soluk); }
.bumu-sonuc { border-radius: 18px; padding: 14px; color: #fff; display: grid; gap: 6px; text-align: center; }
.bumu-sonuc .buyuk-sayi { font-size: 40px; font-weight: 900; line-height: 1; }
.bumu-sonuc div { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.yalan-satir { display: flex; gap: 6px; align-items: center; }
.yalan-sec { flex: none; padding: 12px 10px; border-radius: 12px; background: #efe4d9; font-weight: 800; font-size: 13px; color: var(--soluk); }
.yalan-sec.secili { background: var(--kirmizi); color: #fff; }
.bomba-alan { text-align: center; padding: 26px 10px; border-radius: 24px; background: #fff; box-shadow: var(--golge); display: grid; gap: 8px; }
.bomba-alan .bomba { font-size: 90px; line-height: 1; animation: titre .35s ease-in-out infinite alternate; }
.bomba-alan.bende { background: #fff0e6; box-shadow: 0 0 0 4px var(--kirmizi), var(--golge); }
.bomba-alan.bende .bomba { animation-duration: .15s; }
.bomba-alan.patladi { background: #2b1d1a; color: #fff; }
.bomba-alan.patladi .bomba { animation: pat .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes titre { from { transform: rotate(-6deg) scale(1); } to { transform: rotate(6deg) scale(1.06); } }
.satir-kume { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--cizgi); }
.satir-kume span { display: flex; gap: 4px; flex-wrap: wrap; }
.siralama { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--t2); }
.siralama .m { font-size: 24px; width: 32px; text-align: center; }
.siralama .a { flex: 1; font-weight: 900; display: flex; flex-direction: column; }
.siralama .a small { font-weight: 700; color: var(--soluk); font-size: 12px; }
.siralama b { font-size: 26px; color: var(--t); }
.seri { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seri span { padding: 8px 12px; border-radius: 12px; background: var(--t2); color: var(--t); font-weight: 800; }
.arsiv { border-top: 1px solid var(--cizgi); padding: 10px 0; }
.arsiv summary { font-weight: 900; font-size: 16px; display: flex; justify-content: space-between; }
.arsiv summary small { color: var(--soluk); }
.arsiv[open] summary { margin-bottom: 8px; }
.arsiv-soru { padding: 8px 0; border-bottom: 1px dashed var(--cizgi); display: grid; gap: 5px; }
.arsiv-soru .s { font-weight: 800; font-size: 14px; }
.dogru-cevap { font-size: 13px; font-weight: 800; color: var(--yesil); }
.arsiv-satir { display: flex; flex-wrap: wrap; gap: 5px; }
.arsiv-satir span { font-size: 12.5px; padding: 4px 8px; border-radius: 9px; background: #f3e9df; }
.arsiv-satir span.ok { background: #dff6e7; } .arsiv-satir span.no { background: #fde4e4; } .arsiv-satir span.kendi { background: #fff0d9; }
.tur-satir { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--cizgi); font-weight: 700; font-size: 14px; }
.tur-satir b { margin-left: 8px; }
.yigin > *, .yalan-satir { min-width: 0; }
.yalan-satir .giris { width: 0; }
.dil-sec { display: flex; justify-content: flex-end; gap: 4px; }
.dil-sec button { padding: 6px 12px; border-radius: 99px; background: #efe4d9; color: var(--soluk); font-weight: 900; font-size: 13px; }
.dil-sec button.secili { background: var(--yazi); color: #fff; }
.logo-img { width: 112px; height: 112px; border-radius: 26px; display: block; margin: 0 auto; box-shadow: var(--golge); animation: zipla 2.4s ease-in-out infinite; }
/* Tam Paket */
.oyun-sec button.kilitli, .cipler button.kilitli { opacity: .55; }
.tam-paket-serit { margin-top: 8px; width: 100%; padding: 12px 14px; border-radius: 14px; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(90deg, var(--a), var(--altin)); box-shadow: var(--golge); }
.paket-liste { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.kisi-islem { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.mini { border: 0; background: #f3ece4; border-radius: 10px; font-size: 13px; padding: 3px 8px; cursor: pointer; }
.bildir-satir { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f0e6da; font-weight: 700; }
.bildir-satir .btn { width: auto; margin: 0 0 0 6px; padding: 6px 10px; }
