/* features.css — günlük bulmaca, seri, şans çarkı, albüm, başarımlar, hızlı tur, ayar bağlantıları */

.streak-pill {
    display: flex; align-items: center; gap: 4px; padding: 5px 12px 5px 8px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-weight: 800; font-size: 15px;
}
.streak-pill span { font-size: 12px; opacity: .8; }
.streak-pill.hot { background: linear-gradient(180deg, #fb923c, #ea580c); border-color: transparent; }
.flame { width: 20px; height: 20px; display: inline-block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4 6 6 6 12a6 6 0 0 1-12 0c0-3 2-5 3-6 0 2 1 3 2 3 0-3-1-6 1-9z' fill='%23ffd65a' stroke='%23c2410c' stroke-width='1.3'/%3E%3C/svg%3E") center/contain no-repeat; }
.streak-pill.hot .flame { animation: flicker 1.2s ease-in-out infinite; }

.feature-row { display: flex; gap: 8px; justify-content: center; width: 100%; }
.feat {
    position: relative; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.feat .fi { width: 52px; height: 52px; border-radius: 17px; box-shadow: 0 4px 0 rgba(0,0,0,.22), 0 6px 14px rgba(0,0,0,.25); }
.feat .dot { position: absolute; top: -3px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; display: none; }
.feat.has .dot { display: block; animation: bump 1.2s infinite; }
.fi { display: inline-block; background: center / 58% no-repeat; flex: none; }
.fi.big { width: 64px; height: 64px; border-radius: 20px; }
.fi.daily { background-color: #0ea5e9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3Cpath d='M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.fi.spin { background-color: #ec4899; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 5v16M4 13h16M6.3 7.3l11.4 11.4M17.7 7.3L6.3 18.7'/%3E%3Cpath d='M10 2h4l-2 3z' fill='white'/%3E%3C/svg%3E"); }
.fi.rush { background-color: #f97316; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l3 2M10 2h4M19 6l1.5-1.5'/%3E%3C/svg%3E"); }
.fi.album { background-color: #14b8a6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 16l5-5 4 4 3-3 6 6'/%3E%3Ccircle cx='16' cy='9' r='1.6' fill='white'/%3E%3C/svg%3E"); }
.fi.achv { background-color: #eab308; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a3 3 0 0 0 3 4M17 6h3a3 3 0 0 1-3 4M12 14v4M8 21h8M9 18h6'/%3E%3C/svg%3E"); }

/* ---- ayarlar: bağlantı satırları ---- */
.set-ic.bell { background-color: #0ea5e9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2 7 2 7H4s2-1 2-7M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.set-card.links { padding: 6px 10px; display: flex; flex-direction: column; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-weight: 800; font-size: 15px; text-align: left; border-bottom: 1px solid rgba(0,0,0,.07); }
.link-row:last-child { border-bottom: 0; }
.link-row::after { content: "\203A"; margin-left: auto; font-size: 22px; opacity: .35; }
.li { width: 30px; height: 30px; border-radius: 10px; flex: none; background: center / 60% no-repeat; display: inline-block; }
.li.rate { background-color: #f59e0b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z' fill='white'/%3E%3C/svg%3E"); }
.li.share { background-color: #22c55e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4.4M8.2 13.2l7.6 4.4'/%3E%3C/svg%3E"); }
.li.privacy { background-color: #64748b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 11h7M9 15h7'/%3E%3C/svg%3E"); }
.li.shield { background-color: #6366f1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.li.photo { background-color: #14b8a6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 15l5-4 4 3 3-2 6 5'/%3E%3C/svg%3E"); }

/* ---- kazanma ekranı ek butonları ---- */
.btn-ad.soft { background: linear-gradient(180deg, #38bdf8, #0284c7); box-shadow: 0 5px 0 #075985; font-size: 15px; padding: 11px; }
.win-row { display: flex; gap: 10px; width: 100%; }
.win-row .btn-main { flex: 1; }
.btn-share { width: 56px; flex: none; border-radius: 18px; background: #22c55e; display: grid; place-items: center; box-shadow: 0 5px 0 #15803d; }
.btn-share:active { transform: translateY(4px); box-shadow: none; }
.btn-share .li { background-color: transparent; background-size: 80%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 40vh; overflow-y: auto; }
.chips span { background: #e0f2fe; color: #075985; padding: 4px 10px; border-radius: 10px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: 1px; animation: pop .35s both; }

/* ---- hediye / durak sandığı ---- */
.gift-title { margin: 0; font-family: 'Baloo 2', sans-serif; font-size: 30px; text-shadow: 0 3px 10px rgba(0,0,0,.5); z-index: 1; }
.gift-stage.chest .gift-body { background: linear-gradient(90deg, transparent 44%, #fde68a 44% 56%, transparent 56%), linear-gradient(180deg, #a16207, #713f12); }
.gift-stage.chest .gift-lid { background: linear-gradient(90deg, transparent 44%, #fde68a 44% 56%, transparent 56%), linear-gradient(180deg, #ca8a04, #854d0e); border-radius: 40px 40px 8px 8px; height: 44px; top: 16px; }
.gift-stage.chest .gift-lid::before, .gift-stage.chest .gift-lid::after { display: none; }

/* ---- günlük takvim ---- */
.daily-card { gap: 8px; }
.daily-head { display: flex; align-items: center; gap: 12px; align-self: stretch; text-align: left; }
.daily-head h2 { font-size: 28px; }
.month-bar { position: relative; align-self: stretch; height: 22px; border-radius: 99px; background: #eadfcd; overflow: hidden; }
.month-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #38bdf8, #0284c7); border-radius: 99px; }
.month-bar span { position: relative; font-size: 12px; font-weight: 800; line-height: 22px; }
.cal-week, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-self: stretch; }
.cal-week i { font-style: normal; font-size: 11px; font-weight: 800; opacity: .5; }
.cal b { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #f1e8d8; color: #8a7a62; position: relative; cursor: pointer; }
.cal b.empty { background: none; cursor: default; }
.cal b.future { opacity: .45; cursor: default; }
.cal b.done { background: linear-gradient(180deg, #ffd86b, #f5a524); color: #4a2b05; }
.cal b.done::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='white'/%3E%3Cpath d='M7 12.5l3.2 3L17 9' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.cal b.today { box-shadow: 0 0 0 3px #0284c7; background: #fff; color: var(--ink); animation: breathe 1.6s infinite; }
.cal b.today.done { background: linear-gradient(180deg, #ffd86b, #f5a524); animation: none; }
.cal b.missed { background: #e9e1d3; color: #b3a48b; }
.cal b.missed::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 12px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='3' fill='%237c3aed'/%3E%3Cpath d='M10 9v6l5-3z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat; }
.daily-note { font-size: 12.5px; }
.badge-month { display: inline-flex; align-items: center; gap: 4px; background: #fde68a; color: #7c4a03; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 800; }

/* ---- şans çarkı ---- */
.spin-card { gap: 8px; }
.spin-wrap { position: relative; width: 250px; height: 250px; margin: 6px 0; }
.spin-wheel { width: 100%; height: 100%; transition: transform 4.2s cubic-bezier(.12,.75,.12,1); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.spin-wheel text { font: 800 11px 'Nunito', sans-serif; fill: #fff; }
.spin-pointer { position: absolute; left: 50%; top: -8px; width: 0; height: 0; margin-left: -13px; z-index: 2; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 26px solid #ef4444; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.spin-hub { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.3); }

/* ---- hikâye / kartpostal ---- */
.story-card { padding: 0 0 18px; overflow: hidden; gap: 6px; }
.story-photo { position: relative; align-self: stretch; height: 190px; background: #334155 center / cover no-repeat; }
.story-tag { position: absolute; left: 12px; bottom: 10px; background: var(--good); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; animation: popUp .5s .3s both; }
.story-card small { margin-top: 6px; font-weight: 800; opacity: .55; letter-spacing: .6px; text-transform: uppercase; font-size: 11px; }
.story-card h2 { font-size: 28px; padding: 0 16px; }
.story-text { padding: 0 20px; font-size: 14px; line-height: 1.45; text-align: left; opacity: .85 !important; }
.story-card .btn-main { width: calc(100% - 40px); }

/* ---- albüm ---- */
.album-note { margin: 0 4px 10px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.5); flex: none; }
.album-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 4px 20px; align-content: start; }
.postcard {
    position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #1e293b center / cover no-repeat;
    border: 4px solid #fff8ec; box-shadow: 0 4px 12px rgba(0,0,0,.3); transform: rotate(var(--r, 0deg)); animation: rise .4s both;
}
.postcard b { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 12.5px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.postcard.locked { filter: grayscale(1) brightness(.35); }
.postcard.locked::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 40px 'Baloo 2', sans-serif; color: rgba(255,255,255,.7); }

/* ---- başarımlar ---- */
.achv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 20px; }
.achv-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255,248,236,.94); color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.2); animation: rise .35s both; flex: none; }
.achv-item .medal { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #e2e8f0; filter: grayscale(1); opacity: .6; }
.achv-item.got .medal { background: linear-gradient(180deg, #fde68a, #f59e0b); filter: none; opacity: 1; }
.achv-item .medal::before { content: ""; width: 26px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c4a03' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a3 3 0 0 0 3 4M17 6h3a3 3 0 0 1-3 4M12 14v4M8 21h8M9 18h6'/%3E%3C/svg%3E") center/contain no-repeat; }
.achv-item > div { flex: 1; min-width: 0; line-height: 1.2; }
.achv-item b { font-size: 15px; }
.achv-item small { display: block; font-size: 12px; opacity: .65; font-weight: 700; }
.achv-bar { height: 6px; border-radius: 99px; background: #e2d6c2; margin-top: 5px; overflow: hidden; }
.achv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 99px; }
.achv-item .rew { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 2px; }

/* ---- hızlı tur ---- */
.rush-bar { display: none; align-items: center; gap: 10px; margin: -2px 6px 0; }
.mode-rush .rush-bar { display: flex; }
.mode-rush .star-track, .mode-rush .joker-bar, .mode-rush #btnSkip { display: none; }
.rush-time { flex: 1; height: 12px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: hidden; }
.rush-time i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #22c55e, #facc15); border-radius: 99px; transition: width .2s linear; }
.rush-bar.low .rush-time i { background: linear-gradient(90deg, #ef4444, #f97316); }
.rush-bar > b { font: 800 20px 'Baloo 2', sans-serif; min-width: 30px; text-align: right; }
.rush-bar.low > b { color: #fca5a5; animation: bump .5s infinite; }
.rush-score { font-weight: 800; font-size: 13px; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 99px; }
.rush-score b { font-size: 15px; color: var(--gold); }
.rush-card .rush-final { display: flex; align-items: baseline; gap: 6px; font-family: 'Baloo 2', sans-serif; }
.rush-card .rush-final b { font-size: 56px; line-height: 1; color: #ea580c; }
.score-pop { position: fixed; z-index: 32; pointer-events: none; font: 800 22px 'Baloo 2', sans-serif; color: var(--gold); text-shadow: 0 2px 4px rgba(0,0,0,.5); animation: scoreUp .9s ease-out forwards; }
.usta-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: linear-gradient(180deg, #f472b6, #db2777); font-size: 11px; vertical-align: 3px; font-family: 'Nunito', sans-serif; }

@keyframes flicker { 50% { transform: scale(1.12) rotate(-4deg); } }
@keyframes scoreUp { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }

@media (max-height: 700px) {
    .feat .fi { width: 44px; height: 44px; border-radius: 14px; }
    .feat { font-size: 10.5px; }
    .chapter-card { padding: 10px 16px; }
    .btn-play { padding: 10px 0 8px; }
    .btn-play span { font-size: 34px; }
    .logo .l1 { font-size: 38px; } .logo .l2 { font-size: 46px; }
    .home-body { gap: 11px; }
}

.offer-ic.fire { background-color: #ffedd5; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2c1 4 6 6 6 12a6 6 0 0 1-12 0c0-3 2-5 3-6 0 2 1 3 2 3 0-3-1-6 1-9z%27 fill=%27%23fb923c%27 stroke=%27%23c2410c%27 stroke-width=%271.3%27/%3E%3C/svg%3E"); }
.gift-reward { flex-wrap: wrap; gap: 8px; }
.postcard { aspect-ratio: auto; height: 0; padding: 75% 0 0; display: block; width: 100%; }

.li.follow { background-color: #e1306c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='0.8' fill='white'/%3E%3C/svg%3E"); }
