:root {
  color-scheme: dark;
  --bg: #07110e;
  --bg-soft: #0b1713;
  --panel: rgba(13, 29, 23, 0.82);
  --panel-solid: #0e1e18;
  --panel-elevated: #12261e;
  --line: rgba(155, 201, 178, 0.14);
  --line-strong: rgba(155, 220, 188, 0.24);
  --text: #eef8f2;
  --muted: #91a99c;
  --muted-2: #64796e;
  --accent: #71edac;
  --accent-strong: #36d986;
  --accent-soft: rgba(80, 225, 151, 0.1);
  --gold: #f1d179;
  --gold-soft: rgba(241, 209, 121, 0.12);
  --danger: #ff8c86;
  --danger-soft: rgba(255, 116, 110, 0.11);
  --cyan: #73d8ef;
  --violet: #b4a5ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 3%, rgba(57, 207, 132, 0.12), transparent 30rem),
    radial-gradient(circle at 7% 32%, rgba(69, 125, 111, 0.11), transparent 28rem),
    linear-gradient(145deg, #06100d 0%, #081410 45%, #07100d 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

::selection {
  color: #04100b;
  background: var(--accent);
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1520px);
  min-height: 104px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(84, 230, 159, 0.18));
}

.brand-mark svg {
  width: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}

.brand-mark svg circle {
  fill: var(--accent);
  stroke: none;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-kicker,
.section-kicker,
.eyebrow,
.spotlight-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  color: var(--muted);
}

.brand-name {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: 0.015em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}

.source-link:hover {
  color: var(--text);
}

.source-link svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 94px;
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 24, 18, 0.72);
  font-size: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted-2);
  box-shadow: 0 0 0 4px rgba(130, 160, 144, 0.08);
}

.live-chip[data-state="live"] {
  color: #bff8d8;
  border-color: rgba(102, 235, 166, 0.24);
}

.live-chip[data-state="live"] .live-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(84, 230, 159, 0.1), 0 0 12px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

.live-chip[data-state="error"] {
  color: #ffc0bd;
  border-color: rgba(255, 140, 134, 0.24);
}

.live-chip[data-state="error"] .live-dot {
  background: var(--danger);
}

.shell {
  width: min(100% - 48px, 1520px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(460px, 0.94fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  min-height: 590px;
  padding: 68px 0 58px;
}

.hero-copy {
  position: relative;
  max-width: 720px;
}

.hero-copy::before {
  position: absolute;
  z-index: -1;
  top: -80px;
  left: -100px;
  width: 330px;
  height: 330px;
  content: "";
  border: 1px solid rgba(108, 232, 170, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(108, 232, 170, 0.018),
    0 0 0 120px rgba(108, 232, 170, 0.012);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #9fc9b1;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5.15vw, 78px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.048em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-intro {
  max-width: 630px;
  margin: 26px 0 0;
  color: #a4b9ad;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 640;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.button-primary {
  color: #05130c;
  background: linear-gradient(135deg, #82f3b8, #4edc93);
  box-shadow: 0 10px 30px rgba(66, 221, 145, 0.13);
}

.button-primary svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
}

.button-primary.is-spinning svg {
  animation: spin 800ms linear infinite;
}

.button-ghost {
  color: #c3d6cb;
  border-color: var(--line-strong);
  background: rgba(13, 30, 23, 0.52);
}

.button-ghost:hover {
  border-color: rgba(130, 243, 184, 0.36);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.hero-meta strong {
  color: var(--muted);
  font-weight: 500;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.leader-spotlight {
  position: relative;
  min-height: 266px;
  overflow: hidden;
  padding: 29px 30px 23px;
  border: 1px solid rgba(128, 237, 177, 0.19);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% -10%, rgba(99, 239, 166, 0.19), transparent 44%),
    linear-gradient(150deg, rgba(21, 51, 38, 0.94), rgba(10, 25, 19, 0.9));
  box-shadow: var(--shadow);
}

.spotlight-top,
.spotlight-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-label {
  color: var(--gold);
}

.spotlight-rank {
  color: rgba(239, 249, 244, 0.14);
  font-family: var(--mono);
  font-size: 31px;
  font-weight: 750;
}

.spotlight-team {
  position: relative;
  z-index: 1;
  min-height: 31px;
  margin-top: 24px;
  color: #f2faf5;
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 660;
  letter-spacing: -0.025em;
}

.spotlight-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 15px;
}

.spotlight-score > span {
  font-family: var(--mono);
  font-size: clamp(43px, 4.1vw, 62px);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 1;
}

.spotlight-score small {
  color: var(--muted);
  font-size: 12px;
}

.spotlight-foot {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.spotlight-foot span:last-child {
  color: var(--accent);
  font-family: var(--mono);
}

.spotlight-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 146px;
  fill: none;
  stroke: rgba(138, 232, 177, 0.07);
  stroke-width: 1;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 25, 19, 0.63);
}

.quick-stat {
  min-width: 0;
  padding: 17px 14px;
  border-right: 1px solid var(--line);
}

.quick-stat:last-child {
  border-right: 0;
}

.quick-stat > span,
.quick-stat > small {
  display: block;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-stat > strong {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 620;
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid rgba(115, 216, 239, 0.12);
  border-radius: 14px;
  background: rgba(54, 118, 111, 0.08);
}

.notice-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(115, 216, 239, 0.25);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.notice-strip p {
  flex: 1;
  margin: 0;
  color: #90aaa0;
  font-size: 12px;
  line-height: 1.65;
}

.notice-strip strong {
  color: #bed2c7;
  font-weight: 620;
}

.text-button {
  padding: 4px 0;
  color: var(--accent);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.view-tabs {
  display: flex;
  gap: 8px;
  margin: 44px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.view-tabs::-webkit-scrollbar {
  display: none;
}

.view-tab {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: 160ms ease;
}

.view-tab span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.view-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.view-tab.is-active {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

.view-tab.is-active span {
  color: var(--accent);
}

.view[hidden] {
  display: none;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 388px;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 35, 27, 0.85), rgba(10, 23, 18, 0.78));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 25px 20px;
}

.panel-head.compact {
  padding-bottom: 8px;
}

.section-kicker {
  margin-bottom: 10px;
  color: #78a88e;
}

.panel-head h2,
.section-title-row h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.panel-head p,
.section-title-row p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 156px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 17, 12, 0.35);
}

.search-box svg {
  flex: 0 0 15px;
  width: 15px;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.4;
}

.search-box input {
  min-width: 0;
  width: 100%;
  outline: none;
  color: var(--text);
  border: 0;
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 17, 12, 0.34);
}

.segmented button {
  padding: 6px 10px;
  color: var(--muted-2);
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.segmented button.is-active {
  color: #d8f7e5;
  background: rgba(91, 221, 154, 0.12);
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 17, 12, 0.34);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.rank-table th {
  height: 42px;
  padding: 0 13px;
  color: var(--muted-2);
  background: rgba(5, 17, 12, 0.23);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

.rank-table th.col-rank {
  width: 68px;
}

.rank-table th:first-child {
  padding-left: 24px;
}

.rank-table th.col-score {
  width: 112px;
}

.rank-table th.col-coverage {
  width: 128px;
}

.rank-table th.col-peak {
  width: 115px;
}

.rank-table th.col-time {
  width: 120px;
}

.rank-table td {
  height: 68px;
  padding: 10px 13px;
  border-top: 1px solid rgba(151, 198, 175, 0.075);
  vertical-align: middle;
}

.rank-table td:first-child {
  padding-left: 24px;
}

.rank-table tbody tr {
  cursor: pointer;
  transition: background 160ms ease;
}

.rank-table tbody tr:hover {
  background: rgba(92, 222, 156, 0.035);
}

.rank-table tbody tr.is-top-three {
  background: linear-gradient(90deg, rgba(241, 209, 121, 0.026), transparent 45%);
}

.rank-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.rank-table tr:nth-child(1) .rank-number {
  color: var(--gold);
  border-color: rgba(241, 209, 121, 0.25);
  background: var(--gold-soft);
}

.team-cell {
  min-width: 0;
}

.team-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.team-name {
  overflow: hidden;
  color: #e7f4ec;
  font-size: 13px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
}

.mini-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.mini-badge.gold {
  color: var(--gold);
  border-color: rgba(241, 209, 121, 0.22);
  background: var(--gold-soft);
}

.mini-badge.warn {
  color: #ffb0ad;
  border-color: rgba(255, 140, 134, 0.2);
  background: var(--danger-soft);
}

.mini-badge.purple {
  color: #cfc6ff;
  border-color: rgba(180, 165, 255, 0.2);
  background: rgba(180, 165, 255, 0.08);
}

.score-main {
  display: block;
  color: #f1faf5;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.score-small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.delta.up {
  color: var(--accent);
}

.delta.down {
  color: var(--danger);
}

.delta.flat,
.delta.neutral {
  color: var(--muted-2);
}

.delta-main {
  display: block;
}

.delta-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
}

.coverage-bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(202, 235, 218, 0.08);
}

.coverage-bar i {
  display: block;
  width: var(--coverage, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3fd385, #85f0b9);
}

.coverage-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.peak-score {
  display: block;
  color: #d2ded7;
  font-family: var(--mono);
  font-size: 11px;
}

.peak-drop {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
}

.peak-drop.has-drop {
  color: #efaaa6;
}

.time-main {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 24px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
}

.legend-up {
  background: var(--accent);
}

.legend-down {
  background: var(--danger);
}

.side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.chart-panel {
  min-height: 340px;
}

.panel-note {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.chart-box {
  min-height: 210px;
  padding: 6px 18px 0;
}

.chart-box svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(161, 206, 183, 0.08);
  stroke-width: 1;
}

.chart-axis-label {
  fill: #62776c;
  font-family: var(--mono);
  font-size: 8px;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  stroke: #10241b;
  stroke-width: 2;
}

.chart-empty {
  display: grid;
  min-height: 200px;
  place-items: center;
  color: var(--muted-2);
  font-size: 11px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  padding: 12px 22px 20px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
}

.chart-legend i {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.count-badge {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  place-items: center;
  color: #ffb3af;
  border: 1px solid rgba(255, 140, 134, 0.2);
  border-radius: 8px;
  background: var(--danger-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.alerts-list {
  display: grid;
  gap: 8px;
  max-height: 322px;
  padding: 8px 18px 18px;
  overflow-y: auto;
}

.alert-card {
  padding: 12px;
  border: 1px solid rgba(255, 140, 134, 0.11);
  border-radius: 11px;
  background: rgba(101, 34, 33, 0.08);
  cursor: pointer;
}

.alert-card:hover {
  border-color: rgba(255, 140, 134, 0.22);
}

.alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-top strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-top span {
  color: var(--danger);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.alert-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 9px;
}

.empty-compact {
  padding: 28px 16px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.event-feed-panel {
  margin-top: 18px;
}

.event-feed {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.event-feed-horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(151, 198, 175, 0.075);
  cursor: pointer;
}

.event-row:hover {
  background: rgba(92, 222, 156, 0.03);
}

.event-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.event-row[data-type="score_down"] .event-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.event-row[data-type="leader_change"] .event-icon {
  color: var(--gold);
  background: var(--gold-soft);
}

.event-row h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 630;
}

.event-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.event-row time {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 10px 2px 26px;
}

.difficulty-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  white-space: nowrap;
}

.difficulty b {
  font-family: var(--mono);
  font-weight: 600;
}

.difficulty.hard {
  color: #ffc0bb;
  border-color: rgba(255, 140, 134, 0.17);
  background: rgba(255, 140, 134, 0.06);
}

.difficulty.medium {
  color: #f1d789;
  border-color: rgba(241, 209, 121, 0.17);
  background: rgba(241, 209, 121, 0.06);
}

.difficulty.easy {
  color: #9ee9bd;
  border-color: rgba(113, 237, 172, 0.17);
  background: rgba(113, 237, 172, 0.06);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.problem-card {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(18, 38, 30, 0.8), rgba(10, 23, 18, 0.78));
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.problem-card:hover,
.problem-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(113, 237, 172, 0.28);
}

.problem-card.is-active {
  background: linear-gradient(155deg, rgba(29, 66, 47, 0.78), rgba(11, 29, 21, 0.88));
}

.problem-card::after {
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 120px;
  height: 120px;
  content: "";
  border: 1px solid rgba(113, 237, 172, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(113, 237, 172, 0.015);
}

.problem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.problem-index {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}

.problem-card h3 {
  position: relative;
  z-index: 1;
  min-height: 36px;
  margin: 15px 0 4px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.problem-slug {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-leader-mini {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.problem-leader-mini span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-leader-mini strong {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.problem-cases {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3px;
  margin-top: 11px;
}

.problem-cases i {
  display: block;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(181, 219, 199, 0.11);
}

.problem-cases i.open {
  background: rgba(113, 237, 172, 0.55);
}

.problem-detail {
  margin-top: 18px;
  overflow: hidden;
}

.detail-empty {
  display: grid;
  min-height: 270px;
  place-items: center;
  align-content: center;
  padding: 32px;
  text-align: center;
}

.detail-empty h3 {
  margin: 14px 0 0;
  font-size: 17px;
}

.detail-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.empty-radar {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(113, 237, 172, 0.15) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(113, 237, 172, 0.15) 50%, transparent 51%);
  box-shadow: inset 0 0 0 13px rgba(113, 237, 172, 0.02);
}

.problem-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
}

.problem-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.problem-detail-title h2 {
  margin: 0;
  font-size: 25px;
}

.problem-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.problem-detail-meta strong {
  color: var(--text);
  font-family: var(--mono);
}

.case-summary {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}

.case-summary div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.case-summary span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
}

.case-summary strong {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 14px;
}

.problem-rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.problem-rank-table th {
  height: 38px;
  padding: 0 13px;
  color: var(--muted-2);
  background: rgba(4, 16, 11, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  text-align: left;
}

.problem-rank-table th:first-child,
.problem-rank-table td:first-child {
  padding-left: 25px;
}

.problem-rank-table th:nth-child(1) {
  width: 68px;
}

.problem-rank-table th:nth-child(2) {
  width: 22%;
}

.problem-rank-table th:nth-child(3),
.problem-rank-table th:nth-child(4) {
  width: 90px;
}

.problem-rank-table td {
  height: 58px;
  padding: 8px 13px;
  border-top: 1px solid rgba(151, 198, 175, 0.075);
  vertical-align: middle;
}

.problem-rank-table tbody tr {
  cursor: pointer;
}

.problem-rank-table tbody tr:hover {
  background: rgba(92, 222, 156, 0.035);
}

.contribution {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
}

.contribution small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 8px;
}

.case-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.case-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 50px;
  padding: 5px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 15, 11, 0.27);
  font-family: var(--mono);
  font-size: 8px;
}

.case-chip.pass {
  color: #a9edc5;
  border-color: rgba(113, 237, 172, 0.15);
}

.case-chip.fail {
  color: #ffb3ae;
  border-color: rgba(255, 140, 134, 0.14);
}

.case-chip.hidden {
  justify-content: center;
  color: var(--muted-2);
  border-style: dashed;
}

.changes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
}

.event-timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.event-timeline .event-row {
  grid-template-columns: 34px minmax(0, 1fr) 95px;
  padding: 18px 24px;
}

.peak-drop-list {
  display: grid;
  gap: 10px;
  padding: 12px 20px 20px;
}

.peak-drop-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 16, 11, 0.22);
  cursor: pointer;
}

.peak-drop-card:hover {
  border-color: rgba(255, 140, 134, 0.2);
}

.peak-drop-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.peak-drop-card strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peak-drop-card header span {
  color: var(--danger);
  font-family: var(--mono);
  font-size: 11px;
}

.drop-track {
  height: 5px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.drop-track i {
  display: block;
  width: var(--drop-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8c86, #d56d68);
}

.peak-drop-card footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 8px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.method-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(150deg, rgba(17, 38, 29, 0.78), rgba(9, 22, 16, 0.78));
}

.method-card::after {
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 140px;
  height: 140px;
  content: "";
  border: 1px solid rgba(113, 237, 172, 0.045);
  border-radius: 50%;
}

.method-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.method-card h3 {
  margin: 30px 0 13px;
  font-size: 20px;
}

.method-card p {
  margin: 11px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.method-warning {
  color: #b9c9bf !important;
}

.formula {
  margin: 11px 0;
  padding: 11px 13px;
  color: #b9f2d1;
  border: 1px solid rgba(113, 237, 172, 0.11);
  border-radius: 9px;
  background: rgba(67, 184, 117, 0.05);
  font-family: var(--mono);
  font-size: 10px;
}

.metric-explain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 17, 12, 0.27);
}

.metric-explain span {
  color: var(--muted);
  font-size: 10px;
}

.metric-explain strong {
  font-family: var(--mono);
  font-size: 10px;
}

.weight-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.weight-list span {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: center;
  position: relative;
  color: var(--muted);
  font-size: 10px;
}

.weight-list span::before {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.weight-list i {
  position: absolute;
  z-index: 1;
  bottom: -4px;
  left: 0;
  width: var(--w);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.weight-list b {
  grid-column: 2;
  grid-row: 1;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 500;
  text-align: right;
}

.case-boundary {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 9px;
}

.case-open,
.case-hidden {
  padding: 4px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  text-align: center;
}

.case-open {
  color: var(--accent);
  background: var(--accent-soft);
}

.case-hidden {
  color: var(--muted-2);
  border: 1px dashed var(--line-strong);
}

.source-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  margin-top: 16px;
  padding: 28px;
}

.source-panel h3 {
  margin: 0;
  font-size: 20px;
}

.source-panel p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.source-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.source-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.source-facts div:last-child {
  border-bottom: 0;
}

.source-facts dt {
  color: var(--muted-2);
}

.source-facts dd {
  margin: 0;
  color: #c8d9cf;
}

.loading-block {
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  color: var(--muted-2);
  font-size: 11px;
}

.loading-block.wide {
  grid-column: 1 / -1;
}

.loading-block span {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loading-block p {
  margin: 12px 0 0;
}

.skeleton-line {
  display: block;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skeleton-line.wide {
  width: 60%;
}

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(2, 8, 5, 0.7);
  backdrop-filter: blur(3px);
}

.team-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(620px, 94vw);
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 80% 0%, rgba(91, 221, 154, 0.1), transparent 25rem),
    #0a1712;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transform: translateX(104%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 25px 27px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 23, 18, 0.89);
  backdrop-filter: blur(16px);
}

.drawer-head h2 {
  margin: 3px 0 0;
  font-size: 25px;
  overflow-wrap: anywhere;
}

.drawer-close {
  flex: 0 0 35px;
}

.drawer-body {
  padding: 22px 27px 40px;
}

.drawer-error {
  padding: 50px 10px;
  color: var(--muted);
  text-align: center;
}

.drawer-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(35, 76, 55, 0.45), rgba(8, 23, 16, 0.52));
}

.drawer-rank {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
}

.drawer-score {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.drawer-score small {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0;
}

.drawer-delta {
  text-align: right;
}

.drawer-delta strong {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 17px;
}

.drawer-delta span {
  color: var(--muted-2);
  font-size: 9px;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 13px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.drawer-metric {
  padding: 14px 12px;
  border-right: 1px solid var(--line);
}

.drawer-metric:last-child {
  border-right: 0;
}

.drawer-metric span,
.drawer-metric small {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
}

.drawer-metric strong {
  display: block;
  margin: 6px 0 3px;
  font-family: var(--mono);
  font-size: 15px;
}

.drawer-section {
  margin-top: 25px;
}

.drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.drawer-section-title h3 {
  margin: 0;
  font-size: 13px;
}

.drawer-section-title span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.drawer-task-list {
  display: grid;
  gap: 7px;
}

.drawer-task-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 85px 78px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 16, 11, 0.19);
}

.drawer-task-index {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.drawer-task-name {
  min-width: 0;
}

.drawer-task-name strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-task-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.drawer-task-score {
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.drawer-task-score small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 8px;
}

.drawer-rank-tag {
  justify-self: end;
  padding: 4px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
}

.drawer-chart {
  min-height: 150px;
  padding: 10px 3px 0;
}

.drawer-history-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: 24px;
  left: 50%;
  max-width: min(420px, 90vw);
  padding: 11px 16px;
  color: #d7e8de;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #13281f;
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, 1520px);
  margin: 52px auto 0;
  padding: 24px 0 32px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 45px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .panel-head {
    flex-direction: column;
  }

  .panel-tools {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .event-feed-horizontal {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 55px;
  }

  .hero-side {
    grid-template-columns: minmax(0, 1.2fr) 1fr;
    align-items: stretch;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-stat:nth-child(2) {
    border-right: 0;
  }

  .quick-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .dashboard-layout,
  .changes-layout {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: 1fr 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .shell,
  .site-footer {
    width: min(100% - 28px, 1520px);
  }

  .topbar {
    min-height: 82px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-kicker {
    display: none;
  }

  .brand-name {
    font-size: 16px;
  }

  .source-link {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 40px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .hero-intro {
    font-size: 14px;
  }

  .hero-side,
  .side-stack {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .notice-strip {
    align-items: flex-start;
  }

  .notice-strip .text-button {
    display: none;
  }

  .view-tabs {
    margin-top: 30px;
  }

  .view-tab {
    padding: 10px 12px;
  }

  .view-tab span {
    display: none;
  }

  .panel {
    border-radius: 18px;
  }

  .panel-head {
    padding: 20px 18px 16px;
  }

  .panel-tools {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
    width: auto;
  }

  .rank-table {
    min-width: 840px;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-card {
    min-height: 180px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .problem-detail-head {
    flex-direction: column;
  }

  .problem-rank-table {
    min-width: 850px;
  }

  .method-grid,
  .source-panel {
    grid-template-columns: 1fr;
  }

  .source-panel {
    gap: 20px;
  }

  .event-timeline .event-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .event-timeline .event-row time {
    grid-column: 2;
  }

  .drawer-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .drawer-metric:nth-child(2) {
    border-right: 0;
  }

  .drawer-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .drawer-task-row {
    grid-template-columns: 22px minmax(0, 1fr) 75px;
  }

  .drawer-rank-tag {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quick-stat {
    padding: 15px 12px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 166px;
  }

  .difficulty-legend {
    gap: 5px;
  }

  .difficulty {
    padding: 6px 7px;
  }

  .drawer-body {
    padding: 18px;
  }

  .drawer-head {
    padding: 20px 18px 15px;
  }

  .drawer-hero {
    grid-template-columns: 1fr;
  }

  .drawer-delta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
