:root {
  --ink: #3d3a4b;
  --card: rgba(255, 252, 245, 0.94);
  --accent: #f4a259;
  --accent-dark: #d9823a;
  --nazar-dark: #1f4e9c;
  --nazar-light: #7cc4f0;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #5b6aa0; color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }
#hud {
  position: fixed; top: 0; left: 0; right: 0;
  padding: max(12px, env(safe-area-inset-top)) 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 22px; font-weight: bold; pointer-events: none;
}
#hud[hidden] { display: none; }
#hud .pill { background: var(--card); border-radius: 999px; padding: 6px 14px; min-height: 40px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (max-width: 340px) {
  #hud { font-size: 18px; padding-left: 10px; padding-right: 10px; }
  #hud .pill { padding: 4px 10px; }
  .nazar { width: 20px; height: 20px; }
}

/* Can göstergesi: nazar boncuğu */
.nazar {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle, #1b1b2a 0 18%, var(--nazar-light) 19% 34%, #fff 35% 52%, var(--nazar-dark) 53%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.nazar.lost { filter: grayscale(1); opacity: 0.3; }

#ver {
  position: fixed; left: 10px; bottom: max(8px, env(safe-area-inset-bottom));
  font-size: 12px; color: #fff; opacity: 0.7; pointer-events: none;
}
#banner {
  position: fixed; left: 0; right: 0; top: 22%;
  text-align: center; font-size: 30px; font-weight: bold; color: #fff;
  text-shadow: -2px -2px 0 #3d3a4b, 2px -2px 0 #3d3a4b, -2px 2px 0 #3d3a4b, 2px 2px 0 #3d3a4b, 0 4px 0 #3d3a4b;
  pointer-events: none; opacity: 0; transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.9); padding: 0 16px;
}
#banner.show { opacity: 1; transform: scale(1); }
.screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(40, 44, 80, 0.35);
}
.screen[hidden] { display: none; }
.card {
  background: var(--card); border-radius: 24px; padding: 28px 22px;
  text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 10px 0 rgba(61, 58, 75, 0.15);
}
.card h1 { margin: 0 0 8px; font-size: 40px; }
.card p { margin: 0 0 18px; font-size: 17px; line-height: 1.4; }
.card .small { font-size: 14px; opacity: 0.75; margin-top: -8px; }
.card button {
  font: inherit; font-size: 22px; font-weight: bold; color: #fff;
  background: var(--accent); border: 0; border-radius: 16px;
  padding: 14px 36px; box-shadow: 0 5px 0 var(--accent-dark); cursor: pointer;
}
.card button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-dark); }
#stick, #knob {
  position: fixed; border-radius: 50%; pointer-events: none; display: none;
  transform: translate(-50%, -50%);
}
#stick { width: 110px; height: 110px; background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.6); }
#knob { width: 48px; height: 48px; background: rgba(255,255,255,0.85); }

/* v1: etkin güçler, bildirim, ulti düğmesi */
#buffs {
  position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 50px); left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; pointer-events: none; font-size: 16px; font-weight: bold;
}
#buffs span { background: var(--card); border-radius: 999px; padding: 2px 10px; }
#toast {
  position: fixed; left: 0; right: 0; top: 33%;
  text-align: center; font-size: 22px; font-weight: bold; color: #fff;
  text-shadow: -2px -2px 0 #3d3a4b, 2px -2px 0 #3d3a4b, -2px 2px 0 #3d3a4b, 2px 2px 0 #3d3a4b, 0 3px 0 #3d3a4b;
  pointer-events: none; opacity: 0; transition: opacity 0.2s; padding: 0 16px;
}
#toast.show { opacity: 1; }
#ulti {
  position: fixed; right: 18px; bottom: max(24px, env(safe-area-inset-bottom));
  width: 78px; height: 78px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  --p: 0deg;
  background: conic-gradient(var(--accent) var(--p), rgba(255, 252, 245, 0.55) 0);
  box-shadow: 0 5px 0 rgba(61, 58, 75, 0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: inherit; color: var(--ink); touch-action: none;
}
#ulti[hidden] { display: none; }
#ulti::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
#ulti span, #ulti small { position: relative; line-height: 1; }
#ulti span { display: flex; }
#ulti .ico { width: 36px; height: 36px; }
.ico { width: 28px; height: 28px; display: block; }
#ulti small { font-size: 11px; font-weight: bold; margin-top: 3px; }
#ulti.ready { animation: ultiPulse 0.7s ease-in-out infinite alternate; background: var(--accent); }
@keyframes ultiPulse { to { transform: scale(1.12); } }
/* v3: ışınlanma düğmesi (ulti'nin üstünde, biraz küçük) */
#tp {
  position: fixed; right: 25px; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 92px);
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  --p: 360deg;
  background: conic-gradient(#7cc4f0 var(--p), rgba(255, 252, 245, 0.55) 0);
  box-shadow: 0 5px 0 rgba(61, 58, 75, 0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: inherit; color: var(--ink); touch-action: none;
}
#tp[hidden] { display: none; }
#tp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
#tp span, #tp small { position: relative; line-height: 1; }
#tp span { display: flex; }
#tp small { font-size: 9px; font-weight: bold; margin-top: 2px; }
#tp:not(.ready) span { opacity: 0.45; }
#tp.ready { background: #7cc4f0; }
#tp.press { animation: tpPress 0.35s ease-out; }
@keyframes tpPress { 30% { transform: scale(0.82); } 100% { transform: scale(1); } }
/* v6: miyav düğmesi (ışınlanmanın üstünde) */
#meow {
  position: fixed; right: 25px; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 168px);
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  --p: 360deg;
  background: conic-gradient(#f2a65a var(--p), rgba(255, 252, 245, 0.55) 0);
  box-shadow: 0 5px 0 rgba(61, 58, 75, 0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: inherit; color: var(--ink); touch-action: none;
}
#meow[hidden] { display: none; }
#meow::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
#meow span, #meow small { position: relative; line-height: 1; }
#meow span { display: flex; }
#meow small { font-size: 9px; font-weight: bold; margin-top: 2px; }
#meow:not(.ready) span { opacity: 0.45; }
#meow.ready { background: #f2a65a; }
#meow.press { animation: tpPress 0.35s ease-out; }
#mini { position: fixed; inset: auto; right: 12px; top: calc(max(12px, env(safe-area-inset-top)) + 56px); width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 3px 0 rgba(61, 58, 75, 0.25); pointer-events: none; }
#mini[hidden] { display: none; }
#hearts { gap: 8px; }

/* v1: hasar, nazar çatlaması, süre, dalga yazısı */
#hurt { position: fixed; inset: 0; pointer-events: none; }
#hurt.on { animation: hurtFlash 0.6s ease-out; }
@keyframes hurtFlash { from { box-shadow: inset 0 0 80px 26px rgba(224, 60, 60, 0.85); } to { box-shadow: inset 0 0 80px 26px rgba(224, 60, 60, 0); } }
.nazar { position: relative; }
.nazar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; background: linear-gradient(115deg, transparent 44%, #fff 45% 52%, transparent 53%), linear-gradient(60deg, transparent 56%, #fff 57% 62%, transparent 63%); }
.nazar.cracked::after { opacity: 0.9; }
.nazar.hit { animation: nazarHit 0.6s; }
.nazar.hit::after { opacity: 1; }
@keyframes nazarHit { 0%, 100% { transform: translate(0) scale(1); } 15% { transform: translate(-3px, 1px) scale(1.25); } 35% { transform: translate(3px, -1px) scale(1.25); } 55% { transform: translate(-2px, 0) scale(1.1); } 75% { transform: translate(2px, 0); } }
#timer.urgent { animation: timerPulse 0.5s infinite; color: #d03a3a; }
@keyframes timerPulse { 50% { transform: scale(1.12); } }
#banner.show { opacity: 1; transform: none; animation: bannerPop 1.4s both; transition: none; }
@keyframes bannerPop { 0% { opacity: 0; transform: scale(0.6); } 22% { opacity: 1; transform: scale(1.15); } 36% { transform: scale(0.96) rotate(-2deg); } 50%, 80% { opacity: 1; transform: scale(1) rotate(2deg); } 100% { opacity: 0; transform: scale(1); } }

/* v4: kedi seçimi, isim kutusu, liderlik tablosu */
.card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; touch-action: pan-y; }
.breeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 2px 2px 8px; margin: 0 -6px 8px; }
.breeds::-webkit-scrollbar { display: none; }
.card .breeds button {
  flex: 0 0 auto; font-size: 14px; padding: 8px 10px; border-radius: 14px; min-width: 64px; min-height: 44px;
  background: #ece6da; color: var(--ink); box-shadow: 0 3px 0 rgba(61, 58, 75, 0.18);
  display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.1;
}
.card .breeds button i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(61, 58, 75, 0.25); }
.card .breeds button small { font-size: 10px; font-weight: normal; opacity: 0.7; }
.card .breeds button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-dark); }
.card .breeds button.locked { opacity: 0.55; }
.name-in {
  font: inherit; font-size: 18px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 2px solid #e2dbcd;
  background: #fff; color: var(--ink); text-align: center; outline: none; user-select: text; -webkit-user-select: text;
}
.name-in:focus { border-color: var(--accent); }
.card .msg { min-height: 1.2em; margin: 6px 0 10px; color: #c0473a; opacity: 1; }
.lb-form { display: flex; gap: 8px; }
.lb-form .name-in { flex: 1; min-width: 0; }
.card .lb-form button { font-size: 17px; padding: 10px 14px; }
.card .lb-form button:disabled { opacity: 0.5; }
.lb { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; font-size: 15px; }
.lb li { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 10px; }
.lb li:nth-child(odd) { background: rgba(61, 58, 75, 0.05); }
.lb li.me { background: rgba(244, 162, 89, 0.28); font-weight: bold; }
.lb li b { width: 22px; text-align: right; }
.lb li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb li em { font-style: normal; font-weight: bold; }
.lb .head { background: none !important; font-size: 12px; opacity: 0.6; padding-bottom: 0; }
.lb.mini { margin: 14px 0 6px; font-size: 13px; }
.card .msg.ok { color: #3f8a4f; }
/* v4: ekşi yağmur katmanı (uyarıda kenarlar yanıp söner, yağmurda yeşil perde + çizgiler) */
#acid { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
#acid.warn { opacity: 1; animation: acidWarn 0.8s ease-in-out infinite alternate; box-shadow: inset 0 0 60px 18px rgba(170, 230, 80, 0.55); }
#acid.on { opacity: 1; background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(225, 255, 150, 0.22) 22px 24px), rgba(150, 210, 70, 0.16); background-size: 100% 100%, 100% 100%; animation: acidRain 0.35s linear infinite; }
@keyframes acidWarn { to { box-shadow: inset 0 0 30px 6px rgba(170, 230, 80, 0.2); } }
@keyframes acidRain { from { background-position: 0 0, 0 0; } to { background-position: -9px 48px, 0 0; } }

/* v5: boss çubuğu, kader kartları, şapkalar, günlük ada */
#bossbar { position: fixed; top: calc(env(safe-area-inset-top) + 62px); left: 50%; transform: translateX(-50%); width: min(280px, 70vw); z-index: 5; text-align: center; font-size: 12px; font-weight: bold; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
#bossbar[hidden] { display: none; }
#bossbar span { display: block; line-height: 14px; }
#bossbar div { height: 12px; border-radius: 8px; background: rgba(20,16,40,.6); border: 2px solid #fff; overflow: hidden; margin-top: 2px; }
#bossbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4d6d, #ffb347); transition: width .15s; }
#perk { z-index: 30; }
#perk-cards { display: flex; gap: 8px; margin-top: 8px; }
#perk-cards button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; font-size: 14px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(61,58,75,.2); min-height: 120px; }
#perk-cards button span { font-size: 34px; }
#perk-cards button small { font-size: 11px; font-weight: normal; opacity: .75; line-height: 1.2; }
#perk-cards button:active { transform: translateY(2px); }
.hats { grid-template-columns: repeat(7, 1fr); }
.card .hats button { min-width: 0; padding: 6px 2px; }
.card .hats button i { width: auto; height: auto; border: 0; font-size: 20px; }
.card button.alt { background: #7a6ff0; box-shadow: 0 4px 0 #5a50c8; margin-top: 14px; }

/* v5: Dev Yengeç sinematiği */
#cine { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#cine i { position: absolute; left: 0; right: 0; height: 13vh; background: #0b0a16; transition: transform .35s ease; }
#cine i:first-child { top: 0; transform: translateY(-100%); }
#cine i:nth-child(2) { bottom: 0; transform: translateY(100%); }
body.cine #cine i { transform: none; }
#cine-text { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-size: clamp(22px, 7vw, 40px); padding: 0 18px; font-weight: 900; color: #ff4d5e; letter-spacing: 2px; text-shadow: 0 3px 0 #2a0a14, 0 0 24px rgba(255,60,80,.7); opacity: 0; }
#cine-text.hit { animation: cineHit 1.1s both; }
@keyframes cineHit { 0% { opacity: 0; transform: scale(2.2); } 18% { opacity: 1; transform: scale(1); } 24% { transform: translate(-4px, 2px) scale(1.03); } 30% { transform: translate(4px, -2px); } 36%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.1); } }
body.cine #hud, body.cine #buffs, body.cine #mini, body.cine #tp, body.cine #meow, body.cine #ulti, body.cine #bossbar { opacity: 0; transition: opacity .2s; }
#flash { position: fixed; inset: 0; z-index: 19; background: #fff; opacity: 0; pointer-events: none; }
#flash.go { animation: flashGo .6s ease-out; }
@keyframes flashGo { 0% { opacity: .9; } 100% { opacity: 0; } }

/* v5: sakin bildirimler (küçük, kısa, yarı saydam) */
#banner { font-size: 19px; top: 16%; text-shadow: -1.5px -1.5px 0 #3d3a4b, 1.5px -1.5px 0 #3d3a4b, -1.5px 1.5px 0 #3d3a4b, 1.5px 1.5px 0 #3d3a4b; }
#banner.show { animation-duration: 1.1s; }
@keyframes bannerPop { 0% { opacity: 0; transform: scale(0.85); } 18% { opacity: .95; transform: scale(1.04); } 30%, 75% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
#toast { font-size: 14px; top: 26%; opacity: 0; text-shadow: -1px -1px 0 #3d3a4b, 1px -1px 0 #3d3a4b, -1px 1px 0 #3d3a4b, 1px 1px 0 #3d3a4b; }
#toast.show { opacity: .92; }

/* v6 C: ada seçimi, cüzdan, mağaza */
.islands { grid-template-columns: repeat(2, 1fr); }
.wallet { font-weight: bold; margin: 0 0 8px; opacity: 1 !important; }
.shop-list { display: grid; gap: 8px; margin-bottom: 12px; }
.shop-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; background: rgba(255, 252, 245, 0.7); border-radius: 14px; padding: 8px 10px; }
.shop-row b { font-size: 15px; }
.shop-row small { grid-column: 1; font-size: 12px; opacity: 0.75; }
.shop-row .pips { grid-column: 1; letter-spacing: 3px; font-size: 12px; color: var(--accent); }
.card .shop-row button { grid-column: 2; grid-row: 1 / span 3; font-size: 15px; padding: 8px 12px; margin: 0; width: auto; }
.card .shop-row button:disabled { opacity: 0.45; }

/* v6 C: yeni menü (alttan açılan sayfa; kedi üstte görünür) ve liderlik */
#menu { flex-direction: column; justify-content: space-between; align-items: center; padding: 0; background: linear-gradient(to bottom, rgba(36, 30, 72, 0.55), rgba(36, 30, 72, 0) 38%); pointer-events: none; }
.menu-top { text-align: center; padding: max(14px, env(safe-area-inset-top)) 16px 0; color: #fff; text-shadow: 0 3px 0 rgba(36, 30, 72, 0.45); }
.logo { margin: 0; font-size: 44px; letter-spacing: 0.5px; }
.tag { margin: 2px 0 8px; font-size: 14px; opacity: 0.95; }
.tag b { color: #ffd98a; }
.menu-top .wallet { display: inline-block; margin: 0; padding: 5px 14px; border-radius: 999px; background: rgba(255, 252, 245, 0.92); color: var(--ink); text-shadow: none; font-size: 14px; font-weight: bold; }
#menu .sheet { pointer-events: auto; max-width: 460px; width: 100%; max-height: 62vh; max-height: 62dvh; border-radius: 26px 26px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); text-align: left; box-shadow: 0 -8px 30px rgba(36, 30, 72, 0.35); }
.sheet section { margin-bottom: 8px; }
.sheet h2 { margin: 0 0 4px 4px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.6; }
#menu .breeds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 0; padding: 2px 0 4px; }
#menu .breeds.islands { grid-template-columns: 1fr 1fr; }
#menu .breeds button { min-width: 0; min-height: 50px; padding: 6px 2px; font-size: 12px; overflow: hidden; }
#menu .breeds button small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.hat-ico { border: 0 !important; background: none !important; width: 28px !important; height: 28px !important; display: block; }
#menu .name-in { margin-top: 4px; padding: 8px 12px; font-size: 16px; }
#menu .msg { margin: 4px 0 6px; text-align: center; min-height: 1.1em; }
#menu .sheet button.big { width: 100%; font-size: 26px; padding: 14px; margin: 0 0 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
#menu .sheet .row3 button.alt { margin: 0; padding: 10px 4px; font-size: 14px; border-radius: 14px; }
#menu #streak { text-align: center; margin: 8px 0 0; }
#board .card { text-align: left; }
#board h1, #board .small { text-align: center; }
.lb.big { font-size: 16px; max-height: 50dvh; overflow-y: auto; margin-bottom: 14px; }
.lb.big li { padding: 9px 12px; }
.lb.big li b { width: 30px; font-size: 18px; }
/* sonuç ekranı düzeni */
#over .card { max-width: 400px; padding: 20px 16px; }
#over h1 { font-size: 34px; margin-bottom: 10px; }
#over #over-text { background: rgba(61, 58, 75, 0.07); border-radius: 14px; padding: 10px 12px; font-size: 16px; }
#over .lb { max-height: 26vh; max-height: 26dvh; overflow-y: auto; margin-bottom: 12px; }
#over #again { width: 100%; position: sticky; bottom: 0; }

/* duraklat */
#pause { position: fixed; left: 12px; top: calc(max(12px, env(safe-area-inset-top)) + 54px); width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; background: var(--card); box-shadow: 0 3px 0 rgba(61, 58, 75, 0.25); display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: none; }
#pause[hidden] { display: none; }
body.cine #pause { opacity: 0; }
#pausescr .card button { width: 100%; margin-top: 10px; }
/* liderlik satırları */
.lb { display: grid; gap: 6px; }
.lb li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 16px; background: rgba(61, 58, 75, 0.06); }
.lb li:nth-child(odd) { background: rgba(61, 58, 75, 0.06); }
.lb .rk { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: bold; font-size: 14px; background: #e2dbcd; color: var(--ink); }
.lb .who { flex: 1; min-width: 0; line-height: 1.15; }
.lb .who b { display: block; width: auto; text-align: left; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .who small { font-size: 11px; opacity: 0.65; }
.lb li em { background: rgba(61, 58, 75, 0.1); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.lb li.r1 { background: linear-gradient(90deg, #ffe08a, #fff3cf); } .lb li.r1 .rk { background: #f2b21d; color: #fff; box-shadow: 0 2px 0 #c98a00; }
.lb li.r2 { background: linear-gradient(90deg, #dfe3ee, #f3f4f9); } .lb li.r2 .rk { background: #9aa3b8; color: #fff; box-shadow: 0 2px 0 #7a839a; }
.lb li.r3 { background: linear-gradient(90deg, #f1cfae, #faeadb); } .lb li.r3 .rk { background: #cf8a4a; color: #fff; box-shadow: 0 2px 0 #a86a30; }
.lb li.r1 em { background: #f2b21d; color: #fff; }
.lb li.me { outline: 2px solid var(--accent); }
.lb .head { display: block; text-align: center; background: none !important; font-size: 12px; opacity: 0.6; padding: 0 0 2px; }

/* Sakura Adası: arayüz pembeye döner */
body.sakura { --accent: #e86c9c; --accent-dark: #c24a7c; --card: rgba(255, 244, 248, 0.95); }
body.sakura #ulti.ready { background: #e86c9c; }

/* menü sayfası: alt düğmeler hep görünür */
#menu .sheet { max-height: 54vh; max-height: 54dvh; overflow-y: auto; padding-bottom: 0; }
#menu .foot { position: sticky; bottom: 0; background: var(--card); padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
#menu .foot button.big { font-size: 22px; padding: 10px; margin-bottom: 8px; }
#menu .foot #streak { margin: 6px 0 0; font-size: 12px; }
#menu .breeds { grid-template-columns: repeat(5, 1fr); }
#menu .breeds.hats { grid-template-columns: repeat(7, 1fr); }
#menu .breeds.hats button { padding: 4px 0; }
#menu .breeds button { min-height: 44px; }
#menu .sheet h2 { margin-bottom: 2px; }
#menu .sheet section { margin-bottom: 4px; }
#menu .breeds:not(.islands) button:not(.locked) small { display: none; }
#menu .breeds:not(.islands) button { min-height: 40px; }
.lb .who b { display: block !important; width: auto !important; font-size: 16px !important; }
.lb .who small { display: block; }

/* menü sekmeleri (kaydırma yok) */
#menu .sheet { overflow: visible; max-height: none; }
#menu .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
#menu .tab { font: inherit; font-size: 14px; font-weight: bold; padding: 9px 4px; border: 0; border-radius: 14px; background: #ece6da; color: var(--ink); box-shadow: 0 3px 0 rgba(61, 58, 75, 0.18); cursor: pointer; }
#menu .tab.on { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-dark); }
#menu .page { display: none; min-height: 150px; }
#menu .page.on { display: block; }
#menu .page .breeds { margin-bottom: 8px; }
#menu .page .islands button { min-height: 76px; font-size: 15px; }
#menu .page .islands button small { display: block !important; font-size: 11px; }
#menu .foot { position: static; padding-top: 4px; }
.lb .who b { margin-bottom: 3px; }
.lb .who small { margin-top: 2px; }
.lb li { gap: 12px; }

.lb .who { display: flex; flex-direction: column; gap: 3px; }
.lb .who b { margin-bottom: 3px; }
.lb .who small { margin-top: 2px; }
.lb li { gap: 12px; }
#menu .credit { margin: 6px auto 2px; width: fit-content; padding: 2px 8px; border-radius: 10px; background: #ece6da; color: #7a7290; font-size: 10px; font-weight: bold; }
#bossbar em { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 8px; background: rgba(255, 255, 255, .8); color: #6a5f8a; font-size: 9px; font-style: normal; text-shadow: none; }
#bossbar em:empty { display: none; }

/* ===== v8 görsel cila: "oyuncak çıkartma" — kalın mürdüm kontur, sert gölge, tombul yazı (Baloo 2) ===== */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url(./fonts/baloo2-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url(./fonts/baloo2-600-tr.woff2) format("woff2"); unicode-range: U+011E-011F, U+0130, U+015E-015F; } /* ğĞşŞİ (Fredoka'da yoktu) */
@font-face { font-family: "Baloo 2"; font-weight: 700 800; font-display: swap; src: url(./fonts/baloo2-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Baloo 2"; font-weight: 700 800; font-display: swap; src: url(./fonts/baloo2-800-tr.woff2) format("woff2"); unicode-range: U+011E-011F, U+0130, U+015E-015F; } /* ğĞşŞİ (Fredoka'da yoktu) */
:root {
  --ink: #2b2140; --paper: #fff8ec; --card: #fff8ec; --tile: #f6ead6;
  --accent: #ff8a3d; --accent-dark: #2b2140; --sea: #2ec4b6; --sun: #ffc93c; --berry: #ff5d73;
  --line: 2.5px solid var(--ink); --pop: 0 4px 0 var(--ink); --pop-s: 0 3px 0 var(--ink);
}
html, body { font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif; font-weight: 600; background: #2b2140; }
b, strong, h1, h2, button, .pill { font-weight: 700; }

/* simgeler (emoji yerine; her cihazda aynı) */
.ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 0.28em; background: center / contain no-repeat; flex: 0 0 auto; }
.ic-cat { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9.5 4.6 3l4.6 3.4q2.8-.9 5.6 0L19.4 3l.6 6.5q1.6 2 1.6 4.5c0 4.6-4.3 7.5-9.6 7.5S2.4 18.6 2.4 14q0-2.5 1.6-4.5Z' fill='%23ff8a3d' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><circle cx='8.6' cy='13.4' r='1.4' fill='%232b2140'/><circle cx='15.4' cy='13.4' r='1.4' fill='%232b2140'/><path d='M10.8 16.4h2.4L12 17.6Z' fill='%232b2140' stroke='%232b2140' stroke-linejoin='round'/></svg>"); }
.ic-hat { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 3.5h10v13H7z' fill='%238a6fe0' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><path d='M7 12.5h10v3H7z' fill='%23ff5d73' stroke='%232b2140' stroke-width='1.6'/><rect x='2.5' y='16.5' width='19' height='4' rx='2' fill='%238a6fe0' stroke='%232b2140' stroke-width='1.9'/></svg>"); }
.ic-isl { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 20q10-6 20 0v1.5H2z' fill='%23ffd98a' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><path d='M13 17.5q.5-5-2-9.5' fill='none' stroke='%232b2140' stroke-width='4.2' stroke-linecap='round'/><path d='M13 17.5q.5-5-2-9.5' fill='none' stroke='%23c9a072' stroke-width='2' stroke-linecap='round'/><path d='M11 8Q7 3.5 2.5 6.5 7 6 11 8Zm0 0q3-5.5 8.5-3.5Q14 5.5 11 8Zm0 0q5-1 7.5 3.5Q15 8.5 11 8Z' fill='%235cc27a' stroke='%232b2140' stroke-width='1.6' stroke-linejoin='round'/></svg>"); }
.ic-home { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.5 11v9.5h15V11' fill='%23fff8ec' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><path d='M2 12 12 3.5 22 12' fill='%23ff5d73' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round' stroke-linecap='round'/><path d='M10 20.5v-5.5h4v5.5' fill='%23ff8a3d' stroke='%232b2140' stroke-width='1.7' stroke-linejoin='round'/></svg>"); }
.ic-cal { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='4.5' width='18' height='16.5' rx='3' fill='%23fff8ec' stroke='%232b2140' stroke-width='1.9'/><path d='M3 9.5V7.5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v2Z' fill='%23ff5d73' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><path d='M8 2.5v4M16 2.5v4' stroke='%232b2140' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='15' r='2.6' fill='%23ffc93c' stroke='%232b2140' stroke-width='1.5'/></svg>"); }
.ic-pearl { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='8.5' fill='%23ffd6ec' stroke='%232b2140' stroke-width='1.9'/><path d='M12 20.5a8.5 8.5 0 0 0 8.5-8.5' fill='none' stroke='%23f29ac8' stroke-width='3'/><circle cx='9' cy='8.8' r='2.3' fill='%23fff'/></svg>"); }
.ic-key { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 12.5 20.5 3M17 6.5l2.5 2.5M14.5 9l2 2' fill='none' stroke='%232b2140' stroke-width='4.4' stroke-linecap='round'/><path d='M11 12.5 20.5 3M17 6.5l2.5 2.5M14.5 9l2 2' fill='none' stroke='%23ffc93c' stroke-width='2' stroke-linecap='round'/><circle cx='8' cy='16' r='5' fill='%23ffc93c' stroke='%232b2140' stroke-width='1.9'/><circle cx='8' cy='16' r='1.6' fill='%232b2140'/></svg>"); }
.ic-cup { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.5 5.5H3.5q0 5 4 5.5M17.5 5.5h3q0 5-4 5.5' fill='none' stroke='%232b2140' stroke-width='1.9'/><path d='M6 3h12v5a6 6 0 0 1-12 0Z' fill='%23ffc93c' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><path d='M12 14v3.5M7.5 21h9l-1-3.5h-7Z' fill='%23ff8a3d' stroke='%232b2140' stroke-width='1.9' stroke-linejoin='round'/><circle cx='12' cy='7.5' r='1.6' fill='%23fff8ec'/></svg>"); }
.ic-crab { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.5 15l-2 2.5M5 17.5 3.5 21M20.5 15l2 2.5M19 17.5l1.5 3.5' stroke='%232b2140' stroke-width='1.9' stroke-linecap='round'/><path d='M6 8.5Q2 7 3 3.5q2.5 2 4 .5 1 2.5-1 4.5ZM18 8.5q4-1.5 3-5-2.5 2-4 .5-1 2.5 1 4.5Z' fill='%23ff6b57' stroke='%232b2140' stroke-width='1.7' stroke-linejoin='round'/><ellipse cx='12' cy='14.5' rx='8.5' ry='5.5' fill='%23ff6b57' stroke='%232b2140' stroke-width='1.9'/><circle cx='9.5' cy='13' r='1.3' fill='%232b2140'/><circle cx='14.5' cy='13' r='1.3' fill='%232b2140'/></svg>"); }

/* kartlar, ekranlar */
.screen { background: rgba(43, 33, 64, 0.42); }
.card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 0 7px 0 var(--ink);
}
.card h1 { font-size: 34px; color: var(--ink); letter-spacing: 0.3px; line-height: 1.05; }
.card h1 .ic { width: 1em; height: 1em; vertical-align: -0.12em; }
.card .small { opacity: 0.7; }
.card button {
  font-weight: 700; border: var(--line); border-radius: 18px;
  background: var(--accent); color: #fff; box-shadow: var(--pop);
  text-shadow: 0 2px 0 rgba(43, 33, 64, 0.35);
  transition: transform 0.06s;
}
.card button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.card button.alt { background: var(--sea); box-shadow: var(--pop); }
.card button:disabled { filter: grayscale(0.5); }

/* menü üstü: logo çıkartması */
#menu { background: linear-gradient(to bottom, rgba(43, 33, 64, 0.5), rgba(43, 33, 64, 0) 34%); }
.menu-top { text-shadow: none; }
.logo {
  font-size: 56px; line-height: 1; color: #fff; letter-spacing: 0.5px;
  -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  transform: rotate(-3deg); margin-top: 6px;
}
.logo::first-letter { color: var(--accent); }
.tag {
  display: inline-block; margin: 10px 0 10px; padding: 4px 12px; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--sun); border: var(--line); border-radius: 10px;
  box-shadow: var(--pop-s); transform: rotate(1.5deg); opacity: 1;
}
.tag b { color: var(--ink); text-decoration: underline 2px var(--berry); text-underline-offset: 2px; }
.menu-top .wallet { display: flex; gap: 6px; justify-content: center; background: none; padding: 0; }
.wallet span { display: inline-flex; align-items: center; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--paper); border: var(--line); box-shadow: var(--pop-s); color: var(--ink); font-size: 14px; }
#shop-wallet { display: flex; gap: 6px; justify-content: center; }
#shop-wallet span { box-shadow: none; border-width: 2px; }

/* menü sayfası */
#menu .sheet {
  border-radius: 28px 28px 0 0; border-bottom: 0; box-shadow: 0 -4px 0 rgba(43, 33, 64, 0.35);
  background: radial-gradient(circle at 1px 1px, rgba(43, 33, 64, 0.07) 1.2px, transparent 1.5px) 0 0 / 14px 14px, var(--paper);
  padding-top: 18px; position: relative;
}
#menu .sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(43, 33, 64, 0.22); }
#menu .tabs { gap: 0; padding: 3px; border: var(--line); border-radius: 16px; background: var(--tile); box-shadow: var(--pop-s); }
#menu .tab { display: flex; align-items: center; justify-content: center; font-size: 13.5px; padding: 7px 2px; border-radius: 12px; background: none; box-shadow: none; color: var(--ink); text-shadow: none; border: 0; }
#menu .tab .ic { margin-right: 4px; width: 18px; height: 18px; }
#menu .tab.on { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); text-shadow: 0 1.5px 0 rgba(43, 33, 64, 0.4); }
#menu .tab.on .ic { filter: drop-shadow(0 0 0 #fff); }
.card .breeds button, #menu .breeds button {
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink); text-shadow: none; font-weight: 600;
}
.card .breeds button i { border: 2px solid var(--ink); }
.card .breeds button[aria-checked="true"], #menu .breeds button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px) rotate(-2deg); text-shadow: 0 1.5px 0 rgba(43, 33, 64, 0.4); }
.card .breeds button.locked { opacity: 1; background: var(--tile); color: rgba(43, 33, 64, 0.55); border-style: dashed; box-shadow: none; }
.card .breeds button.locked i, .card .breeds button.locked .hat-ico { opacity: 0.45; filter: grayscale(0.6); }
.card .breeds button small .ic { width: 11px; height: 11px; margin: 0 0 0 2px; vertical-align: -1px; }
.name-in { border: var(--line); border-radius: 14px; font-family: inherit; font-weight: 600; color: var(--ink); box-shadow: inset 0 3px 0 rgba(43, 33, 64, 0.08); }
.name-in:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
#menu .foot { background: none; }
#menu .foot button.big { font-size: 26px; padding: 9px; border-width: 3px; border-radius: 20px; box-shadow: 0 5px 0 var(--ink); letter-spacing: 0.5px; text-shadow: 0 2.5px 0 rgba(43, 33, 64, 0.4); }
#menu .sheet .row3 button.alt { display: flex; align-items: center; justify-content: center; font-size: 13.5px; padding: 8px 2px; border-radius: 14px; line-height: 1.05; text-align: left; }
#menu .sheet .row3 button.alt .ic { width: 20px; height: 20px; margin-right: 4px; }
#daily { background: var(--berry) !important; }
#shop-open { background: #8a6fe0 !important; }
#board-open { background: var(--sea) !important; }
#menu .credit { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); }
#menu #streak { opacity: 0.65; }
.sheet h2 { opacity: 0.55; }

/* mağaza */
.shop-row { background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); padding: 9px 10px 9px 12px; }
.shop-row b { color: var(--ink); }
.shop-row .pips { color: var(--accent); letter-spacing: 2px; }
.card .shop-row button { display: inline-flex; align-items: center; gap: 2px; background: var(--sun); color: var(--ink); text-shadow: none; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.card .shop-row button .ic { margin: 0 0 0 3px; }

/* liderlik */
.lb li { background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.lb li:nth-child(odd) { background: #fff; }
.lb .rk { background: var(--tile); border: 2px solid var(--ink); color: var(--ink); }
.lb li.r1 { background: #ffe89a; } .lb li.r1 .rk { background: var(--sun); color: var(--ink); box-shadow: none; }
.lb li.r2 { background: #e6e9f5; } .lb li.r2 .rk { background: #b9c0d6; color: var(--ink); box-shadow: none; }
.lb li.r3 { background: #ffd9bc; } .lb li.r3 .rk { background: #f2a46a; color: var(--ink); box-shadow: none; }
.lb li em { background: var(--tile); border: 2px solid var(--ink); }
.lb li.r1 em { background: var(--sun); color: var(--ink); }
.lb li.me { outline: 3px solid var(--accent); outline-offset: 1px; }
.lb .head { border: 0; }
#over #over-text { background: var(--tile); border: 2px dashed rgba(43, 33, 64, 0.4); }
#perk-cards button { border: 2.5px solid var(--ink); box-shadow: var(--pop); background: #fff; color: var(--ink); text-shadow: none; }

/* HUD */
#hud { font-size: 20px; }
#hud .pill { background: var(--paper); color: var(--ink); border: var(--line); box-shadow: var(--pop-s); min-height: 38px; padding: 4px 12px; }
#score::before { content: ""; width: 24px; height: 24px; margin-right: 2px; background: center / contain no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.5 15l-2 2.5M5 17.5 3.5 21M20.5 15l2 2.5M19 17.5l1.5 3.5' stroke='%232b2140' stroke-width='1.9' stroke-linecap='round'/><path d='M6 8.5Q2 7 3 3.5q2.5 2 4 .5 1 2.5-1 4.5ZM18 8.5q4-1.5 3-5-2.5 2-4 .5-1 2.5 1 4.5Z' fill='%23ff6b57' stroke='%232b2140' stroke-width='1.7' stroke-linejoin='round'/><ellipse cx='12' cy='14.5' rx='8.5' ry='5.5' fill='%23ff6b57' stroke='%232b2140' stroke-width='1.9'/><circle cx='9.5' cy='13' r='1.3' fill='%232b2140'/><circle cx='14.5' cy='13' r='1.3' fill='%232b2140'/></svg>"); }
.nazar { box-shadow: 0 0 0 2px var(--ink); }
#timer.urgent { color: var(--berry); }
#buffs span { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
#mini { border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 5px 0 3px var(--ink); }
#pause { background: var(--paper); border: var(--line); box-shadow: var(--pop-s); }
#pause:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
#ulti, #tp, #meow { border: 3px solid var(--ink); box-shadow: var(--pop); background-color: var(--paper); }
#ulti { --ring: #8a6fe0; background: conic-gradient(var(--ring) var(--p), #e9dfcd 0); }
#tp { background: conic-gradient(var(--sea) var(--p), #e9dfcd 0); }
#meow { background: conic-gradient(var(--accent) var(--p), #e9dfcd 0); }
#ulti::before, #tp::before, #meow::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
#ulti small, #tp small, #meow small { color: var(--ink); font-weight: 700; letter-spacing: 0.3px; }
#ulti.ready { background: var(--ring); box-shadow: var(--pop), 0 0 0 4px rgba(255, 201, 60, 0.85); }
#tp.ready { background: var(--sea); }
#meow.ready { background: var(--accent); }
body.sakura #ulti.ready { background: #e86c9c; }
#stick { background: rgba(255, 248, 236, 0.18); border: 3px solid rgba(255, 248, 236, 0.75); box-shadow: 0 0 0 2px rgba(43, 33, 64, 0.35); }
#knob { background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }

/* boss çubuğu */
#bossbar { text-shadow: none; }
#bossbar span { display: inline-block; padding: 2px 10px; border-radius: 10px; background: var(--berry); color: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font-size: 11px; letter-spacing: 1px; line-height: 14px; transform: rotate(-1.5deg); }
#bossbar div { height: 14px; margin-top: 4px; border: var(--line); border-radius: 9px; background: #4a3c66; box-shadow: 0 3px 0 var(--ink); }
#bossbar i { background: linear-gradient(#ff8a7a, #ff5d73 60%, #e8445e); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35); }
#bossbar em { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); font-weight: 600; }

/* bildirimler: oyun yazısı, kalın kontur */
#banner, #toast { color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
#banner { font-size: 21px; }
#toast { font-size: 15px; -webkit-text-stroke-width: 3.5px; text-shadow: 0 2px 0 var(--ink); }
#cine-text { color: #ff5d73; -webkit-text-stroke: 6px #1b1228; paint-order: stroke fill; text-shadow: 0 5px 0 #1b1228; letter-spacing: 1px; }
#cine i { background: #1b1228; }
#ver { font-weight: 600; text-shadow: 0 1px 0 var(--ink); }

/* Sakura: aynı çıkartma dili, pembe vurgu */
body.sakura { --accent: #f06ba0; --accent-dark: #2b2140; --card: #fff4f8; --paper: #fff4f8; --tile: #fbe3ec; }
#bossbar { left: 64px; right: 126px; width: auto; transform: none; }
#cine-text { font-size: clamp(20px, 6.2vw, 36px); letter-spacing: 0.5px; }
/* v8 B: liderlik satırı ferah, ölünce tablo önde, ada sekmesi sıkı, sıradaki ada ipucu */
.lb li { padding: 9px 12px; gap: 12px; }
.lb .who { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.lb .who b { margin: 0 !important; font-size: 17px !important; }
.lb .who small { margin: 0 !important; font-size: 12px; opacity: 0.7; font-weight: 600; }
.lb li em { flex: 0 0 auto; }
#over .card { padding-top: 16px; }
#over h1 { font-size: 30px; margin-bottom: 6px; }
#over #over-text { font-size: 14px; padding: 6px 10px; margin-bottom: 10px; }
#over .lb { max-height: 42vh; max-height: 42dvh; margin-bottom: 8px; }
#over .msg { margin: 2px 0 8px; font-weight: 700; }
#over .lb-form { margin-bottom: 12px; }
#menu .page[data-page="isl"], #menu .page[data-page="home"] { min-height: 0; }
#menu .breeds.islands { grid-template-columns: repeat(3, 1fr); }
#menu .page .islands button { min-height: 58px; font-size: 13.5px; padding: 6px 4px; line-height: 1.1; }
#menu .page .islands button .ic { width: 22px; height: 22px; margin: 0 0 2px; }
#menu .page .islands button small { font-size: 10px; }
#menu .islands .next-isl { border-style: dashed; background: repeating-linear-gradient(-45deg, var(--tile) 0 8px, #fff 8px 16px); }
#menu .credit { font-size: 9px; padding: 1px 6px; margin: 2px auto 0; border-width: 1.5px; opacity: 0.85; }
.ic-sakura { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23ff9cc2' stroke='%232b2140' stroke-width='1.1' stroke-linejoin='round'><path d='M12 11Q8 7 10 2.5l2 2 2-2q2 4.5-2 8.5Z'/><path d='M12 11Q8 7 10 2.5l2 2 2-2q2 4.5-2 8.5Z' transform='rotate(72 12 12)'/><path d='M12 11Q8 7 10 2.5l2 2 2-2q2 4.5-2 8.5Z' transform='rotate(144 12 12)'/><path d='M12 11Q8 7 10 2.5l2 2 2-2q2 4.5-2 8.5Z' transform='rotate(216 12 12)'/><path d='M12 11Q8 7 10 2.5l2 2 2-2q2 4.5-2 8.5Z' transform='rotate(288 12 12)'/></g><circle cx='12' cy='12' r='2' fill='%23ffc93c' stroke='%232b2140' stroke-width='1.2'/></svg>"); }
.ic-q { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5c4.4 0 7.5 3.2 7.5 7.2 0 3.6-3.4 6.6-5.3 8.3h-4.4C7.9 16.3 4.5 13.3 4.5 9.7c0-4 3.1-7.2 7.5-7.2Z' fill='%23d9d2e6' stroke='%232b2140' stroke-width='1.8' stroke-linejoin='round'/><path d='M10 18l.6 2.8h2.8L14 18' fill='none' stroke='%232b2140' stroke-width='1.5'/><rect x='9.6' y='20.5' width='4.8' height='2.4' rx='0.6' fill='%23b98a46' stroke='%232b2140' stroke-width='1.3'/><path d='M10 8.2q0-2.4 2.1-2.4t2 2.1c0 1.6-2.1 1.6-2.1 3.3' fill='none' stroke='%232b2140' stroke-width='1.8' stroke-linecap='round'/><circle cx='12' cy='13.6' r='1.05' fill='%232b2140'/></svg>"); }
/* kısa ekranlar: menü sayfası sıkışır ki kedi başlık ile sayfa arasında görünsün */
@media (max-height: 720px) {
  .logo { font-size: 40px; -webkit-text-stroke-width: 7px; text-shadow: 0 4px 0 var(--ink); margin-top: 0; }
  .tag { font-size: 11px; margin: 6px 0 6px; padding: 2px 9px; }
  .wallet span { font-size: 12px; padding: 1px 8px 1px 4px; }
  #menu .sheet { padding-top: 14px; }
  #menu .tabs { margin-bottom: 6px; }
  #menu .tab { padding: 5px 2px; }
  #menu .breeds button, #menu .breeds:not(.islands) button { min-height: 36px; padding: 3px 2px; }
  #menu .name-in { padding: 5px 10px; font-size: 14px; }
  #menu .msg { min-height: 0; margin: 2px 0; }
  #menu .page { min-height: 0; }
  #menu .foot button.big { font-size: 22px; padding: 5px; margin-bottom: 6px; }
  #menu .sheet .row3 button.alt { padding: 5px 2px; }
  #menu #streak { display: none; }
}

/* gizlilik bağlantısı (küçük, göze batmaz) */
.legal { display: block; text-align: center; margin-top: 4px; font-size: 11px; color: var(--ink); opacity: 0.55; text-decoration: none; }

/* liderlik sezon sekmeleri + geçen sezon kupası */
#board .tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 8px; border: var(--line); border-radius: 16px; background: var(--tile); box-shadow: var(--pop-s); }
#board .tab { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 2px; margin: 0; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--ink); cursor: pointer; }
#board .tab.on { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); text-shadow: 0 1.5px 0 rgba(43, 33, 64, 0.4); }
.lb .who b .ch { width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; }
.lb .who b .ch2, .lb .who b .ch3 { filter: grayscale(0.6); }
