:root {
  --zemin: linear-gradient(165deg, #1A1442 0%, #2B1258 100%);
  --yazi: #F4F2FF; --soluk: #CFCAF0; --koyu: #1A1442; --mor: #5B4F99;
  --dogru: #1E9E57; --var: #F5A524; --yok: #3A3368; --yok-yazi: #B9B3DC;
  --cip: rgba(255,255,255,.12); --cizgi: rgba(255,255,255,.18);
  --vurgu: linear-gradient(90deg, #FF8A3D, #FF5C8A);
  --baslik: 'Baloo 2', system-ui, sans-serif; --metin: Nunito, system-ui, sans-serif;
  --gen: min(100vw, 430px);
  --kare: min(58px, calc((var(--gen) - 56px) / 5), calc((100dvh - 400px) / 6.6));
  --tus: min(34px, calc((var(--gen) - 58px) / 11));
  --tus-y: clamp(42px, 6.2dvh, 54px);
}
.kontrast { --dogru: #E8590C; --var: #1C7ED6; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #110C2B; color: var(--yazi); font-family: var(--metin); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #9EF0E1; outline-offset: 2px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }

#uygulama { position: relative; max-width: 430px; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--zemin); }
.ekran { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.sus { position: absolute; inset: 0; pointer-events: none; }
.sus i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 22%; background: var(--c); opacity: var(--o); transform: rotate(var(--r)); display: flex; align-items: center; justify-content: center; font: 800 20px var(--baslik); font-style: normal; color: #fff; }

/* Karşılama */
#karsilama { padding-top: calc(9dvh + env(safe-area-inset-top)); }
.logo-buyuk, .logo { font-family: var(--baslik); font-weight: 800; background: linear-gradient(90deg, #FF8A3D, #FF4D8D 55%, #B26BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-buyuk { position: relative; text-align: center; font-size: 72px; line-height: .9; letter-spacing: 1px; }
.slogan { position: relative; margin-top: 26px; font-weight: 800; font-size: 18px; background: linear-gradient(90deg, #7EE8B8, #C9A6F0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kartlar { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 12px; position: relative; }
.kart { width: 100%; text-align: left; border-radius: 22px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.kart .k-ic { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.kart .k-ust { font-size: 13px; font-weight: 800; letter-spacing: .5px; display: flex; justify-content: space-between; }
.kart .k-ad { font: 800 28px/1.1 var(--baslik); }
.kart .k-alt { font-size: 14px; font-weight: 700; }
.kart-gunluk { background: var(--vurgu); color: var(--koyu); }
.kart-gunluk.cozuldu { background: rgba(255,255,255,.1); border: 2px solid rgba(255,154,77,.55); color: var(--yazi); }
.kart-gunluk.cozuldu .k-ad { font-size: 22px; }
.kart-maraton { background: rgba(94,234,212,.12); border: 2px solid rgba(94,234,212,.45); }
.kart-maraton.one { background: linear-gradient(120deg, #5EEAD4, #14B8A6); color: #062A26; border: 0; }
.kart-maraton .k-ad { font-size: 22px; }
.alev-kutu { flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(94,234,212,.18); display: flex; align-items: center; justify-content: center; }
.seri-cip { padding: 3px 10px; border-radius: 12px; background: rgba(26,20,66,.14); }
.mini-izgara { display: flex; flex-direction: column; gap: 3px; flex: none; }
.mini-izgara div { display: flex; gap: 3px; }
.mini-izgara span { width: 12px; height: 12px; border-radius: 3px; background: #DAD6F0; }
.mini-izgara .dogru { background: var(--dogru); } .mini-izgara .var { background: var(--var); }
.kart .mini-izgara span:not(.dogru):not(.var) { background: #4A4378; }
.alt-menu { margin-top: 22px; width: 100%; display: flex; justify-content: space-around; position: relative; }
.alt-menu button { width: 104px; min-height: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--soluk); }

/* Oyun */
.ust { position: relative; width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; letter-spacing: .5px; background: linear-gradient(90deg, #FF6F9C, #F2C2A0 50%, #6EE7B7); -webkit-background-clip: text; background-clip: text; }
.yuvarlak { width: 44px; height: 44px; border-radius: 22px; background: var(--cip); display: flex; align-items: center; justify-content: center; }
.mod-satiri { position: relative; width: 100%; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.mod-satiri > div { flex: 1; }
.mod-ad { font: 700 18px/1.15 var(--baslik); }
.mod-alt { font-size: 13px; font-weight: 700; color: var(--soluk); }
.ipucu-btn { height: 44px; padding: 0 16px; border-radius: 22px; background: var(--cip); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ipucu-btn svg { stroke: #FFC94D; width: 18px; height: 18px; }
.ipucu-btn:disabled { opacity: .45; cursor: default; }
.kategori { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--soluk); }
.kategori b { color: var(--yazi); }
#tahta { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.satir { display: flex; gap: 6px; }
.satir.salla { animation: salla .4s; }
.kare { position: relative; width: var(--kare); height: var(--kare); border-radius: 10px; border: 2px solid var(--cizgi); background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; font: 600 calc(var(--kare) * .5) var(--baslik); }
.kare.dolu { border-color: rgba(255,255,255,.6); }
.kare.hatali { border-color: #FF8FA3; background: rgba(255,92,138,.12); }
.kare.hayalet { color: rgba(158,240,225,.55); border-style: dashed; border-color: rgba(158,240,225,.6); }
.kare.dogru, .kare.var, .kare.yok { border: 0; }
.kare.yeni { animation: cevir .5s both; animation-delay: var(--g, 0s); }
.kare.dogru { background: var(--dogru); color: #fff; }
.kare.var { background: var(--var); color: var(--koyu); }
.kare.yok { background: var(--yok); color: var(--yok-yazi); }
.kare .isaret { position: absolute; right: 4px; top: 4px; width: 12px; height: 12px; stroke-width: 2; }
.alt { margin-top: auto; width: calc(var(--gen) - 8px); display: flex; flex-direction: column; gap: 10px; }
#klavye { display: flex; flex-direction: column; gap: 10px; }
.k-satir { display: flex; gap: 5px; justify-content: center; }
.k-satir.uc { justify-content: flex-start; padding-left: calc(var(--tus) * 1.17); }
.tus { flex: 0 0 var(--tus); height: var(--tus-y); border-radius: 8px; background: rgba(255,255,255,.16); font: 600 20px var(--baslik); display: flex; align-items: center; justify-content: center; touch-action: manipulation; user-select: none; }
.tus.sil { flex: 1; margin-left: 4px; }
.tus.dogru { background: var(--dogru); color: #fff; }
.tus.var { background: var(--var); color: var(--koyu); }
.tus.yok { background: var(--yok); color: var(--yok-yazi); opacity: .75; }
.ana-btn { height: 52px; border-radius: 14px; background: var(--vurgu); color: var(--koyu); font: 700 18px var(--baslik); }
.ana-btn:disabled { background: rgba(255,255,255,.12); color: var(--soluk); cursor: default; }
.ana-btn.ikincil { background: #E4E0F5; font: 800 16px var(--metin); }

/* Perde, pencereler */
#perde { position: absolute; inset: 0; z-index: 20; background: rgba(12,8,32,.74); }
#pencere { position: absolute; z-index: 21; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); background: var(--yazi); color: var(--koyu); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
#pencere.alttan { top: auto; bottom: 0; left: 0; right: 0; transform: none; border-radius: 24px 24px 0 0; padding: 12px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.p-bas { position: relative; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.p-bas.gunluk { background: linear-gradient(160deg, #FF9A4D, #FF5C8A); color: var(--koyu); }
.p-bas.kayip { height: 140px; background: linear-gradient(160deg, #4A4470, #2C2748); color: #E4E0F5; }
.p-bas.maraton { background: linear-gradient(160deg, #5EEAD4, #14B8A6); color: #062A26; }
.p-bas.sondu { height: 140px; background: linear-gradient(160deg, #3E4C5E, #232B38); color: #E4E0F5; }
.p-bas .buyuk { font: 800 34px/1 var(--baslik); margin-top: 4px; }
.p-bas .kucuk { font-weight: 800; font-size: 14px; margin-top: 4px; opacity: .92; }
.p-bas .sayi { font: 800 56px/1 var(--baslik); }
.p-bas svg.ikon { width: 46px; height: 46px; stroke-width: 2; }
.p-kapat { position: absolute; z-index: 1; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.konfeti { position: absolute; inset: 0; pointer-events: none; }
.konfeti i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: var(--b, 3px); background: var(--c); transform: rotate(var(--r)); opacity: var(--o, 1); }
.p-govde { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.p-kareler { display: flex; gap: 6px; justify-content: center; }
.p-kareler span { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 700 26px var(--baslik); background: var(--dogru); color: #fff; }
.p-kareler.acik span { background: #E4E0F5; color: var(--yok); border: 2px dashed #9B93CC; }
.p-not { text-align: center; font-size: 13px; font-weight: 700; color: var(--mor); }
.p-sira { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.p-sira .mini-izgara span { width: 14px; height: 14px; }
.p-ist { display: flex; text-align: center; padding: 10px 6px; border-radius: 14px; background: #E9E6F7; }
.p-ist div { flex: 1; } .p-ist b { display: block; font: 700 22px/1.1 var(--baslik); } .p-ist span { font-size: 12px; font-weight: 800; color: var(--mor); }
.p-butonlar { display: flex; gap: 10px; } .p-butonlar .ana-btn { flex: 1.3; } .p-butonlar .ikincil { flex: 1; }
.cubuk { display: flex; flex-direction: column; gap: 6px; } .cubuk > div:first-child { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--mor); }
.cubuk .yol { height: 10px; border-radius: 5px; background: #DAD6F0; overflow: hidden; } .cubuk .dolu { height: 100%; border-radius: 5px; background: var(--vurgu); }
.tutamak { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #C9C3E8; }
.sheet-bas { display: flex; align-items: center; gap: 12px; }
.sheet-ikon { width: 48px; height: 48px; border-radius: 14px; background: #FFF1C9; display: flex; align-items: center; justify-content: center; }
.sheet-ikon svg { stroke: #B7791F; width: 26px; height: 26px; }
.sheet-metin { font-size: 15px; font-weight: 700; line-height: 1.5; color: #3A3368; }

#bildirim { position: absolute; z-index: 30; left: 50%; top: 112px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--yazi); color: var(--koyu); box-shadow: 0 10px 28px rgba(0,0,0,.35); white-space: nowrap; transition: opacity .2s, transform .2s; }
#bildirim.goster { opacity: 1; transform: translate(-50%, 0); }
#bildirim svg { stroke: #C2185B; }
#bildirim b { display: block; font-size: 15px; } #bildirim small { display: block; font-size: 13px; font-weight: 700; color: var(--mor); }

/* Sayfalar */
.sayfa { align-items: stretch; gap: 14px; overflow-y: auto; }
.sayfa .ust { justify-content: flex-start; gap: 12px; }
.sayfa h1 { font: 700 26px var(--baslik); }
.blok { border-radius: 18px; background: rgba(255,255,255,.08); padding: 16px; }
.blok h2 { font: 700 18px var(--baslik); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.dort { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dort div { border-radius: 18px; background: rgba(255,255,255,.08); padding: 14px 4px; text-align: center; }
.dort b { display: block; font: 800 28px/1.1 var(--baslik); } .dort span { font-size: 12px; font-weight: 800; color: var(--soluk); }
.bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .bar > span { width: 12px; font-weight: 800; font-size: 14px; color: var(--soluk); }
.bar > div { flex: 1; } .bar i { display: flex; justify-content: flex-end; align-items: center; height: 26px; min-width: 26px; border-radius: 7px; background: #4A4378; padding: 0 8px; font: normal 800 13px var(--metin); }
.bar i.bugun { background: var(--dogru); }
.maraton-blok { background: rgba(94,234,212,.12); border: 2px solid rgba(94,234,212,.4); display: flex; align-items: center; gap: 14px; }
.not { text-align: center; font-size: 13px; font-weight: 700; color: var(--soluk); margin-top: auto; }

@keyframes salla { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes cevir { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
.az-hareket *, .az-hareket *::before { animation: none !important; transition: none !important; }

/* Rehber */
#perde.rehber { background: rgba(12,8,32,.74); }
.ustte { position: relative; z-index: 22; }
.kare.odak { outline: 3px solid #F4F2FF; outline-offset: 3px; transform: scale(1.06); }
.kare.soluk { opacity: .35; }
#rehberKutu { position: absolute; z-index: 23; left: 24px; right: 24px; background: var(--yazi); color: var(--koyu); border-radius: 18px; padding: 18px 20px; box-shadow: 0 12px 32px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; }
.r-adim { font-size: 12px; font-weight: 800; letter-spacing: .6px; color: #6B5FB0; }
.r-baslik { font: 700 21px/1.25 var(--baslik); }
.r-metin { font-size: 15px; font-weight: 700; line-height: 1.45; color: #3A3368; }
.r-ok { position: absolute; top: -8px; width: 16px; height: 16px; background: var(--yazi); transform: rotate(45deg); }
.r-ok.asagi { top: auto; bottom: -8px; }
.r-alt { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.r-alt .ana-btn { padding: 0 22px; height: 48px; font-size: 17px; }
.r-nokta { display: flex; gap: 6px; } .r-nokta span { width: 6px; height: 6px; border-radius: 3px; background: #C9C3E8; } .r-nokta span.on { width: 20px; background: #6B5FB0; }
#rehberGec { position: absolute; z-index: 23; right: 16px; top: calc(14px + env(safe-area-inset-top)); height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(255,255,255,.14); font-weight: 800; font-size: 14px; }
/* Ayarlar */
.blok.ince { padding: 4px 16px; }
.ayar-satir { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ayar-satir:last-child { border-bottom: 0; }
.ayar-satir > div:first-child { flex: 1; }
.ayar-satir.dikey { flex-direction: column; align-items: stretch; gap: 6px; }
.a-ust { display: flex; justify-content: space-between; align-items: baseline; }
.a-ad { font-size: 16px; font-weight: 800; } .a-alt { font-size: 13px; font-weight: 700; color: var(--soluk); line-height: 1.35; margin-top: 2px; }
.a-deger { font-size: 14px; font-weight: 800; color: var(--soluk); }
.a-surgu { display: flex; align-items: center; gap: 10px; } .a-surgu input { flex: 1; height: 44px; accent-color: #FF8A3D; margin: 0; }
.yuvarlak.kapali { background: rgba(255,92,138,.22); }
.anahtar { flex: none; width: 52px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.2); position: relative; transition: background .2s; }
.anahtar span { position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 14px; background: #fff; transition: left .2s; }
.anahtar[aria-checked="true"] { background: var(--dogru); } .anahtar[aria-checked="true"] span { left: 22px; }
.tehlike { width: 100%; text-align: left; padding: 16px 0; color: #FF8FA3; font-size: 16px; font-weight: 800; }
.tehlike-btn { background: #C2185B; color: #fff; }
.kucuk-not { font-size: 12px; line-height: 1.55; }

/* Oyun hissi */
.kare.bas { animation: bas .12s ease-out; }
.kare.zipla { animation: zipla .5s ease-out both; animation-delay: var(--g, 0s); }
.konfeti i { animation: dus 2.6s cubic-bezier(.3,.1,.6,1) var(--d, 0s) infinite both; }
.konfeti.yukari i { animation: yuksel 1.8s ease-out var(--d, 0s) infinite both; }
.nabiz { display: inline-flex; animation: nabiz 1.1s ease-in-out infinite; }
#pencere:not(.alttan):not([hidden]) { animation: gir .32s cubic-bezier(.2,1.3,.4,1) both; }
#pencere.alttan:not([hidden]) { animation: alttanGir .28s ease-out both; }
@keyframes bas { 50% { transform: scale(1.1); } }
@keyframes zipla { 30% { transform: translateY(-14px); } 55% { transform: translateY(2px); } 75% { transform: none; } }
@keyframes dus { 0% { transform: translateY(-180px) rotate(var(--r)); } 100% { transform: translateY(60px) rotate(calc(var(--r) + 300deg)); } }
@keyframes yuksel { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-50px) scale(1); opacity: 0; } }
@keyframes nabiz { 50% { transform: scale(1.14); } }
@keyframes gir { from { transform: translateY(-50%) scale(.86); opacity: 0; } to { transform: translateY(-50%); opacity: 1; } }
@keyframes alttanGir { from { transform: translateY(100%); } to { transform: none; } }

/* Kapak logosu (Behance ve site kapağındaki logo, kodla) */
.logo-kapak { position: relative; z-index: 1; margin: 0; line-height: 0; }
.logo-kapak img { width: min(300px, 76vw); height: auto; filter: drop-shadow(0 12px 26px rgba(0,0,0,.45)); }
#akis i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 24%; background: var(--c); display: flex; align-items: center; justify-content: center; font: 800 calc(var(--s) * .52) var(--baslik); font-style: normal; color: rgba(255,255,255,.9); opacity: 0; will-change: transform, opacity; }
#akis i.durgun { opacity: var(--o); }
