/* Stickers, badges, games and extra motion. Loaded before styles.css rules, so overrides use a body prefix. */

/* Die-cut: thick white edge plus a soft lift shadow, like a vinyl sticker */
.dc { display: inline-block; filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 5px 5px rgba(0, 0, 0, .3)); }
body .sticker { box-shadow: 0 0 0 4px #fff, 0 7px 10px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); }
body .ccard:hover .sticker { transform: rotate(8deg) scale(1.18); }
body .fc { box-shadow: 0 0 0 5px #fff, 0 12px 20px rgba(0, 0, 0, .28); border-radius: 18px; }
body .vibe span { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); font-size: 2.2rem; }
body .ccard { transition: transform .18s ease-out; will-change: transform; }

/* Podium colours for the Top 3 (cards are wrapped for scroll reveal) */
body .top3 > div:not(:first-child) .ccard { background: var(--card); color: var(--ink); }
body .top3 > div:not(:first-child) .ccard .stat b { font-size: 1.5rem; }
body .top3 > div:nth-child(1) .sticker { background: #FFC83D; }
body .top3 > div:nth-child(2) .sticker { background: #D5DAE1; min-width: 46px; height: 46px; font-size: 1.2rem; }
body .top3 > div:nth-child(3) .sticker { background: #E9A06B; min-width: 46px; height: 46px; font-size: 1.2rem; }
.ccard-art { position: relative; overflow: hidden; }
body .top3 > div:first-child .ccard-art::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); animation: sheen 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }

/* Badges */
.badge { flex: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); transition: transform .3s cubic-bezier(.2, 1.8, .4, 1); }
.badge:hover { transform: rotate(-10deg) scale(1.12); }
.badge .b-out { fill: #fff; stroke: #fff; stroke-width: 9; stroke-linejoin: round; }
.badge .b-fill { fill: var(--bf, #FFC83D); stroke: #17130F; stroke-width: 2.5; stroke-linejoin: round; }
.badge .b-in { fill: #fff; stroke: #17130F; stroke-width: 2; }
.badge .b-n { font: 800 19px var(--font-d); fill: #17130F; }
.badge .b-l { font: 700 7px var(--font-b); letter-spacing: .14em; fill: #17130F; }
.b-bronze { --bf: #E9A06B; } .b-silver { --bf: #D5DAE1; } .b-gold { --bf: #FFC83D; } .b-diamond { --bf: #7CE3FF; } .b-pink { --bf: #FF4D8D; } .b-locked { --bf: #EFE7D6; opacity: .55; filter: none; }
.rv.in .badge, .badge.pop { animation: stamp .6s cubic-bezier(.2, 1.7, .4, 1) both; animation-delay: var(--d, .2s); }
@keyframes stamp { from { transform: scale(2.2) rotate(-25deg); opacity: 0; } }
.shelf { display: flex; flex-wrap: wrap; gap: 18px; }
.shelf figure { margin: 0; text-align: center; width: 104px; line-height: 1.3; }
.climb { display: grid; gap: 14px; margin-block-start: 18px; padding-block-start: 18px; border-block-start: 1.5px dashed var(--ink); }
.meter { height: 16px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--soft); overflow: hidden; margin-block-start: 5px; }
.meter i { display: block; height: 100%; width: var(--w); background: repeating-linear-gradient(-45deg, var(--cat) 0 10px, color-mix(in srgb, var(--cat) 70%, #fff) 10px 20px); background-size: 28px 100%; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both, march 1.2s linear infinite; transform-origin: left; }
[dir=rtl] .meter i { transform-origin: right; }
@keyframes march { to { background-position: 28px 0; } }

/* Rising stats */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 640px; margin-inline: auto; }
.pod { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pod .avatar { width: 76px; height: 76px; border-radius: 50%; font-size: 1.4rem; box-shadow: 0 0 0 5px #fff, 0 8px 12px rgba(0, 0, 0, .28); animation: float2 4s ease-in-out infinite; }
.pod:nth-child(2) .avatar { animation-delay: -1.3s; } .pod:nth-child(3) .avatar { animation-delay: -2.6s; }
@keyframes float2 { 50% { transform: translateY(-8px) rotate(4deg); } }
.pod .block { width: 100%; border: var(--bw) solid var(--ink); border-radius: 14px 14px 0 0; border-block-end: 0; display: grid; place-items: start center; padding-block-start: 8px; font: 800 2rem var(--font-d); transform-origin: bottom; animation: riseY .9s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes riseY { from { transform: scaleY(0); } }
.pod.p1 { order: 2; } .pod.p2 { order: 1; } .pod.p3 { order: 3; }
.pod.p1 .block { height: 150px; background: #FFC83D; } .pod.p2 .block { height: 108px; background: #D5DAE1; animation-delay: .15s; } .pod.p3 .block { height: 78px; background: #E9A06B; animation-delay: .3s; }
.pod .g { font: 800 1.3rem var(--font-d); color: var(--ok); }
.race { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.race li { display: grid; grid-template-columns: 2ch auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--card); border: var(--bw) solid var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh); animation: rise .5s both; animation-delay: var(--d, 0ms); }
.race .n { font: 800 1.2rem var(--font-d); }
.race .rb { display: block; height: 14px; margin-block-start: 5px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--cat); width: var(--w); min-width: 14px; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); transform-origin: left; }
[dir=rtl] .race .rb { transform-origin: right; }
.race .v { text-align: end; font: 800 1.2rem var(--font-d); color: var(--ok); }
.funfact { background: var(--cat); color: var(--cat-ink); position: relative; overflow: hidden; }
.funfact b.x { font: 800 2.4rem/1 var(--font-d); display: block; margin-block: 6px; }
.funfact .ico { position: absolute; inset-inline-end: 10px; inset-block-start: 6px; font-size: 2.4rem; animation: float2 3.4s ease-in-out infinite; }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(18, 128, 74, .6); } to { box-shadow: 0 0 0 12px rgba(18, 128, 74, 0); } }

/* Fun zone */
.funz { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.funt { display: block; text-decoration: none; padding: 22px; border: var(--bw) solid var(--ink); border-radius: 22px; background: var(--bg, #FFC83D); color: var(--ink); box-shadow: 0 0 0 5px #fff, 0 12px 18px rgba(0, 0, 0, .25); transform: rotate(var(--r, -2deg)); transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); }
.funt:hover { transform: rotate(0) scale(1.05); }
.funt .e { font-size: 2.6rem; display: block; animation: float2 3s ease-in-out infinite; }
.hl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.hl-side { background: var(--cat); color: var(--cat-ink); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 18px 12px; text-align: center; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: center; min-height: 230px; }
.hl-side .avatar { width: 84px; height: 84px; border-radius: 50%; font-size: 1.6rem; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 5px #fff, 0 8px 12px rgba(0, 0, 0, .28); }
.hl-side .num { font: 800 2.2rem/1 var(--font-d); }
.vs { align-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 1rem var(--font-d); box-shadow: 0 0 0 4px #fff; z-index: 1; margin-inline: -22px; }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-9px) rotate(-2deg); } 40% { transform: translateX(9px) rotate(2deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.win { animation: win .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes win { 40% { transform: scale(1.08) rotate(-2deg); } }
.streak { font: 800 3rem/1 var(--font-d); }
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 20px 10px; }
.stk { border: 0; background: none; cursor: pointer; text-align: center; font: 600 .85rem var(--font-b); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px; }
.stk .avatar { width: 92px; height: 92px; border-radius: 50%; font-size: 1.8rem; box-shadow: 0 0 0 5px #fff, 0 8px 12px rgba(0, 0, 0, .3); transform: rotate(var(--r, -5deg)); transition: transform .3s cubic-bezier(.2, 1.8, .4, 1), filter .3s; }
.stk:hover .avatar { transform: rotate(0) scale(1.1); }
.stk[aria-pressed=false] .avatar { filter: grayscale(1) opacity(.4); box-shadow: none; border-style: dashed; }
.duel-row { display: grid; grid-template-columns: 1fr 86px 1fr; gap: 10px; align-items: center; margin-block: 10px; font-weight: 700; }
.duel-row .l { display: flex; justify-content: flex-end; align-items: center; gap: 8px; } .duel-row .r { display: flex; align-items: center; gap: 8px; }
.duel-row i { display: block; height: 20px; width: var(--w); min-width: 4px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--cat); animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.duel-row .l i { transform-origin: right; } .duel-row .r i { transform-origin: left; }
.duel-row .mid { text-align: center; font-size: .8rem; }

/* Fan mail */
.stamps { display: flex; gap: 10px; flex-wrap: wrap; }
.stamp { font-size: 1.7rem; width: 54px; height: 62px; display: grid; place-items: center; background: #fff; border: 2px dashed var(--ink); border-radius: 6px; cursor: pointer; transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); }
.stamp[aria-pressed=true] { background: var(--warn-bg); border-style: solid; transform: rotate(-7deg) scale(1.12); box-shadow: 0 0 0 4px #fff, 0 6px 8px rgba(0, 0, 0, .25); }
.letter { position: relative; }
.l-stamp { position: absolute; inset-block-start: -18px; inset-inline-end: 16px; font-size: 2.6rem; transform: rotate(9deg); }
.env { width: 240px; height: 150px; margin: 6px auto 22px; position: relative; background: #fff; border: var(--bw) solid var(--ink); border-radius: 10px; box-shadow: 0 0 0 5px #fff, 0 14px 20px rgba(0, 0, 0, .22); animation: envIn 1s cubic-bezier(.2, 1.4, .4, 1) both, float2 4s ease-in-out 1s infinite; overflow: hidden; }
.env::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.4%, var(--ink) 49.6% 50.4%, transparent 50.6%), linear-gradient(to bottom left, transparent 49.4%, var(--ink) 49.6% 50.4%, transparent 50.6%); background-size: 50% 62%; background-position: left top, right top; background-repeat: no-repeat; }
.env span { position: absolute; inset-block-end: 14px; inset-inline-end: 16px; font-size: 2.2rem; transform: rotate(8deg); }
.env small { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; font-weight: 700; font-size: .8rem; text-align: start; }
@keyframes envIn { from { transform: translateY(90px) rotate(-14deg) scale(.5); opacity: 0; } }

/* Business */
.kan { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-block-end: 8px; }
.kan-col { background: var(--soft); border-radius: 14px; padding: 12px; }
.kan-col h3 { display: flex; justify-content: space-between; font-size: .95rem; }
.kan-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 12px; margin-block-start: 10px; font-size: .88rem; animation: rise .6s both; animation-delay: var(--d, 0ms); border-inline-start: 6px solid var(--k, var(--ink)); }
.biz-hero { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 28px; position: relative; overflow: hidden; }
.biz-hero .tile b { color: #FFC83D; }
.biz-hero::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; inset-inline-end: -90px; inset-block-start: -120px; background: conic-gradient(#FF4D8D, #FFC83D, #23B5D3, #5B4BFF, #FF4D8D); opacity: .5; filter: blur(30px); animation: spin 14s linear infinite; }
.biz-hero > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .meter i, .pod .avatar, .funfact .ico, .funt .e { animation: none; } }
