/* Phase 4: reward chips and reveals, the Store window, Passion Pass, cards, events, promo codes.
   Colours follow the original: a purple store with a gold ribbon, cream offer cards with green price buttons,
   purple (free) and gold (paid) pass tiles. */

/* rewards */
.rw-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.rw-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #3b2466; font-size: .78rem; font-weight: 800; }
.rw-chip i { font-style: normal; }
.rw-big { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; min-width: 0; }
.rw-big i { font-style: normal; font-size: 26px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.rw-more { font-size: .72rem; font-weight: 800; white-space: nowrap; }
.rw-big b { font-size: .8rem; color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reveal-wrap { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10, 4, 25, .7); animation: fadeIn .2s; }
.reveal { position: relative; width: min(300px, 86vw); padding: 26px 18px 18px; border-radius: 26px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 70%, #fff) 0%, var(--rc) 45%, #2a1250 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 0 60px var(--rc); animation: popIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.reveal-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255, 255, 255, .14) 0 10deg, transparent 10deg 20deg); animation: spinRays 12s linear infinite; pointer-events: none; }
.reveal > * { position: relative; }
.reveal-title { font-weight: 900; font-size: 1.15rem; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.reveal .rw-big i { font-size: 64px; }
.reveal .rw-big b { font-size: 1.3rem; }
.reveal-stars { color: #ffd84a; font-size: 1.4rem; letter-spacing: 2px; margin: 8px 0; text-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.reveal-rarity { font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin: 8px 0; }
.reveal .btn { margin-top: 10px; }
.reveal-card { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto; width: 150px; padding: 16px 8px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #3b2466; }
.reveal-card img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; }
.reveal-card > span:first-child { font-size: 70px; }
.reveal-card .new { background: #ff3d8b; color: #fff; border-radius: 999px; padding: 1px 10px; font-weight: 900; font-size: .8rem; }
.reveal-card .film { color: #7b2ff7; font-weight: 900; }
.odds-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.odds-list > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255, 255, 255, .15); border-radius: 10px; padding: 4px 8px; font-weight: 800; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spinRays { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes ppGlow { 50% { box-shadow: 0 3px 0 #c98a00, 0 0 18px #ffd84a; } }

/* top bar */
.top-btn { position: relative; }
.top-btn.offers-btn { font-weight: 900; color: #fff; background: linear-gradient(180deg, #ff5c8a, #e0245e); border-radius: 50%; }

/* the Store window */
.st-wrap { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10, 4, 25, .6); }
.st-window { position: relative; width: min(420px, 96vw); height: min(640px, 92vh); display: flex; flex-direction: column; border-radius: 18px;
  background: linear-gradient(180deg, #4a2a8c 0%, #2f1863 100%); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.st-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 72%; height: 38px; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(180deg, #ffe46b, #f5b301); border-radius: 6px; box-shadow: 0 3px 0 #c98a00, 0 6px 14px rgba(0, 0, 0, .35); color: #5a3200; font-weight: 900; font-size: 1.15rem; }
.st-close { position: absolute; inset-inline-end: -36px; top: 4px; width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; font-weight: 900; box-shadow: 0 2px 0 #c98a00; }
.st-body { flex: 1; overflow-y: auto; padding: 34px 16px 12px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.st-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 1.1rem; color: #ffe9a8; }
.st-head::before, .st-head::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #f5b301); }
.st-head::after { transform: scaleX(-1); }
.st-sub { text-align: center; font-weight: 800; font-size: .85rem; margin-top: -6px; }
.st-info { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #4a2a8c; font-weight: 900; font-size: .75rem; font-style: italic; }
.st-note { text-align: center; font-weight: 800; font-size: .85rem; opacity: .9; }
.st-tabs { display: flex; overflow-x: auto; gap: 2px; padding: 6px; margin: 0 8px 8px; border-radius: 12px; background: linear-gradient(180deg, #5b2fa8, #3e1d7a); border: 2px solid #f5b301; scrollbar-width: none; }
.st-tab { position: relative; flex: 1 0 auto; min-width: 54px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 6px; border-radius: 8px; color: #fff; font-weight: 800; font-size: .72rem; }
.st-tab i { font-style: normal; font-size: 22px; }
.st-tab.on { background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; }
.st-dot { position: absolute; top: 2px; inset-inline-end: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ff3d3d; }
.st-buy { min-width: 84px; padding: 6px 14px; border-radius: 999px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #8ee04a, #4caf1c); box-shadow: 0 2px 0 #2f7d0c; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.st-buy svg { width: 16px; height: 16px; }
.st-buy.coins { background: linear-gradient(180deg, #9be15d, #3d9c1a); }
.st-buy.film { background: linear-gradient(180deg, #b388ff, #7b2ff7); box-shadow: 0 2px 0 #4b1a9c; }
.st-buy.free { background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; box-shadow: 0 2px 0 #c98a00; }
.st-buy:disabled { filter: grayscale(1); opacity: .7; }
.st-pp { position: absolute; top: -8px; inset-inline-start: -6px; z-index: 1; display: inline-flex; gap: 2px; align-items: center; padding: 1px 7px; border-radius: 999px; background: #7b2ff7; color: #fff; font-weight: 900; font-size: .75rem; border: 2px solid #fff; }
.st-pp i { font-style: normal; font-size: .7rem; }
.st-benefit { position: absolute; top: -8px; inset-inline-end: -6px; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 2px 6px; border-radius: 8px; background: #7b2ff7; color: #fff; font-size: .55rem; font-weight: 800; line-height: 1; border: 2px solid #fff; }
.st-benefit b { font-size: .8rem; }
.st-offer { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: 110px 1fr; grid-template-rows: 1fr auto; border-radius: 12px; background: linear-gradient(180deg, #fff7e0, #ffe7a6); border: 3px solid #f5b301; color: #3b2466; }
.st-offer.personal { border-color: #ff3d8b; box-shadow: 0 0 18px rgba(255, 61, 139, .55); }
.st-offer-art { grid-row: 1; display: grid; place-items: center; font-size: 64px; padding: 6px; }
.st-offer-art img { width: 100%; max-height: 110px; object-fit: contain; }
.st-offer-box { margin: 10px 10px 8px 0; border-radius: 10px; background: #ffe39a; border: 2px solid #f2c040; display: grid; place-items: center; padding: 8px; }
[dir="rtl"] .st-offer-box { margin: 10px 0 8px 10px; }
.st-offer-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, #8d3fd9, #6a22b8); color: #fff; }
.st-offer-foot b { flex: 1; }
.st-timer { font-weight: 800; font-size: .8rem; }
.st-offer.sold { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; opacity: .75; }
.st-chips .rw-chip { background: transparent; color: #3b2466; font-size: .9rem; }
.st-chips .rw-chip i { font-size: 1.3rem; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; padding-top: 6px; }
.st-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 8px; border-radius: 12px; background: linear-gradient(180deg, #fff7e0, #ffe7a6); border: 3px solid #f5b301; color: #3b2466; }
.st-pack.best { border-color: #ff3d8b; }
.st-pack .st-buy { min-width: 0; width: 100%; padding: 6px 4px; }
.st-pack-art { font-size: 40px; line-height: 1; }
.st-pack-art svg { width: 44px; height: 44px; }
.st-pack-n { font-size: 1.05rem; }
.st-was { font-size: .75rem; opacity: .6; }
.st-badge { position: absolute; top: -9px; background: #ff3d8b; color: #fff; font-weight: 900; font-size: .7rem; padding: 1px 8px; border-radius: 999px; }
/* the VIP perks sit on a light card: dark text (white text there could not be read) */
.st-body .vip-perks { color: #3b2466; }
.st-body .vip-perks b { color: #b0127a; font-size: 1rem; }
.st-body .vip-perks li { color: #3b2466; font-weight: 600; }
.st-starter { display: flex; justify-content: center; padding-top: 6px; }
.st-chest { position: relative; width: 190px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 12px; background: linear-gradient(180deg, #fff7e0, #ffe7a6); border: 3px solid #f5b301; color: #3b2466; }
.st-chest-art { font-size: 80px; line-height: 1; }
.st-chest-name { width: 110%; text-align: center; padding: 4px; background: linear-gradient(180deg, #ffb347, #f08a00); color: #fff; font-weight: 900; border-radius: 4px; }
.st-box { flex: 0 0 auto; border-radius: 12px; border: 3px solid var(--bc); background: color-mix(in srgb, var(--bc) 18%, #fff8ec); color: #3b2466; overflow: hidden; }
.st-box-title { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; font-weight: 900; color: color-mix(in srgb, var(--bc) 50%, #3b2466); }
.st-box-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 0 10px 10px; }
.st-box-art { font-size: 72px; display: grid; place-items: center; }
.st-box-art img { width: 100%; }
.st-box-best { border-radius: 10px; border: 2px solid var(--bc); background: color-mix(in srgb, var(--bc) 25%, #fff); padding: 6px; text-align: center; min-width: 0; }
.st-box-best > div { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.st-box-best .rw-big b { font-size: .7rem; max-width: 60px; }
.st-box-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 10px; background: color-mix(in srgb, var(--bc) 70%, #2f1863); color: #fff; font-weight: 800; font-size: .8rem; }
.st-box-foot span { flex: 1; }
.st-film { align-self: center; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-weight: 800; }
.st-cardpack { flex: 0 0 auto; border-radius: 12px; border: 3px solid #f5b301; background: linear-gradient(180deg, #fff7e0, #ffe7a6); color: #3b2466; overflow: hidden; }
.st-cp-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 10px; }
.st-cp-art { display: grid; place-items: center; font-size: 46px; border-radius: 10px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 40%, #fff), var(--pc)); }
.st-cp-name { text-align: center; }
.st-cp-card { margin: 6px auto 0; width: 54px; height: 70px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #d66bff, #8b2fd9); color: #fff; font-size: 1.5rem; font-weight: 900; }
.st-cp-card small { font-size: .55rem; color: #ffd84a; }
.st-odds { margin: 0 10px 8px; padding: 6px; border-radius: 10px; background: #ffe39a; text-align: center; }
.st-odds > div { display: flex; justify-content: space-between; gap: 2px; font-size: .7rem; font-weight: 900; }
.st-odds i { font-style: normal; color: #e67700; margin-inline-end: 2px; }
.st-cp-foot { display: flex; justify-content: center; gap: 10px; padding: 8px; background: linear-gradient(180deg, #8d3fd9, #6a22b8); }
.st-chain-tabs { display: flex; justify-content: center; gap: 2px; padding: 3px; border-radius: 10px; background: #2a1250; }
.st-chain-tabs button { flex: 1; padding: 6px; border-radius: 8px; color: #fff; font-weight: 800; }
.st-chain-tabs button.on { background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; }
.st-whole { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: 100px 1fr; align-items: center; border-radius: 12px; border: 3px solid #f5b301; background: linear-gradient(180deg, #fff7e0, #ffe7a6); color: #3b2466; }
.st-whole.off { filter: grayscale(.8); opacity: .75; }
.st-whole-art { font-size: 60px; text-align: center; padding: 8px; }
.st-whole-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, #8d3fd9, #6a22b8); color: #fff; }
.st-discount { position: absolute; inset-inline-end: 8px; top: 36%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ff3d3d; color: #fff; font-weight: 900; font-size: .75rem; transform: rotate(-12deg); }
.st-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-bottom: 6px; }
.st-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 3px solid #f5b301; background: linear-gradient(180deg, #fff7e0, #ffe7a6); color: #3b2466; }
.st-step:not(:last-child)::after { content: '\279C'; position: absolute; color: #c6a6ff; font-size: 18px; inset-inline-end: -17px; top: 45%; }
.st-step:nth-child(2n):not(:last-child)::after { content: '\2B07'; inset-inline-end: auto; left: 45%; top: auto; bottom: -24px; }
[dir="rtl"] .st-step:nth-child(2n + 1):not(:last-child)::after { transform: scaleX(-1); }
.st-step.locked { filter: saturate(.6); }
.st-step.done { opacity: .6; }
.st-step-art { font-size: 44px; }
.st-step-name { width: 112%; text-align: center; padding: 3px; background: linear-gradient(180deg, #ffb347, #f08a00); color: #fff; font-weight: 900; font-size: .78rem; border-radius: 4px; }
.st-step-done { font-size: 1.4rem; color: #2f9e44; font-weight: 900; }

/* Passion Pass */
.pp-panel { background: #2b1a55; color: #fff; }
.pp-panel .panel-head { background: linear-gradient(180deg, #5a3aa8, #46288c); border: 0; color: #fff; }
.pp-panel .close { color: #fff; }
.pp-panel .panel-body { padding: 0; }
.pp { --pp: #7c5cff; min-height: 100%; }
.pp-tabs { display: flex; background: #46288c; padding: 6px 8px 0; gap: 4px; }
.pp-tab { position: relative; flex: 1; padding: 6px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .08); font-size: 20px; }
.pp-tab.on { background: color-mix(in srgb, var(--pp) 55%, #6a4bc4); }
.pp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3d3d; position: absolute; top: 4px; inset-inline-end: 8px; }
.pp-head { padding: 10px 14px; background: color-mix(in srgb, var(--pp) 55%, #6a4bc4); text-align: center; }
.pp-name { font-weight: 900; font-size: 1.05rem; margin-bottom: 8px; }
.pp-bar { display: flex; align-items: center; gap: 4px; }
.pp-lv { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; border: 2px solid #fff; }
.pp-lv.next { background: #fff; color: #46288c; }
.pp-track { position: relative; flex: 1; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, .3); overflow: hidden; text-align: center; }
.pp-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffd84a, #ffb000); border-radius: 999px; }
[dir="rtl"] .pp-fill { inset: 0 0 0 auto; }
.pp-track span { position: relative; font-size: .72rem; font-weight: 900; }
.pp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.pp-time { display: flex; flex-direction: column; align-items: flex-start; font-size: .8rem; }
.pp-time b { padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.pp-open { padding: 8px 26px; border-radius: 10px; font-weight: 900; color: #5a3200; background: linear-gradient(180deg, #ffe46b, #f5b301); box-shadow: 0 3px 0 #c98a00; animation: ppGlow 1.6s ease-in-out infinite; }
.pp-owned { font-weight: 900; font-size: .8rem; color: #b8ff8a; }
.pp-boost, .pp-locked { margin-top: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-weight: 800; font-size: .8rem; }
.pp-switch, .cp-switch { display: flex; margin: 10px 14px; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.pp-switch button, .cp-switch button { position: relative; flex: 1; padding: 7px; border-radius: 10px; font-weight: 900; color: #c9b8ff; }
.pp-switch button.on, .cp-switch button.on { background: #fff; color: #46288c; }
.pp-levels { padding: 0 14px 14px; position: relative; }
.pp-cols { display: grid; grid-template-columns: 1fr 44px 1fr; text-align: center; font-weight: 900; font-size: .8rem; color: #c9b8ff; margin-bottom: 6px; }
.pp-level { position: relative; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; padding: 8px 0; }
.pp-level::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: rgba(255, 255, 255, .15); }
.pp-level.on::before { background: #ffd84a; }
.pp-node { position: relative; justify-self: center; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #5a3aa8; border: 2px solid #8f73e0; font-weight: 900; font-size: .8rem; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); width: 34px; height: 34px; }
.pp-level.on .pp-node { background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; }
.pp-tile { position: relative; height: 84px; margin: 0 8px; border-radius: 14px; display: grid; place-items: center; padding: 6px; color: #fff; min-width: 0; }
.pp-tile.free { background: linear-gradient(180deg, #8e6bea, #6a4bc4); box-shadow: 0 3px 0 #4b2f99; }
.pp-tile.paid { background: linear-gradient(180deg, #ffe07a, #f5b301); color: #5a3200; box-shadow: 0 3px 0 #c98a00; }
.pp-tile .rw-big i { font-size: 32px; }
.pp-tile .rw-big b { font-size: .85rem; }
.pp-tile.taken { opacity: .55; }
.pp-tile.ready { animation: ppGlow 1.6s ease-in-out infinite; outline: 3px solid #b8ff8a; }
.pp-lock, .pp-check { position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: #ffd84a; border: 2px solid #fff; }
.pp-check { background: #51cf66; color: #fff; }
.pp-claim { position: absolute; bottom: -8px; padding: 1px 10px; border-radius: 999px; background: #51cf66; color: #fff; font-size: .7rem; font-weight: 900; }
.pp-maxlv, .pp-buylv { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pp-maxlv p { margin: 0; font-size: .85rem; }
.pp-buylv.off { opacity: .7; }
.pp-tasks { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.pp-group { font-weight: 900; color: #ffd84a; margin-top: 6px; }
.pp-task { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; color: #3b2466; }
.pp-task.taken { opacity: .55; }
.pp-task.locked { background: #e9e3f7; }
.pp-task-ico { font-size: 22px; text-align: center; }
.pp-task-main { min-width: 0; }
.pp-task-main b { font-size: .85rem; display: block; }
.pp-task-bar { position: relative; margin-top: 4px; height: 14px; border-radius: 999px; background: #e9e3f7; overflow: hidden; text-align: center; font-size: .65rem; font-weight: 900; }
.pp-task-bar div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b18cff, #7b2ff7); }
[dir="rtl"] .pp-task-bar div { inset: 0 0 0 auto; }
.pp-task-bar span { position: relative; }
.pp-task-pts { min-width: 44px; padding: 4px 8px; border-radius: 10px; background: #f1ebff; font-weight: 900; text-align: center; color: #7b2ff7; }
.pp-task-pts.done { color: #2f9e44; }
.pp-task-claim { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 10px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #8ee04a, #4caf1c); }
.pp-task-claim small { font-size: .65rem; }
.pp-note { font-size: .75rem; color: #c9b8ff; text-align: center; }
.pp-empty { padding: 30px; text-align: center; }
.pp-choose-box { width: min(360px, 92vw); padding: 0 16px 16px; border-radius: 22px; background: linear-gradient(180deg, #8d5be8, #5a2fb0); color: #fff; text-align: center; border: 4px solid #b18cff; }
.pp-choose-title { margin: -18px auto 8px; width: 80%; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, #ffb347, #f08a00); font-weight: 900; }
.pp-choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.pp-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.pp-choice span { font-size: 40px; }
.pp-choice.on { outline: 3px solid #b8ff8a; }
.pp-choice .btn { background: linear-gradient(180deg, #8ee04a, #4caf1c); color: #fff; }

/* cards */
.cp-panel { background: #f1ebff; }
.cp-panel .panel-head { background: linear-gradient(180deg, #5a3aa8, #46288c); color: #fff; border: 0; }
.cp-panel .close { color: #fff; }
.cp-panel .panel-body { padding: 0; }
.cp-hero { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: radial-gradient(circle at 20% 50%, #ff5c8a 0, #8b1d3d 60%, #3b0d24 100%); color: #fff; font-size: .8rem; font-weight: 700; }
.cp-hero span { font-size: 48px; }
.cp-hero p { margin: 0; }
.cp .cp-switch { background: #46288c; margin: 0; border-radius: 0; }
.cp-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; background: #5a3aa8; }
.cp-pack { width: 34px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-size: 20px; background: var(--pc); border: 2px solid #fff; }
.cp-track { position: relative; flex: 1; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, .3); overflow: hidden; text-align: center; color: #fff; font-size: .72rem; font-weight: 900; }
.cp-track div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffb347, #f08a00); }
[dir="rtl"] .cp-track div { inset: 0 0 0 auto; }
.cp-track span { position: relative; }
.cp-open { min-width: 46px; padding: 6px 8px; border-radius: 10px; font-weight: 900; background: rgba(255, 255, 255, .2); color: #fff; }
.cp-open.ready { background: linear-gradient(180deg, #8ee04a, #4caf1c); animation: ppGlow 1.4s infinite; }
.cp-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 12px; background: #5a3aa8; }
.cp-store { padding: 7px 22px; border-radius: 999px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #8ee04a, #4caf1c); box-shadow: 0 2px 0 #2f7d0c; }
.cp-film { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); color: #fff; }
.cp-plus { width: 22px; height: 22px; border-radius: 50%; background: #51cf66; color: #fff; font-weight: 900; display: grid; place-items: center; padding: 0; }
.cp-panel .pp-locked { margin: 8px 14px 0; color: #46288c; background: #fff; }
.cp-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.cp-theme { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-theme-pic { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 60px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #c7b5ff 60%, #8f73e0 100%); border: 4px solid #8f73e0; box-shadow: 0 4px 10px rgba(70, 40, 140, .3); }
.cp-theme-pic img { width: 100%; height: 100%; object-fit: cover; }
.cp-theme.done .cp-theme-pic { border-color: #ffd84a; }
.cp-theme-name { margin-top: -18px; position: relative; padding: 3px 16px; border-radius: 10px; background: #fff; color: #46288c; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.cp-theme-n { position: relative; display: block; width: 110px; height: 14px; border-radius: 999px; background: #46288c; overflow: hidden; color: #fff; font-size: .7rem; font-weight: 900; text-align: center; line-height: 14px; }
.cp-theme-n i { position: absolute; inset: 0 auto 0 0; background: #8ee04a; }
[dir="rtl"] .cp-theme-n i { inset: 0 0 0 auto; }
.cp-theme-n em { position: relative; font-style: normal; }
.cp-theme-n.wide { width: 160px; margin: 0 auto 10px; }
.cp-tasks { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cp-tasks .pp-group { color: #46288c; text-align: center; }
.cp-task { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; color: #3b2466; }
.cp-task span:first-child { font-size: 22px; }
.cp-task-pts { padding: 6px 10px; border-radius: 8px; background: linear-gradient(180deg, #ff6b6b, #c92a2a); color: #fff; font-weight: 900; }
.ct-box { position: relative; width: min(380px, 92vw); padding: 50px 16px 16px; border-radius: 22px; background: #fff; text-align: center; color: #3b2466; }
.ct-close { position: absolute; top: 10px; inset-inline-end: 14px; font-size: 20px; color: #46288c; }
.ct-pic { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; background: radial-gradient(circle, #fff, #c7b5ff); border: 4px solid #8f73e0; overflow: hidden; }
.ct-pic img { width: 100%; height: 100%; object-fit: cover; }
.ct-name { font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ct-card { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 4px 16px; overflow: hidden; color: #3b2466;
  background: linear-gradient(180deg, #fff, #f1ebff); border: 3px solid #c9b8ff; }
.ct-card.r2 { border-color: #40c057; }
.ct-card.r3 { border-color: #339af0; }
.ct-card.r4 { border-color: #845ef7; }
.ct-card.r5 { border-color: #fd7e14; }
.ct-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-card b { position: relative; font-size: .65rem; }
.ct-emoji { position: relative; font-size: 34px; }
.ct-card.missing { background: repeating-linear-gradient(45deg, #e45dcb 0 8px, #d04ab8 8px 16px); color: #fff; }
.ct-card.missing .ct-emoji { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #a32fc2; display: grid; place-items: center; font-size: 26px; font-weight: 900; }
.ct-card.fresh { box-shadow: 0 0 0 3px #ffd84a, 0 0 14px #ffd84a; }
.ct-bonus { position: absolute; top: 40%; padding: 2px 6px; border-radius: 999px; background: rgba(43, 26, 85, .85); color: #ffd84a; font-weight: 900; font-size: .7rem; }
.ct-qty { position: absolute; top: 2px; inset-inline-start: 4px; font-weight: 900; font-size: .7rem; color: #7b2ff7; }
.ct-stars { position: absolute; bottom: 0; left: 0; right: 0; padding: 1px; background: rgba(70, 40, 140, .85); color: #ffd84a; font-size: .6rem; letter-spacing: 1px; }
.ct-reward { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; align-items: center; font-weight: 800; }
.ct-reward .rw-chip { background: #f1ebff; }
.ci-box { width: min(380px, 92vw); padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #4a2a8c, #2f1863); color: #fff; text-align: center; }
.ci-box h3 { color: #ffd84a; margin: 0 0 8px; }
.ci-step { margin: 10px 0; }
.ci-step span { font-size: 36px; letter-spacing: 4px; }
.ci-step p { font-weight: 800; margin: 4px 0; }

/* events */
.ev { display: flex; flex-direction: column; gap: 8px; }
.ev-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #f6f0ff; }
.ev-card.live { background: linear-gradient(90deg, #fff1f6, #ffe3ee); box-shadow: 0 0 0 2px #ff3d8b; }
.ev-ico { font-size: 30px; text-align: center; }
.ev-ico img { width: 40px; height: 40px; object-fit: contain; }
.ev-main p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.ev-when { display: flex; flex-direction: column; align-items: flex-end; font-size: .75rem; text-align: end; }
.ev-live { padding: 1px 8px; border-radius: 999px; background: #ff3d8b; color: #fff; font-weight: 900; }
.ev-none { text-align: center; color: var(--muted); }
.ev .pp-group { color: #7b2ff7; }

/* promo codes */
.promo { display: flex; flex-direction: column; gap: 10px; }
.promo .input { text-transform: uppercase; text-align: center; font-size: 1.2rem; letter-spacing: 2px; }
.promo-out { text-align: center; }

/* ── seasons: phases, reward states, premium for coins, missions with several objectives, seasonal gifts ── */
.pp-loading { padding: 40px; text-align: center; opacity: .8; }
.pp-empty { padding: 30px 16px; text-align: center; }
.pp-empty-ico { font-size: 44px; }
.pp-tab.hist { margin-inline-start: auto; }
.pp-tab.ph-scheduled, .pp-tab.ph-ended, .pp-tab.ph-paused { opacity: .7; }
.pp-tab-img { width: 26px; height: 26px; object-fit: contain; }
.pp-head { background-size: cover; background-position: center; }
.pp-desc { font-size: .75rem; opacity: .85; margin-bottom: 4px; }
.pp-state { margin-top: 8px; padding: 5px 8px; border-radius: 8px; font-weight: 800; font-size: .8rem; background: rgba(0, 0, 0, .3); }
.pp-state.paused { background: #f59f00; color: #3b2400; }
.pp-state.ended { background: rgba(0, 0, 0, .45); }
.pp-cap { margin-top: 6px; font-size: .75rem; opacity: .85; }
.pp-buy { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.pp-open.coins { padding: 8px 12px; animation: none; }
.pp-note-retro { flex-basis: 100%; text-align: end; font-size: .7rem; opacity: .85; }
.pp-node { display: flex; flex-direction: column; }
.pp-node small { font-size: .55rem; opacity: .75; font-weight: 600; }
.pp-tile.st-claimed { opacity: .55; }
.pp-tile.st-locked, .pp-tile.st-capped { filter: saturate(.55); }
.pp-tile.st-premium { filter: saturate(.75); }
.pp-tile.st-expired, .pp-tile.st-not_retro { filter: grayscale(1); opacity: .5; }
.pp-tile.st-expired .pp-lock, .pp-tile.st-not_retro .pp-lock { background: #adb5bd; }
.pp-claim { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: #40c057; color: #fff; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.pp-task.expired { opacity: .55; }
.pp-task-bar { position: relative; }
.pp-obj { display: block; font-size: .7rem; opacity: .85; margin: 2px 0; }
.pp-task-why, .pp-task-until { display: block; font-size: .7rem; opacity: .8; margin-top: 2px; }
.rw-chips.small { margin-top: 3px; }
.rw-chips.small .rw-chip { font-size: .65rem; }
.rw-img { width: 32px; height: 32px; object-fit: contain; }
.pp-gifts { padding: 10px 12px; }
.pp-gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pp-gift { position: relative; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pp-gift.gone { filter: grayscale(1); opacity: .55; }
.pp-gift-pic { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.pp-gift-img { width: 52px; height: 52px; object-fit: contain; font-size: 40px; line-height: 52px; }
.pp-gift-qty { position: absolute; bottom: -4px; inset-inline-end: -8px; padding: 0 6px; border-radius: 999px; background: #40c057; color: #fff; font-size: .7rem; }
.pp-gift-prem { position: absolute; top: -6px; inset-inline-start: -6px; font-style: normal; }
.pp-gift-name { font-weight: 800; font-size: .78rem; }
.pp-gift-state, .pp-gift-sent, .pp-gift-kept { font-size: .68rem; opacity: .85; }
.pp-history { padding: 10px 12px; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pp-badge { display: flex; flex-direction: column; align-items: center; font-size: 28px; min-width: 64px; }
.pp-badge img { width: 34px; height: 34px; }
.pp-badge small { font-size: .62rem; }
.pp-hist-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); margin-bottom: 6px; }
.pp-hist-row small { display: block; opacity: .75; font-size: .7rem; }
.pp-hist-emoji { font-size: 26px; }
.pp-hist-lv { margin-inline-start: auto; font-weight: 800; font-size: .78rem; }
/* the gift screen's seasonal part: the season's colour, my own count on a gift */
.gs-season .gs-cap-text.season { --cc: var(--sc, #ff7a00); }
.gs-gift.sg.off { opacity: .45; }
.gs-own { position: absolute; bottom: 6px; inset-inline-end: -4px; padding: 0 5px; border-radius: 999px; background: #40c057; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
/* season badges on a profile */
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(121, 87, 178, .12); font-size: 12px; font-weight: 700; }
.pf-badge img { width: 18px; height: 18px; }

/* ── Weekly events (js/eventspanel.js): tabs, one card shape for every event, a heading per day ── */
.evx { display: grid; gap: 10px; align-content: start; }
.evx-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #f1ecfb; }
.evx-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #6a5f85; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.evx-tab span { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #e3daf6; color: #6a5f85; font-size: .68rem; }
.evx-tab.on { background: #fff; color: #7b2ff7; box-shadow: 0 2px 8px rgba(80, 40, 160, .14); }
.evx-tab.on span { background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; }
.evx-list { display: grid; gap: 8px; }
.evx-day { margin: 6px 2px 0; font-size: .74rem; font-weight: 900; color: #8a7fa3; letter-spacing: .02em; }
.evx-day:first-child { margin-top: 0; }
.evx-card { --tone: #7b2ff7; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "ico main badge"; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ece6f7; font: inherit; color: var(--ink); text-align: start; cursor: pointer; transition: box-shadow .15s; }
.evx-card:hover { box-shadow: 0 0 0 1.5px #d8ccf3; }
.evx-card.disc { --tone: #ff3d8b; } .evx-card.mult { --tone: #7b2ff7; } .evx-card.offer { --tone: #f08c00; }
.evx-card.live { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tone) 55%, transparent), 0 6px 16px -10px var(--tone); }
.evx-ico { grid-area: ico; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--tone) 12%, #fff); font-size: 22px; }
.evx-ico img { width: 30px; height: 30px; object-fit: contain; }
.evx-main { grid-area: main; display: grid; gap: 2px; min-width: 0; }
.evx-main b { font-size: .86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evx-more { display: none; font-size: .72rem; color: #6a5f85; line-height: 1.45; }
.evx-card.open .evx-more { display: block; }
.evx-card.open .evx-main b { white-space: normal; }
.evx-badge { grid-area: badge; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, #fff); color: var(--tone); font-size: .76rem; font-weight: 900; white-space: nowrap; }
.evx-when { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; color: #6a5f85; white-space: nowrap; }
.evx-when bdi { font-variant-numeric: tabular-nums; }
.evx-when.live { color: var(--tone); }
.evx-when.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent); animation: evx-pulse 1.6s ease-in-out infinite; }
@keyframes evx-pulse { 50% { opacity: .35; } }
/* the season's cards take the same shape inside this window */
.evx .ss-card { padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ece6f7; grid-template-columns: 42px minmax(0, 1fr) auto; }
.evx .ss-card.ready { box-shadow: 0 0 0 1.5px var(--sc), 0 6px 16px -10px var(--sc); }
.evx .ss-ico { width: 42px; height: 42px; font-size: 22px; }
.evx .ss-main b { font-size: .86rem; }
.evx .ss-main p { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* a seasonal gift tapped in the gift screen: the window opens where it is earned (the hint, the place highlighted) */
.pp-hint { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 8px 12px; border-radius: 12px; background: rgba(124, 92, 255, .14); border: 1px solid var(--pp, #7c5cff); font-size: 13px; }
.pp-hint .pp-hint-pic { width: 36px; height: 36px; object-fit: contain; flex: none; }
.pp-focus { animation: pp-focus 1s ease-in-out 4; outline: 3px solid #ffd54a; outline-offset: 2px; }
@keyframes pp-focus { 50% { transform: scale(1.06); box-shadow: 0 0 18px #ffd54a; } }

/* a reward's picture: a seasonal gift's drawing fills the tile; a second part's drawing stays the size of its text */
.rw-big.rw-sgift > i .rw-img { width: 44px; height: 44px; }
.pp-tile .rw-big.rw-sgift > i .rw-img { width: 48px; height: 48px; }
.rw-more .rw-img { width: 16px; height: 16px; vertical-align: middle; }

/* a promo code's reward, big (promoreveal.js): the box opens over the screen, then the reward comes out in tiles */
.pr-wrap { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(120, 52, 230, .96), rgba(40, 14, 90, .97) 45%, rgba(10, 4, 26, .98) 80%); animation: fadeIn .25s; }
.pr-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(rgba(255, 215, 130, .045) 0 6deg, transparent 6deg 18deg); animation: spinRays 18s linear infinite; pointer-events: none; }
.pr-stage { position: absolute; left: 50%; top: 50%; width: min(165vmin, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  transition: top .6s cubic-bezier(.2, .9, .3, 1), transform .6s cubic-bezier(.2, .9, .3, 1); }
.pr-open .pr-stage { top: 19%; transform: translate(-50%, -50%) scale(.42); }
.pr-result { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; width: min(680px, 92vw); margin-top: 18vmin; opacity: 0; pointer-events: none; }
.pr-open .pr-result { opacity: 1; pointer-events: auto; transition: opacity .3s .15s; }
.pr-title { font-size: clamp(1.5rem, 4.6vmin, 2.4rem); font-weight: 900; color: #fff; text-align: center; text-shadow: 0 3px 14px rgba(255, 61, 139, .65); }
.pr-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.pr-tile { min-width: 150px; padding: 20px 18px 16px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #3b2466;
  background: linear-gradient(160deg, #fff, #f1e8ff); box-shadow: 0 0 0 3px rgba(255, 210, 100, .95), 0 18px 40px rgba(0, 0, 0, .45), 0 0 60px rgba(255, 185, 60, .45);
  transform: scale(.4); opacity: 0; }
.pr-open .pr-tile { animation-name: prPop; animation-duration: .55s; animation-timing-function: cubic-bezier(.2, 1.6, .4, 1); animation-fill-mode: forwards; }
@keyframes prPop { to { transform: scale(1); opacity: 1; } }
.pr-icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.pr-icon img { width: 76px; height: 76px; object-fit: contain; }
.pr-amount { direction: ltr; font-size: clamp(1.8rem, 5.4vmin, 2.7rem); font-weight: 900; line-height: 1.1; background: linear-gradient(180deg, #ffb300, #ff5e00);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-label { font-size: 1.05rem; font-weight: 800; color: #6b4fa0; text-align: center; }
.pr-ok { min-width: 210px; padding: 13px 30px; font-size: 1.15rem; }
.pr-out { opacity: 0; transition: opacity .25s; }
@media (max-width: 600px) { .pr-tile { min-width: 128px; padding: 16px 12px 12px; } .pr-icon { font-size: 52px; } .pr-tiles { gap: 12px; } }
