/* ═════════ «Буря над Кузней» — общий рейд (#/raid) ═════════
   Одноэкранка: арена слева (на телефоне сверху), колонка действий справа (снизу); прокрутка — только внутри разделов. */
.view--raid { display: flex; flex-direction: column; padding-top: var(--fit-gap, 12px); }
.rd { flex: 1 1 auto; min-height: 0; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) clamp(330px, 29vw, 420px); }

/* ── арена ── */
.rd-arena {
  position: relative; min-height: 0; overflow: hidden; border-radius: 8px; isolation: isolate;
  background: #0f141b; box-shadow: var(--shadow-lg); border: 2px solid #2b2218;
  display: flex; flex-direction: column; justify-content: space-between;
}
.rd-art { position: absolute; inset: 0; z-index: -1; }
.rd-art picture, .rd-art img { display: block; width: 100%; height: 100%; }
/* у отпечатка кремовая кромка — режем её лёгким увеличением */
.rd-art img { object-fit: cover; object-position: 50% 60%; }
.rd-art-veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(12, 16, 22, .72) 0, rgba(12, 16, 22, 0) 26%, rgba(12, 16, 22, 0) 58%, rgba(12, 16, 22, .82) 100%); }
/* ярость бури: чем больше здоровья, тем холоднее и темнее двор */
/* под метелью двор холоднее и темнее; проявляясь, он теплеет */
.rd-art img { filter: saturate(calc(.7 + (1 - var(--fury)) * .4)) brightness(calc(.82 + (1 - var(--fury)) * .18)); transition: filter 1.2s ease; }
.rd-art[data-k="pending"] img { visibility: hidden; }
.rd-art[data-k="lost"] img { filter: saturate(.55) brightness(.7); }
/* слой метели (canvas, js/raid/blizzard.js) — над картинкой, под полем залпа */
.rd-snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.rd-head { position: relative; z-index: 3; padding: 14px 18px 12px; color: var(--cream-on-night);
  background: linear-gradient(180deg, rgba(12, 16, 22, .94) 0, rgba(12, 16, 22, .86) 78%, rgba(12, 16, 22, 0)); padding-bottom: 22px; }
.rd-title { display: flex; align-items: center; gap: 12px; }
.rd-title b { display: block; font: 800 clamp(20px, 2.1vw, 28px)/1 var(--f-display); letter-spacing: .01em; }
.rd-title small { display: block; margin-top: 4px; font: 500 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.rd-hp { margin-left: auto; font: 600 clamp(18px, 1.7vw, 24px)/1 var(--f-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-hp small { font-size: .62em; color: var(--muted-on-night); }
.rd-ic { display: inline-block; width: 40px; height: 40px; flex: none; border-radius: 8px; overflow: hidden; background: #14100d; }
.rd-ic img { width: 100%; height: 100%; display: block; }
.rd-ic.is-missing { display: inline-grid; place-items: center; font-size: 20px; }
.rd-ic--storm { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(242, 146, 51, .45); }
.rd-ic--sm { width: 20px; height: 20px; border-radius: 4px; vertical-align: -5px; }
.rd-ic--xs { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; margin-right: 4px; background: transparent; }

.rd-bar { position: relative; height: 18px; margin-top: 12px; border-radius: 4px; overflow: hidden;
  background: #1c1410; border: 2px solid #050403; box-shadow: 0 0 0 1px rgba(217, 174, 79, .5), inset 0 2px 6px rgba(0,0,0,.6); }
.rd-bar-fill, .rd-bar-ghost { position: absolute; inset: 0 auto 0 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.rd-bar-fill { z-index: 2; background: linear-gradient(180deg, #ff9a4a, #c9431b 55%, #8c2a0c); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.rd-bar-fill::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(0,0,0,.14) 0 6px, transparent 6px 14px); }
.rd-bar-ghost { z-index: 1; background: #f1e6cf; opacity: .5; transition-delay: .4s; transition-duration: 1.2s; }
.rd-notch { position: absolute; z-index: 3; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: rgba(5, 4, 3, .85); }
.rd-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font: 500 13px/1.2 var(--f-label); letter-spacing: .04em; color: var(--muted-on-night); }
.rd-sub b { color: var(--cream-on-night); font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-left { margin-left: auto; }

/* лента ударов соседей */
.rd-feed { position: absolute; z-index: 3; left: 14px; bottom: 112px; margin: 0; padding: 0; list-style: none; max-width: min(48%, 360px); pointer-events: none; }
.rd-feed li { width: fit-content; margin-top: 4px; font: 400 12.5px/1.3 var(--f-body); color: rgba(241, 230, 207, .92); padding: 3px 9px; border-radius: 4px; background: rgba(12, 16, 22, .78); animation: rd-feed .5s ease both; }
.rd-feed li b { font: 600 12px/1 var(--f-label); letter-spacing: .03em; color: var(--frost); }
.rd-feed li span { color: var(--ember); font-variant-numeric: tabular-nums; }
.rd-feed li:nth-child(3) { opacity: .7; } .rd-feed li:nth-child(4) { opacity: .45; }
@keyframes rd-feed { from { opacity: 0; transform: translateY(6px); } }

/* ── поле залпа ── */
.rv-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rv-field.is-live { pointer-events: auto; cursor: crosshair; }
.rv-hit { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; padding: 0; cursor: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rv-field:not(.is-live) .rv-hit { visibility: hidden; }
/* StoryForge: пульс прозрачностью — рамка во всю арену, перерисовка тени каждый кадр слишком дорогая */
.rv-field.is-live::before { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(242, 146, 51, .9), inset 0 0 90px rgba(242, 146, 51, .35); border-radius: 6px; opacity: .6; animation: rv-pulse 1s ease-in-out infinite alternate; }
@keyframes rv-pulse { to { opacity: 1; } }
.rv-mob { position: absolute; z-index: 2; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; margin: calc(clamp(64px, 8vw, 96px) / -2) 0 0 calc(clamp(64px, 8vw, 96px) / -2);
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; touch-action: manipulation; }
/* вихрь рисует слой метели; кнопка — только мишень (и кольцо фокуса для клавиатуры) */
.rv-mob:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.rv-mob--core { width: clamp(76px, 9vw, 116px); margin: calc(clamp(76px, 9vw, 116px) / -2) 0 0 calc(clamp(76px, 9vw, 116px) / -2); }
.rv-mob.is-hit, .rv-mob.is-gone { pointer-events: none; }
.rv-num { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -50%); font: 700 20px/1 var(--f-label); color: #fff6e6; text-shadow: 0 2px 0 #3a1406, 0 0 8px rgba(0,0,0,.7); animation: rv-num .9s ease-out forwards; }
.rv-num--shadow { font-size: 26px; color: var(--ember); }
.rv-num--core { font-size: 36px; color: #ffd36a; }
@keyframes rv-num { to { transform: translate(-50%, -160%); opacity: 0; } }
.rv-fireworks { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ── низ арены: залп ── */
.rd-cta { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 18px 16px; text-align: center; pointer-events: none; }
.rd-cta > * { pointer-events: auto; }
.rd-cta.is-volley { pointer-events: none; }
.rd-cta.is-volley > * { pointer-events: none; }
.rd-cta-note { max-width: 56ch; font: 400 14px/1.4 var(--f-body); color: rgba(241, 230, 207, .92); padding: 4px 10px; border-radius: 4px; background: rgba(12, 16, 22, .72); }
.rd-fire { min-width: 220px; font-size: 22px; letter-spacing: .1em; padding-inline: 1.4em; animation: rd-ready 1.6s ease-in-out infinite; }
.rd-fire .rd-ic { width: 32px; height: 32px; border-radius: 50%; background: transparent; }
@keyframes rd-ready { 50% { box-shadow: 0 3px 0 var(--bd), 0 0 0 6px rgba(217, 174, 79, .25), 0 0 34px rgba(242, 146, 51, .55); } }
.rd-cool { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px; background: rgba(12, 16, 22, .78); border: 1px solid rgba(241, 230, 207, .18);
  font: 500 14px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-night); }
.rd-cool b { color: var(--cream-on-night); font-weight: 600; }
.rd-cool-left { font: 600 22px/1 var(--f-label); color: var(--ember); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.rv-hud { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px; width: min(560px, 100%); }
.rv-time { position: relative; height: 10px; border-radius: 5px; background: rgba(0,0,0,.55); overflow: hidden; border: 1px solid rgba(241,230,207,.25); }
.rv-time i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #9fcfe8, #f1e6cf); }
.rv-combo { font: 600 16px/1 var(--f-label); color: var(--ember); min-width: 7em; text-align: right; text-shadow: 0 1px 2px #000; }
.rv-dmg { font: 700 28px/1 var(--f-label); color: #fff6e6; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #3a1406; min-width: 4.5em; text-align: right; }
.rd-end { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 62ch; padding: 14px 18px; border-radius: 8px; background: rgba(12, 16, 22, .8); border: 1px solid rgba(241,230,207,.16); }
.rd-end p { font: 400 15px/1.45 var(--f-body); color: var(--cream-on-night); }
.rd-got { font: 600 15px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); }

/* ── колонка действий ── */
.rd-side { min-height: 0; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.rd-side-in { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rd-seg { display: flex; gap: 2px; padding: 10px 10px 0; border-bottom: 1px solid rgba(29, 25, 20, .18); flex: none; }
.rd-seg-b { position: relative; flex: 1; padding: 10px 6px 11px; border: 0; background: none; border-radius: 5px 5px 0 0; cursor: pointer;
  font: 600 14px/1 var(--f-label); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.rd-seg-b.is-on { color: var(--ink); background: rgba(29, 25, 20, .07); box-shadow: inset 0 -3px 0 var(--forge); }
.rd-dot { position: absolute; top: 7px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--forge); }
.rd-panes { flex: 1 1 auto; min-height: 0; display: flex; }
.rd-pane { flex: 1 1 0; min-width: 0; min-height: 0; display: none; }
.rd-pane[data-on] { display: flex; }
.rd-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }

.rd-me { display: flex; gap: 12px; align-items: stretch; padding: 12px 14px; border-radius: 6px; background: #1d1914; color: var(--cream-on-night); }
.rd-me-main { display: flex; flex-direction: column; gap: 3px; }
.rd-me-main small { font: 500 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-night); }
.rd-me-main b { font: 700 30px/1 var(--f-label); font-variant-numeric: tabular-nums; color: #fff6e6; }
.rd-me-rank { font: 500 13px/1 var(--f-label); letter-spacing: .05em; color: var(--frost); }
.rd-me-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; text-align: right; }
.rd-me-title { font: 600 14px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.rd-me-side small { font: 400 12px/1.2 var(--f-body); color: var(--muted-on-night); }
.rd-sparks { display: inline-flex; align-items: center; gap: 5px; font: 500 13px/1 var(--f-label); white-space: nowrap; }
.rd-sparks b { font-size: 16px; font-weight: 700; color: var(--gold-2); }
.rd-lead .rd-sparks b { color: var(--gold); }

.rd-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px; border-radius: 6px; border: 1px solid rgba(29, 25, 20, .16); background: rgba(255, 250, 238, .5); }
.rd-card > .rd-ic { width: 44px; height: 44px; }
.rd-card b { font: 600 15px/1.2 var(--f-label); letter-spacing: .04em; text-transform: uppercase; }
.rd-card p { margin-top: 4px; font: 400 13.5px/1.4 var(--f-body); color: var(--ink-2); }
.rd-card > .btn, .rd-card > .rd-btns { grid-column: 2; justify-self: start; margin-top: 6px; }
.rd-card--moves { border-color: rgba(184, 138, 44, .55); background: linear-gradient(180deg, rgba(217, 174, 79, .16), rgba(255, 250, 238, .5)); }
.rd-btns { display: flex; gap: 8px; }
.rd-stakes, .rd-lead { font: 400 13.5px/1.45 var(--f-body); color: var(--ink-2); }
.rd-stakes { padding: 10px 12px; border-left: 3px solid var(--forge); background: rgba(201, 67, 27, .06); }
/* Награды стоят на одном помосте, верхняя ступень — победитель. */
.rd-prize { padding: 14px; border: 1px solid #ae9165; border-radius: 5px; background: #f6edd847; }
.rd-prize h3 { margin: 0; text-align: center; font: 700 20px/1.2 var(--f-display); }
.rd-prize-l, .rd-ups { list-style: none; padding: 0; margin: 0; }
.rd-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; margin-top: 10px; gap: 2px; }
.rd-podium li { --metal: #614332; --rim: #c69a71; position: relative; isolation: isolate; display: grid; justify-items: center; padding: 0 3px 7px; gap: 3px; color: #fff4df; }
.rd-podium li::before { content: ''; position: absolute; inset: 36px 0 0; z-index: -1; background: linear-gradient(var(--metal),#2e2722); border-top: 4px solid var(--rim); box-shadow: inset 0 -2px #261f1a; }
.rd-podium img { width: 61px; height: 50px; object-fit: contain; filter: drop-shadow(1px 3px 2px #23180755); }
.rd-podium .rd-place-gold { --metal: #745124; --rim: #e3b454; padding-bottom: 20px; }
.rd-podium .rd-place-gold img { width: 82px; height: 68px; }
.rd-podium .rd-place-gold::before { top: 53px; }
.rd-podium .rd-place-silver { --metal: #475563; --rim: #acbac0; padding-bottom: 13px; }
.rd-podium span, .rd-runners span { font: 500 13px/1.2 var(--f-label); }
.rd-podium b { font: 700 24px/1 var(--f-display); }
.rd-prize-l .is-me span::before { content: '◆ '; font-size: 9px; color: #ffcb6b; }
.rd-runners { margin: 7px 0; }
.rd-runners li { padding: 5px 8px; display: flex; justify-content: space-between; border-bottom: 1px solid #3427132c; align-items: center; }
.rd-runners li.is-me { background: #493520; color: #fff3da; }
.rd-runners b { font: 600 15px/1 var(--f-label); }
.rd-prize p { margin: 0; color: var(--ink-2); font: 400 13px/1.4 var(--f-body); }

.rd-card { grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; }
.rd-card > .rd-ic { grid-column: 1; grid-row: 1 / span 2; }
.rd-card > b { grid-area: 1 / 2; }
.rd-card > .btn { grid-row: 2; margin: 0; }
.rd-help { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; align-self: start; pointer-events: none; }
.rd-help summary { width: 30px; height: 30px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; font: 700 16px/1 var(--f-body); color: #644c30; cursor: pointer; pointer-events: auto; }
.rd-help summary::-webkit-details-marker { display: none; }
.rd-help summary:hover, .rd-help[open] summary { background: #765a3122; }
.rd-card:has(details[open]) > .rd-ic { grid-row: 1; }
.rd-card:has(details[open]) > .btn { grid-row: 3; }
.rd-card .rd-help[open] { grid-row: 1 / 3; }
.rd-help[open] p { pointer-events: auto; margin: 14px 0 5px; padding: 8px 10px; border-left: 2px solid #957139; background: #fff7e5aa; font: 400 13px/1.45 var(--f-body); color: #352b20; }
.rd-ember { display: inline-block; width: 15px; height: 18px; flex: none; vertical-align: -.15em; background: linear-gradient(112deg,#ffdf83 0 35%,#ed9530 36% 61%,#a44213 62%); clip-path: polygon(65% 0,61% 37%,86% 22%,97% 57%,86% 83%,52% 100%,14% 83%,2% 57%,25% 23%,29% 48%); }
.rd-wallet { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; column-gap: 8px; padding: 12px 15px; border-radius: 4px; border-bottom: 3px solid #ab7836; background: linear-gradient(110deg,#473222,#241c19 78%); color: #ffefd2; }
.rd-wallet > .rd-ember { width: 28px; height: 36px; grid-area: 1/1; }
.rd-wallet > div { grid-area: 1/2; display: flex; flex-direction: column; }
.rd-wallet small { font: 500 12px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .08em; color: #e9cfa5; }
.rd-wallet b { font: 700 27px/1.15 var(--f-display); }
.rd-wallet summary { color: #f1d7ac; }
.rd-wallet:has([open]) > .rd-help { grid-row: 1 / 3; }
.rd-wallet .rd-help[open] p { margin-top: 22px; background: #32251e; color: #f9ebd4; }
.rd-ups { border-block: 1px solid #927753; }
.rd-up { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 3px; }
.rd-up + .rd-up { border-top: 1px solid #46301736; }
.rd-up > .rd-ic { width: 46px; height: 46px; border-radius: 50%; }
.rd-up-t { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.rd-up-t b { font: 700 16px/1.15 var(--f-display); }
.rd-up-t small { font: 500 11px/1.2 var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.rd-up-fx { font: 500 13px/1.35 var(--f-label); }
.rd-up-line { display: block; }
.rd-up-fx em { color: #8f3319; font-style: normal; }
.rd-up .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 55px; padding-inline: 7px; }
.rd-lead { display: flex; justify-content: space-between; gap: 10px; }

.rd-h { font: 700 18px/1 var(--f-display); }
.rd-h small { font: 500 12px/1 var(--f-label); letter-spacing: .06em; color: var(--ink-3); }
.rd-board { list-style: none; margin: 0; padding: 0; }
.rd-board li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 8px; border-bottom: 1px dashed rgba(29, 25, 20, .14); font: 500 14px/1.2 var(--f-label); }
.rd-board li:nth-child(-n+3) .rd-pl { color: var(--forge); font-weight: 700; }
.rd-pl { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.rd-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.rd-dmg { font-variant-numeric: tabular-nums; font-weight: 600; }
.rd-board li.is-me { background: #1d1914; color: var(--cream-on-night); border-radius: 4px; border-bottom-color: transparent; }
.rd-board li.is-me .rd-pl { color: var(--ember); }
.rd-gap { text-align: center; color: var(--ink-3); line-height: .6; }
.rd-contest { padding-top: 6px; border-top: 1px solid rgba(29, 25, 20, .14); font-style: italic; }

/* ── телефон и узкие окна: арена сверху, колонка снизу ── */
@media (max-width: 1279px) { .rd-feed { display: none; } }
@media (max-width: 1023px) {
  .rd { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.08fr) minmax(0, 1fr); gap: 10px; }
  .rd-feed { display: none; }
}
@media (max-width: 899px) {
  .rd-head { padding: 10px 12px 8px; }
  .rd-ic--storm { width: 36px; height: 36px; }
  .rd-title b { font-size: 19px; }
  .rd-hp { font-size: 16px; }
  .rd-bar { height: 14px; margin-top: 8px; }
  .rd-sub { font-size: 12px; gap: 2px 12px; }
  .rd-cta { padding: 8px 10px 10px; gap: 6px; }
  .rd-cta-note { font-size: 12.5px; }
  .rd-fire { min-width: 180px; font-size: 19px; min-height: 48px; }
  .rd-cool { padding: 8px 14px; font-size: 12px; gap: 10px; }
  .rd-cool-left { font-size: 18px; }
  .rv-dmg { font-size: 22px; }
  .rd-scroll { padding: 10px 12px 12px; gap: 10px; }
  .rd-seg-b { font-size: 13px; padding: 9px 4px 10px; }
  .rd-me-main b { font-size: 24px; }
  .rd-end { padding: 10px 12px; } .rd-end p { font-size: 13.5px; }
}
/* на телефоне двор и так невелик: подсказки под кнопкой прячем, кнопку — компактнее */
@media (max-width: 600px) {
  .rd-cta-note.is-tip { display: none; }
  .rd-fire { min-width: 150px; min-height: 44px; font-size: 18px; }
  /* на время залпа двор занимает больше экрана */
  .rd:has(.rd-cta.is-volley) { grid-template-rows: minmax(44vh, 1.6fr) minmax(0, 1fr); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .rd { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: none; }
  .rd-cta-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-fire, .rv-field.is-live::before { animation: none; }
}

/* ── табличка бури в верхней строке ── */
.raidpill { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(242, 146, 51, .45); background: rgba(14, 19, 27, .72); color: var(--cream-on-night); font: 500 12px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.raidpill + .nyclock { margin-left: 0; }
.raidpill img { width: 24px; height: 24px; border-radius: 50%; }
.raidpill b { font: 600 15px/1 var(--f-label); letter-spacing: 0; color: var(--ember); font-variant-numeric: tabular-nums; }
.raidpill i { width: 44px; height: 5px; border-radius: 3px; background: rgba(241,230,207,.16); overflow: hidden; position: relative; font-style: normal; }
.raidpill i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--forge-2); }
.raidpill.is-ready { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217, 174, 79, .18); }
.raidpill.is-ready::after { content: 'залп'; margin-left: 2px; padding: 3px 6px; border-radius: 4px; background: var(--gold-2); color: #1b1408; font-weight: 600; letter-spacing: .06em; }
.raidpill[aria-current="page"] { border-color: var(--ember); background: rgba(201, 67, 27, .28); }
/* на средних экранах верхняя строка забита вкладками: табличка сжимается до значка и процента */
@media (min-width: 900px) and (max-width: 1239px) {
  .raidpill { gap: 6px; padding-right: 10px; }
  .raidpill .raidpill-l, .raidpill i { display: none; }
  .raidpill.is-ready::after { content: ''; width: 8px; height: 8px; padding: 0; border-radius: 50%; }
}
@media (max-width: 899px) {
  .raidpill { height: 30px; padding-right: 10px; font-size: 10px; letter-spacing: .06em; }
  .raidpill i { display: none; }
}
@media (max-width: 420px) { .raidpill .raidpill-l { display: none; } }

/* ── блок рейда в карточке дня ── */
.dc-raid { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; border-radius: 6px; background: #1d1914 url(../assets/raid/arena-calm.webp) center 40% / cover; position: relative; overflow: hidden; color: var(--cream-on-night); }
.dc-raid::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 19, 27, .94) 30%, rgba(14, 19, 27, .6)); }
.dc-raid > * { position: relative; }
.dc-raid .rd-ic { width: 52px; height: 52px; border-radius: 50%; grid-column: 1; grid-row: 1 / span 4; align-self: start; }
.dc-raid > b, .dc-raid > p { grid-column: 2; }
.dc-raid b { font: 600 16px/1.15 var(--f-label); letter-spacing: .05em; text-transform: uppercase; }
.dc-raid p { font: 400 13.5px/1.4 var(--f-body); color: rgba(241, 230, 207, .88); }
.dc-raid .rd-bar { height: 10px; margin: 6px 0 2px; grid-column: 2; }
.dc-raid .btn { grid-column: 2; justify-self: start; margin-top: 6px; }

/* ── секретный конкурс: метрика рейда с повышенным весом ── */
.my-stats li.is-heavy > span:first-child { font-weight: 600; }
.ms-weight { margin-left: 6px; padding: 1px 6px; font: 700 11px/1.3 var(--f-label); letter-spacing: .04em; color: #fff6e6; background: var(--forge); border-color: var(--forge); vertical-align: 1px; }

/* итог залпа в арене */
.rd-result { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 16px; border-radius: 8px; background: rgba(12, 16, 22, .86); border: 1px solid rgba(242, 146, 51, .5);
  font: 500 13px/1.2 var(--f-label); letter-spacing: .04em; color: var(--cream-on-night); animation: rd-result .4s ease both; }
.rd-result b { font: 600 26px/1 var(--f-label); color: var(--ember); font-variant-numeric: tabular-nums; }
@keyframes rd-result { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.rd-cool:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
/* цифры урона заметнее поверх арта */
.rv-num { text-shadow: 0 0 3px #0c1016, 0 0 6px #0c1016, 0 2px 0 #0c1016; -webkit-text-stroke: 1px #0c1016; paint-order: stroke fill; }
/* пальцам — кнопки не меньше 44 px */
@media (pointer: coarse) {
  .rd-side .btn, .rd-seg-b { min-height: 44px; }
  .rd-btns .btn { min-width: 64px; }
}
@media (max-width: 899px) {
  .rd-sub { padding: 4px 8px; border-radius: 4px; background: rgba(12, 16, 22, .72); width: fit-content; }
}
.rd-sub-m { display: none; }
@media (max-width: 899px) { .rd-sub-m { display: block; flex-basis: 100%; color: var(--gold-2); } }
.rv-sec { font: 600 16px/1 var(--f-label); color: var(--cream-on-night); font-variant-numeric: tabular-nums; min-width: 2.6em; text-shadow: 0 1px 2px #000; }

.rd-fracture { font: 600 13px/1.35 var(--f-label); }
.rd-fracture summary { cursor: pointer; }
.rd-fracture small { display: block; margin-top: 4px; text-transform: none; }
