:root {
  --bg: #150a30; --koyu: #1a0f3d; --yuz: #ffffff; --soluk: #b9aee0;
  --cam: rgba(255, 255, 255, 0.07); --cizgi: rgba(255, 255, 255, 0.13);
  --sari: #ffc93c; --sari-k: #c98a00; --mercan: #ff5e7a; --nane: #2ee6a6; --gok: #4cc9f0; --mor: #9b6bff;
  --baslik: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --govde: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --yay: cubic-bezier(0.34, 1.56, 0.64, 1);
  --yumusak: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--yuz); font-family: var(--govde); font-weight: 700; font-size: 16px; line-height: 1.4;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .btn, b { font-family: var(--baslik); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gok); outline-offset: 2px; }

/* ---------- Zemin ---------- */
.zemin { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #2c1466 0%, #1a0d40 45%, #0f0724 100%); }
.leke { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.l1 { width: 46vmax; height: 46vmax; background: #6d28d9; top: -14vmax; left: -12vmax; animation: suzul 19s ease-in-out infinite alternate; }
.l2 { width: 38vmax; height: 38vmax; background: #db2777; bottom: -16vmax; right: -10vmax; opacity: 0.35; animation: suzul 23s ease-in-out infinite alternate-reverse; }
.l3 { width: 30vmax; height: 30vmax; background: #0ea5e9; top: 38%; left: 55%; opacity: 0.22; animation: suzul 27s ease-in-out infinite alternate; }
@keyframes suzul { to { transform: translate(7vmax, 5vmax) scale(1.15); } }
#bg, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#bg { z-index: -1; }
#fx { z-index: 60; }

#app { max-width: 780px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; }
.ekran { flex: 1; display: flex; flex-direction: column; gap: 16px; animation: ekranGir 0.42s var(--yumusak) both; }
@keyframes ekranGir { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

/* ---------- Ortak parçalar ---------- */
.cam { background: var(--cam); border: 1px solid var(--cizgi); border-radius: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 16px;
  background: linear-gradient(#ffd966, var(--sari)); color: #2b1560; font-weight: 600; font-size: 17px;
  box-shadow: 0 5px 0 var(--sari-k), 0 12px 24px -8px rgba(255, 201, 60, 0.55); transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--sari-k); }
.btn:disabled { filter: grayscale(0.7) brightness(0.75); box-shadow: 0 5px 0 #6b5a2b; }
.btn.hayalet { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); border: 1px solid var(--cizgi); }
.btn.hayalet:active:not(:disabled) { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn.buyuk { padding: 16px 28px; font-size: 20px; border-radius: 20px; }
.btn.kucuk { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.ikon-btn { width: 46px; height: 46px; border-radius: 15px; background: var(--cam); border: 1px solid var(--cizgi); font-size: 20px; display: grid; place-items: center; flex: none; transition: transform 0.15s var(--yay), background 0.2s; }
.ikon-btn:hover { transform: scale(1.08) rotate(-4deg); background: rgba(255, 255, 255, 0.14); }
.yazi-btn { color: var(--soluk); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.yazi-btn:hover { color: #fff; }
.satir { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ipucu { text-align: center; color: var(--soluk); font-size: 14px; }
.bolum-bas { font-family: var(--baslik); font-size: 18px; color: var(--soluk); font-weight: 600; margin-top: 4px; }
.ust-serit { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ust-serit h2 { font-size: 22px; font-weight: 600; text-align: center; flex: 1; }
.ust-serit .bos { width: 46px; flex: none; }

.avatar { --b: 44px; width: var(--b); height: var(--b); border-radius: 50%; display: inline-grid; place-items: center; font-size: calc(var(--b) * 0.56); flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--a) 60%, #fff), var(--a)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.16); line-height: 1; }
.avatar.mini { --b: 24px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.avatar.buyuk { --b: 58px; }
.avatar.dev { --b: 84px; }

.xp-cubuk { display: block; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.xp-cubuk u { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--nane), var(--gok)); transition: width 0.9s var(--yumusak); }
.xp-cubuk.buyuk { height: 12px; }

.bildirimler { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.bildirim { background: #fff; color: #2b1560; padding: 12px 18px; border-radius: 16px; text-align: center; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); animation: bildirimGir 0.4s var(--yay); transition: opacity 0.3s, transform 0.3s; }
.bildirim.hata { background: var(--mercan); color: #fff; }
.bildirim.cik { opacity: 0; transform: translateY(-12px); }
@keyframes bildirimGir { from { opacity: 0; transform: translateY(-20px) scale(0.9); } }

.perde { position: fixed; inset: 0; z-index: 70; background: rgba(10, 4, 28, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; animation: solGir 0.25s both; }
.perde.alt { place-items: end center; padding: 0; }
@keyframes solGir { from { opacity: 0; } }
.iletisim { background: #251355; padding: 24px; max-width: 380px; text-align: center; display: grid; gap: 12px; animation: zipGir 0.35s var(--yay); }
.iletisim p { color: var(--soluk); }
@keyframes zipGir { from { opacity: 0; transform: scale(0.8); } }

/* ---------- Ana ekran ---------- */
.profil-cip { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 99px; text-align: left; transition: transform 0.15s var(--yay); }
.profil-cip:hover { transform: scale(1.03); }
.pc-yazi { display: grid; gap: 2px; min-width: 110px; }
.pc-yazi b { font-size: 16px; line-height: 1.1; }
.pc-yazi small { font-size: 12px; color: var(--soluk); }

.logo { display: grid; justify-items: center; gap: 2px; padding: 14px 0 6px; }
.kivilcim-ikon { width: 92px; height: 92px; overflow: visible; filter: drop-shadow(0 0 22px rgba(255, 201, 60, 0.75)); animation: kivilcimGir 0.9s var(--yay) both; }
.kivilcim-ikon .yildiz { transform-origin: 50px 50px; animation: titre 3.2s ease-in-out infinite; }
.kivilcim-ikon .n { animation: goz 2.2s ease-in-out infinite; }
.kivilcim-ikon .n2 { animation-delay: 0.7s; } .kivilcim-ikon .n3 { animation-delay: 1.3s; }
@keyframes kivilcimGir { from { opacity: 0; transform: scale(0) rotate(-120deg); } }
@keyframes titre { 0%, 100% { transform: scale(1) rotate(0); } 45% { transform: scale(1.09) rotate(7deg); } 55% { transform: scale(0.96) rotate(-3deg); } }
@keyframes goz { 0%, 100% { opacity: 0.25; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.3); } }
.logo h1 { font-size: clamp(44px, 12vw, 78px); font-weight: 700; letter-spacing: 0.02em; line-height: 1; display: flex; }
.logo h1 span { display: inline-block; background: linear-gradient(180deg, #fff 20%, #ffe38a 55%, var(--sari) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #7a3cff) drop-shadow(0 8px 18px rgba(122, 60, 255, 0.6)); animation: harfDus 0.7s var(--yay) both, harfDalga 3.6s ease-in-out infinite; animation-delay: calc(0.25s + var(--i) * 0.06s), calc(1.4s + var(--i) * 0.12s); }
@keyframes harfDus { from { opacity: 0; transform: translateY(-46px) rotate(-14deg) scale(0.6); } }
@keyframes harfDalga { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.logo p { color: var(--soluk); font-size: 16px; animation: ekranGir 0.6s 0.9s both; }

.mod-kartlar { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.mod-kart { --c: var(--sari); position: relative; overflow: hidden; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 22px 14px 20px; border-radius: 26px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 32%, #2a1660), #22114f 70%); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 35%, #0d0522), 0 22px 40px -18px var(--c); transition: transform 0.2s var(--yay), box-shadow 0.2s; animation: kartGir 0.6s var(--yay) both; animation-delay: calc(0.55s + var(--i) * 0.1s); }
.mod-kart::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; top: -90px; right: -70px; background: var(--c); opacity: 0.18; transition: transform 0.4s var(--yumusak); }
.mod-kart:hover { transform: translateY(-6px) rotate(-1deg); }
.mod-kart:hover::before { transform: scale(1.5); }
.mod-kart:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 35%, #0d0522); }
.mod-kart .resim { font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); animation: yuz 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.mod-kart b { font-size: 21px; font-weight: 600; }
.mod-kart small { color: var(--soluk); font-size: 13.5px; line-height: 1.3; }
.renk-sari { --c: var(--sari); } .renk-mercan { --c: var(--mercan); } .renk-gok { --c: var(--gok); } .renk-mor { --c: var(--mor); }
@keyframes kartGir { from { opacity: 0; transform: translateY(40px) scale(0.85) rotate(4deg); } }
@keyframes yuz { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(4deg); } }

.gunluk-serit { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; transition: transform 0.2s var(--yay), background 0.2s; animation: kartGir 0.6s 0.9s var(--yay) both; }
.gunluk-serit:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.11); }
.gunluk-serit .g-ikon { font-size: 34px; animation: yuz 3s ease-in-out infinite; }
.gunluk-serit span:nth-child(2) { display: grid; flex: 1; }
.gunluk-serit small { color: var(--soluk); font-size: 14px; }
.gunluk-serit i { font-style: normal; font-size: 22px; color: var(--sari); animation: itele 1.2s ease-in-out infinite; }
@keyframes itele { 50% { transform: translateX(6px); } }
.alt-serit { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #8d80bd; font-size: 13px; flex-wrap: wrap; }

/* ---------- Menüler ---------- */
.liste-kartlar, .cok-menu { display: grid; gap: 14px; }
.buyuk-kart { --c: var(--mor); display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 24px; text-align: left; width: 100%;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 26%, #291660), #21114d 75%); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 30%, #0d0522); transition: transform 0.18s var(--yay), box-shadow 0.18s; animation: yanGir 0.5s var(--yumusak) both; animation-delay: calc(var(--i, 0) * 0.07s); }
button.buyuk-kart:hover { transform: translateY(-3px) scale(1.01); }
button.buyuk-kart:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 30%, #0d0522); }
.buyuk-kart .resim { font-size: 44px; width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 20px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.buyuk-kart > span:last-child { display: grid; gap: 3px; flex: 1; min-width: 0; }
.buyuk-kart b { font-size: 21px; font-weight: 600; }
.buyuk-kart small { color: var(--soluk); font-size: 14.5px; }
.rekor-not { font-style: normal; font-size: 13px; color: var(--sari); }
.menu.renk-sari .buyuk-kart { --c: var(--sari); } .menu.renk-mercan .buyuk-kart { --c: var(--mercan); }
@keyframes yanGir { from { opacity: 0; transform: translateX(-30px); } }

.seviye-sec { padding: 14px 16px; display: grid; gap: 8px; }
.seviye-sec label, .ayarlar label { color: var(--soluk); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.bolmeli { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(0, 0, 0, 0.25); padding: 5px; border-radius: 16px; }
.bolmeli button { padding: 10px; border-radius: 12px; font-family: var(--baslik); font-weight: 600; color: var(--soluk); transition: all 0.2s; }
.bolmeli button.secili { background: var(--mercan); color: #fff; box-shadow: 0 4px 14px -4px var(--mercan); }

/* ---------- Kategori ---------- */
.kat-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.kat-kart { --r: var(--mor); position: relative; overflow: hidden; display: grid; justify-items: start; gap: 2px; padding: 16px 14px 14px; border-radius: 22px; text-align: left;
  background: linear-gradient(150deg, color-mix(in srgb, var(--r) 85%, #fff 0%), color-mix(in srgb, var(--r) 60%, #1a0f3d)); box-shadow: 0 6px 0 color-mix(in srgb, var(--r) 45%, #000), 0 18px 28px -16px var(--r);
  transition: transform 0.18s var(--yay), box-shadow 0.18s; animation: kartGir 0.5s var(--yay) both; animation-delay: calc(var(--i) * 0.045s); }
.kat-kart::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); transition: transform 0.4s var(--yumusak); }
.kat-kart:hover { transform: translateY(-5px) rotate(-1.5deg); }
.kat-kart:hover::after { transform: scale(1.6); }
.kat-kart:hover .ikon { transform: scale(1.2) rotate(-8deg); }
.kat-kart:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--r) 45%, #000); }
.kat-kart .ikon { font-size: 40px; line-height: 1.1; transition: transform 0.25s var(--yay); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); position: relative; z-index: 1; }
.kat-kart .ikon.don { animation: don 6s linear infinite; }
.kat-kart b { font-size: 18px; font-weight: 600; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); position: relative; z-index: 1; }
.kat-kart small { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); position: relative; z-index: 1; }
.kat-kart.ozel { background: linear-gradient(150deg, #2c1869, #1f1049); border: 2px dashed color-mix(in srgb, var(--r) 70%, transparent); box-shadow: 0 6px 0 #0d0522; }
@keyframes don { to { transform: rotate(360deg); } }

.cekmece { width: min(100%, 560px); background: #23124f; border-radius: 28px 28px 0 0; border-bottom: 0; padding: 20px 18px max(24px, env(safe-area-inset-bottom)); display: grid; gap: 16px; animation: cekmeceGir 0.4s var(--yumusak) both; border-top: 4px solid var(--r); }
@keyframes cekmeceGir { from { transform: translateY(100%); } }
.c-bas { display: flex; align-items: center; gap: 14px; }
.c-bas .ikon { font-size: 40px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--r); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
.c-bas div { flex: 1; } .c-bas h3 { font-size: 24px; } .c-bas p { color: var(--soluk); font-size: 14px; }
.alt-liste { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.alt-btn { display: grid; gap: 1px; text-align: left; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 2px solid var(--cizgi); transition: all 0.15s; animation: kartGir 0.4s var(--yay) both; animation-delay: calc(0.1s + var(--i) * 0.05s); }
.alt-btn:hover { border-color: var(--r); background: color-mix(in srgb, var(--r) 22%, transparent); transform: translateY(-2px); }
.alt-btn.tum { grid-column: 1 / -1; background: color-mix(in srgb, var(--r) 30%, transparent); border-color: var(--r); }
.alt-btn b { font-size: 16.5px; font-weight: 600; } .alt-btn small { color: var(--soluk); font-size: 13px; }

.cark-kutu { display: grid; justify-items: center; gap: 18px; animation: zipGir 0.4s var(--yay); width: min(100%, 420px); }
.cark-kutu h3 { font-size: 20px; text-align: center; }
.cark-sahne { position: relative; width: min(78vw, 340px); aspect-ratio: 1; }
.cark { width: 100%; height: 100%; transition: transform 4.6s cubic-bezier(0.12, 0.72, 0.08, 1); filter: drop-shadow(0 0 30px rgba(255, 201, 60, 0.45)); border-radius: 50%; }
.cark svg { width: 100%; height: 100%; display: block; }
.cark-ok { position: absolute; top: -14px; left: 50%; margin-left: -16px; z-index: 2; width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #fff; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); transform-origin: 50% 0; transition: transform 0.06s; }
.cark-ok.vur { transform: rotate(-14deg); }
.cark-sonuc span { display: inline-block; padding: 10px 22px; border-radius: 99px; background: var(--r); font-family: var(--baslik); font-size: 24px; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); animation: zipGir 0.45s var(--yay); }

/* ---------- Soru sahnesi ---------- */
.sahne { gap: 12px; }
.s-ust { display: flex; align-items: center; gap: 12px; }
.s-ilerleme { flex: 1; display: grid; gap: 5px; }
.s-ilerleme .no { font-family: var(--baslik); font-size: 15px; color: var(--soluk); }
.s-ilerleme .cubuk { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.s-ilerleme .cubuk i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--sari), var(--mercan)); transition: width 0.6s var(--yumusak); }
.canlar { display: flex; gap: 3px; font-size: 20px; }
.canlar span { transition: all 0.4s var(--yay); } .canlar .bos { filter: grayscale(1) brightness(0.5); transform: scale(0.8); }
.s-skor { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 201, 60, 0.14); border: 1px solid rgba(255, 201, 60, 0.4); font-size: 18px; }
.s-skor b { color: var(--sari); min-width: 2ch; text-align: right; font-weight: 600; }
.ucan { position: absolute; right: 8px; top: 100%; font-family: var(--baslik); font-size: 22px; white-space: nowrap; pointer-events: none; animation: ucanGit 1.1s var(--yumusak) forwards; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.ucan.arti { color: var(--nane); } .ucan.eksi { color: var(--mercan); } .ucan.seri { color: var(--sari); top: 190%; font-size: 17px; }
@keyframes ucanGit { 0% { opacity: 0; transform: translateY(18px) scale(0.6); } 25% { opacity: 1; transform: translateY(4px) scale(1.15); } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }

.rakipler { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rakip { display: grid; justify-items: center; gap: 1px; min-width: 62px; transition: opacity 0.4s, transform 0.4s; }
.rakip .r-av { position: relative; }
.rakip .avatar { --b: 46px; transition: box-shadow 0.25s, transform 0.25s var(--yay); }
.rakipler.cok .rakip { min-width: 46px; } .rakipler.cok .avatar { --b: 38px; } .rakipler.cok b { font-size: 11.5px; }
.rakip b { font-size: 13px; font-family: var(--govde); font-weight: 800; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rakip em { font-style: normal; font-size: 13px; color: var(--sari); font-family: var(--baslik); }
.rakip .isaret { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-style: normal; transform: scale(0); transition: transform 0.3s var(--yay); }
.rakip.verdi .isaret { transform: scale(1); background: var(--sari); } .rakip.verdi .isaret::after { content: "⚡"; }
.rakip.verdi .avatar { box-shadow: 0 0 0 3px var(--sari), 0 0 16px var(--sari); }
.rakip.bildi .isaret { transform: scale(1); background: var(--nane); } .rakip.bildi .isaret::after { content: "✓"; color: #063; font-weight: 900; }
.rakip.bilemedi .isaret { transform: scale(1); background: var(--mercan); } .rakip.bilemedi .isaret::after { content: "✕"; color: #fff; font-weight: 900; }
.rakip.bildi .avatar { box-shadow: 0 0 0 3px var(--nane); transform: translateY(-4px); }
.rakip.bilemedi .avatar { box-shadow: 0 0 0 3px var(--mercan); }
.rakip.lider b::before { content: "👑 "; }
.rakip.elendi { opacity: 0.28; filter: grayscale(1); transform: scale(0.86); }

.s-orta { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: center; padding-top: 34px; }
.sayac { position: relative; width: 78px; height: 78px; margin: 0 auto -52px; z-index: 2; background: #1c0f45; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.sayac svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sayac circle { fill: none; stroke-width: 8; }
.sayac .iz { stroke: rgba(255, 255, 255, 0.1); }
.sayac .halka { stroke: var(--nane); stroke-linecap: round; transition: stroke 0.3s; }
.sayac span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--baslik); font-size: 28px; font-weight: 600; }
.sayac.kritik .halka { stroke: var(--mercan); }
.sayac.kritik { animation: nabiz 0.5s ease-in-out infinite; }
.sayac.kritik span { color: var(--mercan); }
@keyframes nabiz { 50% { transform: scale(1.1); } }

.soru-kart { --r: var(--mor); position: relative; padding: 46px 20px 24px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--r) 22%, #24135a), #1e1049); border: 2px solid color-mix(in srgb, var(--r) 55%, transparent); border-radius: 26px; box-shadow: 0 20px 40px -22px var(--r); display: grid; gap: 12px; }
.k-ust { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rozet { background: var(--r); padding: 4px 12px; border-radius: 99px; font-size: 13.5px; font-family: var(--baslik); font-weight: 600; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.etiket { background: var(--sari); color: #2b1560; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-family: var(--baslik); font-weight: 700; animation: nabiz 0.9s ease-in-out infinite; }
.zorluk { font-size: 9px; letter-spacing: 3px; color: var(--soluk); }
.soru-kart h2 { font-size: clamp(19px, 4.6vw, 26px); font-weight: 600; line-height: 1.3; text-wrap: balance; }

.secenekler { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec { --c: var(--sari); position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 66px; border-radius: 18px; text-align: left;
  background: linear-gradient(#2d1a68, #241353); border: 2px solid rgba(255, 255, 255, 0.13); box-shadow: 0 5px 0 #0e0626; transition: transform 0.14s var(--yay), border-color 0.2s, box-shadow 0.14s, opacity 0.35s, background 0.25s; }
.s1 { --c: var(--gok); } .s2 { --c: var(--nane); } .s3 { --c: #ff9db0; }
.sec:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--c); }
.sec:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #0e0626; }
.sec .harf { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #1a0f3d; font-family: var(--baslik); font-weight: 700; font-size: 19px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--yay); }
.sec:hover:not(:disabled) .harf { transform: rotate(-8deg) scale(1.08); }
.sec .metin { flex: 1; font-size: 16.5px; line-height: 1.25; font-weight: 800; }
.sec .kimler { display: flex; } .sec .kimler .avatar { margin-left: -7px; animation: zipGir 0.4s var(--yay) both; }
.secenekler.kilit .sec { pointer-events: none; }
.secenekler.kilit .sec:not(.secili) { opacity: 0.55; }
.sec.secili { border-color: var(--sari); background: linear-gradient(#4a3210, #3a2560); animation: secNabiz 0.9s ease-in-out infinite; }
@keyframes secNabiz { 50% { box-shadow: 0 5px 0 #0e0626, 0 0 0 6px rgba(255, 201, 60, 0.22); } }
.sec.dogru { background: linear-gradient(#16a36b, #0c7a4f); border-color: var(--nane); box-shadow: 0 5px 0 #064a30, 0 0 28px rgba(46, 230, 166, 0.55); animation: zipla 0.55s var(--yay); opacity: 1 !important; }
.sec.dogru .harf { background: #fff; }
.sec.yanlis { background: linear-gradient(#c22f4a, #931f37); border-color: var(--mercan); box-shadow: 0 5px 0 #5a0f1f; animation: salla 0.45s; opacity: 1 !important; }
.sec.sonuk { opacity: 0.4; }
.sec.elendi { opacity: 0.18; pointer-events: none; }
.sec.elendi .metin { text-decoration: line-through; }
.sec:disabled { cursor: default; }
@keyframes zipla { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes salla { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.s-orta.gir .soru-kart { animation: soruGir 0.5s var(--yay) both; }
.s-orta.gir .sayac { animation: zipGir 0.4s var(--yay) both; }
.s-orta.gir .sec { animation: secGir 0.42s var(--yay) both; animation-delay: calc(0.16s + var(--i) * 0.07s); }
@keyframes soruGir { from { opacity: 0; transform: perspective(700px) rotateX(-55deg) translateY(-24px); } }
@keyframes secGir { from { opacity: 0; transform: translateY(22px) scale(0.92); } }

.jokerler { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.joker { display: grid; justify-items: center; gap: 2px; padding: 8px 12px; min-width: 78px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--cizgi); transition: all 0.2s var(--yay); }
.joker span { font-size: 24px; line-height: 1.1; } .joker small { font-size: 11.5px; color: var(--soluk); }
.joker:hover:not(:disabled) { transform: translateY(-4px) scale(1.05); background: rgba(255, 255, 255, 0.16); }
.joker:disabled { opacity: 0.25; filter: grayscale(1); transform: scale(0.92); }
.joker.aktif { border-color: var(--sari); box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.3); animation: nabiz 0.8s ease-in-out infinite; }

.duyuru { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(circle, rgba(21, 10, 48, 0.9), rgba(21, 10, 48, 0.72)); transition: opacity 0.25s; }
.duyuru.git { opacity: 0; }
.d-ic { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px; animation: duyuruGir 0.5s var(--yay) both; }
.d-ic strong { font-family: var(--baslik); font-size: clamp(46px, 13vw, 104px); font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff, var(--sari) 70%, var(--mercan)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #7a3cff) drop-shadow(0 0 36px rgba(255, 201, 60, 0.5)); }
.d-ic span { font-size: 19px; color: #e6dcff; }
@keyframes duyuruGir { from { opacity: 0; transform: scale(2.2) rotate(-6deg); } }

/* ---------- Sonuç ---------- */
.sonuc { display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 8px; }
.s-tac { font-size: 76px; line-height: 1; animation: tacGir 0.8s var(--yay) both, yuz 3s 0.8s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(255, 201, 60, 0.6)); }
@keyframes tacGir { from { opacity: 0; transform: scale(0) rotate(-180deg); } }
.sonuc h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 700; animation: ekranGir 0.5s 0.2s both; }
.s-alt { color: var(--soluk); } .s-alt .rekor { color: var(--sari); }
.s-puan { display: grid; line-height: 1; animation: zipGir 0.5s 0.3s var(--yay) both; }
.s-puan b { font-size: clamp(54px, 15vw, 84px); font-weight: 700; color: var(--sari); text-shadow: 0 5px 0 #8a5a00, 0 0 40px rgba(255, 201, 60, 0.45); }
.s-puan small { color: var(--soluk); letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; margin-top: 8px; }
.s-kutular { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 460px; }
.s-kutular.dort { grid-template-columns: repeat(4, 1fr); max-width: none; }
.s-kutular div { background: var(--cam); border: 1px solid var(--cizgi); border-radius: 18px; padding: 12px 6px; display: grid; gap: 2px; animation: kartGir 0.5s var(--yay) both; }
.s-kutular div:nth-child(2) { animation-delay: 0.08s; } .s-kutular div:nth-child(3) { animation-delay: 0.16s; } .s-kutular div:nth-child(4) { animation-delay: 0.24s; }
.s-kutular b { font-size: 22px; font-weight: 600; } .s-kutular small { color: var(--soluk); font-size: 12.5px; }

.kursu { display: flex; align-items: flex-end; justify-content: center; gap: 10px; width: 100%; max-width: 440px; margin-top: 6px; }
.basamak { flex: 1; display: grid; justify-items: center; gap: 2px; animation: ekranGir 0.5s both; animation-delay: calc(0.9s - var(--g) * 0.25s); }
.basamak b { font-size: 15px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basamak em { font-style: normal; color: var(--sari); font-family: var(--baslik); font-size: 15px; }
.basamak .blok { width: 100%; margin-top: 6px; border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 8px; font-family: var(--baslik); font-size: 30px; font-weight: 700; color: rgba(0, 0, 0, 0.4); transform-origin: bottom; animation: yuksel 0.7s var(--yay) both; animation-delay: calc(1s - var(--g) * 0.25s); }
.b1 .blok { height: 118px; background: linear-gradient(#ffe07a, #f0a800); } .b2 .blok { height: 86px; background: linear-gradient(#e6ebf5, #9aa7c2); } .b3 .blok { height: 62px; background: linear-gradient(#f0b184, #b8693a); }
.b1 .avatar { --b: 62px; } .basamak.ben b { color: var(--nane); }
@keyframes yuksel { from { transform: scaleY(0); } }
.sira-liste { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 440px; display: grid; gap: 6px; }
.sira-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: var(--cam); animation: yanGir 0.4s both; animation-delay: calc(1.3s + var(--i) * 0.07s); }
.sira-liste li span:first-child { width: 22px; color: var(--soluk); font-family: var(--baslik); }
.sira-liste li b { flex: 1; text-align: left; font-size: 15px; } .sira-liste li em { font-style: normal; color: var(--sari); font-family: var(--baslik); }
.sira-liste li.ben { border: 1px solid var(--nane); } .sira-liste li.elendi { opacity: 0.6; }

.xp-kart { width: 100%; max-width: 460px; padding: 14px 16px; display: grid; gap: 8px; }
.xp-ust { display: flex; justify-content: space-between; align-items: center; }
.xp-ust .sv i { font-style: normal; color: var(--soluk); } .xp-arti { color: var(--nane); font-family: var(--baslik); }
.xp-kart.atladi { animation: zipla 0.6s var(--yay); border-color: var(--sari); box-shadow: 0 0 30px rgba(255, 201, 60, 0.4); }
.yeni-rozetler { display: grid; gap: 8px; width: 100%; max-width: 460px; }
.rozet-kart { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; border-radius: 18px; }
.rozet-kart > span { font-size: 30px; } .rozet-kart div { display: grid; } .rozet-kart small { color: var(--soluk); font-size: 12.5px; }
.yeni-rozetler .rozet-kart { border-color: var(--sari); background: rgba(255, 201, 60, 0.12); animation: kartGir 0.6s var(--yay) both; animation-delay: calc(1.6s + var(--i) * 0.15s); }
.rozet-kart.kilitli { opacity: 0.45; } .rozet-kart.kilitli > span { filter: grayscale(1); }
.dugmeler { margin-top: 8px; padding-bottom: 10px; }

/* ---------- Çok oyunculu ---------- */
.buyuk-kart.duz { cursor: default; }
.kod-giris { display: flex; gap: 8px; margin-top: 10px; }
.kod-giris input { width: 150px; padding: 11px 12px; border-radius: 14px; border: 2px solid var(--cizgi); background: rgba(0, 0, 0, 0.3); font-family: var(--baslik); font-size: 22px; letter-spacing: 0.25em; text-align: center; text-transform: uppercase; }
.kod-giris input:focus { outline: none; border-color: var(--gok); }
.lobi { display: grid; gap: 14px; }
.kod-kart { padding: 16px; display: grid; justify-items: center; gap: 10px; }
.kod-kart small { color: var(--soluk); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; }
.kod { display: flex; gap: 8px; }
.kod span { width: 50px; height: 60px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: #2b1560; font-family: var(--baslik); font-size: 32px; font-weight: 700; box-shadow: 0 5px 0 #b9aee0; }
.lobi.ilk .kod span { animation: harfDus 0.5s var(--yay) both; animation-delay: calc(var(--i) * 0.07s); }
.oyuncu-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.o-kart { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 6px 10px; border-radius: 20px; text-align: center; min-height: 118px; align-content: center; }
.lobi.ilk .o-kart { animation: zipGir 0.4s var(--yay) both; }
.o-kart b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.o-kart small { font-size: 12px; color: var(--soluk); }
.o-kart.ben { border-color: var(--nane); background: rgba(46, 230, 166, 0.1); }
.o-kart .tac { position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-style: normal; font-size: 22px; }
.o-kart .sil { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 94, 122, 0.25); font-size: 12px; }
.o-kart.bos-yer { border: 2px dashed var(--cizgi); color: #6f62a3; font-size: 26px; }
.ayarlar { padding: 16px; display: grid; gap: 9px; }
.cipler { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.cip { padding: 8px 13px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); border: 1.5px solid var(--cizgi); font-size: 14px; font-weight: 800; transition: all 0.15s; }
.cip:hover:not(:disabled) { border-color: var(--r, var(--sari)); transform: translateY(-2px); }
.cip.secili { background: var(--r, var(--sari)); border-color: transparent; color: #1a0f3d; }
.cip:disabled:not(.secili) { opacity: 0.4; }
.ayarlar.salt .cip:not(.secili) { display: none; }
.bekleme { text-align: center; color: var(--soluk); padding: 10px; }
.bekleme i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sari); margin-right: 3px; animation: zipzip 1s ease-in-out infinite; }
.bekleme i:nth-child(2) { animation-delay: 0.15s; } .bekleme i:nth-child(3) { animation-delay: 0.3s; margin-right: 8px; }
@keyframes zipzip { 40% { transform: translateY(-8px); } }

/* ---------- Profil, nasıl oynanır, hoş geldin ---------- */
.profil { display: grid; gap: 14px; }
.p-kimlik { display: flex; align-items: center; gap: 16px; padding: 16px; }
.p-kimlik > div { flex: 1; display: grid; gap: 6px; min-width: 0; }
.p-kimlik small { color: var(--soluk); font-size: 13px; }
.ad-giris { width: 100%; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--cizgi); background: rgba(0, 0, 0, 0.25); font-family: var(--baslik); font-size: 20px; font-weight: 600; }
.ad-giris:focus { outline: none; border-color: var(--sari); }
.ad-giris.buyuk { font-size: 24px; text-align: center; padding: 14px; }
.avatar-izgara { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; justify-items: center; }
.av-btn { border-radius: 50%; padding: 4px; border: 3px solid transparent; transition: transform 0.2s var(--yay), border-color 0.2s; }
.av-btn:hover { transform: scale(1.12) rotate(-6deg); }
.av-btn.secili { border-color: var(--sari); transform: scale(1.1); }
.kat-cubuklar { padding: 14px 16px; display: grid; gap: 9px; }
.kc { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.kc i { height: 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.kc u { display: block; height: 100%; width: var(--w); border-radius: 9px; background: var(--r); animation: dol 0.9s var(--yumusak) both; animation-delay: calc(0.2s + var(--i) * 0.06s); }
.kc em { font-style: normal; text-align: right; color: var(--soluk); font-family: var(--baslik); }
@keyframes dol { from { width: 0; } }
.rozet-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nasil { display: grid; gap: 12px; }
.n-kart { padding: 16px 18px; display: grid; gap: 8px; animation: yanGir 0.45s both; }
.n-kart h3 { font-size: 19px; } .n-kart p, .n-kart li { color: #d9d0f5; font-size: 15px; font-weight: 700; } .n-kart ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; } .n-kart li b { font-family: var(--govde); color: #fff; }
.hosgeldin { padding: 22px 18px; display: grid; gap: 14px; text-align: center; animation: kartGir 0.6s 0.8s var(--yay) both; }
.hosgeldin p { color: var(--soluk); }
.hosgeldin.hemen, .profil-sec.hemen { animation-delay: 0s; }
.hosgeldin .yazi-btn { justify-self: center; }
.davet-kim { display: grid; justify-items: center; gap: 4px; }
.davet-kim b { font-size: 22px; } .davet-kim small { color: var(--soluk); font-size: 14px; }

/* ---------- Profil seçici, oturum ---------- */
.as-sol { display: flex; gap: 16px; flex-wrap: wrap; }
.oturum-kutu { padding: 14px 16px; display: grid; gap: 12px; text-align: center; }
.oturum-kutu p { color: var(--soluk); font-size: 14px; }
.profil-sec { display: grid; gap: 14px; text-align: center; animation: ekranGir 0.5s 0.7s both; }
.profil-sec h2 { font-size: 28px; font-weight: 600; }
.ipucu.kucuk { font-size: 12.5px; color: #8d80bd; }
.ipucu b { color: var(--sari); letter-spacing: 0.08em; }
.ps-izgara { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ps-kart { position: relative; width: 168px; border-radius: 24px; animation: kartGir 0.5s var(--yay) both; animation-delay: calc(0.75s + var(--i) * 0.06s); transition: transform 0.2s var(--yay), background 0.2s, border-color 0.2s; }
.profil-sec.hemen .ps-kart { animation-delay: calc(var(--i) * 0.06s); }
.ps-kart:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }
.ps-kart.acik { border-color: var(--nane); box-shadow: 0 0 0 1px var(--nane), 0 16px 30px -20px var(--nane); }
.ps-sec { width: 100%; height: 100%; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 22px 10px 16px; border-radius: inherit; }
.ps-sec b { font-size: 18px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.ps-sec small { color: var(--soluk); font-size: 12.5px; }
.ps-sec em { font-style: normal; font-family: var(--baslik); font-size: 12px; color: #8d80bd; }
.ps-kart.acik em { color: var(--nane); }
.ps-sil { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--soluk); opacity: 0.65; transition: opacity 0.2s, background 0.2s, color 0.2s; }
.ps-sil:hover, .ps-sil:focus-visible { opacity: 1; background: var(--mercan); color: #fff; }
.ps-kart.yeni { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 164px; padding: 18px 10px; border: 2px dashed rgba(255, 255, 255, 0.28); }
.ps-kart.yeni .arti { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1; color: var(--sari); background: rgba(255, 201, 60, 0.16); }
.ps-kart.yeni b { font-size: 18px; font-weight: 600; margin-top: 4px; } .ps-kart.yeni small { color: var(--soluk); font-size: 12.5px; }

/* ---------- Küçük ekran ---------- */
@media (max-width: 620px) {
  .mod-kartlar { grid-template-columns: 1fr; gap: 12px; }
  .mod-kart { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 14px 16px; align-items: center; }
  .mod-kart .resim { grid-row: span 2; font-size: 44px; }
  .mod-kart b { align-self: end; } .mod-kart small { align-self: start; }
  .kivilcim-ikon { width: 70px; height: 70px; }
  .kat-izgara { grid-template-columns: 1fr 1fr; }
  .secenekler { grid-template-columns: 1fr; gap: 10px; }
  .sec { min-height: 58px; padding: 10px 12px; }
  .oyuncu-izgara { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .o-kart .avatar.buyuk { --b: 44px; } .o-kart { min-height: 100px; padding: 12px 4px 8px; } .o-kart b { font-size: 13px; }
  .kod span { width: 44px; height: 54px; font-size: 28px; }
  .s-kutular.dort { grid-template-columns: 1fr 1fr; }
  .kc { grid-template-columns: 128px 1fr 40px; font-size: 13px; }
  .rozet-izgara { grid-template-columns: 1fr; }
  .buyuk-kart .resim { width: 58px; height: 58px; font-size: 34px; }
  .buyuk-kart { padding: 14px; gap: 12px; }
  .joker { min-width: 68px; padding: 7px 8px; }
  .s-orta { justify-content: flex-start; }
  .p-kimlik .avatar.dev { --b: 64px; }
  .ps-kart { width: calc(50% - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cark { transition-duration: 1.2s !important; }
}
