/* =====================================================================
   Раздел «Арена» (префикс ar-): общий банк, колесо, ставки, честность,
   история победителей и вкладка админки.
   ===================================================================== */

/* ---------- Шапка ---------- */
.ar-head { display: flex; align-items: center; gap: 10px; margin: 8px 2px 14px; }
.ar-head-ic { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.ar-head-ic::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 217, 245, 0.34) 0%, rgba(139, 92, 246, 0.16) 45%, transparent 70%);
  animation: glow 3.2s ease-in-out infinite;
}
.ar-head-ic img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); animation: floatyRot 4.4s ease-in-out infinite; }
.ar-head-t { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.ar-head-t h1 { font: 800 22px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.ar-round { height: 24px; padding: 0 9px 0 8px; font-variant-numeric: tabular-nums; animation: popIn 0.5s var(--spring) both; }
.ar-round .live-dot { width: 6px; height: 6px; }
.ar-head .icon-btn:active { transform: scale(0.86); }

/* ---------- Сцена: банк, статус, фазы ---------- */
.ar-stage { padding: 16px 14px 18px; overflow: hidden; isolation: isolate; }
.ar-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(70% 52% at 50% 66%, rgba(124, 58, 237, 0.3), transparent 72%),
    radial-gradient(42% 30% at 92% 0%, rgba(47, 217, 245, 0.16), transparent 70%),
    radial-gradient(36% 28% at 0% 100%, rgba(225, 78, 202, 0.14), transparent 70%);
}
.ar-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ar-bank { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ar-bank-num { display: flex; align-items: center; gap: 8px; font: 800 clamp(24px, 8vw, 31px)/1 var(--font-d); font-variant-numeric: tabular-nums; }
.ar-bank-num .st { width: 1em; height: 1em; filter: drop-shadow(0 2px 8px rgba(255, 170, 30, 0.55)); }
.ar-bank-num b {
  min-width: 0;
  white-space: nowrap;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ar-top-r { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; }
.ar-pill {
  --pc: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font: 800 11.5px/1 var(--font);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text);
  background: rgba(8, 5, 20, 0.55);
  border: 1px solid var(--stroke-2);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.ar-pill i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); }
.ar-pill.w { --pc: var(--gold); border-color: rgba(255, 197, 61, 0.32); }
.ar-pill.w i { animation: pulse 1.6s ease-in-out infinite; }
.ar-pill.c { --pc: var(--mint); border-color: rgba(61, 245, 194, 0.38); background: rgba(61, 245, 194, 0.08); }
.ar-pill.c i { animation: ping 1.8s infinite; }
.ar-pill.s { --pc: var(--violet-2); border-color: rgba(167, 139, 250, 0.5); background: rgba(139, 92, 246, 0.18); }
.ar-pill.s i { animation: pulse 0.6s ease-in-out infinite; }
.ar-pill.r { --pc: var(--gold); border-color: rgba(255, 197, 61, 0.45); background: rgba(255, 197, 61, 0.1); }
.ar-pill.x { --pc: var(--red); border-color: rgba(255, 77, 109, 0.32); }
.ar-count { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ar-count .ico svg { width: 15px; height: 15px; }

.ar-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ar-ph { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ar-ph-l {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font: 800 10.5px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--t) var(--ease);
}
.ar-ph-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: background var(--t), box-shadow var(--t); }
.ar-ph-bar { position: relative; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.ar-ph-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--grad-primary); transform: scaleX(0); transform-origin: left; }
.ar-ph.on .ar-ph-l { color: #fff; }
.ar-ph.on .ar-ph-dot { background: var(--mint); animation: ping 1.8s infinite; }
.ar-ph.on .ar-ph-bar i { box-shadow: 0 0 10px rgba(167, 139, 250, 0.7); }
.ar-ph.done .ar-ph-l { color: var(--text-2); }
.ar-ph.done .ar-ph-dot { background: var(--violet-2); }
.ar-ph.done .ar-ph-bar i { background: rgba(167, 139, 250, 0.5); }
/* Ждём игроков: бегущий блик вместо прогресса */
.ar-ph.wait .ar-ph-bar i {
  transform: none !important;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.85), transparent) no-repeat;
  background-size: 45% 100%;
  animation: arSweep 1.6s var(--ease) infinite;
}

/* ---------- Колесо ---------- */
.ar-wheel-box { position: relative; width: min(100%, 320px); margin: 22px auto 0; }
.ar-wheel { position: relative; width: 100%; aspect-ratio: 1; }
.ar-aura {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--wc-rgb, 139, 92, 246), 0.42), rgba(var(--wc-rgb, 139, 92, 246), 0.12) 58%, transparent 74%);
  animation: glow 3.2s ease-in-out infinite;
}
.ar-bezel, .ar-rot, .ar-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-svg { overflow: visible; }
.ar-bezel-ring { fill: rgba(9, 5, 24, 0.72); stroke: rgba(206, 186, 255, 0.3); stroke-width: 1.4px; }
.ar-tk { stroke: rgba(206, 186, 255, 0.26); stroke-width: 0.8px; stroke-linecap: round; }
.ar-tk.big { stroke: rgba(255, 228, 160, 0.6); stroke-width: 1.3px; }
.ar-rot { will-change: transform; }
.ar-track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 24px; }
.ar-seg {
  fill: none;
  stroke-width: 24px;
  transition: stroke-dasharray 0.8s var(--ease), stroke-dashoffset 0.8s var(--ease), opacity 0.45s var(--ease), stroke-width 0.45s var(--spring);
}
.ar-halo { fill: none; stroke-width: 36px; opacity: 0; transition: opacity 0.5s var(--ease); }
.ar-me {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2px;
  stroke-linecap: round;
  opacity: 0;
  transition: stroke-dasharray 0.8s var(--ease), stroke-dashoffset 0.8s var(--ease), opacity 0.4s var(--ease);
}
.ar-me.on { opacity: 0.9; }
.ar-studs circle { fill: rgba(255, 255, 255, 0.4); }
.is-result .ar-seg:not(.win) { opacity: 0.22; }
.is-result .ar-seg.win { stroke-width: 29px; }
.is-result .ar-halo { animation: arHalo 1.6s ease-in-out infinite; }
.is-result .ar-me { opacity: 0.35; }

/* Ожидание: «радар» бежит по пустой дорожке */
.ar-scan {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(167, 139, 250, 0.55) 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 73.6%, #000 74%);
  mask: radial-gradient(closest-side, transparent 73.6%, #000 74%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  animation: spin 3.4s linear infinite;
  animation-play-state: paused;
}
.is-idle .ar-scan { opacity: 1; animation-play-state: running; }
.is-closed .ar-scan { display: none; }

/* Центр колеса */
.ar-hub {
  position: absolute;
  inset: 23%;
  z-index: 2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at 50% 28%, rgba(84, 54, 166, 0.95), rgba(24, 14, 52, 0.97) 72%);
  border: 1px solid rgba(206, 186, 255, 0.24);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.09), inset 0 -12px 26px rgba(0, 0, 0, 0.38), 0 12px 32px rgba(0, 0, 0, 0.5);
}
.ar-hub .spinner { margin: 0; }
.ar-hub-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 100%; padding: 6px 10px; animation: popIn 0.5s var(--spring) both; }
.ar-hub-in > b { font: 800 12.5px/1.15 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.ar-hub-in small { font-size: 10.5px; font-weight: 700; line-height: 1.25; color: var(--text-3); }
.ar-hub-fx { width: 42px; height: 42px; margin-bottom: 2px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); animation: floaty 3.4s ease-in-out infinite; }
.ar-hub-in > .ar-hub-num {
  font: 800 42px/1 var(--font-d);
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ar-hub-in > .ar-hub-num.urgent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.ar-hub-who { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; margin-top: 2px; }
.ar-hub-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--hc, #fff); box-shadow: 0 0 10px var(--hc, #fff); transition: background 0.12s, box-shadow 0.12s; }
.ar-hub-in .ar-hub-name { max-width: 104px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 14px/1.15 var(--font-d); text-transform: none; }
.m-result small { color: var(--gold); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10px; }
.m-result .amt { margin-top: 2px; font: 800 18px/1 var(--font-d); }
.m-result .amt .st { width: 18px; height: 18px; }
.m-result .ar-hub-fx { animation: winPulse 1.4s ease-in-out infinite; }

/* Указатель сверху */
.ar-pointer {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 3;
  width: 30px;
  height: 36px;
  margin-left: -15px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 186, 48, 0.5));
}
.ar-pointer svg { display: block; width: 100%; height: 100%; transform-origin: 50% 34%; }
.is-spinning .ar-pointer { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(255, 186, 48, 0.8)); }

/* Арена закрыта */
.ar-closed {
  position: absolute;
  inset: -10px;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  border-radius: 28px;
  background: rgba(10, 6, 26, 0.64);
  border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow: var(--hl);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--spring), visibility 0.45s;
}
.ar-wheel-box.is-closed .ar-closed { opacity: 1; visibility: visible; transform: none; }
.ar-closed-art { width: 64px; height: 64px; margin-bottom: 4px; }
.ar-closed-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); animation: floatyRot 4s ease-in-out infinite; }
.ar-closed-t { font: 800 18px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.ar-closed-s { font-weight: 800; color: var(--text); }
.ar-closed-h { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ar-closed-h:empty { display: none; }
.ar-closed-in {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-top: 6px;
  padding: 0 13px;
  border-radius: 999px;
  font: 800 12.5px/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: #d9ccff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.ar-closed-in:empty { display: none; }

/* ---------- Панель ставки ---------- */
.ar-betbox { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ar-bet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-bal { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.ar-bal .st { width: 14px; height: 14px; }
.ar-bal b { color: var(--text); font-variant-numeric: tabular-nums; }
.ar-mine {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255, 197, 61, 0.07);
  border: 1px solid rgba(255, 197, 61, 0.24);
  animation: fadeUp 0.4s var(--ease) both;
}
.ar-mine .ico { color: var(--gold); }
.ar-mine .ico svg { width: 16px; height: 16px; }
.ar-mine .amt .st { width: 14px; height: 14px; }
.ar-mine-ch { margin-left: auto; color: var(--text); font-weight: 800; }
.ar-bet .bet-quick { display: none; }
.ar-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ar-chips .chip { height: 34px; padding: 0 4px; }
.ar-chips .ar-max { color: var(--mint); border-color: rgba(61, 245, 194, 0.4); background: rgba(61, 245, 194, 0.08); }
.ar-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--well);
  border: 1px dashed var(--stroke-2);
  transition: opacity var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ar-pv { display: inline-flex; align-items: center; gap: 4px; flex: none; font-variant-numeric: tabular-nums; }
.ar-pv .ico svg { width: 14px; height: 14px; opacity: 0.55; }
.ar-pv-b { font-size: 14px; color: var(--text); transition: color var(--t) var(--ease); }
.ar-preview.up { border-color: rgba(61, 245, 194, 0.35); }
.ar-preview.up .ar-pv-b { color: var(--mint); text-shadow: 0 0 12px rgba(61, 245, 194, 0.45); }
.ar-preview.off { opacity: 0.5; }
.ar-go-amt { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.16); font-variant-numeric: tabular-nums; }
.ar-go-amt .st { width: 17px; height: 17px; }
.ar-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.ar-foot span { display: inline-flex; align-items: center; gap: 4px; }
.ar-foot .st { width: 13px; height: 13px; }
.ar-foot b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ar-fly {
  position: absolute;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  font: 800 15px/1 var(--font-d);
  color: #3b2200;
  background: var(--grad-gold);
  box-shadow: 0 8px 22px rgba(255, 159, 28, 0.45);
  animation: arFly 1s var(--ease) forwards;
}
.ar-fly .st { width: 16px; height: 16px; filter: none; }

/* ---------- Участники и история ---------- */
.ar-list { padding: 4px 12px; }
.ar-list > .skel { margin: 8px 0; }
.ar-list .empty { padding: 22px 12px; }
.ar-list .empty img { width: 56px; height: 56px; }
.ar-pl {
  --pc: #a78bfa;
  --pc-rgb: 167, 139, 250;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--stroke);
  transition: opacity 0.4s var(--ease), background var(--t);
}
.ar-pl:last-child { border-bottom: 0; }
.ar-pl.ar-new { animation: slideIn 0.5s var(--spring) both; }
.ar-pl-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px rgba(var(--pc-rgb), 0.18), 0 0 12px rgba(var(--pc-rgb), 0.7); }
.ar-pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-pl-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ar-pl-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 800; }
.ar-you {
  display: inline-flex;
  align-items: center;
  height: 18px;
  flex: none;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-primary);
}
.ar-pl-top .amt { margin-left: auto; font-size: 13px; }
.ar-pl-top .amt .st { width: 14px; height: 14px; }
.ar-pl-bar { height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.ar-pl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--pc); box-shadow: 0 0 8px rgba(var(--pc-rgb), 0.6); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.ar-pl-ch { min-width: 54px; flex: none; text-align: right; font: 800 13px/1 var(--font-d); font-variant-numeric: tabular-nums; }
.ar-pl.me { margin: 0 -8px; padding-left: 10px; padding-right: 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0) 75%); }
.ar-pl.win { background: linear-gradient(90deg, rgba(255, 197, 61, 0.16), rgba(255, 197, 61, 0) 80%); border-radius: 14px; margin: 0 -8px; padding-left: 10px; padding-right: 10px; }
.ar-pl.win .ar-pl-ch { color: var(--gold); }
.ar-pl.lose { opacity: 0.45; }

.ar-hi { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--stroke); }
.ar-hi:last-child { border-bottom: 0; }
.ar-hi-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 197, 61, 0.09); border: 1px solid rgba(255, 197, 61, 0.22); }
.ar-hi-ic img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4)); }
.ar-hi.me .ar-hi-ic { background: var(--grad-gold); border-color: transparent; box-shadow: 0 6px 16px rgba(255, 159, 28, 0.35); }
.ar-hi.me .ar-hi-ic img { animation: floaty 3.4s ease-in-out infinite; }
.ar-hi-main { flex: 1; min-width: 0; }
.ar-hi-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 800; }
.ar-hi.me .ar-hi-name { color: var(--gold); }
.ar-hi-meta { margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.ar-hi-win { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.ar-hi-win .amt { font-size: 14px; }
.ar-hi-win .amt .st { width: 15px; height: 15px; }
.ar-hi-win small { font-size: 10.5px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- Конфетти ---------- */
.ar-confetti { position: fixed; inset: 0; z-index: 95; overflow: hidden; pointer-events: none; }
.ar-confetti i { position: absolute; display: block; border-radius: 2px; will-change: transform, opacity; }

/* ---------- Шторки: правила и честность ---------- */
.ar-rules-list { display: flex; flex-direction: column; gap: 9px; }
.ar-rule { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.ar-rule p { padding-top: 1px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text-2); }
.ar-note { margin-top: 14px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); }

.ar-fair { display: flex; flex-direction: column; gap: 14px; }
.ar-fair-text { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--text-2); }
.ar-fair-box { display: flex; flex-direction: column; gap: 11px; padding: 13px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.ar-fair-h { display: flex; align-items: center; gap: 8px; font: 800 13px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: 0.02em; }
.ar-fair-h .ico { color: var(--mint); }
.ar-fair-h .ico svg { width: 17px; height: 17px; }
.ar-kv { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ar-kv-l { font: 800 10.5px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.ar-kv-v {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: left;
  color: var(--text-2);
  background: var(--well);
  border: 1px solid var(--stroke);
  transition: transform var(--t-fast) var(--ease), border-color var(--t);
}
.ar-kv-v:active { transform: scale(0.98); border-color: rgba(167, 139, 250, 0.5); }
.ar-kv-v .mono { flex: 1; min-width: 0; }
.ar-kv-v .ico { flex: none; color: var(--violet-2); }
.ar-kv-v .ico svg { width: 16px; height: 16px; }
.ar-kv-hidden { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--text-3); border: 1px dashed var(--stroke-2); }
.ar-kv-hidden .ico svg { width: 16px; height: 16px; }
.ar-formula { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--text-2); }
.ar-formula code {
  display: block;
  padding: 9px 11px;
  border-radius: 11px;
  overflow-wrap: anywhere;
  font: 600 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d9ccff;
  background: var(--well);
  border: 1px solid var(--stroke);
}
.ar-vf-box { display: flex; flex-direction: column; gap: 6px; }
.ar-vf-box:empty { display: none; }
.ar-vf { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.35; animation: fadeUp 0.35s var(--ease) both; }
.ar-vf .ico { flex: none; }
.ar-vf .ico svg { width: 16px; height: 16px; }
.ar-vf.ok { color: var(--green); }
.ar-vf.bad { color: var(--red); }
.ar-prev-list { display: flex; flex-direction: column; gap: 10px; }
.ar-prev { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke); }
.ar-prev-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.ar-prev-top .dim { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ar-prev-top .chip { height: 30px; padding: 0 10px; font-size: 12px; }
.ar-prev-top .chip .ico svg { width: 14px; height: 14px; }

/* ---------- Админка ---------- */
.ar-adm { display: flex; flex-direction: column; gap: 12px; }
.ar-adm-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-adm-h h2 { font: 800 15px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: 0.02em; }
.ar-adm-state { display: flex; flex-direction: column; gap: 10px; }
.ar-adm-st { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; }
.ar-adm-st .badge .live-dot { width: 6px; height: 6px; }
.ar-adm-sub { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.ar-adm-pl { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--stroke); font-size: 13px; font-weight: 700; }
.ar-adm-pl:last-child { border-bottom: 0; }
.ar-adm-pl i { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.ar-adm-pl span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ar-adm-form { display: flex; flex-direction: column; gap: 12px; }
.ar-adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-adm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ar-adm-form .field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-adm-form input[type='time'] { min-width: 0; }
.ar-adm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ar-adm-kpi { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 10px; border-radius: 14px; background: var(--well); border: 1px solid var(--stroke); }
.ar-adm-kpi small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-adm-kpi b { font: 800 14px/1.15 var(--font-d); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.ar-adm-kpi .amt .st { width: 14px; height: 14px; }
.ar-adm-cap { margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ar-adm-r { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--stroke); }
.ar-adm-r:last-child { border-bottom: 0; }
.ar-adm-r.ref { opacity: 0.7; }
.ar-adm-r-id { display: flex; flex-direction: column; gap: 2px; width: 74px; flex: none; }
.ar-adm-r-id b { font-variant-numeric: tabular-nums; }
.ar-adm-r-id small, .ar-adm-r-main small { font-size: 11px; font-weight: 700; color: var(--text-3); }
.ar-adm-r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-adm-r-w { display: flex; align-items: center; gap: 5px; min-width: 0; font-weight: 800; }
.ar-adm-r-w .ico { color: var(--gold); }
.ar-adm-r-w .ico svg { width: 14px; height: 14px; }
.ar-adm-r-w span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ar-adm-r-num { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; font-size: 13px; }
.ar-adm-r-num .amt .st { width: 13px; height: 13px; }
.ar-adm-r-num small { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Анимации раздела ---------- */
@keyframes arSweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }
@keyframes arHalo { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }
@keyframes arFly {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.7); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -64px) scale(0.95); }
}

@media (max-width: 380px) {
  .ar-head-t h1 { font-size: 19px; }
  .ar-chips .chip { font-size: 12px; }
  .ar-adm-kpis { grid-template-columns: 1fr 1fr; }
  .ar-adm-grid3 { grid-template-columns: 1fr 1fr; }
}
