/* Наградные окна по центру экрана (js/reward.js) и короткие подсказки-плашки (toast() в ui.js) */

.rw { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); overflow: hidden; --rc: #ffc04d; }
.rw-veil { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 50% 42%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 70%),
  radial-gradient(120% 90% at 50% 50%, rgba(8,10,16,.86), rgba(4,5,9,.96));
  /* StoryForge: без backdrop-filter — под подложкой идёт снег, и размытие пересчитывалось бы каждый кадр; фон плотнее */ opacity: 0; transition: opacity .3s; }
.rw-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.rw-flash { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(40% 36% at 50% 40%, #fff8e6, color-mix(in srgb, var(--rc) 60%, transparent) 40%, transparent 72%); }
.rw.is-in .rw-veil { opacity: 1; }
.rw.is-in .rw-flash { animation: rw-flash .55s .36s ease-out both; }
.rw.is-out { transition: opacity .25s, transform .25s; opacity: 0; transform: scale(.97); }

.rw-card { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(560px, 100%); max-height: 100%; outline: none; color: #fff4dc; }
.rw-card > * { flex: none; }

/* герой: лучи, свечение, волна, арт */
.rw-hero { --s: min(340px, 40dvh, 76vw); position: relative; width: var(--s); height: var(--s); display: grid; place-items: center; margin-bottom: -4px; }
.rw-rays { position: absolute; inset: -55%; pointer-events: none; opacity: 0; transform: scale(.4);
  -webkit-mask: radial-gradient(closest-side, #000 18%, rgba(0,0,0,.55) 48%, transparent 100%); mask: radial-gradient(closest-side, #000 18%, rgba(0,0,0,.55) 48%, transparent 100%); }
.rw-rays i { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 70%, transparent) 0 5deg, transparent 5deg 22.5deg); animation: rw-spin 36s linear infinite; }
.rw-rays i + i { background: repeating-conic-gradient(from 11deg, rgba(255,246,220,.32) 0 2.5deg, transparent 2.5deg 15deg); animation-duration: 54s; animation-direction: reverse; }
.rw-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 85%, #fff) 0%, color-mix(in srgb, var(--rc) 45%, transparent) 45%, transparent 75%); filter: blur(6px); opacity: 0; }
.rw-wave { position: absolute; left: 50%; top: 52%; width: 40%; aspect-ratio: 1; margin: -20% 0 0 -20%; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--rc) 70%, #fff); box-shadow: 0 0 24px var(--rc), inset 0 0 18px var(--rc); opacity: 0; pointer-events: none; }
.rw-art, .rw-art-fb, .rw-plinth, .rw-pic, .rw-photos { position: relative; z-index: 1; }
.rw-art { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)) drop-shadow(0 0 22px color-mix(in srgb, var(--rc) 55%, transparent)); opacity: 0; }
.rw-art-fb { font-size: calc(var(--s) * .45); line-height: 1; opacity: 0; }
.rw-plinth { width: 70%; height: 70%; display: grid; place-items: center; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,250,235,.22), transparent 70%); }
.rw-plinth .rw-art { width: 86%; height: 86%; border-radius: 22%; filter: drop-shadow(0 14px 20px rgba(0,0,0,.6)) drop-shadow(0 0 0 2px var(--rc)); }
.rw-pic { width: 82%; margin: 0; padding: 7px; background: #f3e7cd; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 22px 40px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4), 0 0 40px color-mix(in srgb, var(--rc) 40%, transparent); opacity: 0; }
.rw-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1px; }
.rw-photos { width: 100%; height: 100%; display: grid; place-items: center; }
.rw-photo { grid-area: 1 / 1; margin: 0; width: 70%; padding: 6px 6px 22px; background: #f3e7cd; border-radius: 2px; box-shadow: 0 20px 36px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.35);
  --r: calc(var(--i) * 9deg); transform: translateX(calc(var(--i) * 22%)) rotate(var(--r)); opacity: 0; }
.rw-photos.n1 .rw-photo { width: 80%; --r: -3deg; }
.rw-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: sepia(.9) brightness(1.6) blur(3px); }

.rw-count { position: absolute; z-index: 2; right: 2%; bottom: 8%; display: flex; align-items: center; gap: 4px; padding: 2px 14px 2px 6px; border-radius: 999px;
  background: linear-gradient(#2a1d10, #120c06); border: 2px solid #f3c45f; box-shadow: 0 8px 18px rgba(0,0,0,.6), 0 0 18px color-mix(in srgb, var(--rc) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25); opacity: 0; }
.rw-count img { width: 38px; height: 38px; border-radius: 8px; }
.rw-count b { font: 800 clamp(28px, 6dvh, 40px)/1.1 var(--f-display); color: #ffd875; text-shadow: 0 2px 0 #6b3a06, 0 0 14px rgba(255,190,80,.6); font-variant-numeric: tabular-nums; }

/* лента с заголовком */
.rw-ribbon { position: relative; width: min(520px, 100%); aspect-ratio: 1000 / 250; display: grid; place-items: center; padding: 0 15% 1.6%; transform: scaleX(0); opacity: 0;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.rw-rib { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.rw-ribbon h2 { position: relative; }
.rw-ribbon h2 { margin: 0; font: 800 clamp(17px, min(3.6dvh, 5.4vw), 30px)/1.05 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: #fff3d6;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 18px rgba(255,200,120,.35); text-wrap: balance; max-width: 100%; }
.rw-sub { margin: 10px 0 0; max-width: 30em; font: 500 clamp(15px, 2.3dvh, 18px)/1.4 var(--f-body); color: #f1e6cf; text-shadow: 0 1px 2px rgba(0,0,0,.8); text-wrap: balance; opacity: 0; }
.rw-note { margin: 4px 0 0; font-size: clamp(20px, 3dvh, 26px); line-height: 1.15; color: #ffd98a; opacity: 0; }
.rw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.rw-chips:empty { display: none; }
.rw-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; font: 600 14px/1.2 var(--f-label); letter-spacing: .03em; color: #eaf7e0;
  background: linear-gradient(rgba(40,62,34,.92), rgba(20,34,18,.92)); border: 1px solid rgba(170,230,140,.55); box-shadow: 0 0 16px rgba(140,220,110,.25); opacity: 0; }
button.rw-chip { cursor: pointer; }
button.rw-chip:hover { filter: brightness(1.15); }
.rw-chip img { width: 30px; height: 30px; object-fit: contain; }
.rw-chip i { font-style: normal; font-size: 18px; }
.rw-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 16px; opacity: 0; }
.rw-acts .rw-go { min-width: 200px; --bg: linear-gradient(#e46a2c, #b8380f); background: var(--bg); --fg: #fff6e6; --bd: #4a1404; box-shadow: 0 4px 0 #4a1404, 0 0 28px color-mix(in srgb, var(--rc) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
.rw-acts .rw-later { --fg: #e9dcc0; min-height: 54px; border-color: rgba(233,220,192,.45); }

/* — хореография входа — */
.rw.is-in .rw-rays { animation: rw-rays .9s .25s cubic-bezier(.2,.9,.3,1) both; }
.rw.is-in .rw-glow { animation: rw-glow .8s .3s ease-out both, rw-pulse 3.2s 1.2s ease-in-out infinite; }
.rw.is-in .rw-wave { animation: rw-wave .8s .4s cubic-bezier(.1,.7,.3,1) both; }
.rw.is-in .rw-art, .rw.is-in .rw-art-fb, .rw.is-in .rw-plinth, .rw.is-in .rw-pic { animation: rw-drop .72s .1s cubic-bezier(.2,1.5,.4,1) both, rw-bob 3.6s 1.1s ease-in-out infinite; }
.rw.is-in .rw-plinth .rw-art { animation: none; opacity: 1; }
.rw.is-in .rw-hero { animation: rw-shake .32s .42s both; }
.rw.is-in .rw-photo { animation: rw-photo .7s calc(.15s + (var(--i) + 1) * .14s) cubic-bezier(.2,1.4,.4,1) both; }
.rw.is-in .rw-photo img { animation: rw-develop 1.8s .5s ease-out both; }
.rw.is-in .rw-count { animation: rw-stamp .5s .72s cubic-bezier(.2,1.6,.4,1) both; }
.rw.is-in .rw-ribbon { animation: rw-unfurl .5s .5s cubic-bezier(.2,1.3,.4,1) both; }
.rw.is-in .rw-sub, .rw.is-in .rw-note { animation: rw-up .45s .82s ease-out both; }
.rw.is-in .rw-chip { animation: rw-pop .45s 1s cubic-bezier(.2,1.6,.4,1) both; }
.rw.is-in .rw-chip.is-late { animation-delay: .05s; }
.rw.is-in .rw-acts { animation: rw-up .4s .95s ease-out both; }

/* финал Древа и победа над бурей — крупнее и дольше */
.rw--finale .rw-hero, .rw--raid .rw-hero { --s: min(380px, 44dvh, 80vw); }
.rw--finale .rw-rays i { animation-duration: 22s; }
.rw--tree .rw-art { filter: drop-shadow(0 16px 24px rgba(0,0,0,.6)) drop-shadow(0 0 30px color-mix(in srgb, var(--rc) 70%, transparent)); }
.rw--day .rw-hero { --s: min(300px, 36dvh, 70vw); }

/* без движения: всё на месте сразу */
.rw.is-still .rw-veil, .rw.is-still .rw-rays, .rw.is-still .rw-glow, .rw.is-still .rw-art, .rw.is-still .rw-art-fb, .rw.is-still .rw-plinth, .rw.is-still .rw-pic, .rw.is-still .rw-photo,
.rw.is-still .rw-count, .rw.is-still .rw-sub, .rw.is-still .rw-note, .rw.is-still .rw-chip, .rw.is-still .rw-acts { animation: none !important; opacity: 1; transform: none; }
.rw.is-still .rw-ribbon { animation: none !important; opacity: 1; transform: none; }
.rw.is-still .rw-photo { transform: translateX(calc(var(--i) * 22%)) rotate(var(--r)); }
.rw.is-still .rw-pic { transform: rotate(-3deg); }
.rw.is-still .rw-photo img { filter: none; }
.rw.is-still .rw-rays i { animation: none; }

@keyframes rw-flash { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
@keyframes rw-spin { to { transform: rotate(1turn); } }
@keyframes rw-rays { from { opacity: 0; transform: scale(.35) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes rw-glow { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1.25); } 100% { opacity: .85; transform: none; } }
@keyframes rw-pulse { 50% { opacity: 1; transform: scale(1.07); } }
@keyframes rw-wave { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(4.2); border-width: 1px; } }
@keyframes rw-drop { 0% { opacity: 0; transform: translateY(-14%) scale(.25) rotate(-10deg); } 55% { opacity: 1; transform: translateY(2%) scale(1.1) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes rw-bob { 50% { transform: translateY(-2.2%); } }
@keyframes rw-shake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 3px); } 45% { transform: translate(4px, -2px); } 70% { transform: translate(-2px, 1px); } }
@keyframes rw-photo { from { opacity: 0; transform: translateY(30%) rotate(calc(var(--r) * -2)) scale(.6); } to { opacity: 1; transform: translateX(calc(var(--i) * 22%)) rotate(var(--r)); } }
@keyframes rw-develop { to { filter: none; } }
@keyframes rw-stamp { 0% { opacity: 0; transform: scale(2.6) rotate(-14deg); } 100% { opacity: 1; transform: none; } }
@keyframes rw-unfurl { 0% { opacity: 0; transform: scaleX(0); } 100% { opacity: 1; transform: none; } }
@keyframes rw-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rw-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* низкие экраны (телефон боком): арт меньше, кнопки в строку */
@media (max-height: 520px) {
  .rw-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "hero ribbon" "hero sub" "hero note" "hero chips" "hero acts"; align-content: center; column-gap: 18px; width: min(820px, 100%); }
  .rw-hero { grid-area: hero; --s: min(260px, 78dvh, 40vw) !important; align-self: center; }
  .rw-ribbon { grid-area: ribbon; width: 100%; } .rw-sub { grid-area: sub; } .rw-note { grid-area: note; } .rw-chips { grid-area: chips; } .rw-acts { grid-area: acts; margin-top: 10px; }
  .rw-acts .rw-go, .rw-acts .rw-later { min-height: 46px; }
}

/* ── подсказки: одна короткая плашка по центру сверху, вместо тостов в углу ── */
.ntc-host { position: fixed; z-index: 130; left: 50%; top: calc(56px + env(safe-area-inset-top)); transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100vw - 24px)); pointer-events: none; }
.ntc { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 12px; color: #f6ecd6;
  background: linear-gradient(rgba(28,24,20,.96), rgba(14,12,10,.96)); border: 1px solid rgba(217,174,79,.55); box-shadow: 0 14px 30px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6);
  font: 500 15px/1.35 var(--f-body); animation: ntc-in .32s cubic-bezier(.2,1.4,.4,1) both; }
.ntc--frost { border-color: rgba(143,214,255,.6); }
.ntc-ic { font-size: 20px; line-height: 1; flex: none; }
.ntc b { font: 600 13px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: #ffd98a; margin-right: 6px; }
.ntc .btn { flex: none; }
.ntc.is-out { animation: ntc-out .25s forwards; }
@keyframes ntc-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes ntc-out { to { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 899px) { .ntc-host { top: auto; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .ntc, .ntc.is-out { animation-duration: .01s; } }

/* журнал для экранных дикторов: текст наград и подсказок, визуально скрыт */
.toasts.sr-log { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; top: 0; left: 0; right: auto; bottom: auto; transform: none; }

/* ── круг ревью 1: сила окна, подпись, редкость, табличка двери, фокус ── */
/* light: без лучей, вспышки и волны — только мягкое свечение */
.rw--t-light .rw-rays, .rw--t-light .rw-wave { display: none; }
.rw--t-light.is-in .rw-flash { animation: none; }
/* mid: падение и искры, без вспышки и толчка */
.rw--t-mid.is-in .rw-flash { animation: none; }
.rw--t-mid.is-in .rw-hero, .rw--t-light.is-in .rw-hero { animation: none; }
.rw--t-mid .rw-rays { opacity: .78; }
/* свечение пульсирует пару раз и успокаивается */
.rw.is-in .rw-glow { animation: rw-glow .8s .3s ease-out both, rw-pulse 3.2s 1.2s ease-in-out 2; }
.rw-acts .btn:focus:not(:focus-visible) { outline: none; }
.rw-hero { margin-bottom: 6px; }
.rw-ribbon { width: min(520px, calc(100vw - 40px)); }
.rw-tag { margin: 2px 0 6px; order: -1; font: 600 13px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 75%, #fff); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.rw-card .rw-tag { order: 0; }
.rw-from { margin: 2px 0 0; font: 500 14px/1.3 var(--f-label); letter-spacing: .06em; color: #cdbf9f; opacity: 0; }
.rw.is-in .rw-from { animation: rw-up .45s .9s ease-out both; }
.rw.is-still .rw-from { animation: none; opacity: 1; }
.rw-chip { font-size: 16px; padding: 6px 16px 6px 6px; color: #f1fbe9; background: linear-gradient(rgba(52,82,42,.95), rgba(26,44,22,.95)); border-color: rgba(180,240,150,.7); }
.rw-chip img { width: 34px; height: 34px; }
/* предмет: медальон с ободком цвета редкости вместо чёрного квадрата */
.rw-plinth { width: 74%; height: 74%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 40%, transparent), transparent 72%); }
.rw-plinth .rw-art { width: 78%; height: 78%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 80%, #fff), 0 0 0 9px rgba(10,8,6,.85), 0 0 0 11px color-mix(in srgb, var(--rc) 55%, transparent), 0 0 46px 8px var(--rc), 0 20px 30px rgba(0,0,0,.6); filter: none; }
/* концовка: картина — главная, бейдж рядом, а не на ней */
.rw--ending .rw-hero { width: min(600px, 92vw); height: min(400px, 44dvh, 62vw); }
.rw--ending .rw-pic { width: auto; height: 100%; max-width: 100%; }
.rw--ending .rw-pic img { height: 100%; width: auto; max-width: 100%; aspect-ratio: auto; }
.rw--ending .rw-count { right: -2%; bottom: -4%; }
/* моменты: тёплая печать, чтобы фото жило рядом с рисованным артом */
.rw-photo { background: #efe1c2; box-shadow: 0 20px 36px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(120,90,40,.35); }
.rw-photo::after { content: ''; position: absolute; inset: 6px 6px 22px; pointer-events: none; box-shadow: inset 0 0 40px rgba(60,30,5,.55); }
.rw-photo { position: relative; }
.rw-pic { position: relative; }
.rw-pic::after { content: ''; position: absolute; inset: 7px; pointer-events: none; box-shadow: inset 0 0 50px rgba(40,20,5,.55); }
/* дверь дня: число на латунной табличке */
.rw-door { position: relative; width: 100%; height: 100%; opacity: 0; }
.rw.is-in .rw-door { animation: rw-drop .72s .1s cubic-bezier(.2,1.5,.4,1) both, rw-bob 3.6s 1.1s ease-in-out infinite; }
.rw.is-still .rw-door { animation: none; opacity: 1; }
.rw-door .rw-art { opacity: 1 !important; animation: none !important; }
.rw-plaque { position: absolute; left: 50%; top: 9.5%; transform: translateX(-50%); font: 800 calc(var(--s) * .085)/1 var(--f-display); color: #3b2508; text-shadow: 0 1px 0 rgba(255,236,190,.6); }
.rw-ribbon { z-index: 3; }
.rw-plaque { z-index: 2; }
.rw-plaque { top: 22.5%; left: 52.5%; transform: translate(-50%, -50%); font-size: calc(var(--s) * .07); }
.rw-plaque { top: 21.5%; font-size: calc(var(--s) * .095); }
/* автотесты (window.__sfRewardAutoClose): окно не перехватывает клики мимо карточки */
.rw.is-qa, .rw.is-qa .rw-veil { pointer-events: none; }
.rw.is-qa .rw-card { pointer-events: none; }
.rw.is-qa .rw-card button { pointer-events: auto; }

/* ── круг ревью 2 ── */
.rw-hero { --s: min(340px, 40dvh, 84vw); }
.rw-acts .btn:focus-visible { outline: 3px solid #ffd36a; outline-offset: 3px; }
/* mid: лучи тише и одним слоем, полный веер — только у big */
.rw--t-mid .rw-rays { opacity: .5 !important; }
.rw--t-mid .rw-rays i + i { display: none; }
/* лента по смыслу: золото — финал, зелень — Древо */
.rw--finale .rw-rib { filter: hue-rotate(32deg) saturate(1.5) brightness(1.35); }
.rw--finale .rw-ribbon h2 { color: #2b1a04; text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.rw--tree .rw-rib { filter: hue-rotate(105deg) saturate(.75) brightness(.9); }
/* Древо: основание не прячется под лентой */
.rw--tree .rw-art, .rw--finale .rw-art { height: 96%; align-self: start; }
.rw--tree .rw-hero, .rw--finale .rw-hero { margin-bottom: 0; }
.rw-from { font: 600 17px/1.2 var(--f-hand); color: #e7d3a6; letter-spacing: 0; }
.rw--finale .rw-rib { filter: hue-rotate(38deg) saturate(1.15) brightness(1.05) contrast(1.05); }
.rw--finale .rw-ribbon h2 { color: #fff6dc; text-shadow: 0 2px 0 rgba(70,35,0,.75), 0 0 16px rgba(255,210,120,.45); }
.rw-tag { font-size: 14px; }

/* ── круг ревью 3 ── */
.rw-ribbon { width: min(620px, calc(100vw - 40px)); }
@media (min-width: 700px) { .rw-ribbon h2 { white-space: nowrap; } }
.rw--t-light .rw-ribbon { width: min(500px, calc(100vw - 64px)); }
.rw-sub { padding: 0 10px; }
.rw-from { font-size: 21px; }
.rw-plinth { width: 92%; height: 92%; }
.rw-plaque { top: 23%; }
/* 2–4 сундука: за главным — ещё один-два в тени */
.rw-stack { position: relative; width: 100%; height: 100%; opacity: 0; }
.rw.is-in .rw-stack { animation: rw-drop .72s .1s cubic-bezier(.2,1.5,.4,1) both, rw-bob 3.6s 1.1s ease-in-out infinite; }
.rw.is-still .rw-stack { animation: none; opacity: 1; }
.rw-stack .rw-art { position: absolute; inset: 0; opacity: 1 !important; animation: none !important; }
.rw-stack .rw-back { transform: translate(-24%, -10%) scale(.7); filter: brightness(.55) saturate(.8) drop-shadow(0 10px 16px rgba(0,0,0,.6)); }
.rw-stack .rw-back.b1 { transform: translate(24%, -12%) scale(.66); }
.rw-stack.n2 .rw-back.b0 { transform: translate(22%, -12%) scale(.7); }
.rw-stack > .rw-art:last-child { transform: translateY(6%) scale(.92); }
.rw-count { right: -3%; }
.rw-stack .rw-back { transform: translate(-17%, -11%) scale(.64); }
.rw-stack .rw-back.b1, .rw-stack.n2 .rw-back.b0 { transform: translate(17%, -13%) scale(.6); }
.rw.is-qa .rw-veil { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* медальон в плашке-чипе: ёлка текущей стадии на зелёном свечении в золотом ободке */
.rw-med { position: relative; flex: none; display: grid; place-items: end center; width: 42px; height: 42px; margin: -4px 0 -4px -2px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #f7e9a8 0, #9fd27a 22%, #3f7a35 52%, #16301a 100%);
  border: 2px solid #e2bf62; box-shadow: 0 0 0 2px rgba(20,12,4,.55), 0 0 14px rgba(240,200,100,.45), inset 0 -6px 10px rgba(0,0,0,.45), inset 0 2px 4px rgba(255,250,210,.5); }
.rw-med::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.45), transparent 34%); pointer-events: none; }
.rw-chip .rw-med img { width: 86%; height: 92%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
