/* 🎁 Окно покупки сундуков с примерами призов (21.10.2026). Префикс cp-. Зелёного нет. */
.cp { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.cp-lead { font-size: 13px; line-height: 1.4; color: var(--ink-dim); }
.cp-lead b { color: var(--ink); }
.cp-rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px; padding: 2px 4px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cp-rail::-webkit-scrollbar { display: none; }
.cp-ex { flex: none; width: 108px; scroll-snap-align: start; padding: 10px 6px 9px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 20%, transparent), rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.cp-ex-art { height: 66px; width: 100%; display: grid; place-items: center; }
.cp-ex-art .pf-ava { width: 54px; height: 54px; font-size: 20px; }
.cp-nick { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.2 var(--serif); }
.cp-skin svg { width: 76px; height: 76px; margin: -6px 0; }
.cp-fx img { width: 62px; height: 62px; object-fit: contain; border-radius: 12px; }
.cp-fx svg.cf-gem { width: 58px; height: 58px; }       /* 07.11.2026: ветви рисуются кодом (svg), без размера они раздувались на всю карточку */
.cp-ex b { font-size: 11.5px; line-height: 1.15; }
.cp-ex span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--c); }
.cp-title { margin-top: 2px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.cp-row-top { display: flex; align-items: baseline; gap: 8px; }
.cp-dot { width: 9px; height: 9px; flex: none; align-self: center; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cp-row-top b { font-size: 13px; }
.cp-row-top small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-faint); }
.cp-row-top em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 13px; color: var(--c); font-variant-numeric: tabular-nums; }
.cp-bar { height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.cp-prize { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); }
.cp-prize-pic { flex: none; width: 54px; height: 54px; border-radius: 14px; overflow: hidden; background: rgba(14, 8, 20, .5); display: grid; place-items: center; }
.cp-prize-pic img { width: 100%; height: 100%; object-fit: cover; }
.cp-prize-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-prize-body b { font-size: 13.5px; line-height: 1.2; }
.cp-prize-body span { font-size: 11.5px; line-height: 1.3; color: var(--ink-dim); }
.cp-prize em { flex: none; font-style: normal; font-weight: 800; font-size: 14px; color: var(--c); font-variant-numeric: tabular-nums; }
.cp-note { font-size: 11px; line-height: 1.45; color: var(--ink-faint); }
.cp-ex-art .cp-ico { width: 46px; height: 46px; }
.cp-emo { font-size: 38px; line-height: 1; }
.cp-emo.dim { opacity: .5; }
.cp-ex .cp-ex-art .cp-emo { font-size: 38px; line-height: 1; letter-spacing: 0; text-transform: none; color: inherit; }
.cp-ex .cp-ex-art .cp-emo.dim { opacity: .5; }

/* 21.10.2026: предпросмотр косметики в окне результата сундука */
.chest-prize.has-preview { flex-wrap: wrap; }
.cp-live { flex: 1 0 100%; margin-top: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); text-align: center; }
.cp-live-row { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 64px; }
.cp-live .pf-ava { width: 60px; height: 60px; font-size: 22px; flex: none; }
.cp-live-nick { font: 700 18px/1.2 var(--serif); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-live-skin svg { width: 96px; height: 96px; }
.cp-live-fx img { width: 80px; height: 80px; object-fit: contain; border-radius: 14px; }
.cp-live small { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-faint); }

/* стрелки у ленты примеров и режим «все сеткой» */
.cp-railbox { position: relative; }
.cp-railbox::before, .cp-railbox::after { content: ''; position: absolute; top: 0; bottom: 8px; width: 28px; z-index: 2; pointer-events: none; }
.cp-railbox::before { left: -4px; background: linear-gradient(90deg, rgba(30, 18, 44, .95), transparent); }
.cp-railbox::after { right: -4px; background: linear-gradient(270deg, rgba(30, 18, 44, .95), transparent); }
.cp-arrow { position: absolute; z-index: 3; top: 50%; margin-top: -22px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0;
  display: grid; place-items: center; font: 400 22px/1 var(--sans, inherit); color: #fff; background: rgba(20, 10, 32, .85); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.cp-arrow.l { left: -2px; }
.cp-arrow.r { right: -2px; animation: cp-nudge 1.6s ease-in-out infinite; }
.cp-arrow[hidden] { display: none; }
@keyframes cp-nudge { 50% { transform: translateX(3px); } }
.cp-railbox.grid::before, .cp-railbox.grid::after, .cp-railbox.grid .cp-arrow { display: none; }
.cp-railbox.grid .cp-rail { flex-wrap: wrap; overflow: visible; justify-content: center; margin: 0; padding: 2px 0 8px; }
.cp-railbox.grid .cp-ex { width: calc(33.3% - 6px); }
.cp-all { align-self: center; margin-top: -2px; padding: 7px 16px; border-radius: 999px; cursor: pointer; font: 600 12px/1 var(--sans, inherit); color: var(--ink-dim); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.cp-all:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .cp-arrow.r { animation: none; } }

/* 09.11.2026: приз NFT — эмодзи коробки (на ленте рулетки, в карточке приза и в списке); размер по контейнеру */
.nft-gift { display: inline-flex; align-items: center; justify-content: center; font-size: 38px; line-height: 1; letter-spacing: 0; text-transform: none; color: initial; filter: drop-shadow(0 2px 8px rgba(255, 140, 190, .45)); }
.crc-art .nft-gift { font-size: 34px; }
.chest-prize.hero .nft-gift { font-size: 64px; }
/* 09.11.2026: эффект клинка в рулетке — живое свечение с частицами (вместо неподвижного значка); цвет — --c, движение — rise | fall | swirl */
.fx-live { position: relative; display: inline-block; width: 56px; height: 56px; flex: none; }
.crc-art .fx-live { width: 50px; height: 50px; }
.chest-prize.hero .fx-live { width: 104px; height: 104px; }
.fx-live::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; opacity: .85;
                   background: radial-gradient(circle, #fff 0%, var(--c) 38%, transparent 72%); animation: fxl-pulse 1.9s ease-in-out infinite; }
.fx-live i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--c);
             box-shadow: 0 0 9px var(--c), 0 0 3px #fff; opacity: 0; animation: fxl-rise 1.7s linear infinite; }
.chest-prize.hero .fx-live i { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.fx-live i:nth-child(1) { --x: -18px; --d: 0s; }    .fx-live i:nth-child(2) { --x: 20px;  --d: .28s; }
.fx-live i:nth-child(3) { --x: -6px; --d: .56s; }    .fx-live i:nth-child(4) { --x: 14px; --d: .84s; }
.fx-live i:nth-child(5) { --x: -24px; --d: 1.12s; } .fx-live i:nth-child(6) { --x: 6px;  --d: 1.4s; }
.fx-live i { animation-delay: var(--d, 0s); }
.fx-live.fall i { animation-name: fxl-fall; }
.fx-live.swirl i { animation-name: fxl-swirl; }
.chest-prize.hero .fx-live { --k: 2; }
@keyframes fxl-pulse { 0%, 100% { transform: scale(.88); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fxl-rise { 0% { transform: translate(calc(var(--x) * var(--k, 1)), calc(20px * var(--k, 1))) scale(.8); opacity: 0; }
                      25% { opacity: 1; }
                      100% { transform: translate(calc(var(--x) * 1.7 * var(--k, 1)), calc(-38px * var(--k, 1))) scale(.2); opacity: 0; } }
@keyframes fxl-fall { 0% { transform: translate(calc(var(--x) * var(--k, 1)), calc(-34px * var(--k, 1))) scale(.6); opacity: 0; }
                      25% { opacity: 1; }
                      100% { transform: translate(calc(var(--x) * .5 * var(--k, 1)), calc(34px * var(--k, 1))) scale(1); opacity: 0; } }
@keyframes fxl-swirl { 0% { transform: rotate(0deg) translateX(calc(34px * var(--k, 1))) scale(.7); opacity: 0; }
                       25% { opacity: 1; }
                       100% { transform: rotate(300deg) translateX(calc(6px * var(--k, 1))) scale(.2); opacity: 0; } }
body.calm .fx-live::before, body.calm .fx-live i { animation: none; }
body.calm .fx-live i { opacity: .8; }
/* 11.11.2026: метка «есть» на карточке-примере, которая у игрока уже собрана (выпадет — обменяется на драгоценности и ветви); сама карточка не пропадает */
.cp-ex { position: relative; }
.cp-ex.have .cp-ex-art, .cp-ex.have b { opacity: .72; }
.cp-have { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 999px; font: 700 8.5px/1.4 var(--sans, inherit); font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  color: #fff3d4; background: rgba(40, 24, 56, .82); border: 1px solid rgba(255, 214, 150, .55); }