/* ==========================================================================
   伯温智算AI · 销售员工数据大屏
   Only sales team data. No vehicle / HR / cleaning / finance noise.
   ========================================================================== */

:root {
  --bg: #0e151e;
  --panel: rgba(23, 33, 45, 0.96);
  --panel-2: rgba(28, 40, 54, 0.98);
  --line: rgba(232, 241, 248, 0.13);
  --line-warm: rgba(255, 125, 80, 0.38);
  --ink: #f8fafc;
  --muted: rgba(231, 239, 246, 0.7);
  --muted-2: rgba(211, 225, 236, 0.5);
  --orange: #ff6b3d;
  --orange-soft: rgba(255, 107, 61, 0.13);
  --cyan: #52d7e8;
  --cyan-soft: rgba(82, 215, 232, 0.12);
  --green: #6ee7b7;
  --pink: #ff5c91;
  --gold: #f6c15f;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "PingFang SC", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

::selection { background: var(--orange); color: #fff; }

.screen-app {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: 17px 23px 9px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 11px;
  background:
    radial-gradient(circle at 7% 8%, rgba(255, 107, 61, 0.08), transparent 24rem),
    radial-gradient(circle at 91% 0%, rgba(82, 215, 232, 0.07), transparent 28rem),
    linear-gradient(180deg, #0d141d 0%, #111a24 60%, #0d141d 100%);
}

/* Background grid + ambient lines */
.screen-app::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 35%, #000 15%, transparent 78%);
}

.screen-app::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  top: -40%;
  height: 70%;
  background: conic-gradient(from 180deg at 50% 100%, transparent 40%, rgba(255, 107, 61, 0.055), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.screen-head {
  position: relative;
  min-height: 55px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 3px 10px;
  border-bottom: 1px solid var(--line);
}

.screen-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.screen-brand { display: flex; align-items: center; gap: 10px; }

.screen-brand__mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff7a4a, #e94f1e);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13), 0 0 28px rgba(255, 107, 61, 0.2);
}

.screen-brand__mark svg { width: 21px; height: 21px; }

.screen-brand__text > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 22px;
  font-weight: 790;
  letter-spacing: -0.7px;
  line-height: 1;
}

.screen-brand__text b { color: var(--orange); font-weight: inherit; }

.screen-brand__text em {
  padding: 3px 6px;
  border: 1px solid rgba(255, 107, 61, 0.3);
  border-radius: 4px;
  background: var(--orange-soft);
  color: #ffae8e;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.screen-brand__text small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.screen-title { text-align: center; }

.screen-title span {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.screen-title h1 {
  margin-top: 3px;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 760;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.screen-head__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.screen-clock {
  padding-right: 13px;
  border-right: 1px solid var(--line);
  text-align: right;
  font-family: var(--mono);
}

.screen-clock strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
}

.screen-clock span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 4px;
  background: rgba(110, 231, 183, 0.06);
  color: rgba(110, 231, 183, 0.7);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.live-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.12);
  animation: screen-pulse 2s ease-in-out infinite;
}

@keyframes screen-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.screen-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 107, 61, 0.25);
  border-radius: 4px;
  background: var(--orange-soft);
  color: #ffae8e;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease;
}

.screen-btn:hover { background: rgba(255, 107, 61, 0.22); border-color: rgba(255, 107, 61, 0.45); }
.screen-btn--ghost { border-color: var(--line); background: rgba(255,255,255,.025); color: var(--muted); }
.screen-btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

/* --------------------------------------------------------------------------
   KPI
   -------------------------------------------------------------------------- */

.kpi-row {
  display: grid;
  grid-template-columns: 1.08fr repeat(4, 1fr);
  gap: 9px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  padding: 12px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 55%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.014);
}

.kpi-card--warm {
  border-color: rgba(255, 107, 61, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 61, 0.12), transparent 10rem),
    var(--panel);
}

.kpi-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.kpi-card__label i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.kpi-card__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: clamp(24px, 2.25vw, 34px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.kpi-card__value small {
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0;
}

.kpi-card__foot {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.kpi-card__foot b { color: rgba(255, 255, 255, 0.58); font-weight: 500; }

.kpi-progress {
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.kpi-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ffb18d);
  box-shadow: 0 0 10px rgba(255, 107, 61, 0.35);
}

/* --------------------------------------------------------------------------
   Shared panels
   -------------------------------------------------------------------------- */

.screen-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.82fr);
  gap: 10px;
}

.side-col {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 10px;
}

.panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}

.panel-head--compact { margin-bottom: 7px; }

.panel-kicker {
  display: block;
  color: rgba(82, 215, 232, 0.52);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.panel-head h2 {
  margin-top: 2px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.panel-head__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.panel-head__meta b { color: rgba(255, 255, 255, 0.7); font-family: var(--mono); font-weight: 500; }
.data-note { color: rgba(255, 107, 61, 0.55); }
.dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }

.panel-tag {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Sales matrix
   -------------------------------------------------------------------------- */

.sales-panel { position: relative; }

.sales-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 66px;
  background: linear-gradient(180deg, var(--orange), transparent);
}

.sales-grid-screen {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.sales-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 215, 232, 0.055), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 55%),
    rgba(18, 27, 38, 0.92);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sales-card:hover {
  border-color: rgba(82, 215, 232, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 215, 232, 0.1), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 55%),
    rgba(21, 32, 44, 0.96);
  transform: translateY(-1px);
}

.sales-card.is-top {
  border-color: rgba(255, 107, 61, 0.27);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 61, 0.12), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(25, 30, 38, 0.96);
}

.sales-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.sales-card.is-top::before { background: linear-gradient(90deg, transparent, var(--orange), transparent); }

.sales-card::after {
  content: attr(data-rank);
  position: absolute;
  right: 7px;
  bottom: 27px;
  color: rgba(255, 255, 255, 0.024);
  font-family: var(--mono);
  font-size: 86px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.sales-card__body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 7px 0 2px;
}

.sales-ring {
  --pct: 0;
  position: relative;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.065) 0);
  box-shadow: 0 0 22px rgba(82, 215, 232, 0.06);
}

.sales-card.is-top .sales-ring {
  background: conic-gradient(var(--orange) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.065) 0);
  box-shadow: 0 0 22px rgba(255, 107, 61, 0.08);
}

.sales-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #0a0f15;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.sales-ring > div {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sales-ring b {
  color: #fff;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-ring b small { color: var(--muted-2); font-size: 8.5px; }
.sales-ring span { margin-top: 4px; color: var(--muted-2); font-size: 7.5px; }

.sales-body__stats {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
}

.sales-body__stats > div {
  min-width: 0;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.sales-body__stats b {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
}

.sales-body__stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
}

.sales-body__stats > div:nth-child(2) b { color: var(--cyan); }
.sales-body__stats > div:nth-child(3) b { color: var(--orange); }
.sales-body__stats > div:nth-child(4) b { color: var(--green); }

.sales-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sales-rank {
  width: 16px;
  flex: none;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 9.5px;
}

.sales-card.is-top .sales-rank { color: var(--orange); }

.sales-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  font-weight: 700;
}

.sales-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #0b1016;
  border-radius: 50%;
  background: var(--green);
}

.sales-card.is-top .sales-avatar {
  border-color: rgba(255, 107, 61, 0.38);
  color: #ffd0bd;
  box-shadow: 0 0 18px rgba(255, 107, 61, 0.11);
}

.sales-id { min-width: 0; flex: 1; }

.sales-id h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.sales-id h3 em {
  padding: 2px 4px;
  border-radius: 2px;
  background: var(--orange-soft);
  color: #ff9d79;
  font-family: var(--mono);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sales-id p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-state {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  color: rgba(110, 231, 183, 0.66);
  font-family: var(--mono);
  font-size: 8.5px;
}

.sales-state i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.sales-load {
  margin-top: auto;
  padding-top: 10px;
}

.sales-load__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
}

.sales-load__head b { color: rgba(255, 255, 255, 0.5); font-weight: 500; }

.sales-load__track {
  height: 3px;
  margin-top: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sales-load__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), rgba(82, 215, 232, 0.35));
  box-shadow: 0 0 8px rgba(82, 215, 232, 0.2);
}

.sales-card.is-top .sales-load__track span {
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 61, 0.35));
  box-shadow: 0 0 8px rgba(255, 107, 61, 0.25);
}

.sales-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--muted-2);
  font-size: 8.5px;
}

.sales-card__foot b { color: rgba(255, 255, 255, 0.52); font-weight: 500; }

/* --------------------------------------------------------------------------
   Activity / queue
   -------------------------------------------------------------------------- */

.activity-list {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 7px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.activity-item:first-child { border-top: 0; }

.activity-avatar {
  width: 23px;
  height: 23px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.55);
  font-size: 8.5px;
  font-weight: 600;
}

.activity-main { flex: 1; min-width: 0; }
.activity-main b { display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,.65); font-size: 9px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-main b span { color: var(--muted-2); font-weight: 400; }
.activity-main small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-outcome { flex: none; padding: 2px 5px; border-radius: 2px; background: var(--cyan-soft); color: rgba(82,215,232,.72); font-family: var(--mono); font-size: 7.5px; }
.activity-time { flex: none; color: rgba(255,255,255,.22); font-family: var(--mono); font-size: 7.5px; padding-top: 3px; }

.queue-list-screen {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 3px;
  margin-top: 4px;
}

.queue-row-screen {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.queue-label { color: rgba(255, 255, 255, 0.48); font-size: 8.5px; white-space: nowrap; }
.queue-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.queue-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), rgba(255, 107, 61, 0.28)); }
.queue-value { color: rgba(255,255,255,.68); font-family: var(--mono); font-size: 9.5px; text-align: right; }
.queue-value small { color: var(--muted-2); font-family: var(--sans); font-size: 7.5px; }

/* --------------------------------------------------------------------------
   Bottom row
   -------------------------------------------------------------------------- */

.bottom-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 10px;
  height: 146px;
}

.funnel-screen { display: flex; flex-direction: column; justify-content: space-around; gap: 2px; }
.funnel-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px 28px; align-items: center; gap: 7px; }
.funnel-line__label { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.funnel-line__track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.funnel-line__track span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), rgba(82,215,232,.22)); }
.funnel-line__value { color: rgba(255,255,255,.66); font-family: var(--mono); font-size: 9px; text-align: right; }
.funnel-line__rate { color: var(--muted-2); font-family: var(--mono); font-size: 8.5px; text-align: right; }

.trend-chart-screen {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 0;
  padding: 0 2px;
}

.trend-bar-screen {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.trend-bar-screen b { color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 8.5px; font-weight: 500; }
.trend-bar-screen span { width: 100%; max-width: 32px; min-height: 3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--orange), rgba(255,107,61,.2)); box-shadow: 0 0 10px rgba(255,107,61,.1); }
.trend-bar-screen small { color: var(--muted-2); font-family: var(--mono); font-size: 7.5px; }
.trend-bar-screen.is-today span { background: linear-gradient(180deg, #ffd1be, var(--orange)); }

.target-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 3px;
}

.target-ring {
  --pct: 0;
  position: relative;
  width: 87px;
  height: 87px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--pct) * 1%), rgba(255,255,255,.07) 0);
  box-shadow: 0 0 26px rgba(255,107,61,.08);
}

.target-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0b1016; }

.target-ring > div {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.target-ring strong { color: #fff; font-family: var(--mono); font-size: 21px; font-weight: 500; letter-spacing: -0.05em; }
.target-ring span { margin-top: 2px; color: var(--muted-2); font-size: 8.5px; }

.target-meta { min-width: 0; }
.target-meta > div { display: flex; align-items: baseline; gap: 3px; }
.target-meta b { color: #fff; font-family: var(--mono); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -0.06em; }
.target-meta span { color: var(--muted-2); font-size: 8.5px; }
.target-meta em { color: rgba(255,255,255,.55); font-style: normal; font-family: var(--mono); }
.target-meta small { display: block; margin-top: 7px; color: var(--muted-2); font-size: 8.5px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Footer / loading
   -------------------------------------------------------------------------- */

.screen-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 13px;
  padding: 0 3px;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.screen-foot__spacer { flex: 1; }

.screen-loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(7, 10, 15, 0.84);
  backdrop-filter: blur(6px);
  transition: opacity 250ms ease;
}

.screen-loading.is-hidden { opacity: 0; pointer-events: none; }

.screen-loading__ring {
  width: 33px;
  height: 33px;
  margin-bottom: 5px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: screen-spin 700ms linear infinite;
}

@keyframes screen-spin { to { transform: rotate(360deg); } }

.screen-loading strong { font-size: 11.5px; font-weight: 500; }
.screen-loading small { color: var(--muted-2); font-size: 9px; }

.screen-error {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: 50%;
  width: min(380px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid rgba(255, 107, 61, 0.25);
  border-radius: 8px;
  background: rgba(14, 20, 28, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translate(-50%, -50%);
}

.screen-error strong { display: block; font-size: 13.5px; }
.screen-error span { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9.5px; }
.screen-error button { margin-top: 13px; height: 30px; padding: 0 13px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 9.5px; }

/* --------------------------------------------------------------------------
   Responsive / short viewport
   -------------------------------------------------------------------------- */

@media (max-width: 1400px) {
  .screen-app { padding: 13px 16px 7px; gap: 8px; }
  .screen-head { min-height: 49px; padding-bottom: 7px; }
  .screen-title h1 { font-size: 22px; }
  .kpi-card { min-height: 73px; padding: 9px 11px; }
  .kpi-card__value { font-size: 28px; }
  .panel { padding: 9px 10px 8px; }
  .sales-card { padding: 9px 10px 8px; }
  .sales-ring { width: 70px; height: 70px; }
  .sales-ring b { font-size: 15.5px; }
  .sales-body__stats b { font-size: 13.5px; }
  .sales-load { padding-top: 7px; }
  .sales-card__foot { margin-top: 5px; padding-top: 5px; }
  .bottom-row { height: 128px; }
  .target-ring { width: 72px; height: 72px; }
  .target-meta b { font-size: 26px; }
}

@media (max-width: 1180px) {
  body { overflow-x: auto; }
  .screen-app { min-width: 1180px; }
}

@media (max-height: 820px) and (min-width: 1180px) {
  .screen-app { padding: 9px 15px 5px; gap: 6px; }
  .screen-head { min-height: 43px; padding-bottom: 5px; }
  .screen-brand__mark { width: 29px; height: 29px; }
  .screen-brand__text > div { font-size: 18.5px; }
  .screen-brand__text small { margin-top: 3px; font-size: 8.5px; }
  .screen-title h1 { font-size: 20px; }
  .screen-title span { font-size: 8.5px; }
  .screen-clock strong { font-size: 14.5px; }
  .live-pill { display: none; }
  .kpi-card { min-height: 61px; padding: 7px 10px; }
  .kpi-card__value { margin-top: 4px; font-size: 24px; }
  .kpi-card__foot { margin-top: 3px; }
  .panel { padding: 8px 10px 7px; }
  .sales-card { padding: 7px 9px; }
  .sales-avatar { width: 29px; height: 29px; font-size: 10.5px; }
  .sales-id h3 { font-size: 12.5px; }
  .sales-ring { width: 62px; height: 62px; }
  .sales-ring b { font-size: 13.5px; }
  .sales-body__stats b { font-size: 12.5px; }
  .sales-body__stats { gap: 6px 10px; }
  .sales-load { padding-top: 5px; }
  .sales-card__foot { margin-top: 4px; padding-top: 4px; }
  .bottom-row { height: 108px; }
  .target-ring { width: 62px; height: 62px; }
  .target-ring strong { font-size: 18px; }
  .target-meta b { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ==========================================================================
   Readability pass — brighter navy, larger type
   ========================================================================== */

:root {
  --bg: #182430;
  --panel: #223142;
  --panel-2: #26384b;
  --line: rgba(236, 245, 252, 0.16);
  --line-warm: rgba(255, 139, 96, 0.42);
  --ink: #ffffff;
  --muted: rgba(239, 246, 252, 0.8);
  --muted-2: rgba(218, 232, 242, 0.6);
}

body {
  background: var(--bg);
}

.screen-app {
  background:
    radial-gradient(1100px 600px at 50% -15%, rgba(255, 117, 70, 0.1), transparent 65%),
    radial-gradient(900px 500px at 100% 10%, rgba(69, 181, 201, 0.075), transparent 65%),
    linear-gradient(180deg, #192733 0%, #1d2c3a 58%, #17232f 100%);
}

.screen-app::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
}

.screen-head {
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

.page-head__eyebrow,
.panel-kicker,
.sales-rank,
.screen-foot {
  color: rgba(230, 241, 250, 0.58);
}

.screen-brand__text em {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
}

.screen-brand__text small {
  color: rgba(232, 242, 250, 0.55);
}

.screen-title span {
  color: rgba(229, 240, 250, 0.6);
}

.screen-clock small,
.screen-date {
  color: rgba(232, 242, 250, 0.6);
}

.screen-btn {
  border-color: rgba(255, 255, 255, 0.17);
  color: rgba(246, 250, 253, 0.82);
}

.kpi-card {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(500px 130px at 88% 0%, rgba(255, 120, 75, 0.09), transparent 72%),
    linear-gradient(145deg, #26384a, #1f2e3e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 12px 30px rgba(0, 0, 0, 0.16);
}

.kpi-card--warm {
  background:
    radial-gradient(420px 170px at 92% -8%, rgba(255, 115, 65, 0.13), transparent 70%),
    linear-gradient(145deg, #2a3c4e, #213142);
}

.kpi-card__label {
  color: rgba(237, 246, 253, 0.76);
  font-size: 10.5px;
}

.kpi-card__value {
  color: #fff;
  font-size: 41px;
}

.kpi-card__value small {
  color: rgba(232, 243, 251, 0.65);
  font-size: 9.5px;
}

.kpi-card__foot {
  color: rgba(222, 235, 245, 0.64);
  font-size: 9.5px;
}

.kpi-card__foot b {
  color: rgba(239, 247, 253, 0.82);
}

.kpi-progress {
  background: rgba(255, 255, 255, 0.12);
}

.panel {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 56%),
    #223142;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 36px rgba(0, 0, 0, 0.16);
}

.panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.panel-kicker {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.panel-head h2 {
  color: #fff;
  font-size: 15px;
}

.panel-head__meta {
  color: rgba(225, 238, 248, 0.62);
  font-size: 9.5px;
}

.panel-head__meta b {
  color: rgba(244, 250, 254, 0.86);
}

.panel-tag {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(237, 246, 252, 0.7);
  font-size: 8.5px;
}

.sales-card {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(340px 200px at 9% 0%, rgba(82, 215, 232, 0.055), transparent 72%),
    linear-gradient(145deg, #253748, #1e2d3d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.sales-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background:
    radial-gradient(340px 200px at 9% 0%, rgba(82, 215, 232, 0.09), transparent 72%),
    linear-gradient(145deg, #2a3d4f, #223244);
}

.sales-card.is-top {
  border-color: rgba(255, 126, 79, 0.46);
  background:
    radial-gradient(380px 220px at 12% 0%, rgba(255, 108, 55, 0.16), transparent 70%),
    linear-gradient(145deg, #2c3b49, #223141);
}

.sales-id h3 {
  font-size: 15px;
}

.sales-id p {
  color: rgba(222, 236, 246, 0.62);
  font-size: 9.5px;
}

.sales-state {
  font-size: 9px;
}

.sales-ring {
  width: 94px;
  height: 94px;
  background: conic-gradient(var(--cyan) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.sales-card.is-top .sales-ring {
  background: conic-gradient(var(--orange) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.sales-ring::before {
  background: #1d2c3b;
  border-color: rgba(255, 255, 255, 0.075);
}

.sales-ring b {
  font-size: 20px;
}

.sales-ring b small {
  color: rgba(227, 240, 249, 0.62);
  font-size: 9px;
}

.sales-ring span {
  color: rgba(223, 236, 245, 0.64);
  font-size: 8.5px;
}

.sales-body__stats b {
  font-size: 17px;
}

.sales-body__stats span {
  color: rgba(219, 234, 244, 0.62);
  font-size: 9.5px;
}

.sales-load__head {
  color: rgba(218, 233, 244, 0.6);
  font-size: 9px;
}

.sales-load__head b {
  color: rgba(240, 247, 252, 0.8);
}

.sales-load__track {
  background: rgba(255, 255, 255, 0.11);
}

.sales-card__foot {
  border-top-color: rgba(255, 255, 255, 0.09);
  color: rgba(216, 232, 243, 0.58);
  font-size: 9px;
}

.sales-card__foot b {
  color: rgba(239, 247, 252, 0.78);
}

.activity-main b {
  color: rgba(244, 250, 254, 0.88);
  font-size: 10.5px;
}

.activity-main b span {
  color: rgba(218, 233, 244, 0.58);
}

.activity-main small {
  color: rgba(216, 232, 243, 0.58);
  font-size: 10px;
}

.activity-outcome {
  font-size: 8.5px;
}

.activity-time {
  color: rgba(214, 231, 243, 0.38);
  font-size: 8.5px;
}

.activity-item {
  border-top-color: rgba(255, 255, 255, 0.075);
}

.queue-label {
  color: rgba(229, 241, 250, 0.7);
  font-size: 10px;
}

.queue-track {
  background: rgba(255, 255, 255, 0.1);
}

.queue-value {
  color: rgba(244, 250, 254, 0.85);
  font-size: 10.5px;
}

.queue-value small {
  color: rgba(218, 233, 244, 0.6);
  font-size: 8.5px;
}

.funnel-line__label {
  color: rgba(228, 241, 250, 0.7);
  font-size: 9.5px;
}

.funnel-line__track {
  background: rgba(255, 255, 255, 0.1);
}

.funnel-line__value {
  color: rgba(242, 249, 254, 0.82);
  font-size: 10px;
}

.funnel-line__rate {
  color: rgba(218, 233, 244, 0.58);
  font-size: 9px;
}

.trend-bar-screen b {
  color: rgba(242, 249, 254, 0.82);
  font-size: 9.5px;
}

.trend-bar-screen small {
  color: rgba(218, 233, 244, 0.58);
  font-size: 8.5px;
}

.target-ring::before {
  background: #1d2c3b;
}

.target-ring strong {
  font-size: 22px;
}

.target-ring span {
  color: rgba(220, 235, 245, 0.62);
  font-size: 9px;
}

.target-meta span {
  color: rgba(221, 235, 245, 0.64);
  font-size: 9px;
}

.target-meta small {
  color: rgba(218, 233, 244, 0.6);
  font-size: 9px;
}

.screen-foot {
  border-top-color: rgba(255, 255, 255, 0.09);
  font-size: 8.5px;
}

.screen-foot b {
  color: rgba(237, 246, 252, 0.65);
}

@media (max-width: 1500px) {
  .kpi-card__value { font-size: 36px; }
  .sales-id h3 { font-size: 14px; }
  .sales-ring { width: 86px; height: 86px; }
  .sales-ring b { font-size: 18px; }
  .sales-body__stats b { font-size: 15.5px; }
  .sales-body__stats span { font-size: 9px; }
  .activity-main small { font-size: 9px; }
  .activity-main b { font-size: 9.5px; }
  .queue-label { font-size: 9px; }
  .queue-value { font-size: 9.5px; }
}


@media (max-height: 820px) {
  .funnel-screen { gap: 0; justify-content: space-between; }
  .funnel-line { grid-template-columns: 42px minmax(0, 1fr) 28px 24px; gap: 5px; }
  .funnel-line__label { font-size: 8px; line-height: 1.2; }
  .funnel-line__track { height: 4px; }
  .funnel-line__value { font-size: 8.5px; }
  .funnel-line__rate { font-size: 8px; }
  .bottom-panel .panel-head { margin-bottom: 5px; }
}


/* ==========================================================================
   Live feed — auto scroll + outcome colors
   ========================================================================== */

.activity-list {
  overflow-y: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  mask-image: linear-gradient(to bottom, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}
.activity-list::-webkit-scrollbar { display: none; }

.activity-item {
  position: relative;
  padding-left: 9px;
}
.activity-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--tone, #78c8e0);
  opacity: .8;
}

.activity-avatar {
  border: 1px solid var(--tone-soft, rgba(120, 200, 224, .14));
  background: var(--tone-soft, rgba(120, 200, 224, .14));
  color: var(--tone, #78c8e0);
}

.activity-outcome {
  border: 1px solid var(--tone-soft, rgba(120, 200, 224, .14));
  background: var(--tone-soft, rgba(120, 200, 224, .14));
  color: var(--tone, #78c8e0);
  font-weight: 550;
}

.activity-item--cyan { --tone: #62d8e6; --tone-soft: rgba(70, 205, 225, .14); }
.activity-item--green { --tone: #78dfb5; --tone-soft: rgba(80, 220, 170, .14); }
.activity-item--amber { --tone: #f1c66f; --tone-soft: rgba(240, 190, 95, .15); }
.activity-item--violet { --tone: #bba4ff; --tone-soft: rgba(150, 120, 255, .16); }
.activity-item--orange { --tone: #ffad7d; --tone-soft: rgba(255, 140, 80, .16); }
.activity-item--red { --tone: #ff9b9f; --tone-soft: rgba(255, 100, 110, .16); }
.activity-item--gray { --tone: #b3c1cd; --tone-soft: rgba(170, 190, 205, .11); }
.activity-item--blue { --tone: #8fc8f4; --tone-soft: rgba(100, 170, 230, .15); }

.activity-item--red .activity-time { color: rgba(255, 190, 190, .58); }
.activity-item--amber .activity-outcome { color: #ffdaa0; }


/* ==========================================================================
   Sales matrix — larger numbers and labels for wall displays
   ========================================================================== */

@media (min-width: 1501px) {
  .sales-card__body { gap: 18px; }
  .sales-ring { width: 112px; height: 112px; }
  .sales-ring b { font-size: 26px; }
  .sales-ring b small { font-size: 10.5px; }
  .sales-ring span { margin-top: 5px; font-size: 10px; }
  .sales-body__stats { gap: 12px 16px; }
  .sales-body__stats > div { padding-left: 10px; }
  .sales-body__stats b { font-size: 22px; }
  .sales-body__stats span { margin-top: 5px; font-size: 11px; }
  .sales-id h3 { font-size: 17px; }
  .sales-id p { font-size: 10.5px; }
  .sales-load__head { font-size: 10px; }
  .sales-card__foot { font-size: 10px; }
}

@media (min-width: 1201px) and (max-width: 1500px) {
  .sales-card__body { gap: 12px; }
  .sales-ring { width: 98px; height: 98px; }
  .sales-ring b { font-size: 22px; }
  .sales-ring b small { font-size: 9px; }
  .sales-ring span { font-size: 9px; }
  .sales-body__stats { gap: 8px 9px; }
  .sales-body__stats > div { padding-left: 7px; }
  .sales-body__stats b { font-size: 18px; }
  .sales-body__stats span { margin-top: 4px; font-size: 9.5px; }
  .sales-id h3 { font-size: 15px; }
  .sales-id p { font-size: 9px; }
  .sales-load__head { font-size: 8.5px; }
  .sales-card__foot { font-size: 8.5px; }
}

@media (max-width: 1200px) {
  .sales-ring { width: 86px; height: 86px; }
  .sales-ring b { font-size: 18px; }
  .sales-ring span { font-size: 7.5px; }
  .sales-body__stats b { font-size: 15px; }
  .sales-body__stats span { font-size: 7.5px; }
}


/* Height-aware fit: keep the enlarged typography without card overlap on 16:9 / 900px screens */
@media (max-height: 900px) and (min-width: 1201px) {
  .sales-card__body { gap: 10px; padding: 5px 0 1px; }
  .sales-ring { width: 90px; height: 90px; }
  .sales-ring b { font-size: 20px; }
  .sales-ring b small { font-size: 8.5px; }
  .sales-ring span { margin-top: 3px; font-size: 8.5px; }
  .sales-body__stats { gap: 7px 10px; }
  .sales-body__stats > div { padding-left: 7px; }
  .sales-body__stats b { font-size: 19px; }
  .sales-body__stats span { margin-top: 3px; font-size: 9.5px; }
  .sales-id h3 { font-size: 15.5px; }
  .sales-id p { font-size: 9.2px; }
  .sales-load { padding-top: 6px; }
  .sales-load__head { font-size: 8.5px; }
  .sales-card__foot { margin-top: 5px; padding-top: 5px; font-size: 8.5px; }
}


/* Refined brand mark tile */
.brand__mark, .login-brand__mark, .portal-login__mark, .screen-brand__mark, .hud-brand__mark {
  background: linear-gradient(145deg, #ff7b48 0%, #f05a28 48%, #dc4618 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 18px rgba(230, 72, 26, 0.26) !important;
}
.brand__mark svg, .login-brand__mark svg, .portal-login__mark svg, .screen-brand__mark svg, .hud-brand__mark svg {
  filter: drop-shadow(0 1px 1px rgba(100, 25, 0, 0.18));
}


/* Enterprise deal celebration */
#soundBtn.is-on {
  border-color: rgba(110, 231, 183, .35);
  color: #a7f3d0;
  background: rgba(16, 185, 129, .1);
}

.screen-celebration {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.screen-celebration[hidden] { display: none !important; }
.screen-celebration__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 12, .76);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .35s ease;
}
.screen-celebration.is-visible .screen-celebration__backdrop { opacity: 1; }

.screen-celebration__card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 44px));
  padding: 46px 48px 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, .52);
  border-radius: 24px;
  background:
    radial-gradient(540px 260px at 50% -10%, rgba(255, 196, 80, .3), transparent 68%),
    radial-gradient(420px 240px at 100% 100%, rgba(255, 90, 50, .22), transparent 70%),
    linear-gradient(150deg, rgba(37, 28, 17, .98), rgba(13, 11, 9, .99));
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .7),
    0 0 80px rgba(255, 159, 67, .16),
    inset 0 1px 0 rgba(255, 245, 214, .16);
  text-align: center;
  opacity: 0;
  transform: translateY(36px) scale(.78);
  transition: opacity .3s ease, transform .42s cubic-bezier(.2, 1.3, .35, 1);
}
.screen-celebration.is-visible .screen-celebration__card {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: celebration-card-in .72s cubic-bezier(.18, 1.35, .35, 1) both;
}
@keyframes celebration-card-in {
  0% { transform: translateY(46px) scale(.7); filter: blur(4px); }
  68% { transform: translateY(-4px) scale(1.025); filter: blur(0); }
  100% { transform: translateY(0) scale(1); }
}
.screen-celebration__rays {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 202, 95, .11) 0 8deg, transparent 8deg 28deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  animation: celebration-rays 14s linear infinite;
  pointer-events: none;
}
@keyframes celebration-rays { to { transform: translate(-50%, -50%) rotate(360deg); } }

.screen-celebration__icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 216, 128, .5);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffcd68, #ff7a3d 64%, #b93c1c);
  box-shadow: 0 12px 30px rgba(255, 112, 51, .32), inset 0 1px 0 rgba(255, 255, 255, .38);
  font-size: 28px;
}
.screen-celebration__eyebrow {
  position: relative;
  z-index: 2;
  color: #ffc76b;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .32em;
}
.screen-celebration h2 {
  position: relative;
  z-index: 2;
  margin: 13px 0 0;
  color: #fff8e8;
  font-size: clamp(28px, 3.4vw, 43px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.screen-celebration h2 em {
  color: #ffd166;
  font-style: normal;
  text-shadow: 0 0 28px rgba(255, 194, 80, .45);
}
.screen-celebration__deal {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 21px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 210, 121, .26);
  border-radius: 999px;
  background: rgba(255, 191, 87, .08);
  color: #e9d8ba;
  font-size: 15px;
}
.screen-celebration__deal b {
  color: #ffe09a;
  font-family: var(--font-num, monospace);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.screen-celebration__deal span { color: #fff4d9; font-weight: 600; }
.screen-celebration__foot {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  color: rgba(255, 236, 202, .42);
  font-size: 9px;
  letter-spacing: .12em;
}
.screen-celebration__close {
  position: absolute;
  z-index: 4;
  top: 13px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .55);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.screen-celebration__close:hover { color: #fff; border-color: rgba(255, 216, 128, .45); }

.screen-confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.screen-confetti i {
  position: absolute;
  top: -24px;
  display: block;
  border-radius: 1px;
  opacity: .95;
  animation-name: celebration-confetti;
  animation-timing-function: cubic-bezier(.18, .7, .4, 1);
  animation-fill-mode: both;
}
@keyframes celebration-confetti {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(720deg); opacity: .25; }
}
@media (max-width: 760px) {
  .screen-celebration__card { padding: 34px 20px 28px; border-radius: 18px; }
  .screen-celebration h2 { font-size: 25px; }
  .screen-celebration__deal b { font-size: 22px; }
  .screen-celebration__deal { font-size: 12px; padding: 9px 14px; }
}


/* Sound loop interval */
.screen-interval {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .42);
  font-size: 8px;
  white-space: nowrap;
}
.screen-interval select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffc985;
  font-family: var(--font-num, monospace);
  font-size: 8px;
  cursor: pointer;
}
.screen-interval select option { background: #11161d; color: #fff; }

/* Looping deal danmaku */
.screen-danmaku {
  position: fixed;
  z-index: 80;
  top: 88px;
  left: 0;
  right: 0;
  height: 34px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.screen-danmaku[hidden] { display: none; }
.screen-danmaku__track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: screen-danmaku-scroll 38s linear infinite;
  will-change: transform;
}
.screen-danmaku__item {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(255, 198, 103, .22);
  border-radius: 999px;
  background: rgba(25, 20, 13, .68);
  color: #ffd894;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 0 16px rgba(255, 184, 65, .2);
  white-space: nowrap;
  backdrop-filter: blur(5px);
}
@keyframes screen-danmaku-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .screen-danmaku { top: 72px; height: 28px; }
  .screen-danmaku__item { height: 24px; font-size: 9px; }
}
