/* ==========================================================
   Animasyonlar ve görsel efektler
   ========================================================== */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinCenter { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes twinkle2 { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
@keyframes up { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes sweep { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }

/* ---------- Açılış ekranı ---------- */
#loader {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
    background: radial-gradient(circle at 50% 45%, #22124f 0%, #0d0820 60%);
    transition: opacity .8s ease, transform .8s ease, visibility .8s;
}
#loader.done { opacity: 0; transform: scale(1.08); visibility: hidden; }
.loader-mandala { width: 190px; height: 190px; filter: drop-shadow(0 0 14px rgba(232, 193, 112, .55)); }
.lm-draw { stroke-dasharray: 620; stroke-dashoffset: 620; animation: lmDraw 1.5s ease forwards; }
.lm-draw.d2 { animation-delay: .25s; }
.lm-draw.d3 { animation-delay: .55s; }
@keyframes lmDraw { to { stroke-dashoffset: 0; } }
.lm-spin, .lm-spin-rev, .lm-orbit { transform-origin: 100px 100px; }
.lm-spin { animation: spin 9s linear infinite; }
.lm-spin-rev { animation: spin 6s linear infinite reverse; }
.lm-orbit { animation: spin 2.2s cubic-bezier(.6, .1, .4, .9) infinite; }
.lm-iris { transform-origin: 100px 100px; animation: breathe 1.6s ease-in-out infinite; }
.lm-pupil { animation: twinkle2 1.6s ease-in-out infinite; transform-origin: 100px 100px; }
.loader-brand {
    width: min(320px, 70vw); height: auto;
    opacity: 0; animation: brandIn 1.4s .6s ease forwards;
    filter: drop-shadow(0 0 18px rgba(232, 193, 112, .35));
}
@keyframes brandIn { from { opacity: 0; transform: scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 18px rgba(232, 193, 112, .35)); } }

/* ---------- Gökyüzü ---------- */
.stars { display: none; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.nebula {
    position: fixed; inset: -20%; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 40% 30% at 20% 30%, rgba(124, 58, 237, .22), transparent 70%),
        radial-gradient(ellipse 35% 28% at 80% 20%, rgba(232, 111, 168, .14), transparent 70%),
        radial-gradient(ellipse 45% 35% at 60% 80%, rgba(59, 130, 246, .12), transparent 70%);
    animation: nebula 40s ease-in-out infinite alternate;
}
@keyframes nebula { to { transform: translate(4%, -3%) scale(1.1) rotate(4deg); } }
body { background: radial-gradient(ellipse at top, #24124f 0%, #0d0820 60%) fixed, #0d0820; }

/* ---------- Başlık ve butonlar ---------- */
.site-header { background: rgba(13, 8, 32, .55); backdrop-filter: blur(14px) saturate(140%); }
.logo { position: relative; line-height: 0; }
.logo img { height: 76px; width: auto; margin: -6px 0; display: block; filter: drop-shadow(0 0 10px rgba(232, 193, 112, .22)); transition: filter .3s, transform .3s; }
.logo:hover img { filter: drop-shadow(0 0 16px rgba(232, 193, 112, .5)); transform: scale(1.03); }
.logo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 214, .75) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%; animation: sweep 6s linear infinite;
    -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat;
    mix-blend-mode: overlay;
}
.logo-footer img { height: 94px; }
@media (max-width: 600px) { .logo img { height: 50px; } }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold { background: linear-gradient(135deg, #fff0c2, #e8c170 45%, #c99a3e 100%); background-size: 200% 200%; transition: .3s, background-position .6s; }
.btn-gold:hover { background-position: 100% 100%; }
.btn::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    background-size: 250% 100%; background-position: 160% 0;
    transition: background-position .8s ease;
}
.btn:hover::after { background-position: -60% 0; }
.btn-glow { animation: btnGlow 2.8s ease-in-out infinite; }
@keyframes btnGlow { 0%, 100% { box-shadow: 0 6px 20px rgba(232, 193, 112, .3); } 50% { box-shadow: 0 6px 34px rgba(232, 193, 112, .65), 0 0 0 4px rgba(232, 193, 112, .1); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3rem 0 4rem; min-height: calc(100vh - 70px); display: flex; align-items: center; }
.hero::before {
    content: ''; position: absolute; right: 5%; top: 50%; width: 760px; height: 760px; transform: translateY(-50%);
    background: radial-gradient(circle, rgba(155, 107, 255, .2), transparent 60%); pointer-events: none;
}
.hero-inner { grid-template-columns: 1fr 1.15fr; width: min(1240px, 92%); }
.anim-up { animation: up .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * .15s + .1s); }
body:not(.loaded) .anim-up { animation-play-state: paused; }
.shimmer-text {
    background: linear-gradient(90deg, #e8c170 0%, #e8c170 35%, #fff8e1 50%, #e8c170 65%, #e8c170 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: sweep 5s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(232, 193, 112, .35));
}

.hero-visual { display: flex; justify-content: center; }
.hero-stage { position: relative; width: min(580px, 88vw); aspect-ratio: 1; }
.fate-disc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fate-disc .disc-ring, .fate-disc .disc-hand, .fate-disc .disc-sun { fill: none; stroke: #e8c170; stroke-width: 1.2; }
.disc-ring, .disc-hand, .disc-rays, .disc-glow, .disc-eye { transform-origin: 250px 250px; }
.disc-glow { animation: breathe 7s ease-in-out infinite; }
.disc-r1 { animation: spin 160s linear infinite; opacity: .9; }
.disc-r2 { animation: spin 110s linear infinite reverse; opacity: .75; }
.disc-r3 { animation: spin 70s linear infinite; opacity: .85; }
.disc-signs text { fill: #f5dca0; stroke: none; font-size: 22px; text-anchor: middle; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', serif; }
.disc-nums text { fill: #c9b2ff; stroke: none; font: 700 13px 'Cinzel', serif; text-anchor: middle; }
.disc-moon { fill: #f5dca0; stroke: none; }
.disc-moon-shadow { fill: #160c38; stroke: none; }
.disc-hand { stroke: #fff0c2 !important; stroke-width: 1.6 !important; animation: spin 30s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 240, 194, .8)); }
.disc-hand .thin { stroke-width: .8; opacity: .6; }
.disc-hand-star { fill: #fff6d6; stroke: none; }
.disc-rays { animation: spin 40s linear infinite reverse; stroke: #f5dca0; }
.disc-sun > circle { fill: rgba(22, 12, 56, .92); stroke-width: 2; }
.disc-eye { animation: blinkEye 7s ease-in-out infinite; }
.disc-eye path { fill: rgba(245, 220, 160, .1); stroke-width: 1.8; }
.disc-iris { fill: rgba(155, 107, 255, .35); stroke: #f5dca0; }
.disc-pupil { fill: #fff0c2; stroke: none; animation: lookAround 9s ease-in-out infinite; }
@keyframes blinkEye { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
@keyframes lookAround { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(5px, -1px); } 55% { transform: translate(-5px, 1px); } 75% { transform: translate(0, 2px); } }
.disc-star { fill: #fff6d6; transform-box: fill-box; transform-origin: center; animation: twinkle2 3.2s ease-in-out infinite; }

.hero-cards { position: absolute; inset: 0; z-index: 2; }
.hero-cards .hero-card {
    position: absolute; width: 25%; aspect-ratio: 7/12; left: 37.5%; top: 27%;
    --r: 0deg; --tx: 0%; --ty: 0%;
    transform: rotate(var(--r)) translate(var(--tx), var(--ty)) perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hero-card.tilting { transition-duration: .1s; }
.hero-card.hc1 { --r: -17deg; --tx: -68%; --ty: 9%; }
.hero-card.hc2 { z-index: 2; --ty: -4%; }
.hero-card.hc3 { --r: 17deg; --tx: 68%; --ty: 9%; }
.hero-card-inner {
    width: 100%; height: 100%; border-radius: 12px;
    animation: dealIn 1.1s cubic-bezier(.2, .8, .2, 1) both, levitate 6s ease-in-out infinite;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(245, 220, 160, .3);
}
.hc1 .hero-card-inner { animation-delay: .5s, 1.6s; }
.hc2 .hero-card-inner { animation-delay: .7s, 0s; }
.hc3 .hero-card-inner { animation-delay: .9s, .8s; }
body:not(.loaded) .hero-card-inner { animation-play-state: paused; }
@keyframes dealIn { from { opacity: 0; transform: translateY(80px) rotateY(180deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes levitate { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hero-card .tcard-inner { transition-duration: .55s; }
.hero-card .hero-card-inner { transition: box-shadow .4s; }
.hero-card:hover .hero-card-inner { box-shadow: 0 25px 50px rgba(0, 0, 0, .6), 0 0 55px rgba(245, 220, 160, .55); }
.hero-card.swapping .tcard { animation: heroSwap 1.45s cubic-bezier(.3, .7, .2, 1); }
.hero-card.swapping .hero-card-inner { box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(245, 220, 160, .8); }
@keyframes heroSwap {
    0% { transform: none; }
    30% { transform: translateY(-28px) scale(1.1) rotateZ(-3deg); }
    60% { transform: translateY(-14px) scale(1.06) rotateZ(2deg); }
    100% { transform: none; }
}
.hero-visual { flex-direction: column; align-items: center; }
.hero-hint { margin-top: 1.2rem; color: var(--gold-2); font-size: .9rem; letter-spacing: .03em; animation: glint 3.2s ease-in-out infinite; }

.candles { position: absolute; bottom: -3%; z-index: 3; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.candles-l { left: -5%; }
.candles-r { right: -5%; }
.candle { width: 50px; height: 168px; overflow: visible; }
.candle:nth-child(2) { width: 58px; height: 195px; }
.candle-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.7s ease-in-out infinite; animation-delay: var(--d); }
.candle-glow { transform-box: fill-box; transform-origin: center; animation: glowFlicker 2.3s ease-in-out infinite; animation-delay: var(--d); mix-blend-mode: screen; }
.candle-floor { transform-box: fill-box; transform-origin: center; animation: glowFlicker 2.3s ease-in-out infinite; animation-delay: var(--d); mix-blend-mode: screen; }
.candle-ember-tip { animation: glint 1.2s ease-in-out infinite; animation-delay: var(--d); }
.candle-spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: spark 3.2s ease-out infinite; animation-delay: calc(var(--d) + .6s); }
.candle-spark.s2 { animation-duration: 4.1s; animation-delay: calc(var(--d) + 2.1s); --sx: 7px; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx, -6px), -46px) scale(.3); } }
@keyframes flicker {
    0%, 100% { transform: scale(1, 1) skewX(0); }
    15% { transform: scale(.93, 1.08) skewX(3deg); }
    35% { transform: scale(1.05, .94) skewX(-2deg); }
    55% { transform: scale(.96, 1.1) skewX(2deg); }
    75% { transform: scale(1.03, .96) skewX(-3deg); }
}
@keyframes glowFlicker { 0%, 100% { opacity: .85; transform: scale(1); } 30% { opacity: .6; transform: scale(.92); } 60% { opacity: 1; transform: scale(1.06); } }

.scroll-hint { position: absolute; left: calc((100% - min(1240px, 92%)) / 2); bottom: 22px; width: 26px; height: 42px; z-index: 4; border: 2px solid rgba(232, 193, 112, .6); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Animasyonlu ikonlar ---------- */
.tile-art { position: relative; display: inline-grid; place-items: center; width: 116px; height: 116px; color: var(--gold); }
.tile-art::before {
    content: ''; position: absolute; inset: 6%; border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 193, 112, .22), rgba(155, 107, 255, .12) 45%, transparent 70%);
    animation: breathe 4s ease-in-out infinite;
}
.tile-art.sm { width: 84px; height: 84px; flex-shrink: 0; }
.tile-art.lg { width: 128px; height: 128px; }
.ic { position: relative; width: 78%; height: 78%; overflow: visible; filter: drop-shadow(0 0 8px rgba(232, 193, 112, .55)); }
.ic .ic-thin { stroke-width: 1.5; }
.ic .ic-fill { fill: currentColor; stroke: none; }
.ic .ic-spark { fill: #fff6d6; stroke: none; transform-box: fill-box; transform-origin: center; animation: twinkle2 2.6s ease-in-out infinite; }
.ic-spin-slow, .ic-orbit, .ic-mist, .ic-rays, .ic-pulse, .ic-flip, .ic-page { transform-origin: 50px 50px; }
.ic-spin-slow { animation: spin 24s linear infinite; }
.ic-orbit { animation: spin 9s linear infinite; }
.ic-beat { transform-origin: 50px 52px; animation: beat 1.4s ease-in-out infinite; }
.ic-mist { transform-origin: 50px 44px; animation: spin 7s linear infinite; }
.ic-glint { animation: glint 3s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.ic-beam { transform-origin: 50px 26px; animation: scaleTilt 3.4s ease-in-out infinite; }
@keyframes scaleTilt { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.ic-rays { animation: spin 18s linear infinite; }
.ic-pulse { animation: breathe 2.4s ease-in-out infinite; }
.ic-circuit { stroke-dasharray: 4 4; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.ic-node { animation: glint 1.4s ease-in-out infinite; }
.ic-blink { transform-origin: 50px 60px; animation: blinkEye 5s ease-in-out infinite; }
.ic-cross { animation: crossGlow 2.6s ease-in-out infinite; }
@keyframes crossGlow { 0%, 100% { fill: rgba(232, 193, 112, 0); } 50% { fill: rgba(232, 193, 112, .35); } }
.ic-flip { animation: flipIc 4.2s ease-in-out infinite; }
.ic-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: growBar 3s ease-in-out infinite; }
@keyframes growBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }
.ic-sway { transform-origin: 50px 14px; animation: sway 3.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes flipIc { 0%, 35%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0); } 65% { transform: scaleX(1); } }
.ic-dot { animation: typing 1.2s ease-in-out infinite; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ic-page { fill: rgba(232, 193, 112, .1); animation: pageFlip 4.5s ease-in-out infinite; }
@keyframes pageFlip { 0%, 30%, 100% { transform: scaleX(1); } 55%, 75% { transform: scaleX(-1); } }

/* ---------- Okuma kutucukları ---------- */
.reading-tile, .feature-tile {
    --lift: 0px;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s, opacity .8s ease calc(var(--i, 0) * .08s), translate .8s ease calc(var(--i, 0) * .08s);
    background: linear-gradient(160deg, rgba(48, 30, 100, .7), rgba(22, 12, 52, .75));
    backdrop-filter: blur(6px);
}
.reading-tile.tilting, .feature-tile.tilting { transition: transform .1s, box-shadow .4s, border-color .4s; }
a.reading-tile:hover, a.feature-tile:hover {
    --lift: -8px;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold), 0 0 40px rgba(232, 193, 112, .2);
}
.reading-tile::before, .feature-tile::before { display: none; }
.tile-glow {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(245, 220, 160, .22), transparent 55%);
}
a.reading-tile:hover .tile-glow, a.feature-tile:hover .tile-glow { opacity: 1; }
.reading-tile:hover .ic { animation-duration: .6s; }
.reading-tile > *, .feature-tile > * { position: relative; }
.reading-tile .tile-glow, .feature-tile .tile-glow { position: absolute; }

.reveal { opacity: 0; translate: 0 34px; transition: opacity .8s ease calc(var(--i, 0) * .08s), translate .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .08s); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Kart arkası ---------- */
.tcard-back {
    overflow: hidden; border-radius: 12px;
    background: #1a0d3d url(../img/kart-arka.svg) center / 100% 100% no-repeat;
    box-shadow: 0 0 0 1px rgba(232, 193, 112, .35);
}
.tcard-back::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 226, 150, .55) 0, rgba(255, 200, 110, .18) 22%, transparent 48%);
    mix-blend-mode: screen; translate: -50% -50%;
    animation: sunPulse 3.6s ease-in-out infinite;
}
@keyframes sunPulse { 0%, 100% { opacity: .45; scale: .9; } 50% { opacity: 1; scale: 1.08; } }
.tcard-back::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, .35) 50%, transparent 65%);
    background-size: 300% 100%; animation: sweep 5.5s ease-in-out infinite;
}
.deck-card .tcard-back::before, .deck-card .tcard-back::after { animation-play-state: paused; }
.deck.ready .deck-card:hover .tcard-back::before, .deck.ready .deck-card:hover .tcard-back::after { animation-play-state: running; }

/* ---------- Kart yüzü ve iç animasyonlar ---------- */
.tcard-front.img { box-shadow: 0 0 0 1px rgba(232, 193, 112, .5), 0 10px 30px rgba(0, 0, 0, .45); }
.card-shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.card-shine::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx, 30%) var(--my, 15%), rgba(255, 255, 255, .45), transparent 50%);
    mix-blend-mode: soft-light; opacity: .7;
}
.card-shine::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 250, 230, .55) 50%, transparent 62%);
    background-size: 300% 100%; mix-blend-mode: overlay;
    animation: sweep 6s ease-in-out infinite;
}
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.fx::before, .fx::after { content: ''; position: absolute; pointer-events: none; }
.fx i { position: absolute; display: block; left: var(--x); top: var(--y); }
.fx i:nth-child(1) { --x: 14%; --y: 16%; --d: 0s; --t: 3.4s; }
.fx i:nth-child(2) { --x: 78%; --y: 24%; --d: 1.1s; --t: 4.2s; }
.fx i:nth-child(3) { --x: 32%; --y: 58%; --d: 2.2s; --t: 3.8s; }
.fx i:nth-child(4) { --x: 66%; --y: 70%; --d: .6s; --t: 4.6s; }
.fx i:nth-child(5) { --x: 46%; --y: 36%; --d: 1.7s; --t: 3.1s; }
.fx i:nth-child(6) { --x: 86%; --y: 84%; --d: 2.8s; --t: 5s; }

/* yıldız parıltıları (Büyük Arkana ve özel kartlar) */
.fx-sparkle i, .fx-rays i, .fx-moon i, .fx-wheel i, .fx-earth i {
    width: 11px; height: 11px; margin: -5px;
    background: #fff8dc;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: twinkle2 var(--t) ease-in-out var(--d) infinite;
}
.fx-moon i { background: #e3ecff; width: 8px; height: 8px; }
.fx-earth i { background: #ffd86b; width: 13px; height: 13px; }

/* ateş: yükselen kıvılcımlar */
.fx-fire::before { inset: 0; background: linear-gradient(to top, rgba(255, 120, 30, .28), transparent 45%); mix-blend-mode: screen; animation: glowFlicker 2s ease-in-out infinite; }
.fx-fire i {
    width: 4px; height: 4px; border-radius: 50%; background: #ffd27a;
    box-shadow: 0 0 6px 2px rgba(255, 130, 30, .85);
    animation: rise var(--t) linear var(--d) infinite;
}
@keyframes rise {
    0% { top: 104%; opacity: 0; transform: translateX(0); }
    10% { opacity: 1; }
    50% { transform: translateX(10px); }
    100% { top: -6%; opacity: 0; transform: translateX(-6px); }
}

/* su: kabarcıklar ve ışık dalgası */
.fx-water::before {
    inset: -10%;
    background: repeating-radial-gradient(circle at 30% 120%, rgba(170, 215, 255, .14) 0 6px, transparent 6px 18px);
    mix-blend-mode: screen; animation: caustic 7s linear infinite;
}
@keyframes caustic { to { transform: translateY(-18px) scale(1.04); } }
.fx-water i {
    width: 7px; height: 7px; border-radius: 50%;
    border: 1px solid rgba(225, 242, 255, .9); background: rgba(255, 255, 255, .18);
    animation: rise calc(var(--t) * 1.4) ease-in var(--d) infinite;
}

/* hava: kılıç parıltısı ve rüzgâr çizgileri */
.fx-air i {
    left: -45%; width: 45%; height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
    animation: streak var(--t) ease-in-out var(--d) infinite;
}
@keyframes streak { 0% { left: -45%; opacity: 0; } 15% { opacity: 1; } 55%, 100% { left: 110%; opacity: 0; } }
.fx-air::before {
    inset: 0; background: linear-gradient(125deg, transparent 40%, rgba(220, 235, 255, .35) 50%, transparent 60%);
    background-size: 300% 100%; mix-blend-mode: overlay; animation: sweep 4s ease-in-out infinite;
}

/* toprak: altın ışıltı */
.fx-earth::before {
    inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 215, 120, .45) 50%, transparent 60%);
    background-size: 300% 100%; mix-blend-mode: overlay; animation: sweep 5s ease-in-out infinite;
}

/* ışın: Güneş, Yıldız, Dünya, Mahkeme, Büyücü */
.fx-rays::before {
    left: 50%; top: 30%; width: 190%; aspect-ratio: 1;
    background: repeating-conic-gradient(rgba(255, 240, 190, .24) 0 5deg, transparent 5deg 15deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 58%); mask: radial-gradient(circle, #000 0, transparent 58%);
    mix-blend-mode: screen; animation: spinCenter 32s linear infinite;
}

/* şimşek: Kule */
.fx-lightning::before { inset: 0; background: #fff; opacity: 0; mix-blend-mode: overlay; animation: flash 5.5s infinite; }
.fx-lightning::after {
    right: 18%; top: 4%; width: 22%; height: 34%; background: #fffbe6; opacity: 0;
    clip-path: polygon(55% 0, 20% 48%, 46% 48%, 28% 100%, 82% 38%, 54% 38%, 72% 0);
    filter: drop-shadow(0 0 6px #fff); animation: flash 5.5s infinite;
}
@keyframes flash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: .95; } 88.5% { opacity: .1; } 90% { opacity: .75; } 92% { opacity: 0; } }
.fx-lightning i { width: 3px; height: 3px; background: #ffcf8a; border-radius: 50%; animation: fall var(--t) linear var(--d) infinite; }
@keyframes fall { from { top: -5%; opacity: 1; } to { top: 105%; opacity: 0; } }

/* ay ışığı: Ay, Başrahibe, Ermiş */
.fx-moon::before { inset: 0; background: radial-gradient(circle at 50% 22%, rgba(190, 210, 255, .42), transparent 50%); mix-blend-mode: screen; animation: breathe 4.5s ease-in-out infinite; }

/* kader çarkı */
.fx-wheel::before {
    left: 50%; top: 50%; width: 72%; aspect-ratio: 1; border-radius: 50%;
    border: 1.5px dashed rgba(255, 230, 160, .75); box-shadow: inset 0 0 22px rgba(255, 220, 140, .35), 0 0 18px rgba(255, 220, 140, .25);
    animation: spinCenter 14s linear infinite;
}

/* aşk: süzülen kalpler */
.fx-love::before { inset: 0; background: radial-gradient(circle at 50% 60%, rgba(255, 120, 170, .22), transparent 60%); mix-blend-mode: screen; animation: breathe 3s ease-in-out infinite; }
.fx-love i { animation: floatHeart var(--t) ease-in var(--d) infinite; }
.fx-love i::before { content: '\2665\FE0E'; color: #ff9cc2; font-size: 13px; text-shadow: 0 0 8px rgba(255, 120, 170, .9); }
@keyframes floatHeart {
    0% { top: 100%; opacity: 0; transform: translateX(0) scale(.6); }
    15% { opacity: 1; }
    50% { transform: translateX(10px) scale(1); }
    100% { top: 0; opacity: 0; transform: translateX(-8px) scale(.8); }
}

/* sis: Ölüm, Şeytan */
.fx-smoke::before {
    inset: -25%;
    background: radial-gradient(ellipse at 30% 85%, rgba(50, 25, 85, .55), transparent 50%), radial-gradient(ellipse at 75% 95%, rgba(80, 40, 110, .5), transparent 55%);
    animation: fog 8s ease-in-out infinite alternate;
}
@keyframes fog { to { transform: translate(6%, -6%) scale(1.1); } }
.fx-smoke i {
    width: 22px; height: 22px; border-radius: 50%; background: rgba(210, 190, 255, .22); filter: blur(5px);
    animation: rise calc(var(--t) * 1.8) ease-out var(--d) infinite;
}

/* ters kart yüzünde de efekt dikey olarak doğru yönde kalır */
.tcard-front.reversed .fx { transform: none; }

/* kart anlamları ızgarasında efektler sadece üzerine gelince */
.meaning-grid .fx { display: none; }
.meaning-grid .card-shine::after { animation: none; }
.meaning-card:hover .fx { display: block; }
.meaning-card:hover .card-shine::after { animation: sweep 1.4s ease-in-out; }
.meaning-card .tcard-front.img { transition: box-shadow .3s; }
.meaning-card:hover .tcard-front.img { box-shadow: 0 0 0 1px var(--gold), 0 0 30px rgba(232, 193, 112, .5); }
.meaning-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.meaning-card:hover { transform: translateY(-10px) scale(1.04); }

/* 3D eğim */
[data-tilt] { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
[data-tilt].tilting { transition-duration: .08s; }
[data-tilt] .card-shine::before { transition: opacity .3s; }
[data-tilt].tilting .card-shine::before { opacity: 1; }

/* ---------- Okuma sahnesi ---------- */
.reading-head .tile-art { margin-bottom: .2rem; }
.panel { background: linear-gradient(160deg, rgba(48, 30, 100, .72), rgba(22, 12, 52, .8)); backdrop-filter: blur(8px); position: relative; overflow: hidden; }
.panel::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(245, 220, 160, .9) 80%, transparent 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: borderSpin 6s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes borderSpin { to { --ang: 360deg; } }

.pick-info { font-family: 'Cinzel', serif; letter-spacing: .03em; text-shadow: 0 0 18px rgba(232, 193, 112, .45); }

.deck {
    --cw: 120px;
    position: relative; height: calc(var(--cw) * 3.2); max-width: 1120px; margin: 0 auto 1rem;
    display: block; padding: 0;
}
.deck-card {
    position: absolute; left: 50%; top: 30px; width: var(--cw); aspect-ratio: 7/12; margin: 0 0 0 calc(var(--cw) / -2);
    border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer;
    --x: 0px; --y: 0px; --a: 0deg; --lift: 0px;
    transform-origin: 50% 330%;
    transform: translate(var(--x), calc(var(--y) + var(--lift))) rotate(var(--a));
    transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .35s, filter .35s;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 193, 112, .25);
}
.deck-card .tcard-back { position: absolute; inset: 0; }
.deck.stacked .deck-card { transform-origin: 50% 50%; top: 70px; }
.deck.ready .deck-card:hover { --lift: -42px; filter: drop-shadow(0 0 18px rgba(245, 220, 160, .9)); transition-duration: .25s; }
.deck.ready .deck-card:focus-visible { --lift: -42px; outline: 2px solid var(--gold); }
.deck-card.taken { opacity: 0; pointer-events: none; transition-duration: .1s; }
.deck.done .deck-card:not(.taken) { opacity: .35; --lift: 18px; filter: saturate(.6) brightness(.8); cursor: default; }
.deck.leaving .deck-card { cursor: default; pointer-events: none; }
.deck-card.gone { opacity: 0; filter: blur(1px); transition: transform .9s cubic-bezier(.55, 0, .8, .3), opacity .8s ease-in, filter .8s; }

.fly-card {
    position: fixed; z-index: 150; border-radius: 10px; pointer-events: none;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 34px rgba(245, 220, 160, .6);
}
.fly-card .tcard-back { position: absolute; inset: 0; }

.slot-card { position: relative; border: 1.5px dashed rgba(232, 193, 112, .35); background: rgba(232, 193, 112, .03); transition: box-shadow .5s, border-color .5s; }
.slot:not(.filled) .slot-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: inset 0 0 22px rgba(232, 193, 112, .25); animation: breathe 2.6s ease-in-out infinite;
}
.slot.landed .tcard { animation: land .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes land { from { transform: scale(1.14); } to { transform: scale(1); } }
.slot.revealed .slot-card { border-radius: 12px; animation: aura 3.2s ease-in-out infinite; }
@keyframes aura { 0%, 100% { box-shadow: 0 0 18px rgba(245, 220, 160, .3); } 50% { box-shadow: 0 0 40px rgba(245, 220, 160, .6), 0 0 80px rgba(155, 107, 255, .3); } }
.slot-label { transition: color .4s, text-shadow .4s; }
.slot.revealed .slot-label { text-shadow: 0 0 12px rgba(245, 220, 160, .7); }

/* seçilen kartlar: destenin altında bekler, sonra büyüyüp yelpaze gibi açılır */
.slots.below { gap: 1.1rem; margin-top: .5rem; perspective: 1400px; }
.slots.below .slot { transition: transform .9s cubic-bezier(.3, 1.35, .5, 1), margin .9s cubic-bezier(.3, 1.35, .5, 1); }
.slots.below .slot-card { width: 104px; transition: width .9s cubic-bezier(.3, 1.3, .5, 1), box-shadow .5s, border-color .5s; }
.slots.below .slot-label { font-size: .85rem; transition: opacity .5s, font-size .5s; }
.slots.spread { gap: clamp(.4rem, 2.4vw, 2.4rem); margin: 1rem auto 2.5rem; flex-wrap: nowrap; }
.slots.spread .slot-card { width: clamp(96px, 27vw, 230px); }
.slots.spread.n1 .slot-card { width: clamp(170px, 52vw, 270px); }
.slots.spread.n4 .slot-card { width: clamp(74px, 21vw, 200px); }
.slots.spread .slot-label { font-size: clamp(.8rem, 1.8vw, 1.05rem); }
.slots.spread.n3 .slot-1 { transform: translate(18%, 7%) rotate(-11deg); }
.slots.spread.n3 .slot-3 { transform: translate(-18%, 7%) rotate(11deg); }
.slots.spread.n3 .slot-2 { transform: translateY(-4%); z-index: 2; }
.slots.spread.n4 .slot-1 { transform: translate(14%, 9%) rotate(-12deg); }
.slots.spread.n4 .slot-2 { transform: translateY(-2%) rotate(-3.5deg); }
.slots.spread.n4 .slot-3 { transform: translateY(-2%) rotate(3.5deg); }
.slots.spread.n4 .slot-4 { transform: translate(-14%, 9%) rotate(12deg); }
.slots.spread .slot.filled .slot-card { box-shadow: 0 22px 46px rgba(0, 0, 0, .6), 0 0 34px rgba(245, 220, 160, .25); border-radius: 12px; }
.slots.ready .slot:not(.revealed) { cursor: pointer; }
.slots.ready .slot:not(.revealed) .slot-card { animation: waitGlow 2.2s ease-in-out infinite; }
.slots.ready .slot:not(.revealed):hover .tcard { translate: 0 -12px; scale: 1.04; }
.slots .tcard { transition: translate .35s, scale .35s; }
@keyframes waitGlow { 0%, 100% { box-shadow: 0 22px 46px rgba(0, 0, 0, .6), 0 0 18px rgba(245, 220, 160, .25); } 50% { box-shadow: 0 22px 46px rgba(0, 0, 0, .6), 0 0 46px rgba(245, 220, 160, .7); } }

/* ---------- Canlı kart: açılış, yavaş yakınlaşma ve motifler ---------- */
.tcard.flipped .tcard-front.img img { animation: cardEnter 1.6s cubic-bezier(.2, .7, .2, 1) .25s both, kenBurns 16s ease-in-out 1.85s infinite alternate; }
@keyframes cardEnter {
    0% { scale: 1.35; filter: brightness(2.2) saturate(.3) blur(2px); }
    45% { filter: brightness(1.35) saturate(1.1) blur(0); }
    100% { scale: 1.02; filter: none; }
}
@keyframes kenBurns { 0% { scale: 1.02; translate: 0 0; } 50% { scale: 1.09; translate: -1.5% -2%; } 100% { scale: 1.06; translate: 1.5% -1%; } }

.motif { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; border-radius: inherit; }
.motif > i { position: absolute; display: block; opacity: 0; }
.motif svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tcard:not(.flipped) .motif > i { animation: none !important; }

.m-glow {
    left: var(--gx); top: var(--gy); width: var(--gs); aspect-ratio: 1; translate: -50% -50%; mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(255, 246, 200, .95) 0, rgba(255, 214, 120, .5) 25%, rgba(255, 190, 90, 0) 65%);
    animation: glowPulse 3s ease-in-out 1s infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.15; } }

.m-ram { bottom: 19%; width: 50%; aspect-ratio: 1; filter: drop-shadow(0 0 6px rgba(255, 210, 120, .9)) drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.m-ram.l { left: -8%; animation: ramL 1.3s cubic-bezier(.2, 1.3, .4, 1) .9s both, ramBob 3s ease-in-out 2.2s infinite; }
.m-ram.r { right: -8%; animation: ramR 1.3s cubic-bezier(.2, 1.3, .4, 1) 1.15s both, ramBobR 3s ease-in-out 2.45s infinite; }
.m-ram.r svg { transform: scaleX(-1); }
@keyframes ramL { from { opacity: 0; translate: -110% 0; rotate: -20deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes ramR { from { opacity: 0; translate: 110% 0; rotate: 20deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes ramBob { 0%, 100% { opacity: 1; rotate: 0deg; } 50% { opacity: 1; rotate: 6deg; translate: 0 -4%; } }
@keyframes ramBobR { 0%, 100% { opacity: 1; rotate: 0deg; } 50% { opacity: 1; rotate: -6deg; translate: 0 -4%; } }
.m-body { fill: url(#ramG); stroke: #6e4812; stroke-width: 1.6; }
.m-wool { fill: none; stroke: #8a5d1c; stroke-width: 1.6; stroke-linecap: round; }
.m-horn { fill: none; stroke: #6e4812; stroke-width: 11; stroke-linecap: round; }
.m-ridge { fill: none; stroke: #f7dc94; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 5 2.2; }
.m-eye { fill: #3a2208; }
.m-line { fill: none; stroke: #6e4812; stroke-width: 2; stroke-linecap: round; }

.m-drop { left: var(--x); top: 34%; width: 3.2%; aspect-ratio: .7; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(circle at 40% 60%, #fffbe6, #f2c75a 60%, #b8862e); box-shadow: 0 0 8px rgba(255, 220, 130, .9); animation: dropFall 3.4s cubic-bezier(.5, 0, .9, .6) calc(var(--d) + .7s) infinite; }
@keyframes dropFall { 0% { opacity: 0; translate: 0 0; scale: .4; } 15% { opacity: 1; scale: 1; } 85% { opacity: 1; } 100% { opacity: 0; translate: 0 1100%; } }

.m-bird { left: 0; top: var(--y); width: 18%; aspect-ratio: 2; scale: var(--s); color: #fff8e6; filter: drop-shadow(0 0 4px rgba(255, 230, 160, .9)); animation: birdFly 7s linear calc(var(--d) + .8s) infinite; }
.m-bird svg { fill: currentColor; animation: flap .45s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes birdFly { 0% { opacity: 0; translate: -120% 20%; } 10% { opacity: 1; } 50% { translate: 260% -10%; } 90% { opacity: 1; } 100% { opacity: 0; translate: 620% 15%; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }

.m-fly { left: var(--x); bottom: 0; width: 13%; aspect-ratio: 1; filter: drop-shadow(0 0 4px rgba(255, 220, 140, .9)); animation: flyUp 6s ease-in-out calc(var(--d) + .8s) infinite; }
.m-fly .w { fill: #ffd27a; stroke: #8a5d1c; stroke-width: 1; animation: wing .22s ease-in-out infinite alternate; transform-origin: 20px 20px; }
.m-fly .b { stroke: #4a2c0c; stroke-width: 2.2; stroke-linecap: round; }
@keyframes wing { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
@keyframes flyUp {
    0% { opacity: 0; translate: 0 20%; }
    15% { opacity: 1; }
    35% { translate: calc(var(--h) * 60%) -250%; rotate: calc(var(--h) * 15deg); }
    65% { translate: calc(var(--h) * -40%) -450%; rotate: calc(var(--h) * -12deg); }
    85% { opacity: 1; }
    100% { opacity: 0; translate: calc(var(--h) * 30%) -700%; }
}

.m-petal { left: var(--x); top: -6%; width: 7%; aspect-ratio: 1; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffd1dc, #ff7d9c); box-shadow: 0 0 6px rgba(255, 160, 190, .7); animation: petalFall 6s linear calc(var(--d) + .6s) infinite; }
.m-petal.w { background: linear-gradient(135deg, #fff, #e8dcc8); box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
@keyframes petalFall {
    0% { opacity: 0; translate: 0 0; rotate: 0deg; }
    10% { opacity: .95; }
    50% { translate: calc(var(--r) * 120%) 700%; rotate: calc(var(--r) * 200deg); }
    90% { opacity: .9; }
    100% { opacity: 0; translate: calc(var(--r) * -60%) 1500%; rotate: calc(var(--r) * 420deg); }
}

.m-coin { left: var(--x); top: -8%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff5c8, #f2c75a 45%, #a5741f 100%); box-shadow: inset 0 0 0 2px rgba(122, 82, 22, .7), 0 0 8px rgba(255, 210, 110, .8); animation: coinFall 5.4s cubic-bezier(.4, 0, .9, .6) calc(var(--d) + .6s) infinite; }
@keyframes coinFall {
    0% { opacity: 0; translate: 0 0; transform: scaleX(1); }
    8% { opacity: 1; }
    25% { transform: scaleX(.1); } 50% { transform: scaleX(1); } 75% { transform: scaleX(.1); }
    92% { opacity: 1; }
    100% { opacity: 0; translate: 0 1250%; transform: scaleX(1); }
}

.m-ember { left: var(--x); bottom: -4%; width: 2.8%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6c8, #ffae3c 50%, rgba(255, 90, 20, 0) 75%); box-shadow: 0 0 8px 2px rgba(255, 140, 40, .8); animation: emberRise 3.8s ease-out calc(var(--d) + .5s) infinite; }
@keyframes emberRise { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: var(--w) -2400%; scale: .3; } }

.m-bubble { left: var(--x); bottom: -6%; width: 6%; aspect-ratio: 1; border-radius: 50%; scale: var(--s); border: 1.5px solid rgba(220, 245, 255, .9); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9) 0 12%, rgba(160, 220, 255, .15) 30%, transparent 70%); animation: bubbleRise 5s ease-in calc(var(--d) + .5s) infinite; }
@keyframes bubbleRise { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .9; } 50% { translate: 40% -900%; } 85% { opacity: .8; } 100% { opacity: 0; translate: -30% -1700%; } }

.m-stone { left: var(--x); top: 4%; width: 4.5%; aspect-ratio: 1.3; background: linear-gradient(135deg, #d7cbb7, #6e6152); clip-path: polygon(10% 20%, 60% 0, 100% 35%, 85% 90%, 30% 100%, 0 60%); box-shadow: 0 0 6px rgba(255, 180, 90, .8); animation: stoneFall 2.6s cubic-bezier(.5, 0, .9, .5) calc(var(--d) + .4s) infinite; }
@keyframes stoneFall { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 10% { opacity: 1; } 100% { opacity: 0; translate: calc(var(--r) * 260%) 1900%; rotate: calc(var(--r) * 540deg); } }

.m-star { left: var(--x); top: var(--y); width: 7%; aspect-ratio: 1; background: #fff6d0; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #fff); animation: twinkle 2.4s ease-in-out calc(var(--d) + .8s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; scale: .3; rotate: 0deg; } 50% { opacity: 1; scale: 1; rotate: 90deg; } }

.m-dust { left: -30%; top: var(--y); width: 30%; height: 1.4%; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .9), transparent); animation: dustRun 1.6s linear calc(var(--d) + .8s) infinite; }
@keyframes dustRun { 0% { opacity: 0; translate: 0 0; } 20% { opacity: 1; } 100% { opacity: 0; translate: 480% 0; } }

/* ses düğmesi */
.sound-toggle {
    position: fixed; left: 18px; bottom: 18px; z-index: 95; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; color: var(--gold-2, #f5dca0);
    background: radial-gradient(circle at 35% 30%, rgba(90, 60, 170, .95), rgba(26, 14, 60, .95));
    border: 1px solid rgba(232, 193, 112, .55); box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 16px rgba(232, 193, 112, .25);
    transition: transform .2s, box-shadow .2s;
}
.sound-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 24px rgba(232, 193, 112, .55); }
.sound-toggle svg { width: 24px; height: 24px; }
.sound-toggle svg path:not(:first-child) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sound-toggle .x { display: none; }
.sound-toggle .w1, .sound-toggle .w2 { animation: wave 1.6s ease-in-out infinite; }
.sound-toggle .w2 { animation-delay: .25s; }
.sound-toggle.off { color: rgba(245, 220, 160, .55); }
.sound-toggle.off .w1, .sound-toggle.off .w2 { display: none; }
.sound-toggle.off .x { display: inline; }
@keyframes wave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
body.page-panel .sound-toggle { bottom: 84px; }

.pop-in { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1), btnGlow 2.4s 0.5s ease-in-out infinite; }

.burst-p {
    position: fixed; z-index: 200; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, #fff 0, #f5dca0 45%, transparent 70%);
    animation: burst 1.1s cubic-bezier(.15, .7, .3, 1) forwards;
}
.burst-p.star { width: 12px; height: 12px; border-radius: 0; background: #fff3c4; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes burst {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.2) rotate(180deg); opacity: 0; }
}
.burst-ring {
    position: fixed; z-index: 199; width: 20px; height: 20px; border-radius: 50%; pointer-events: none;
    border: 2px solid rgba(245, 220, 160, .9); box-shadow: 0 0 24px rgba(245, 220, 160, .7), inset 0 0 24px rgba(245, 220, 160, .5);
    transform: translate(-50%, -50%); animation: ring .9s ease-out forwards;
}
@keyframes ring { to { width: 300px; height: 300px; opacity: 0; } }

/* sonuçlar */
.result-item { background: linear-gradient(160deg, rgba(48, 30, 100, .65), rgba(22, 12, 52, .75)); backdrop-filter: blur(6px); }
.result-card .tcard-front.img { box-shadow: 0 0 0 1px rgba(232, 193, 112, .6), 0 0 30px rgba(245, 220, 160, .35), 0 16px 34px rgba(0, 0, 0, .5); }
.yesno-word { position: relative; display: inline-block; isolation: isolate; }
.yesno-rays {
    position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; z-index: -1;
    background: repeating-conic-gradient(currentColor 0 5deg, transparent 5deg 15deg); opacity: .22;
    -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%); mask: radial-gradient(circle, #000 15%, transparent 62%);
    animation: spinCenter 24s linear infinite;
}
.yesno.yes .yesno-word { color: #7be08a; }
.yesno.no .yesno-word { color: #ff7a8a; }
.yesno.maybe .yesno-word { color: var(--gold); }

.ai-loading .orb {
    position: relative; width: 74px; height: 74px; border-radius: 50%; margin: .6rem auto 0;
    background: radial-gradient(circle at 35% 30%, #fff 0, #d9c8ff 16%, #7c4ddb 52%, #1a0d3d 100%);
    box-shadow: 0 0 40px rgba(155, 107, 255, .7), inset 0 0 18px rgba(255, 255, 255, .4);
    animation: breathe 2.2s ease-in-out infinite;
}
.ai-loading .orb i { position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(245, 220, 160, .65); border-top-color: transparent; border-left-color: transparent; animation: spin 2.4s linear infinite; }
.ai-loading .orb i:nth-child(2) { inset: -18px; animation-duration: 4s; animation-direction: reverse; border-color: rgba(200, 170, 255, .5); border-bottom-color: transparent; }
.ai-loading .orb i:nth-child(3) { inset: -28px; animation-duration: 7s; border-style: dashed; border-color: rgba(245, 220, 160, .35); }
.ai-loading p { margin-top: 2.2rem; animation: glint 2s ease-in-out infinite; }
.ai-text p { animation: fadeUp .7s ease both; }
.ai-box { position: relative; overflow: hidden; }
.ai-box::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 240, 200, .08) 50%, transparent 60%);
    background-size: 300% 100%; animation: sweep 7s ease-in-out infinite;
}

/* ---------- Peri asası imleci ---------- */
@media (pointer: fine) {
    html, body { cursor: url(../img/asa.svg) 9 9, auto; }
    a, button:not(:disabled), select, summary, label, [role=button], [data-tilt],
    input[type=checkbox], input[type=radio], input[type=file], input[type=submit], .deck-card, .dropzone {
        cursor: url(../img/asa-parlak.svg) 9 9, pointer !important;
    }
    input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], textarea { cursor: text !important; }
}

/* ---------- Kahve falı ---------- */
.ic-steam { animation: steamIc 2.7s ease-in-out infinite; }
@keyframes steamIc { 0% { opacity: 0; transform: translateY(5px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px); } }

.coffee-panel { max-width: 820px; }
.coffee-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.coffee-steps li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.coffee-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1a05; box-shadow: 0 0 14px rgba(232, 193, 112, .35); }
.drop-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.drop-grid > * { min-width: 0; }
.q-label small { font-weight: 400; opacity: .8; }
.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    min-height: 150px; padding: 1rem; text-align: center; border-radius: 16px;
    border: 1.5px dashed rgba(232, 193, 112, .5); background: rgba(13, 8, 32, .45); transition: .2s;
}
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(232, 193, 112, .08); box-shadow: 0 0 26px rgba(232, 193, 112, .2); }
.dropzone.full { display: none; }
.dz-icon { font-size: 2.3rem; animation: dzFloat 3s ease-in-out infinite; }
@keyframes dzFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.dz-text { color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: fadeUp .4s ease both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: rgba(13, 8, 32, .85); color: #fff; font-size: 1.05rem; line-height: 1; }
.thumb button:hover { background: #c0392b; }
.coffee-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; margin-bottom: 1.3rem; }
.topic-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.coffee-panel .chat-note { margin-top: 1rem; padding: 0; background: none; }
.coffee-panel .form-msg:empty { display: none; }

.coffee-result { max-width: 860px; margin: 0 auto; }
.coffee-gallery { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; }
.coffee-gallery figure { margin: 0; text-align: center; animation: fadeUp .5s ease both; }
.coffee-gallery img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 26px rgba(232, 193, 112, .3); display: block; }
.coffee-gallery figcaption { color: var(--muted); font-size: .85rem; margin-top: .45rem; }

.cup-anim { position: relative; width: 96px; height: 96px; margin: 1.6rem auto 0; animation: cupTurn 3.6s ease-in-out infinite; }
@keyframes cupTurn { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.cup-body { position: absolute; left: 16px; top: 40px; width: 56px; height: 36px; border: 3px solid var(--gold); border-radius: 0 0 30px 30px; background: linear-gradient(#4a2c17, #1c1009); box-shadow: 0 0 22px rgba(232, 193, 112, .3); }
.cup-body::after { content: ''; position: absolute; right: -15px; top: 4px; width: 12px; height: 15px; border: 3px solid var(--gold); border-left: 0; border-radius: 0 10px 10px 0; }
.cup-saucer { position: absolute; left: 2px; top: 76px; width: 92px; height: 12px; border: 3px solid var(--gold); border-top-color: transparent; border-radius: 50%; }
.cup-anim i { position: absolute; top: 4px; left: 32px; width: 7px; height: 30px; border-radius: 7px; background: linear-gradient(transparent, rgba(245, 220, 160, .75)); filter: blur(2px); animation: steamUp 2.4s ease-in-out infinite; }
.cup-anim i:nth-child(2) { left: 44px; animation-delay: .8s; }
.cup-anim i:nth-child(3) { left: 56px; animation-delay: 1.6s; }
@keyframes steamUp { 0% { opacity: 0; transform: translateY(12px) scaleY(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -16px) scaleY(1.2); } }
.coffee-loading p { margin-top: 1.2rem; }

.feature-tile.wide { grid-column: 1 / -1; }

/* ---------- Uygulama (PWA) ---------- */
.pwa-banner {
    position: fixed; left: 50%; bottom: 18px; z-index: 9000; width: min(560px, calc(100% - 24px));
    display: flex; align-items: center; gap: .9rem; padding: .9rem 2.2rem .9rem 1rem; border-radius: 18px;
    background: linear-gradient(160deg, rgba(48, 30, 100, .97), rgba(22, 12, 52, .98)); border: 1px solid var(--gold);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 32px rgba(232, 193, 112, .22);
    transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s;
}
.pwa-banner.show { transform: translate(-50%, 0); opacity: 1; }
.pwa-banner img { flex: none; border-radius: 14px; box-shadow: 0 0 18px rgba(232, 193, 112, .35); }
.pwa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.pwa-txt strong { color: var(--gold); font-size: .98rem; }
.pwa-act { display: flex; gap: .5rem; }
.pwa-act .btn { margin: 0; white-space: nowrap; }
.pwa-x { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: .2rem; }
.pwa-x:hover { color: var(--gold); }
.ios-share { display: inline-block; padding: 0 .35em; border: 1px solid var(--border); border-radius: 6px; color: var(--gold-2); }
.app-install { margin-top: 1.1rem; }
.app-install[hidden] { display: none; }
.stat-list { list-style: none; display: grid; gap: .5rem; margin: .4rem 0 1rem; }
.stat-list li { display: flex; justify-content: space-between; padding: .6rem .9rem; border-radius: 10px; background: rgba(13, 8, 32, .45); border: 1px solid var(--border); }
.stat-list strong { color: var(--gold); }
@media (display-mode: standalone) {
    .site-header { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 480px) {
    .pwa-banner { flex-wrap: wrap; }
    .pwa-act { width: 100%; }
    .pwa-act .btn { flex: 1; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
    .hero { min-height: auto; padding-top: 2rem; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-stage { width: min(460px, 86vw); margin-top: 1rem; }
    .scroll-hint { display: none; }
    .deck { --cw: 92px; }
}
@media (max-width: 600px) {
    .deck { --cw: 66px; }
    .slots.below .slot-card { width: 76px; }
    .slots.spread { gap: .3rem; }
    .sound-toggle { width: 40px; height: 40px; left: 12px; bottom: 12px; }
    .candle { width: 30px; height: 100px; }
    .candle:nth-child(2) { width: 36px; height: 120px; }
    .candles-l { left: -6%; }
    .candles-r { right: -6%; }
    .disc-signs text { font-size: 26px; }
    .tile-art { width: 100px; height: 100px; }
}
@media (max-width: 700px) {
    .coffee-steps, .drop-grid, .coffee-fields { grid-template-columns: 1fr; }
    .coffee-gallery img { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
}
