/* Mosaic Shot teması */
@font-face { font-family: 'Titan One'; font-weight: 400; font-display: swap; src: url(vendor/fonts/titan-one-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Titan One'; font-weight: 400; font-display: swap; src: url(vendor/fonts/titan-one-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(vendor/fonts/nunito-latin-800.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(vendor/fonts/nunito-latin-900.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(vendor/fonts/nunito-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(vendor/fonts/nunito-latin-ext-900.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(vendor/fonts/nunito-cyrillic-800.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(vendor/fonts/nunito-cyrillic-900.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --k-font-d: 'Titan One', system-ui, sans-serif;
  --k-font-b: 'Nunito', system-ui, sans-serif;
  --bg1: #ffd6ea; --bg2: #e7a6f0; --bg3: #9b6ee0;
  --k-ink: #3d2456; --k-ink2: #7b5f95;
  --k-pill: rgba(70, 30, 100, .5);
  --k-panel: #fff9fd; --k-panel2: #fbe9f6; --k-edge: #f2c6e4; --k-panel-shadow: #c98ab8;
  --k-title1: #ff8ac2; --k-title2: #ff4f9a; --k-title-edge: #c22a6c;
  --k-shout-edge: #ff4f9a;
  --hard1: #9b7bff; --hard2: #6a3cff;
}
body { background: var(--bg2); font-weight: 800; }
#bg { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .22), transparent 60%),
  linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%); transition: filter .6s; }
/* hafif mozaik deseni */
#bg::after { content: ''; position: absolute; inset: 0; opacity: .55; background-size: 90px 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M12 14l10 4' stroke='%23ffffff'/%3E%3Cpath d='M60 10l-6 9' stroke='%23ffe066'/%3E%3Cpath d='M40 48l10-2' stroke='%2379d7ff'/%3E%3Cpath d='M76 58l4 10' stroke='%23ffffff'/%3E%3Cpath d='M18 70l-8 6' stroke='%23b4f28a'/%3E%3C/g%3E%3C/svg%3E"); }
body.hard #bg { --bg1: #c9b6ff; --bg2: #8a62e8; --bg3: #4b2a9e; }
body.super #bg { --bg1: #ff9db0; --bg2: #e2456e; --bg3: #7a1640; }
#c { z-index: 1; }

/* yükleme */
#loading { background: linear-gradient(180deg, var(--bg1), var(--bg2) 60%, var(--bg3)); }
#loading .lg-bar i { background: repeating-linear-gradient(-45deg, #ff4f9a 0 8px, #fff 8px 16px); }
.ms-logo { display: flex; flex-direction: column; align-items: center; line-height: .86; font-family: var(--k-font-d); text-align: center; transform: rotate(-4deg); }
.ms-logo span { display: block; font-size: 80px; letter-spacing: .02em; }
.ms-logo .a { color: #fff; background: repeating-linear-gradient(-55deg, #ff4f9a 0 14px, #ffffff 14px 26px); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #3d2456) drop-shadow(-3px 0 0 #3d2456) drop-shadow(0 3px 0 #3d2456) drop-shadow(0 -3px 0 #3d2456) drop-shadow(0 7px 0 #3d2456); }
.ms-logo .b { font-size: 92px; background: repeating-linear-gradient(-55deg, #4fc9ff 0 14px, #ffffff 14px 26px); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(3px 0 0 #3d2456) drop-shadow(-3px 0 0 #3d2456) drop-shadow(0 3px 0 #3d2456) drop-shadow(0 -3px 0 #3d2456) drop-shadow(0 7px 0 #3d2456); margin-top: -2px; animation: ss-spin 6s ease-in-out infinite; }
@keyframes ss-spin { 0%, 80% { transform: rotate(0); } 90% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
.ms-logo .sub { font-size: 18px; color: #3d2456; font-family: var(--k-font-b); letter-spacing: .2em; margin-top: 10px; -webkit-text-fill-color: #3d2456; background: none; filter: none; animation: none; }
.ms-logo .tiles { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; transform: rotate(4deg); }
.ms-logo .tiles i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #1d1460; animation: ms-bob 1.6s ease-in-out infinite; }
.ms-logo .tiles i:nth-child(2) { animation-delay: .15s; } .ms-logo .tiles i:nth-child(3) { animation-delay: .3s; } .ms-logo .tiles i:nth-child(4) { animation-delay: .45s; } .ms-logo .tiles i:nth-child(5) { animation-delay: .6s; }
@keyframes ms-bob { 50% { transform: translateY(-8px); } }

/* ---- ana sayfa ---- */
.home { display: flex; flex-direction: column; align-items: center; padding: calc(var(--k-safe-t) + 66px) 16px calc(var(--k-safe-b) + 30px); }
.home > * { pointer-events: auto; }
.home .ms-logo { margin-top: 0; pointer-events: none; }
.home .ms-logo .a { font-size: min(16vw, 70px); }
.home .ms-logo .b { font-size: min(19vw, 84px); }
.home .grow { flex: 1; }
.home .playwrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.home .playbtn { min-width: 250px; }
.home .playbtn .lvl { display: block; font-size: 17px; opacity: .9; margin-top: -2px; }
.home .playbtn .k-btn-t { display: flex; flex-direction: column; line-height: 1; }
.home .tierTag { font-family: var(--k-font-d); font-size: 18px; color: #fff; padding: 5px 16px; border-radius: 12px; background: linear-gradient(var(--hard1), var(--hard2)); box-shadow: 0 4px 0 #8c0f2c; animation: ms-pulse 1.2s infinite; }
@keyframes ms-pulse { 50% { transform: scale(1.06); } }
.side { position: absolute; top: calc(var(--k-safe-t) + 236px); display: flex; flex-direction: column; gap: 30px; }
.side.l { left: 12px; } .side.r { right: 12px; }
.sbtn { position: relative; width: 64px; height: 64px; border: 0; border-radius: 20px; padding: 8px; cursor: pointer; background: linear-gradient(180deg, #fff, #e5ecff); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), 0 5px 0 #c98ab8, 0 10px 16px rgba(80, 30, 100, .2); display: grid; place-items: center; }
.sbtn:active { transform: translateY(4px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), 0 1px 0 #c98ab8; }
.sbtn .k-ic { width: 40px; height: 40px; }
.sbtn small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-family: var(--k-font-d); font-size: 13px; color: #fff; white-space: nowrap; text-shadow: 0 2px 0 rgba(80, 30, 100, .6); }
.sbtn .dot { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border-radius: 50%; background: #ff3d5a; border: 3px solid #fff; animation: ms-pulse 1s infinite; }
.sbtn.album svg { color: #6a3cff; }

/* ---- oyun içi ---- */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.lvlpill { position: absolute; top: calc(var(--k-safe-t) + 12px); left: 72px; padding: 6px 16px 8px; border-radius: 16px; font-family: var(--k-font-d); font-size: 20px; color: #fff; white-space: nowrap; background: linear-gradient(180deg, #ff8ac2, #ff4f9a); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 4px 0 #c22a6c, 0 8px 14px rgba(0, 0, 0, .2); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.lvlpill.hard, .lvlpill.super { background: linear-gradient(180deg, var(--hard1), var(--hard2)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 4px 0 #8c0f2c, 0 8px 14px rgba(0, 0, 0, .25); }
.lvlpill small { display: block; font-size: 12px; text-align: center; margin-top: -2px; opacity: .95; letter-spacing: .06em; }
.hud .k-top { padding-left: 12px; }
.hud .pausebtn { position: absolute; left: 12px; top: calc(var(--k-safe-t) + 10px); }
.progress { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--k-safe-t) + 68px); width: min(220px, 50vw); height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .25); overflow: hidden; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); }
.progress i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(#a8ff7a, #39d353); transition: width .25s; }
.trays { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: rgba(20, 16, 70, .6); color: #fff; font-family: var(--k-font-d); font-size: 16px; pointer-events: none; white-space: nowrap; transition: background .2s; }
.trays b { min-width: 30px; text-align: center; }
.trays i { width: 9px; height: 9px; border-radius: 3px; background: #fff; opacity: .95; }
.trays i.off { opacity: .2; }
.trays.full { background: rgba(214, 31, 69, .85); }
.boostbar { position: absolute; left: 50%; bottom: calc(var(--k-safe-b) + 10px); transform: translateX(-50%); display: flex; gap: 10px; padding: 9px 12px 11px; border-radius: 24px; background: rgba(90, 40, 120, .3); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12); }
.bst { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #b49bff, #7a52e8); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #4f2fb0; display: grid; place-items: center; transition: transform .1s; }
.bst svg { width: 42px; height: 42px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.bst:active { transform: translateY(3px); }
.bst .n { position: absolute; right: -6px; top: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; background: #ff3d5a; color: #fff; font-family: var(--k-font-d); font-size: 15px; border: 2.5px solid #fff; }
.bst .n.plus { background: #39d353; }
.bst.locked { background: linear-gradient(180deg, #b7bfd6, #8890aa); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 4px 0 #5d6480; }
.bst.locked svg { opacity: .35; }
.bst .lk { position: absolute; inset: auto 0 4px 0; font-family: var(--k-font-d); font-size: 13px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
/* kilitli güçlendirici: dil bağımsız kilit + bölüm no (dar düğmelere her dilde sığar) */
.bst .lk { display: flex; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.bst .lk i { display: block; width: 12px; height: 12px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.bst .lk i svg { width: 100%; height: 100%; }
.bst.active { background: linear-gradient(180deg, #ffe066, #ffab1a); box-shadow: 0 0 0 4px #fff, 0 0 20px 6px rgba(255, 210, 60, .8); animation: ms-pulse .8s infinite; }
.speed { background: linear-gradient(180deg, #ffd36b, #ff9a1f); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #c46a00; font-family: var(--k-font-d); font-size: 22px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.speed.on { background: linear-gradient(180deg, #7ef06a, #2fcf4f); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #1e9a3a; }
.helpbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--k-safe-b) + 96px); padding: 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, .95); color: var(--k-ink); font-weight: 900; font-size: 17px; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); animation: k-pop .3s both; }
.helpbar .x { margin-left: 10px; color: #ff4757; cursor: pointer; }

/* öğretici balon */
.tip { position: absolute; transform: translate(-50%, -100%); max-width: min(300px, 80vw); padding: 12px 16px; border-radius: 18px; background: #fff; color: var(--k-ink); font-weight: 900; font-size: 17px; line-height: 1.25; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); pointer-events: none; z-index: 30; animation: k-pop .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.tip::after { content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%) rotate(45deg); width: 18px; height: 18px; background: #fff; border-radius: 3px; }
.tip.down { transform: translate(-50%, 0); }
.tip.down::after { bottom: auto; top: -9px; }

/* zor bölüm uyarısı */
.hardBanner { position: fixed; left: 0; right: 0; top: 40%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 0 20px; background: linear-gradient(90deg, transparent, rgba(214, 31, 69, .92) 15%, rgba(214, 31, 69, .92) 85%, transparent); color: #fff; font-family: var(--k-font-d); pointer-events: none; animation: ms-banner 2.2s both; }
.hardBanner b { font-size: 46px; text-shadow: 0 4px 0 #7a0d26; }
.hardBanner span { font-size: 18px; opacity: .95; }
.hardBanner .sk { width: 48px; height: 48px; color: #fff; }
@keyframes ms-banner { 0% { transform: scaleY(0); opacity: 0; } 12% { transform: scaleY(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* sonuç ekranları */
.k-panel.win { padding-top: 54px; }
.winPic { width: 210px; height: 210px; margin: 0 auto; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); animation: ms-reveal .9s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
@keyframes ms-reveal { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.winName { text-align: center; font-family: var(--k-font-d); font-size: 22px; color: var(--k-ink2); margin-top: -4px; }
.winName::first-letter { text-transform: uppercase; }
.rewardRow { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--k-font-d); font-size: 34px; }
.rewardRow .k-ic { width: 44px; height: 44px; }
.failIc { width: 110px; height: 110px; margin: 0 auto; color: #ff4757; animation: ms-shake .5s both; }
.failIc .k-ic { width: 100%; height: 100%; }
@keyframes ms-shake { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }
.offer { display: flex; flex-direction: column; gap: 10px; }
.slotPreview { display: flex; justify-content: center; gap: 6px; }
.slotPreview i { width: 32px; height: 38px; border-radius: 10px; background: #dfe6f5; box-shadow: inset 0 3px 4px rgba(0, 0, 0, .15); }
.slotPreview i.full { background: #ff8a9a; }
.slotPreview i.new { background: #7ef06a; box-shadow: 0 0 0 3px #fff, 0 0 12px 4px rgba(63, 208, 106, .7); animation: ms-pulse .8s infinite; }

/* albüm */
.k-panel.album { width: min(460px, 100%); }
.albumGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.albumGrid .pic { position: relative; aspect-ratio: 1; border-radius: 16px; background: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .07), 0 0 0 3px #f3dcbc; display: grid; place-items: center; overflow: hidden; }
.albumGrid .pic canvas { width: 82%; height: 82%; image-rendering: pixelated; }
.albumGrid .pic.locked { background: #e9e2d6; }
.albumGrid .pic.locked span { font-family: var(--k-font-d); font-size: 28px; color: #c7b9a3; }
.albumGrid .pic b { position: absolute; left: 6px; top: 4px; font-family: var(--k-font-d); font-size: 12px; color: var(--k-ink2); }
.albumHead { text-align: center; font-weight: 900; color: var(--k-ink2); }
.albumBig { width: min(280px, 70vw); height: min(280px, 70vw); margin: 0 auto; image-rendering: pixelated; }

/* renk seçimi (renk bombası) */
.colorPick { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.colorPick button { width: 58px; height: 58px; border: 0; border-radius: 16px; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 rgba(0, 0, 0, .25); }
.colorPick button:active { transform: translateY(3px); }

@media (max-height: 700px) {
  .bst { width: 52px; height: 52px; border-radius: 16px; }
  .bst svg { width: 36px; height: 36px; }
  .home .ms-logo span { font-size: 54px; } .home .ms-logo .b { font-size: 64px; } .home .ms-logo .sub { font-size: 15px; margin-top: 8px; }
}
@media (min-aspect-ratio: 1/1) {
  .side { top: calc(var(--k-safe-t) + 120px); }
}
.boostbar:empty { display: none; }
.hud > .k-top { pointer-events: none; }
.winPic, .albumBig, .albumGrid .pic canvas { object-fit: contain; }

/* bant kapasite hapı */
.cappill { position: absolute; top: calc(var(--k-safe-t) + 66px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 20px; background: rgba(255, 255, 255, .9); color: var(--k-ink); font-family: var(--k-font-d); font-size: 20px; box-shadow: 0 4px 0 #c98ab8, 0 8px 14px rgba(80, 30, 100, .2); transition: background .2s, color .2s; }
.cappill .candy, .capPreview .candy { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #ff6fa8 20%); box-shadow: 0 0 0 3px #fff, 0 2px 0 4px #c98ab8; }
.cappill.warn { background: #ff4f6d; color: #fff; animation: ms-pulse .7s infinite; }
.cappill.bump { animation: k-bump .25s; }
.capPreview { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--k-font-d); font-size: 30px; }
.winShelf { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px; border-radius: 18px; background: #fbe9f6; }
.winShelf i { width: 34px; height: 46px; border-radius: 10px 10px 14px 14px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), inset 0 4px 0 rgba(255, 255, 255, .5), 0 0 0 3px #fff; animation: ms-reveal .5s both; }
.statGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .06); }
.stat b { font-family: var(--k-font-d); font-size: 30px; }
.stat span { font-size: 14px; color: var(--k-ink2); }

/* yan düğme etiketleri: ekrana sığsın, gerekirse iki satır */
.sbtn small { top: calc(100% + 4px); bottom: auto; width: 84px; white-space: normal; text-align: center; line-height: 1.05; font-size: 13px; }
.side { gap: 40px; }
.side.l { left: 16px; } .side.r { right: 16px; }
/* v1.1: 5 güçlendirici + hız düğmesi dar ekrana sığsın; yakın kaçış satırı */
@media (max-width: 440px) {
  .boostbar { gap: 6px; padding: 7px 9px 9px; }
  .bst { width: 50px; height: 50px; }
  .bst svg { width: 34px; height: 34px; }
  .bst .n { min-width: 21px; height: 21px; font-size: 13px; right: -5px; top: -5px; }
}
.nearMiss { font-family: var(--k-font-d); font-size: 20px; color: #ff4f9a; text-align: center; margin: 2px 0 6px; }
