/* Doğuş Kelime Bulmaca — görünüm. Renkler ve ölçüler :root içindeki değişkenlerdedir. */
:root {
  --cream: #fff8e8;
  --cream-2: #fbeccb;
  --orange: #ff7540;
  --orange-2: #ff9a5c;
  --orange-d: #e2551f;
  --navy: #24344a;
  --gold: #f4c34f;
  --gold-d: #c98d12;
  --bg0: #0a3528;
  --bg1: #0f4a3a;
  --bg2: #1d7253;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-b: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --muted: #cfe6db;
  --danger: #e2483d;
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --wheel: 280px;
  --node: 64px;
  --cell: 40px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
svg { fill: currentColor; }

/* ---------------- arka plan ---------------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, #2a8a64 0%, rgba(42, 138, 100, 0) 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(244, 195, 79, 0.18) 0%, rgba(244, 195, 79, 0) 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; }
.b1 { width: 60vmax; height: 60vmax; left: -25vmax; top: 30%; background: #13684d; animation: drift 22s ease-in-out infinite alternate; }
.b2 { width: 45vmax; height: 45vmax; right: -20vmax; top: -10vmax; background: #2f9b6e; opacity: 0.35; animation: drift 28s ease-in-out infinite alternate-reverse; }
.b3 { width: 35vmax; height: 35vmax; right: -10vmax; bottom: -12vmax; background: #b9852a; opacity: 0.22; animation: drift 25s ease-in-out infinite alternate; }
.leaf { position: absolute; width: 90px; height: 46px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, rgba(160, 230, 170, 0.16), rgba(160, 230, 170, 0.03)); }
.leaf::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.12); transform: rotate(-24deg); }
.l1 { left: 6%; top: 14%; transform: rotate(-20deg); animation: sway 9s ease-in-out infinite; }
.l2 { right: 4%; top: 48%; transform: rotate(140deg) scale(1.3); animation: sway 11s ease-in-out infinite reverse; }
.l3 { left: 12%; bottom: 8%; transform: rotate(30deg) scale(0.8); animation: sway 13s ease-in-out infinite; }
@keyframes drift { to { transform: translate(6vmax, -4vmax) scale(1.08); } }
@keyframes sway { 50% { translate: 0 -10px; rotate: 8deg; } }

/* ---------------- ekranlar ---------------- */
#app { position: fixed; inset: 0; z-index: 1; }
.screen { position: absolute; inset: 0; margin: 0 auto; width: 100%; max-width: 540px; display: flex; flex-direction: column;
  padding: var(--safe-t) 0 var(--safe-b); animation: screenIn 0.28s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } }

.topbar { flex: 0 0 auto; height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 12px; position: relative; z-index: 3; }
.topbar .spacer { flex: 1; }
.bar-title { flex: 1; margin: 0; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.bar-level { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; pointer-events: none; }
.bar-level small { font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.bar-level b { font-size: 24px; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--glass-b); border-radius: 14px; background: var(--glass);
  display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 0.12s, background 0.2s; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:active { transform: scale(0.92); }
.icon-btn:focus-visible, .btn:focus-visible, .side-btn:focus-visible, .level-tile:focus-visible, .wheel:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.coins { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 5px; border-radius: 18px; background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(244, 195, 79, 0.45); font-weight: 800; font-size: 17px; min-width: 76px; }
.coins.bump { animation: bump 0.45s ease; }
.coins.deny { animation: shake 0.4s ease; border-color: var(--danger); }
.coin-ico { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: inline-block; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff3bf 0 12%, #ffd75e 13% 55%, #e09a1c 56% 100%);
  box-shadow: inset 0 -2px 0 rgba(140, 80, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3); }
.coin-ico::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; border: 2px solid rgba(160, 95, 0, 0.45); }
.coin-ico.sm { width: 16px; height: 16px; }
.coin-ico.sm::after { border-width: 1px; }
.coin-ico.lg { width: 40px; height: 40px; }
@keyframes bump { 30% { transform: scale(1.16); } 60% { transform: scale(0.96); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------------- düğmeler ---------------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 18px; border: 0;
  border-radius: 999px; font-weight: 800; font-size: 17px; transition: transform 0.12s, filter 0.2s; }
.btn:active { transform: scale(0.96); }
.btn svg { width: 22px; height: 22px; }
.btn-play { flex-direction: column; gap: 0; min-height: 64px; color: #fff; font-size: 24px; letter-spacing: 1.5px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange) 55%, var(--orange-d));
  box-shadow: 0 6px 0 #b8400f, 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 0 rgba(120, 40, 0, 0.35); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8400f, 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.btn-play small { font-size: 13px; letter-spacing: 0.5px; font-weight: 700; opacity: 0.92; text-shadow: none; }
.btn-soft { background: var(--glass); border: 1px solid var(--glass-b); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid rgba(36, 52, 74, 0.18); margin-top: 10px; min-height: 46px; font-size: 16px; }
.btn-ghost.danger { color: var(--danger); border-color: rgba(226, 72, 61, 0.35); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 #9c2a22; }

/* ---------------- ana menü ---------------- */
.home-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 28px 48px; text-align: center; }
.home-logo { width: min(150px, 40vw); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.home-title { margin: 0; display: flex; flex-direction: column; line-height: 0.95; font-weight: 900; letter-spacing: 2px; }
.home-title .t1 { font-size: clamp(34px, 11vw, 50px); color: var(--cream); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.home-title .t2 { font-size: clamp(30px, 9.5vw, 44px); color: var(--gold); text-shadow: 0 4px 0 #8a5a06; }
.home-tiles { display: flex; gap: 6px; margin: 4px 0 2px; }
.home-tiles i { font-style: normal; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); box-shadow: 0 3px 0 #b8400f; animation: tileBob 2.8s ease-in-out infinite; }
.home-tiles i:nth-child(2) { animation-delay: 0.15s; } .home-tiles i:nth-child(3) { animation-delay: 0.3s; }
.home-tiles i:nth-child(4) { animation-delay: 0.45s; } .home-tiles i:nth-child(5) { animation-delay: 0.6s; } .home-tiles i:nth-child(6) { animation-delay: 0.75s; }
@keyframes tileBob { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-7px); } }
.home-hello { margin: 2px 0 6px; color: var(--muted); font-size: 15px; min-height: 1.2em; }
.home-body .btn-play { max-width: 320px; }
.home-row { display: flex; gap: 10px; width: 100%; max-width: 320px; }
.home-progress { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.nick-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.nick-box input { width: 100%; height: 46px; border-radius: 14px; border: 0; padding: 0 14px; font: 700 17px var(--font); text-align: center; color: var(--navy); background: var(--cream); user-select: text; }

/* ---------------- bölüm seçimi ---------------- */
.levels-sum { margin: 0 16px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.level-grid { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 6px 16px 72px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); grid-auto-rows: 66px; gap: 12px 10px; align-content: start; }
.level-tile { position: relative; height: 66px; border: 0; border-radius: 16px; font-weight: 900; font-size: 20px;
  background: rgba(255, 248, 232, 0.92); color: var(--navy); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); transition: transform 0.12s; }
.level-tile:active { transform: scale(0.94); }
.level-tile.done { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #6a4300; box-shadow: 0 4px 0 var(--gold-d); }
.level-tile.done::after { content: ""; position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #2a9d5c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }
.level-tile.current { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 4px 0 #b8400f, 0 0 0 3px rgba(255, 255, 255, 0.5); animation: pulse 1.8s ease-in-out infinite; }
.level-tile.locked { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); box-shadow: none; cursor: not-allowed; font-size: 15px; }
.level-tile.locked::before { content: ""; display: block; width: 16px; height: 16px; margin: 0 auto 2px; opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2Zm-7-2a2 2 0 0 1 4 0v2h-4V7Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.level-tile .diff { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 2px; }
.level-tile .diff i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.45; }
/* Doğuş marka kelimesi geçen bölümler: logolu kutucuk */
.level-tile.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; font-size: 16px; line-height: 1;
  box-shadow: 0 4px 0 #b3000c, 0 0 0 2px #e1000e inset; }
.level-tile.brand .tile-logo { width: 62%; max-width: 44px; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.level-tile.brand.locked .tile-logo { opacity: 0.55; filter: grayscale(0.4); }
.level-tile.brand.locked::before { display: none; }
.level-grid { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent; }
.level-grid::-webkit-scrollbar { width: 6px; }
.level-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.35); border-radius: 3px; }
.level-grid::-webkit-scrollbar-track { background: transparent; }
@keyframes pulse { 50% { box-shadow: 0 4px 0 #b8400f, 0 0 0 6px rgba(255, 255, 255, 0.25); } }

/* ---------------- oyun: bulmaca ---------------- */
.board-area { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px 12px; position: relative; }
.board { position: relative; }
.cell { position: absolute; width: var(--cell); height: var(--cell); border-radius: calc(var(--cell) * 0.2);
  background: rgba(255, 248, 232, 0.2); border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.12);
  display: grid; place-items: center; font-weight: 900; font-size: calc(var(--cell) * 0.58); line-height: 1; color: #fff; }
.cell span { display: block; transform: translateY(1px); }
.cell.open { background: linear-gradient(180deg, var(--orange-2), var(--orange) 60%, var(--orange-d)); border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 -3px 0 rgba(120, 30, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 8px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 0 rgba(120, 40, 0, 0.3); }
.cell.open.pop { animation: cellPop 0.42s cubic-bezier(.3, 1.6, .5, 1) both; }
.cell.hinted { background: linear-gradient(180deg, #ffe592, var(--gold) 60%, var(--gold-d)); color: #6a4300; text-shadow: none; }
.cell.flash { animation: cellFlash 0.6s ease; }
.cell.done { animation: cellWave 0.6s ease both; }
@keyframes cellPop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
@keyframes cellFlash { 30% { transform: scale(1.14); filter: brightness(1.3); } }
@keyframes cellWave { 40% { transform: translateY(-8px) scale(1.06); } }

/* ---------------- oyun: kelime kapsülü ---------------- */
.preview-row { flex: 0 0 auto; height: 48px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.preview { min-width: 0; height: 40px; padding: 0 18px; border-radius: 20px; display: flex; align-items: center; gap: 2px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; font-weight: 900; font-size: 24px; letter-spacing: 3px;
  box-shadow: 0 4px 0 #b8400f, 0 8px 18px rgba(0, 0, 0, 0.25); opacity: 0; transform: scale(0.7); transition: opacity 0.12s, transform 0.12s; }
.preview.show { opacity: 1; transform: none; }
.preview.bad { background: linear-gradient(180deg, #ff6b61, var(--danger)); box-shadow: 0 4px 0 #9c2a22; animation: shake 0.38s ease; }
.preview.ok { background: linear-gradient(180deg, #4fd38c, #24a463); box-shadow: 0 4px 0 #157544; }
.preview.bonus { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #6a4300; box-shadow: 0 4px 0 var(--gold-d); }
.preview.dup { background: linear-gradient(180deg, #a9b7c9, #7f8ea3); box-shadow: 0 4px 0 #59677a; }
.preview.fade { opacity: 0; transform: translateY(-14px) scale(0.9); transition: opacity 0.3s 0.25s, transform 0.3s 0.25s; }

/* ---------------- oyun: harf çarkı ---------------- */
.wheel-area { flex: 0 0 auto; position: relative; display: flex; justify-content: center; align-items: center; padding: 6px 0 calc(14px + var(--bottom-reserve, 0px)); }
.wheel { position: relative; width: var(--wheel); height: var(--wheel); border-radius: 50%; touch-action: none; outline: none;
  background: radial-gradient(circle at 50% 38%, #fffdf6 0%, var(--cream) 55%, var(--cream-2) 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 -6px 0 rgba(180, 140, 60, 0.18); }
.wheel::before { content: ""; position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); z-index: 0;
  background: url("../assets/logo.png") center / contain no-repeat; opacity: 0.22; pointer-events: none; }
.wheel-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.wheel-line polyline { fill: none; stroke: var(--orange); stroke-width: calc(var(--node) * 0.16); stroke-linecap: round; stroke-linejoin: round; opacity: 0.92; }
.wheel-nodes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.node { position: absolute; left: 0; top: 0; width: var(--node); height: var(--node); margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: calc(var(--node) * 0.56); color: var(--navy); line-height: 1;
  transition: left 0.32s cubic-bezier(.5, 0, .3, 1.3), top 0.32s cubic-bezier(.5, 0, .3, 1.3), background 0.08s, color 0.08s, transform 0.12s; }
.node span { transform: translateY(1px); }
.node.sel { background: radial-gradient(circle at 40% 35%, var(--orange-2), var(--orange) 60%, var(--orange-d)); color: #fff; transform: scale(1.06);
  box-shadow: 0 3px 8px rgba(160, 60, 10, 0.35); z-index: 3; }
.node.kbd { box-shadow: 0 0 0 3px var(--gold); }

.side-btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--glass-b); background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 3; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s, opacity 0.2s; }
.side-btn svg { width: 28px; height: 28px; }
.side-btn:active { transform: scale(0.9); }
.shuffle-btn { left: max(8px, calc(50% - var(--wheel) / 2 - 66px)); bottom: calc(26px + var(--bottom-reserve, 0px)); }
.hint-btn { right: max(8px, calc(50% - var(--wheel) / 2 - 66px)); bottom: calc(26px + var(--bottom-reserve, 0px)); background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #6a4300; border-color: rgba(255, 255, 255, 0.6); }
.hint-btn .cost { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px;
  border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; white-space: nowrap; }
.hint-btn.poor { filter: grayscale(0.6); opacity: 0.8; }
.bonus-btn { left: max(8px, calc(50% - var(--wheel) / 2 - 62px)); top: 6px; width: 46px; height: 46px; color: var(--gold); }
.bonus-btn svg { width: 24px; height: 24px; }
.bonus-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.bonus-btn.got { animation: bump 0.5s ease; }

/* ---------------- pencereler ---------------- */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 25, 19, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn 0.2s ease; }
.card { position: relative; z-index: 1; width: 100%; max-width: 360px; max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 22px 22px; border-radius: 28px;
  background: linear-gradient(180deg, #fffdf7, var(--cream)); color: var(--navy); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: cardIn 0.32s cubic-bezier(.3, 1.4, .5, 1); }
.card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.card p { margin: 8px 0; font-size: 15px; line-height: 1.45; }
.card .btn { margin-top: 12px; }
.muted { color: #5d6b7c; }
.small { font-size: 13px !important; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: scale(0.85) translateY(20px); } }

.win-card { overflow: hidden; padding-top: 18px; }
.win-rays { position: absolute; left: 50%; top: 70px; width: 420px; height: 420px; margin: -210px 0 0 -210px; pointer-events: none; opacity: 0.55;
  background: repeating-conic-gradient(rgba(244, 195, 79, 0.35) 0 10deg, rgba(244, 195, 79, 0) 10deg 20deg); animation: spin 14s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%); }
.win-card > *:not(.win-rays) { position: relative; }
.win-prod { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25)); animation: prodIn 0.6s cubic-bezier(.3, 1.5, .5, 1) 0.1s both; }
.win-sub { color: #5d6b7c; margin-top: 0 !important; }
.win-reward { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 8px 18px 8px 10px; border-radius: 30px; background: var(--navy); color: #fff; font-size: 26px; font-weight: 900; }
.win-points { color: #2a7a55; font-weight: 700; font-size: 14px !important; min-height: 1em; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes prodIn { from { opacity: 0; transform: scale(0.3) rotate(-25deg); } }

.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(36, 52, 74, 0.1); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 52px; height: 30px; border-radius: 15px; background: #c9d1db; position: relative; transition: background 0.2s; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.toggle input:checked + i { background: var(--orange); }
.toggle input:checked + i::after { transform: translateX(22px); }
.toggle input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }

.bonus-meter { height: 10px; border-radius: 5px; background: rgba(36, 52, 74, 0.12); overflow: hidden; margin: 6px 0 12px; }
.bonus-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--orange)); transition: width 0.4s; }
.bonus-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 40px; }
.bonus-list span { padding: 6px 12px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 15px; }
.bonus-list .empty { background: none; color: #5d6b7c; font-weight: 600; letter-spacing: 0; }

.rank-list { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.rank-list li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 16px; }
.rank-list li:nth-child(odd) { background: rgba(36, 52, 74, 0.06); }
.rank-list li.me { background: rgba(255, 117, 64, 0.18); font-weight: 800; }
.rank-list .s { width: 30px; color: var(--orange-d); font-weight: 900; }
.rank-list .a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .p { font-weight: 800; }
.rank-list .empty { justify-content: center; color: #5d6b7c; background: none !important; }

/* ---------------- bildirim ve efektler ---------------- */
.toast { position: fixed; left: 50%; top: calc(66px + var(--safe-t)); z-index: 30; max-width: min(92vw, 420px); padding: 11px 18px; border-radius: 16px;
  background: rgba(20, 30, 44, 0.92); color: #fff; font-weight: 700; font-size: 15px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fx-layer { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.fly { position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 22%; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.38s cubic-bezier(.45, 0, .2, 1), opacity 0.2s; will-change: transform; }
.fly.gold { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #6a4300; }
.confetti { position: absolute; z-index: 0; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
.spark { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--gold); animation: spark 0.6s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* Doğuş marka kelimesi bulununca */
.brand-pop { position: fixed; left: 50%; top: calc(70px + var(--safe-t)); z-index: 26; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 22px; background: linear-gradient(180deg, #fffdf7, var(--cream)); color: var(--navy); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 0 3px var(--gold);
  transform: translateX(-50%); animation: brandIn 0.5s cubic-bezier(.3, 1.5, .5, 1) both; pointer-events: none; max-width: calc(100vw - 32px); }
.brand-pop img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); animation: prodIn 0.6s cubic-bezier(.3, 1.5, .5, 1) 0.1s both; }
.brand-pop small { display: block; font-size: 12px; font-weight: 700; color: #2a7a55; letter-spacing: 0.3px; }
.brand-pop b { display: block; font-size: 18px; font-weight: 900; }
.brand-pop.out { animation: brandOut 0.35s ease forwards; }
.cell.brand { background: linear-gradient(180deg, #ffe592, var(--gold) 60%, var(--gold-d)); color: #6a4300; text-shadow: none; }
@keyframes brandIn { from { opacity: 0; transform: translate(-50%, -30px) scale(0.7); } }
@keyframes brandOut { to { opacity: 0; transform: translate(-50%, -20px) scale(0.9); } }

/* ---------------- azaltılmış hareket ---------------- */
body.rm *, body.rm *::before, body.rm *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
body.rm .blob, body.rm .leaf, body.rm .win-rays { animation: none !important; }

/* çok kısa ekranlar */
@media (max-height: 600px) {
  .topbar { height: 50px; }
  .preview-row { height: 42px; }
  .preview { height: 34px; font-size: 20px; }
  .home-logo { width: 100px; }
  .home-tiles { display: none; }
}
