/* Özel mesaj stickerları (App\GameData\Stickers). Hareketli SVG; hareketi azaltmış kullanıcıda durağan. */
.ui-sticker { display: inline-block; width: 96px; height: 96px; vertical-align: middle; line-height: 0; }
.ui-sticker .stk, .stk { display: block; width: 100%; height: 100%; overflow: visible; }

.stk-a-wave .stk-hand { transform-origin: 70px 78px; animation: stkWave 1.2s ease-in-out infinite; }
.stk-a-bounce { animation: stkBounce 1s ease-in-out infinite; }
.stk-a-beat .stk-heart { transform-origin: 50px 76px; animation: stkBeat .9s ease-in-out infinite; }
.stk-a-shake { transform-origin: 50% 70%; animation: stkShake .5s ease-in-out infinite; }
.stk-a-tear .stk-tear, .stk-a-shake .stk-tear { animation: stkTear 1.4s ease-in infinite; }
.stk-a-float .stk-z { animation: stkZ 2.4s ease-in-out infinite; }
.stk-a-pop .stk-bang { transform-origin: 50px 30px; animation: stkPop 1.2s ease-in-out infinite; }
.stk-a-tilt { transform-origin: 50% 90%; animation: stkTilt 2s ease-in-out infinite; }
.stk-a-thumb .stk-th { transform-origin: 72px 80px; animation: stkThumb 1.1s ease-in-out infinite; }
.stk .stk-coin { transform-box: fill-box; transform-origin: center; animation: stkCoin 1.2s linear infinite; }
.stk .stk-cf { animation: stkConf 1.6s ease-in infinite; }
.stk .stk-cf:nth-child(2) { animation-delay: .3s; } .stk .stk-cf:nth-child(3) { animation-delay: .6s; } .stk .stk-cf:nth-child(4) { animation-delay: .9s; }
.stk-a-bounce .stk-heart { transform-box: fill-box; transform-origin: center; animation: stkBeat .9s ease-in-out infinite; }
.stk .stk-d2 { animation-delay: .7s; } .stk .stk-d3 { animation-delay: 1.4s; }

@keyframes stkWave { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-22deg); } 75% { transform: rotate(14deg); } }
@keyframes stkBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes stkBeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.18); } 60% { transform: scale(.96); } }
@keyframes stkShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes stkTear { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes stkZ { 0% { transform: translate(0,0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(10px,-18px); opacity: 0; } }
@keyframes stkCoin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.15); } 100% { transform: scaleX(1); } }
@keyframes stkConf { 0% { transform: translateY(-10px) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(30px) rotate(180deg); opacity: 0; } }
@keyframes stkPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes stkTilt { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes stkThumb { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-8deg); } }

@media (prefers-reduced-motion: reduce) { .stk, .stk * { animation: none !important; } }

/* Sticker paneli (mesaj yazma alanı) */
.stk-wrap { margin-top: 12px; }
.stk-toggle { display: inline-flex; align-items: center; gap: 6px; }
.stk-panel { margin-top: 8px; border: 1px solid var(--ui-card-edge, #a4cfdf); border-radius: 8px; background: var(--ui-card, #e2eff1); overflow: hidden; position: relative; }
.stk-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; background: var(--ui-row-base, #d0e2ea); font-size: 11px; color: var(--ui-muted, #5a7580); }
.stk-panel-head b { color: var(--ui-ink, #1a1a1a); font-weight: 600; }
.stk-grid { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; max-height: 250px; overflow: auto; }
.stk-item { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; border-radius: 8px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stk-item:hover, .stk-item:focus-visible { background: var(--ui-row-base, #d0e2ea); }
.stk-item:focus-visible { outline: 2px solid var(--ui-hdr-bot, #2c6a80); outline-offset: 1px; }
.stk-item .stk { width: 56px; height: 56px; }
.stk-item small { font-size: 9.5px; color: var(--ui-muted, #5a7580); text-align: center; line-height: 1.2; }
.stk-panel.locked .stk-grid { filter: saturate(.35) opacity(.5); pointer-events: none; max-height: 170px; overflow: hidden; }
.stk-lock { position: absolute; inset: 34px 0 0 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 10px; }
.stk-panel.locked .stk-panel-head { position: static; }
.stk-lock-card { background: var(--ui-card, #e2eff1); border: 1px solid var(--ui-card-edge, #a4cfdf); border-radius: 10px; padding: 12px 14px; text-align: center; max-width: 260px; box-shadow: 0 4px 14px rgba(20,60,70,.18); font-size: 12px; color: var(--ui-muted, #5a7580); line-height: 1.45; }
.stk-lock-card b { display: block; color: var(--ui-ink, #1a1a1a); font-size: 12px; margin: 4px 0; font-weight: 600; }

/* Görsel tabanlı paketler (Noto) */
.stk-img { display: block; width: 100%; height: 100%; }
.stk-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stk-item .stk-img { width: 56px; height: 56px; object-fit: contain; }
.stk-credit { padding: 2px 10px 8px; font-size: 11px; text-align: right; }
.stk-credit a { color: var(--ui-muted, #5a7580); text-decoration: none; }
.stk-credit a:hover { text-decoration: underline; }
.stk-panel .stk-panel-head ~ .stk-panel-head { border-top: 1px solid var(--ui-card-edge-soft, #cfe4ec); }
/* Birden çok paket: panelin tamamı tek kaydırma alanı */
.stk-panel:not(.locked) { max-height: 380px; overflow: auto; }
.stk-panel:not(.locked) .stk-grid { max-height: none; overflow: visible; }
.stk-panel .stk-panel-head { position: sticky; top: 0; z-index: 1; }

/* Metin içi emojiler: her tarayıcıda Noto görseli (App\Support\Emoji) */
img.ui-emo, body.ui img.ui-emo { display: inline-block !important; width: 1.5em !important; height: 1.5em !important; max-width: none !important; vertical-align: -0.35em !important; margin: 0 .03em !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.ui .ui-tool.emoji { width: 34px !important; height: 32px !important; }
body.ui .ui-tool.emoji img.ui-emo { width: 23px !important; height: 23px !important; vertical-align: middle !important; margin: 0 !important; }
