/* Kiri Hub dashboard (dashboard.html): uses the colours, fonts and buttons of style.css */

.dash-body {
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- header */
.dash-nav {
  gap: 1rem;
}

.dash-nav-title {
  font-weight: 700;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.dash-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem 0.3rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.dash-user[hidden] + .dash-back {
  margin-left: auto;
}

.dash-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(var(--glow), 0.5);
}

.dash-user span {
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-logout {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.dash-logout:hover {
  color: #fff;
  border-color: var(--pink);
}

.dash-preview {
  position: relative;
  z-index: 2;
  margin: 5.2rem auto -3.6rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-3);
  background: rgba(var(--glow-2), 0.14);
  border: 1px dashed rgba(var(--glow-2), 0.6);
  text-align: center;
}

/* ---------------------------------------------------------------- layout */
.dash {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6.2rem clamp(1rem, 3vw, 2.5rem) 3rem;
}

.dash-tabs {
  position: sticky;
  top: 5.6rem;
  align-self: start;
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(12px);
}

.dash-tabs [role="tab"] {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-tabs [role="tab"] svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.dash-tabs [role="tab"]:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.dash-tabs [role="tab"][aria-selected="true"] {
  color: #fff;
  background: linear-gradient(120deg, rgba(var(--glow), 0.28), rgba(var(--glow-2), 0.22));
  box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.35), 0 10px 26px -14px rgba(var(--glow), 0.9);
}

.dash-tabs [role="tab"][aria-selected="true"] svg {
  color: var(--pink-2);
  filter: drop-shadow(0 0 6px rgba(var(--glow), 0.8));
}

.tab-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  color: var(--pink-3);
  background: rgba(var(--glow), 0.16);
  border: 1px solid rgba(var(--glow), 0.35);
  white-space: nowrap;
}

.dash-panel {
  min-width: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(12px);
  padding: 1.4rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-2);
}

.panel-head {
  margin-bottom: 1.2rem;
}

.panel-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.panel-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* ---------------------------------------------------------------- login */
.login-card {
  max-width: 560px;
  margin: 3rem auto;
  padding: 2.6rem 2rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(var(--glow), 0.2), transparent 70%),
    var(--card);
  backdrop-filter: blur(12px);
}

.login-crown {
  width: 56px;
  height: 36px;
  fill: var(--pink);
  filter: drop-shadow(0 0 12px rgba(var(--glow), 0.9));
  animation: crown-bob 3s ease-in-out infinite;
}

.login-card h1 {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.login-card > p {
  color: var(--muted);
  margin: 0.8rem auto 1.6rem;
  max-width: 40ch;
}

.login-card .login-small {
  font-size: 0.85rem;
  margin: 1.2rem auto 0;
}

.login-error {
  min-height: 1.2em;
  margin: 0.6rem 0 0;
  color: #ff8fa3;
  font-weight: 600;
}

/* ---------------------------------------------------------------- overview */
.overview {
  display: grid;
  gap: 1.2rem;
}

.overview.is-loading {
  opacity: 0.6;
}

.welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.welcome img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.55), 0 0 30px -4px rgba(var(--glow), 0.8);
}

.welcome h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.alert {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  font-weight: 600;
  color: #ffd6dc;
  background: rgba(255, 70, 96, 0.14);
  border: 1px solid rgba(255, 70, 96, 0.5);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.key-card {
  --state: var(--pink);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(var(--glow), 0.18), transparent 70%),
    var(--card);
}

.key-card[data-state="soon"] { --state: #ffc4aa; }
.key-card[data-state="expired"],
.key-card[data-state="banned"] { --state: #ff4660; }
.key-card[data-state="lifetime"] { --state: var(--violet); }
.key-card[data-state="none"],
.key-card[data-state="unknown"] { --state: var(--muted); }

.key-ring {
  position: relative;
  width: 170px;
  height: 170px;
  flex: none;
}

.key-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 9;
}

.ring-fill {
  fill: none;
  stroke: url(#keyGrad);
  stroke-width: 9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 110, 199, 0.75));
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.key-card[data-state="expired"] .ring-fill,
.key-card[data-state="banned"] .ring-fill { stroke: #ff4660; }
.key-card[data-state="soon"] .ring-fill { stroke: #ffc4aa; }

.key-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.key-time b {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.key-time span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.key-info h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  font-size: 1.6rem;
}

.key-status {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  color: var(--state);
  border: 1px solid var(--state);
  background: rgba(255, 255, 255, 0.04);
}

.key-note {
  margin: 0.5rem 0 1.1rem;
  color: var(--muted);
}

.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.key-actions .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
}

.mini-card {
  --state: var(--pink-2);
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.mini-card[data-state="ok"] { --state: #96ecc8; }
.mini-card[data-state="warn"] { --state: #ffc4aa; }

.mini-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--state);
  letter-spacing: -0.01em;
}

.mini-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.mini-btn {
  margin-top: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  justify-self: start;
}

.tracker-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(400px 200px at 100% 50%, rgba(var(--glow-2), 0.2), transparent 70%),
    var(--card);
}

.tracker-teaser h2 {
  font-size: 1.35rem;
  margin: 0.3rem 0;
}

.tracker-teaser p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

/* ---------------------------------------------------------------- tracker */
.tracker {
  display: grid;
  gap: 1rem;
  outline: none;
}

.tracker-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tracker-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.tracker-title h2 {
  font-size: 1.6rem;
}

.trk-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--pink-3);
  background: rgba(var(--glow-2), 0.16);
  border: 1px solid rgba(var(--glow-2), 0.5);
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.live-pill.is-live {
  color: #fff;
  background: rgba(255, 70, 96, 0.2);
  border-color: rgba(255, 70, 96, 0.7);
}

.live-pill.is-live i {
  background: #ff4660;
  box-shadow: 0 0 0 0 rgba(255, 70, 96, 0.7);
  animation: live-dot 1.4s ease-out infinite;
}

@keyframes live-dot {
  to { box-shadow: 0 0 0 9px rgba(255, 70, 96, 0); }
}

.tracker-stats {
  display: flex;
  gap: 0.6rem;
  margin: 0;
}

.tracker-stats div {
  min-width: 84px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.tracker-stats dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tracker-stats dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.trk-notice {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  color: var(--muted);
  background: rgba(var(--glow-2), 0.1);
  border: 1px dashed rgba(var(--glow-2), 0.5);
}

.trk-notice b {
  color: var(--pink-3);
}

.tracker-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
}

.arena-wrap {
  position: relative;
  min-height: 360px;
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(var(--glow-2), 0.16), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(var(--glow), 0.12), transparent 70%),
    #0f0716;
}

.arena-wrap.is-drop {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.35);
}

.arena-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.arena-banner {
  position: absolute;
  top: 1rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.55rem 1.4rem;
  border-radius: 18px;
  background: rgba(16, 8, 24, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.25s ease;
}

.arena-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.arena-banner b {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.arena-banner span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.arena-banner.is-kill { border-color: rgba(255, 70, 96, 0.7); box-shadow: 0 10px 30px -10px rgba(255, 70, 96, 0.8); }
.arena-banner.is-kill b { color: #ff8fa3; }
.arena-banner.is-me { border-color: var(--pink); box-shadow: 0 10px 30px -10px rgba(var(--glow), 0.9); }
.arena-banner.is-me b { color: var(--pink-2); }
.arena-banner.is-clash { border-color: rgba(var(--glow-2), 0.8); box-shadow: 0 10px 30px -10px rgba(var(--glow-2), 0.9); }
.arena-banner.is-clash b { color: #d7c2ff; }
.arena-banner.is-showdown { border-color: rgba(255, 211, 110, 0.8); }
.arena-banner.is-showdown b { color: #ffd36e; }
.arena-banner.is-win { border-color: rgba(255, 211, 110, 0.9); box-shadow: 0 10px 34px -8px rgba(255, 211, 110, 0.7); }
.arena-banner.is-win b { background: linear-gradient(100deg, #ffd36e, var(--pink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.arena-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.arena-empty svg {
  width: 56px;
  height: 56px;
  color: var(--pink-2);
  filter: drop-shadow(0 0 10px rgba(var(--glow), 0.8));
  animation: radar-spin 4s linear infinite;
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

.arena-empty b {
  color: #fff;
  font-size: 1.2rem;
}

.arena-empty span {
  max-width: 36ch;
}

.tracker-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 0;
  height: min(72vh, 760px);
}

.side-block {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.side-block h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-2);
}

.side-legend {
  display: flex;
  gap: 0.9rem;
  padding-right: 0.35rem;
  color: var(--muted);
}

.pl-list,
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
}

.pl-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem;
  border-radius: 12px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.pl-row + .pl-row {
  margin-top: 0.15rem;
}

.pl-row.is-me {
  background: rgba(var(--glow), 0.1);
}

.pl-row.is-target {
  background: rgba(255, 70, 96, 0.14);
  box-shadow: inset 3px 0 0 #ff4660;
}

.pl-row.is-dead {
  opacity: 0.45;
}

.pl-row.is-dead .pl-name {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 70, 96, 0.7);
}

.pl-row.is-winner {
  background: rgba(255, 211, 110, 0.12);
}

.pl-face {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  font-weight: 900;
  font-size: 0.85rem;
  color: #160a20;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--c);
}

.pl-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
}

.tag {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-left: 0.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  vertical-align: middle;
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag-me { color: var(--pink-2); border-color: rgba(var(--glow), 0.6); }
.tag-win { color: #ffd36e; border-color: rgba(255, 211, 110, 0.6); }

.pl-stats {
  display: flex;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.pl-stats b {
  min-width: 1.4rem;
  text-align: right;
  font-size: 0.9rem;
}

.pl-stats .kills {
  color: #ff8fa3;
}

.feed-list {
  max-height: 210px;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.2rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 150, 214, 0.08);
}

.feed-row.is-me {
  color: var(--pink-3);
}

.feed-row b {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7.5rem;
}

.feed-victim {
  color: #ff8fa3;
}

.feed-blade {
  width: 14px;
  height: 14px;
  flex: none;
  fill: var(--pink-2);
}

.feed-note {
  color: var(--muted);
}

.feed-row time {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.feed-empty,
.list-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.4rem 0.2rem;
  list-style: none;
}

.tracker-bottom {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.ctrl-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--violet));
  box-shadow: 0 8px 24px -8px rgba(var(--glow), 0.9);
}

.ctrl-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ctrl-play .i-pause,
.ctrl-play.is-playing .i-play { display: none; }
.ctrl-play.is-playing .i-pause { display: block; }

.ctrl-rates {
  display: flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.ctrl-rates button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}

.ctrl-rates button[aria-pressed="true"] {
  color: #fff;
  background: rgba(var(--glow), 0.3);
}

.ctrl-clock {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.ctrl-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.ctrl-select select,
.ctrl-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.ctrl-select select {
  max-width: 260px;
  color-scheme: dark;
}

.ctrl-btn:hover,
.ctrl-select select:hover {
  border-color: var(--pink);
}

.ctrl-btn[aria-pressed="false"] {
  color: var(--muted);
  text-decoration: line-through;
}

.momentum {
  position: relative;
  height: 110px;
}

.momentum canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  touch-action: none;
}

.momentum-tip {
  position: absolute;
  top: -0.4rem;
  transform: translate(-50%, -100%);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(16, 8, 24, 0.92);
  border: 1px solid var(--line);
}

.momentum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.lg::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  border-radius: 3px;
  vertical-align: -1px;
}

.lg-speed::before { background: linear-gradient(var(--pink), rgba(var(--glow-2), 0.2)); }
.lg-clash::before { background: rgba(181, 128, 255, 0.5); }
.lg-death::before { background: #ff4660; border-radius: 50%; }
.lg-win::before { background: #ffd36e; }

/* ---------------------------------------------------------------- status + updates */
.status-list,
.updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.status-row {
  --state: #96ecc8;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.status-row[data-state="updating"] { --state: #ffc4aa; }
.status-row[data-state="down"] { --state: #ff4660; }

.status-name {
  font-weight: 700;
  flex: 1;
}

.status-since {
  color: var(--muted);
  font-size: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--state);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--state);
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 8px var(--state);
}

.update-row {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.update-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.update-head h3 {
  font-size: 1.15rem;
}

.update-head time {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.update-row p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  white-space: pre-line;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .tracker-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracker-side {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .pl-list {
    max-height: 320px;
  }
}

@media (max-width: 900px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 5.4rem;
  }

  .dash-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dash-tabs [role="tab"] {
    width: auto;
    white-space: nowrap;
  }

  .tab-badge {
    display: none;
  }

  .overview-grid,
  .usage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-nav-title,
  .dash-back {
    display: none;
  }

  .dash-user span {
    display: none;
  }

  .arena-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .key-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracker-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracker-stats {
    width: 100%;
  }

  .tracker-stats div {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.6rem;
  }

  .tracker-stats dd {
    font-size: 1.1rem;
  }

  .ctrl-right {
    margin-left: 0;
  }

  .tracker-teaser {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-preview {
    margin-top: 4.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-crown,
  .arena-empty svg,
  .live-pill.is-live i {
    animation: none;
  }

  .arena-banner,
  .ring-fill {
    transition: none;
  }
}
