/* Cacoon Link house ads: warm ember "sunrise" palette from cacoonlink.com */
#cad-layer, #cad-banner, .cad-native {
  --ink: #140a05; --ink2: #1a0e08; --rust: #7a2306; --or: #ff5b14; --hot: #ff7a2e; --peach: #ffc9a3; --cream: #f8f4ee;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: 'Google Sans Flex', Roboto, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------------- full-screen ---------------- */
#cad-layer { position: absolute; inset: 0; z-index: 60; }
.cad { position: absolute; inset: 0; overflow: hidden; color: var(--cream); background: var(--ink); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(18px + env(safe-area-inset-bottom, 0px)); animation: cadIn .6s var(--ease) both; }
@keyframes cadIn { from { opacity: 0; transform: scale(1.04); } }
.cad-bg { position: absolute; inset: 0; pointer-events: none; }
.cad-bg i { position: absolute; border-radius: 50%; filter: blur(60px); }
.cad-bg .b1 { width: 130%; height: 60%; left: -15%; bottom: -28%; background: radial-gradient(closest-side, #ff7a2e 0%, #ff5b14 35%, #7a2306 70%, transparent); opacity: .95; animation: rise 7s ease-in-out infinite alternate; }
.cad-bg .b2 { width: 70%; height: 40%; right: -25%; top: 8%; background: radial-gradient(closest-side, rgba(255,91,20,.55), transparent); animation: drift 9s ease-in-out infinite alternate; }
.cad-bg .b3 { width: 60%; height: 35%; left: -20%; top: 30%; background: radial-gradient(closest-side, rgba(255,201,163,.22), transparent); animation: drift 11s ease-in-out infinite alternate-reverse; }
.cad-bg .grain { inset: 0; width: auto; height: auto; border-radius: 0; filter: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes rise { to { transform: translateY(-6%) scale(1.06); } }
@keyframes drift { to { transform: translate(-12%, 8%) scale(1.15); } }

.cad-top { position: relative; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.cad-brand { display: flex; align-items: center; gap: 8px; background: rgba(248,244,238,.08); border: 1px solid rgba(248,244,238,.14); padding: 5px 12px 5px 5px; border-radius: 999px; backdrop-filter: blur(10px); }
.cad-brand img { width: 26px; height: 26px; border-radius: 8px; }
.cad-brand b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.cad-brand span { font-size: 11px; opacity: .6; padding-left: 8px; border-left: 1px solid rgba(248,244,238,.25); }
.cad-spon { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: #ffd23f; color: #1b1b2f; padding: 4px 10px; border-radius: 6px; }
.cad-close { position: relative; width: 38px; height: 38px; border-radius: 50%; background: rgba(248,244,238,.1); border: 0; color: var(--cream); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.cad-close svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cad-close .ring { fill: none; stroke: var(--or); stroke-width: 2.5; stroke-dasharray: 94.2; stroke-dashoffset: 94.2; animation: ring var(--dur, 5s) linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.cad-close.ready { background: var(--cream); color: var(--ink); }
.cad-close.ready svg { display: none; }

.cad-head { position: relative; }
.cad-mascot { position: absolute; z-index: 1; width: 74px; height: 74px; right: 0; bottom: -4px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,201,163,.3), 0 18px 50px -10px rgba(255,91,20,.8); animation: mascot 3.2s ease-in-out infinite, pop .8s var(--ease) .15s both; }
@keyframes mascot { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }

.cad-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 22px; min-height: 0; }
.cad-head h2 { margin: 0; font-size: clamp(30px, 9.6vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.cad-head .ln { display: block; white-space: nowrap; padding-bottom: .04em; animation: lineIn .9s var(--ease) both; }
.cad-head .ln:nth-child(2) { animation-delay: .12s; }
.cad-head .hl { background: linear-gradient(90deg, #ffc9a3, #ff7a2e 55%, #ff5b14); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes lineIn { from { opacity: 0; transform: translateY(60%); filter: blur(6px); } }
.cad-sub { margin: 12px 0 0; font-size: 15.5px; line-height: 1.4; color: rgba(248,244,238,.72); max-width: calc(100% - 88px); min-height: 72px; animation: lineIn .9s var(--ease) .25s both; }

/* phone mock */
.cad-phone { position: relative; align-self: center; width: min(78vw, 300px); margin: 16px 0 8px; background: linear-gradient(180deg, #fffaf4, #f8f4ee); color: #1a0e08; border-radius: 34px; padding: 30px 14px 14px; box-shadow: 0 0 0 6px #2a1a10, 0 0 0 7px rgba(255,201,163,.25), 0 40px 80px -20px rgba(0,0,0,.8), 0 20px 60px -10px rgba(255,91,20,.5); animation: phoneIn 1s var(--ease) .3s both; transform-origin: 50% 100%; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(-6deg) scale(.9); } }
.ph-notch { position: absolute; top: 9px; left: 50%; width: 78px; height: 20px; margin-left: -39px; background: #120a05; border-radius: 12px; }
.ph-prof { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ph-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: conic-gradient(from 200deg, #ff5b14, #ffc9a3, #ff7a2e, #ff5b14); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff5b14; }
.ph-prof b { display: block; font-size: 15px; }
.ph-prof small { font-size: 11px; color: #9a5a38; }
.ph-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #f0e4d8; border-radius: 14px; padding: 9px 12px; margin-top: 7px; font-size: 13px; font-weight: 600; box-shadow: 0 2px 0 #f0e4d8; }
.ph-row em { font-style: normal; font-weight: 800; color: #fff; background: #1a0e08; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.ph-earn { margin-top: 10px; background: linear-gradient(135deg, #1a0e08, #3a1608); color: #f8f4ee; border-radius: 16px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.ph-earn small { font-size: 11px; opacity: .7; }
.ph-earn strong { font-size: 24px; letter-spacing: -.02em; color: #ffc9a3; font-variant-numeric: tabular-nums; }
.ph-toasts { position: absolute; left: -16px; right: -16px; top: 92px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: rgba(26,14,8,.92); color: #f8f4ee; border: 1px solid rgba(255,201,163,.25); border-radius: 14px; padding: 8px 12px; font-size: 13px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); backdrop-filter: blur(8px); animation: toastIn .55s var(--ease) both; }
.toast b { flex: 1; font-weight: 600; }
.toast em { font-style: normal; font-weight: 800; color: #7dffb0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-18px) scale(.92); } }
.ph-demo { position: absolute; bottom: -20px; right: 6px; font-size: 10px; opacity: .45; color: #f8f4ee; }

/* orbit: post to 9 apps */
.cad-orbit { position: relative; align-self: center; width: min(76vw, 290px); aspect-ratio: 1; margin: 8px 0; }
.orb-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(255,201,163,.35); animation: spin 18s linear infinite; }
.orb-post { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); background: #f8f4ee; color: #1a0e08; border-radius: 18px; padding: 8px; text-align: left; z-index: 2; box-shadow: 0 20px 50px -10px rgba(255,91,20,.7); animation: postPulse 2.4s var(--ease) infinite; }
.orb-img { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, #ffc9a3, #ff5b14 60%, #7a2306); margin-bottom: 6px; }
.orb-post b { display: block; font-size: 13px; }
.orb-post small { font-size: 10px; color: #9a5a38; }
@keyframes postPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 12% { transform: translate(-50%, -50%) scale(.94); } 24% { transform: translate(-50%, -50%) scale(1.04); } }
.orb-dot { --a: calc(var(--i) * 40deg); position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1a0e08; background: #f8f4ee; box-shadow: 0 6px 18px -4px rgba(0,0,0,.5);
  transform: rotate(var(--a)) translateY(calc(min(76vw, 290px) * -.44)) rotate(calc(var(--a) * -1)); animation: dotIn 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * .06s); }
.orb-dot:nth-of-type(odd) { background: #ff7a2e; color: #fff; }
@keyframes dotIn { 0% { transform: rotate(var(--a)) translateY(0) rotate(calc(var(--a) * -1)) scale(.2); opacity: 0; } 30%, 100% { transform: rotate(var(--a)) translateY(calc(min(76vw, 290px) * -.44)) rotate(calc(var(--a) * -1)) scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* claim */
.cad-claim { align-self: stretch; margin: 10px 0; display: flex; flex-direction: column; align-items: center; }
.claim-bar { width: 100%; background: #f8f4ee; color: #1a0e08; border-radius: 18px; padding: 16px 16px; font-size: clamp(17px, 5.2vw, 22px); font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; box-shadow: 0 0 0 4px rgba(255,91,20,.35), 0 20px 60px -10px rgba(255,91,20,.6); animation: phoneIn .9s var(--ease) .3s both; overflow: hidden; white-space: nowrap; }
.claim-host { color: #9a5a38; font-weight: 500; }
.claim-name { color: #ff5b14; }
.caret { width: 2px; height: 1.1em; background: #ff5b14; margin-left: 2px; animation: blinkc .8s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.claim-ok { margin-top: 12px; font-weight: 700; font-size: 14px; color: #7dffb0; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.claim-ok.show { opacity: 1; transform: none; }
.claim-stack { position: relative; width: 100%; height: 130px; margin-top: 14px; }
.cs { position: absolute; left: 50%; padding: 12px 18px; border-radius: 16px; background: rgba(248,244,238,.08); border: 1px solid rgba(248,244,238,.16); backdrop-filter: blur(10px); font-weight: 700; font-size: 15px; white-space: nowrap; animation: csIn .9s var(--ease) both; }
.cs.c1 { top: 0; transform: translateX(-95%) rotate(-5deg); animation-delay: .6s; }
.cs.c2 { top: 38px; transform: translateX(-20%) rotate(4deg); animation-delay: .75s; }
.cs.c3 { top: 80px; transform: translateX(-70%) rotate(-2deg); animation-delay: .9s; background: rgba(255,91,20,.22); border-color: rgba(255,122,46,.5); }
@keyframes csIn { from { opacity: 0; translate: 0 30px; } }

/* footer + CTA */
.cad-foot { display: flex; flex-direction: column; gap: 12px; animation: lineIn .9s var(--ease) .45s both; }
.cad-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cad-chips span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(248,244,238,.08); border: 1px solid rgba(248,244,238,.14); color: rgba(248,244,238,.85); }
.cad-cta { position: relative; overflow: hidden; width: 100%; padding: 17px 20px; border: 0; border-radius: 18px; background: #f8f4ee; color: #140a05; font: inherit; font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 14px 40px -8px rgba(255,91,20,.75); animation: ctaBreath 2.4s ease-in-out infinite; }
.cad-cta i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ff5b14; color: #fff; transition: transform .3s var(--ease); }
.cad-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,201,163,.9), transparent); transform: skewX(-20deg); animation: shine 2.4s var(--ease) infinite; }
.cad-cta:active { transform: scale(.97); }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes ctaBreath { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 18px 56px -6px rgba(255,91,20,.95); } }
.cad-reward { position: relative; z-index: 2; text-align: center; margin-top: 10px; font-size: 13px; color: rgba(248,244,238,.6); }

/* ---------------- web: "advertise here" board ---------------- */
.cad.is-rent { background: #17140f; }
.cad.is-rent .cad-bg .b1 { background: radial-gradient(closest-side, rgba(255,210,63,.55), rgba(255,159,28,.3) 50%, transparent); }
.rent { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.tape { height: 30px; background: repeating-linear-gradient(-45deg, #ffd23f 0 22px, #1b1b2f 22px 44px); box-shadow: 0 4px 0 rgba(0,0,0,.3); margin: 0 -24px; }
.tape.top { transform: rotate(-3deg); }
.tape.bottom { transform: rotate(2deg); }
.rent-board { background: #fffaf0; color: #1b1b2f; border-radius: 8px; padding: 26px 22px 22px; margin: -6px 4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); font-family: 'Baloo2', sans-serif; animation: phoneIn .9s var(--ease) .1s both; }
.rent-kicker { font-weight: 800; font-size: 13px; letter-spacing: .08em; color: #e85d04; }
.rent-board h2 { margin: 6px 0 8px; font-size: clamp(40px, 12vw, 58px); line-height: .9; font-weight: 800; letter-spacing: -.02em; }
.rent-board h2 span { color: #e85d04; }
.rent-board p { margin: 0 0 10px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.rent-board ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.rent-board li { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 2px solid #1b1b2f; }
.rent-cta { width: 100%; padding: 14px; border-radius: 14px; border: 3px solid #1b1b2f; background: #ffd23f; font: inherit; font-size: 22px; font-weight: 800; color: #1b1b2f; box-shadow: 0 5px 0 #1b1b2f; display: flex; justify-content: center; gap: 8px; }
.rent-cta i { font-style: normal; }

/* ---------------- banner ---------------- */
#cad-banner { position: absolute; z-index: 12; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); animation: banIn .6s var(--ease) both; }
@keyframes banIn { from { opacity: 0; transform: translateY(30px); } }
.ban { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 18px; color: #f8f4ee; cursor: pointer; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 120%, #ff5b14 0%, #7a2306 40%, #1a0e08 75%); box-shadow: 0 0 0 1px rgba(255,201,163,.25), 0 14px 30px -10px rgba(0,0,0,.6); }
.ban img { width: 44px; height: 44px; border-radius: 12px; flex: none; animation: mascot 3.2s ease-in-out infinite; }
.ban-txt { flex: 1; min-width: 0; animation: lineIn .6s var(--ease) both; }
.ban-txt b { display: block; font-size: 15px; letter-spacing: -.01em; }
.ban-txt small { display: block; font-size: 12.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ban-cta { position: relative; overflow: hidden; flex: none; background: #f8f4ee; color: #140a05; font-weight: 800; font-size: 13px; padding: 10px 14px; border-radius: 12px; display: flex; gap: 6px; }
.ban-cta i { font-style: normal; color: #ff5b14; }
.ban-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 50%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255,122,46,.6), transparent); transform: skewX(-20deg); animation: shine 2.4s var(--ease) infinite; }
.ban-cta.dark { background: #1b1b2f; color: #ffd23f; }
.ban-ad { position: absolute; top: 4px; right: 8px; font-size: 9px; font-weight: 700; opacity: .5; letter-spacing: .06em; }
.ban .ban-ad { right: auto; left: 46px; top: 3px; }
.rent-ban { background: repeating-linear-gradient(-45deg, #ffd23f 0 14px, #ffe27a 14px 28px); color: #1b1b2f; box-shadow: 0 0 0 3px #1b1b2f, 0 6px 0 #1b1b2f; font-family: 'Baloo2', sans-serif; }
.ban-ico { font-size: 28px; padding-left: 6px; }

/* ---------------- native card ---------------- */
.cad-native { position: relative; margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 10px 10px 10px; border-radius: 18px; color: #f8f4ee; border: 0;
  background: radial-gradient(120% 140% at 100% 120%, #ff5b14 0%, #7a2306 45%, #1a0e08 80%); box-shadow: 0 0 0 1px rgba(255,201,163,.2), 0 10px 24px -10px rgba(0,0,0,.5); }
.cad-native img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.cad-native .nt { flex: 1; min-width: 0; }
.cad-native b { display: block; font-size: 14px; line-height: 1.15; }
.cad-native small { display: block; font-size: 12px; opacity: .78; margin-top: 2px; }
.cad-native .nc { flex: none; background: #f8f4ee; color: #140a05; font-weight: 800; font-size: 12.5px; padding: 8px 11px; border-radius: 11px; }
.cad-native .ban-ad { top: 3px; right: 10px; }

@media (prefers-reduced-motion: reduce) { #cad-layer *, #cad-banner *, .cad-native * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* ================= v2 creatives (2026-11-30): one message per ad ================= */
.cad.cx { --lime: #c6f432; }
.cx .cad-body { justify-content: flex-start; padding-top: 14px; }
.cx .cad-head .hl { background: none; color: var(--lime); }
.cx .cad-sub { max-width: none; min-height: 0; margin-top: 8px; color: rgba(248,244,238,.86); }
.cx-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; margin: 6px 0; cursor: pointer; }
.cx-fit { position: relative; transform-origin: center center; }
.cx-cta { background: var(--lime) !important; color: #140a05 !important; box-shadow: 0 5px 0 #6f8f12; animation: cxNudge 1.6s ease-in-out infinite; }
@keyframes cxNudge { 50% { transform: scale(1.03); } }
.cx-fine { text-align: center; font-size: 12.5px; color: rgba(248,244,238,.7); margin-top: -2px; }
.cx-ex { position: absolute; z-index: 5; font-size: 10px; background: rgba(0,0,0,.5); color: #fff; border-radius: 5px; padding: 0 5px; }

/* mini phone */
.cx-ph { position: relative; width: 196px; height: 330px; border-radius: 28px; border: 5px solid #0d0705; overflow: hidden; background: #fff; box-shadow: 0 18px 30px -12px rgba(0,0,0,.7); }
.cx-notch { position: absolute; top: 5px; left: 50%; width: 54px; height: 13px; margin-left: -27px; border-radius: 9px; background: #0d0705; z-index: 6; }
.cx-pg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 30px 14px 0; color: #1a0e08; }
.cx-av { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.cx-nm { position: relative; font-weight: 800; font-size: 14px; margin: 6px 0 10px; }
.cx-lk { position: relative; width: 100%; height: 34px; border-radius: 12px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }

/* 1: boring -> live */
.cx-boring { background: #f3f3f3; color: #777; }
.cx-boring .cx-av { background: #d6d6d6; color: #999; }
.cx-boring .cx-lk { background: #e2e2e2; color: #888; }
.cx-th { opacity: 0; overflow: hidden; }
.cx-t1 { background: #120b2e; color: #fff; }
.cx-blob { position: absolute; border-radius: 50%; filter: blur(14px); animation: cxBloom 3s ease-in-out infinite alternate; }
.cx-blob.b1 { width: 130px; height: 130px; background: #ff3d9a; top: 40px; left: -30px; }
.cx-blob.b2 { width: 120px; height: 120px; background: #7b2ff7; bottom: 20px; right: -30px; animation-delay: -1.5s; }
@keyframes cxBloom { to { transform: scale(1.35) translate(14px, -10px); } }
.cx-t1 .cx-lk { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.cx-t1 .cx-av { background: linear-gradient(135deg, #ff3d9a, #7b2ff7); color: #fff; }
.cx-t1 .cx-nm { color: #fff; }
.cx-t2 { background: linear-gradient(180deg, #ffd54a, #ff7a1a); color: #3a1600; }
.cx-sun { position: absolute; top: -70px; left: 50%; margin-left: -110px; width: 220px; height: 220px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.35) 0 8deg, transparent 8deg 20deg); animation: cxSpin 8s linear infinite; }
@keyframes cxSpin { to { transform: rotate(360deg); } }
.cx-t2 .cx-lk { background: #fff7e6; color: #8a3a00; box-shadow: 0 3px 0 #c75a00; }
.cx-t2 .cx-av { background: #fff; color: #ff7a1a; }
.cx-t3 { background: #07070c; color: #fff; }
.cx-t3 .cx-nm { font-size: 19px; color: #ff4fd8; text-shadow: 0 0 6px #ff4fd8, 0 0 16px #ff4fd8; animation: cxFlick 2.2s infinite; }
@keyframes cxFlick { 0%,18%,22%,60%,100% { opacity: 1 } 20%,61% { opacity: .35 } }
.cx-t3 .cx-lk { border: 2px solid #33f0ff; color: #33f0ff; box-shadow: 0 0 8px #33f0ff, inset 0 0 8px rgba(51,240,255,.4); }
.cx-t3 .cx-av { border: 2px solid #ff4fd8; color: #ff4fd8; box-shadow: 0 0 12px #ff4fd8; }
.cx-tag { position: absolute; top: 26px; right: 8px; z-index: 7; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; }
.cx-tag.dull { background: #bbb; color: #fff; }
.cx-tag.live { background: #c6f432; color: #140a05; opacity: 0; }
.cx-wipe { position: absolute; inset: 0; z-index: 8; background: #c6f432; transform: translateY(100%); }
.cx-a1 .cx-boring, .cx-a1 .cx-tag.dull { animation: cxBor 5s infinite; }
.cx-a1 .cx-t1 { animation: cxT1 5s infinite; }
.cx-a1 .cx-t2 { animation: cxT2 5s infinite; }
.cx-a1 .cx-t3 { animation: cxT3 5s infinite; }
.cx-a1 .cx-tag.live { animation: cxLive 5s infinite; }
.cx-a1 .cx-wipe { animation: cxWipe 5s infinite; }
@keyframes cxBor { 0%,27% { opacity: 1 } 30%,100% { opacity: 0 } }
@keyframes cxWipe { 0%,25% { transform: translateY(100%) } 29% { transform: translateY(0) } 33%,100% { transform: translateY(-100%) } }
@keyframes cxLive { 0%,29% { opacity: 0 } 31%,100% { opacity: 1 } }
@keyframes cxT1 { 0%,29% { opacity: 0 } 30%,52% { opacity: 1 } 55%,100% { opacity: 0 } }
@keyframes cxT2 { 0%,52% { opacity: 0 } 55%,76% { opacity: 1 } 79%,100% { opacity: 0 } }
@keyframes cxT3 { 0%,76% { opacity: 0 } 79%,100% { opacity: 1 } }
.cx-30 { position: absolute; left: -26px; bottom: 18px; z-index: 9; background: #c6f432; color: #140a05; border-radius: 14px; padding: 4px 10px 2px; transform: rotate(-6deg); font-weight: 800; line-height: 1; text-align: center; box-shadow: 0 4px 0 #6f8f12; }
.cx-30 b { display: block; font-size: 28px; }
.cx-30 small { font-size: 11px; }

/* 2: mini store */
.cx-store { background: #fff8ee; }
.cx-store .cx-av { background: #ff5b14; color: #fff; width: 44px; height: 44px; font-size: 18px; }
.cx-store .cx-nm { margin: 4px 0 8px; }
.cx-prod { width: 100%; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #eadfcf; border-radius: 13px; padding: 6px; margin-bottom: 7px; }
.cx-prod .im { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 20px; flex: none; }
.cx-prod .tx { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.cx-prod .tx small { display: block; color: #ff5b14; font-size: 12px; }
.cx-prod .buy { font-size: 11px; font-weight: 800; background: #1a0e08; color: #fff; border-radius: 8px; padding: 4px 8px; }
.cx-finger { position: absolute; z-index: 9; font-size: 30px; left: 150px; top: 118px; animation: cxTap 4s infinite; }
@keyframes cxTap { 0%,15% { transform: translate(40px, 60px); opacity: 0 } 30% { transform: none; opacity: 1 } 36% { transform: scale(.85) } 42%,70% { transform: none; opacity: 1 } 80%,100% { opacity: 0 } }
.cx-order { position: absolute; z-index: 9; left: 8px; right: 8px; top: 30px; background: #1f7a1f; color: #fff; border-radius: 12px; padding: 7px 10px; font-weight: 800; font-size: 12.5px; animation: cxPop 4s infinite; }
@keyframes cxPop { 0%,38% { transform: translateY(-80px); opacity: 0 } 45%,85% { transform: none; opacity: 1 } 95%,100% { transform: translateY(-80px); opacity: 0 } }

/* 3: bank */
.cx-bank { width: 270px; }
.cx-src { display: flex; justify-content: center; gap: 8px; margin-bottom: 4px; }
.cx-src span { background: rgba(255,255,255,.12); border-radius: 10px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.cx-coins { position: relative; height: 120px; }
.cx-coin { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc300 50%, #e09400); border: 2px solid #8a5a00; color: #6b4300; display: grid; place-items: center; font-weight: 800; font-size: 15px; animation: cxDrop 2.4s ease-in infinite; opacity: 0; }
@keyframes cxDrop { 0% { transform: translateY(-10px); opacity: 0 } 15%,85% { opacity: 1 } 100% { transform: translateY(128px) scale(.6); opacity: 0 } }
.cx-card { position: relative; height: 150px; border-radius: 20px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #1e3a8a, #0f766e); box-shadow: 0 16px 30px -12px rgba(0,0,0,.7); overflow: hidden; }
.cx-card .chip { width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f4d58d, #b8860b); }
.cx-card .lbl { font-size: 12px; opacity: .8; margin-top: 10px; }
.cx-card .amt { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-card .acc { position: absolute; right: 14px; top: 14px; font-size: 12px; opacity: .85; }
.cx-sent { margin-top: 10px; text-align: center; font-weight: 800; color: #c6f432; font-size: 14px; }

/* 4: post everywhere */
.cx-post { width: 270px; display: flex; flex-direction: column; align-items: center; }
.cx-pcard { width: 150px; border-radius: 16px; overflow: hidden; background: #fff; color: #1a0e08; box-shadow: 0 14px 24px -12px rgba(0,0,0,.7); }
.cx-pcard .img { height: 120px; background: linear-gradient(160deg, #ff7a1a, #ff3d9a); display: grid; place-items: center; font-size: 34px; }
.cx-pcard .cap { font-size: 11.5px; font-weight: 700; padding: 6px 8px; }
.cx-pbtn { margin: 10px 0 12px; background: #f8f4ee; color: #1a0e08; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 6px 18px; animation: cxPress 4.5s infinite; }
@keyframes cxPress { 0%,10% { transform: scale(1) } 14% { transform: scale(.88); background: #c6f432 } 20%,100% { transform: scale(1); background: #c6f432 } }
.cx-grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 230px; }
.cx-pf { position: relative; border-radius: 12px; padding: 7px 4px; text-align: center; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); animation: cxLit 4.5s infinite; animation-delay: calc(var(--i) * .12s); }
.cx-pf::after { content: '✓'; position: absolute; top: -6px; right: -4px; width: 17px; height: 17px; border-radius: 50%; background: #c6f432; color: #140a05; font-size: 11px; display: grid; place-items: center; opacity: 0; animation: cxChk 4.5s infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes cxLit { 0%,18% { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55) } 24%,90% { background: #f8f4ee; color: #1a0e08 } 100% { background: rgba(255,255,255,.08) } }
@keyframes cxChk { 0%,20% { opacity: 0 } 26%,90% { opacity: 1 } 100% { opacity: 0 } }

/* banner: lime action button */
.ban-cta.lime { background: #c6f432; color: #140a05; }
.ban-cta.lime i { color: #140a05; }
@media (prefers-reduced-motion: reduce) { .cx * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* ================= in-app purchase promos (Grout Dukaan): game sticker style ================= */
.cad.ip { font-family: Baloo2, 'Trebuchet MS', system-ui, sans-serif; color: #fff; background: radial-gradient(120% 70% at 50% 0%, #4a2296, #241452 55%, #140c2e); }
.cad.ip .cad-bg .b1 { background: radial-gradient(closest-side, #ff2d6f 0%, #b23cff 45%, transparent 75%); opacity: .55; }
.cad.ip .cad-bg .b2 { background: radial-gradient(closest-side, rgba(255,210,63,.45), transparent); }
.cad.ip .cad-bg .b3 { background: radial-gradient(closest-side, rgba(78,197,255,.35), transparent); }
.cad.ip .cad-body { justify-content: flex-start; padding-top: 14px; }
.ip-brand { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important; }
.ip-bc { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe26a, #ffb21b); border: 2px solid #1b1b2f; }
.ip-bc svg { width: 19px; height: 19px; }
.cad.ip .cad-close .ring { stroke: #ffd23f; }
.ip-head { animation: lineIn .9s var(--ease) both; }
.ip-head small { display: inline-block; padding: 2px 10px; border-radius: 9px; background: #ffd23f; color: #1b1b2f; font-weight: 800; font-size: 12px; letter-spacing: 1.2px; }
.ip-head h2 { margin: 8px 0 0; font-size: clamp(34px, 10.5vw, 52px); line-height: .95; font-weight: 800; color: #fff; -webkit-text-stroke: 6px #1b1b2f; paint-order: stroke fill; text-shadow: 0 5px 0 #1b1b2f; }
.ip-head h2 span { background: linear-gradient(90deg, #ffd23f, #fff, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; text-shadow: none; filter: drop-shadow(0 4px 0 #1b1b2f); animation: ipShim 2.2s linear infinite; }
.ip-head p { margin: 10px 0 0; font-weight: 700; font-size: 15px; line-height: 1.3; color: #e6dcff; }
@keyframes ipShim { to { background-position: -200% 0; } }
.ip-cta { position: relative; overflow: hidden; width: 100%; height: 64px; border-radius: 22px; border: 4px solid #fff; font: 800 24px Baloo2, system-ui; color: #fff; -webkit-text-stroke: 5px #9e123e; paint-order: stroke fill;
  background: linear-gradient(180deg, #ffa24a, #ff2d6f); box-shadow: 0 6px 0 #1b1b2f, 0 0 34px rgba(255,60,120,.55); display: flex; align-items: center; justify-content: center; gap: 10px; animation: cxNudge 1.6s ease-in-out infinite; cursor: pointer; }
.ip-cta i { font-style: normal; -webkit-text-stroke: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1b1b2f; font-size: 18px; }
.ip-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 2.4s var(--ease) infinite; }
.ip-fine { text-align: center; font-weight: 700; font-size: 13px; color: rgba(230,220,255,.78); }

/* shoutout: mini lobby with names popping in at the top */
.ip-so { width: 290px; height: 340px; display: grid; place-items: center; }
.ip-ph { position: relative; width: 200px; height: 330px; border-radius: 30px; border: 5px solid #0b0716; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,210,63,.35), 0 22px 40px -12px rgba(0,0,0,.75); background: #ff9f1c; }
.ip-notch { position: absolute; top: 5px; left: 50%; width: 56px; height: 13px; margin-left: -28px; border-radius: 9px; background: #0b0716; z-index: 6; }
.ip-lobby { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 32%, #ffb347 0 8deg, #ff9f1c 8deg 16deg); }
.ip-bar { position: absolute; top: 24px; left: 10px; right: 10px; display: flex; gap: 5px; align-items: center; }
.ip-bar i { width: 18px; height: 20px; border-radius: 6px; background: #1b1b2f; } .ip-bar b { flex: 1; height: 9px; border-radius: 6px; background: #1b1b2f; } .ip-bar i.c { width: 30px; height: 14px; border-radius: 8px; background: #fff8e7; border: 2px solid #1b1b2f; }
.ip-cards { position: absolute; top: 52px; left: 8px; right: 8px; height: 56px; }
.ip-card { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 13px; isolation: isolate; overflow: hidden; border: 2px solid #1b1b2f; box-shadow: 0 3px 0 #1b1b2f, 0 8px 16px rgba(255,45,111,.45); opacity: 0; animation: ipCard 7.8s var(--d) infinite; }
.ip-card::before { content: ''; position: absolute; inset: -120%; z-index: -2; background: conic-gradient(#ff2d6f, #ffd23f, #3dfc9b, #4ec5ff, #b48bff, #ff2d6f); animation: spin 2.6s linear infinite; }
.ip-card::after { content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: 10px; background: linear-gradient(120deg, #3a1a6e, #1b1b2f 55%, #4a1440); }
.ip-cr { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe26a, #ffb21b); border: 2px solid #1b1b2f; } .ip-cr svg { width: 18px; height: 18px; }
.ip-cb { min-width: 0; line-height: 1.05; } .ip-cb small { display: block; font-size: 6.5px; letter-spacing: 1px; color: #ffd23f; font-weight: 800; }
.ip-cb b { display: block; font-size: 13px; color: #ffe066; white-space: nowrap; } .ip-cb em { display: block; font-style: normal; font-weight: 700; font-size: 9px; color: #f1eaff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes ipCard { 0% { opacity: 0; transform: translateY(-40px) rotateX(60deg) scale(.8); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-20px) scale(.9); } }
.ip-logo { position: absolute; top: 122px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 30px; line-height: .85; color: #f4f1ea; -webkit-text-stroke: 4px #1b1b2f; paint-order: stroke fill; transform: rotate(-4deg); }
.ip-logo span { display: block; font-size: 15px; color: #ffd23f; }
.ip-modes { position: absolute; top: 186px; left: 10px; right: 10px; display: flex; gap: 6px; }
.ip-modes i { flex: 1; height: 96px; border-radius: 12px; border: 3px solid #1b1b2f; box-shadow: 0 4px 0 #1b1b2f; background: linear-gradient(180deg, #ffd36a, #f39a2b); }
.ip-modes i:nth-child(2) { background: linear-gradient(180deg, #7b5cff, #3a2a8f); } .ip-modes i:nth-child(3) { background: linear-gradient(180deg, #4ec5ff, #1d6fd1); }
.ip-tab { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: #1b1b2f; }
.ip-pin { position: absolute; z-index: 3; padding: 4px 10px; border-radius: 12px; background: #fff8e7; color: #1b1b2f; border: 3px solid #1b1b2f; box-shadow: 0 4px 0 #1b1b2f; font-weight: 800; font-size: 13px; white-space: nowrap; animation: ipPin 2.6s ease-in-out infinite; }
.ip-pin.p1 { left: -6px; top: 40px; } .ip-pin.p2 { right: -8px; top: 150px; animation-delay: .6s; } .ip-pin.p3 { left: -2px; bottom: 34px; animation-delay: 1.2s; }
@keyframes ipPin { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* dukaan: premium items on a rays stage */
.ip-dk { position: relative; width: 320px; height: 300px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ip-rays { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; margin: -190px 0 0 -190px; background: repeating-conic-gradient(rgba(255,220,120,.16) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: spin 14s linear infinite; mask: radial-gradient(closest-side, #000 40%, transparent); -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); }
.ip-item { position: relative; width: 98px; padding: 8px 6px 10px; border-radius: 20px; text-align: center; isolation: isolate; overflow: hidden; border: 3px solid #1b1b2f; box-shadow: 0 6px 0 #1b1b2f; animation: ipPop .6s cubic-bezier(.2,1.5,.4,1) calc(.15s * var(--i)) both, ipFloat 2.8s ease-in-out calc(.4s * var(--i)) infinite; }
.ip-item:nth-child(3) { transform: translateY(-14px) scale(1.08); }
.ip-item::before { content: ''; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(#ffd23f, #ff2d6f, #b48bff, #4ec5ff, #ffd23f); animation: spin 4s linear infinite; }
.ip-item::after { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 16px; background: radial-gradient(120% 80% at 50% 0%, #5a2bb8, #2a1660 60%, #1b1b2f); }
.ip-item img { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,210,63,.6)); }
.ip-item b { display: block; font-size: 12px; line-height: 1.1; min-height: 26px; color: #fff; }
.ip-item span { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 9px; background: linear-gradient(180deg, #ffa24a, #ff2d6f); border: 2px solid #fff; font-weight: 800; font-size: 14px; }
@keyframes ipPop { from { transform: translateY(40px) scale(.6); opacity: 0; } }
@keyframes ipFloat { 50% { translate: 0 -8px; } }

/* skins: three lobby swatches */
.ip-sk { width: 320px; height: 290px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ip-skin { width: 98px; padding: 6px 6px 10px; border-radius: 20px; background: #fff8e7; border: 3px solid #1b1b2f; box-shadow: 0 6px 0 #1b1b2f; text-align: center; color: #1b1b2f; animation: ipPop .6s cubic-bezier(.2,1.5,.4,1) calc(.15s * var(--i)) both, ipFloat 2.8s ease-in-out calc(.4s * var(--i)) infinite; }
.ip-skin .sw { height: 130px; border-radius: 14px; border: 3px solid #1b1b2f; background: repeating-conic-gradient(from 0deg at 50% 30%, #ffb347 0 8deg, #ff9f1c 8deg 16deg); }
.ip-skin.skin_diwali .sw { background: radial-gradient(circle at 25% 80%, #ffd23f 0 5px, transparent 6px), radial-gradient(circle at 75% 80%, #ffd23f 0 5px, transparent 6px), radial-gradient(circle at 50% 75%, #ff9f1c 0 6px, transparent 7px), repeating-conic-gradient(from 0deg at 50% 30%, #4a1d8f 0 8deg, #3a1470 8deg 16deg); }
.ip-skin.skin_neon .sw { background: radial-gradient(circle at 50% 42%, #ff5fa2 0 22px, #ffb347 23px 24px, transparent 25px), linear-gradient(180deg, #2a0f4f, #0d0626 60%, #ff2d6f22); }
.ip-skin.skin_shahi .sw { background: radial-gradient(circle at 50% 35%, #ffd23f 0 14px, transparent 15px), repeating-linear-gradient(90deg, #7a1430 0 12px, #5a0e24 12px 24px); }
.ip-skin b { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.1; }
.ip-skin span { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 9px; background: linear-gradient(180deg, #ffa24a, #ff2d6f); color: #fff; border: 2px solid #1b1b2f; font-weight: 800; font-size: 14px; }

/* banner + win-screen card in in-app mode */
.ban.ip-ban { font-family: Baloo2, system-ui, sans-serif; background: linear-gradient(120deg, #3a1a6e, #1b1b2f 60%, #4a1440) !important; border: 3px solid #1b1b2f; box-shadow: 0 5px 0 #1b1b2f, 0 0 0 2px #ffd23f inset; }
.ban.ip-ban .ip-bc { width: 40px; height: 40px; border-radius: 12px; } .ban.ip-ban .ip-bc svg { width: 26px; height: 26px; }
.ban.ip-ban .ban-txt b { color: #ffe066; font-size: 15px; }
.ban-cta.ip-go { background: linear-gradient(180deg, #ffa24a, #ff2d6f); color: #fff; border: 2px solid #fff; }
.ban-cta.ip-go i { color: #fff; }
.cad-native.ip-native { font-family: Baloo2, system-ui, sans-serif; background: linear-gradient(120deg, #3a1a6e, #1b1b2f 60%, #4a1440); color: #fff; border: 3px solid #1b1b2f; box-shadow: 0 4px 0 #1b1b2f; }
.cad-native.ip-native b { color: #ffe066; }
.cad-native.ip-native .nc { background: linear-gradient(180deg, #ffa24a, #ff2d6f); color: #fff; }
