:root {
  color-scheme: dark;
  --bg: #020916;
  --bg-soft: #07162b;
  --panel: rgba(5, 20, 40, 0.78);
  --panel-strong: rgba(7, 25, 48, 0.92);
  --line: rgba(91, 141, 191, 0.34);
  --line-strong: rgba(79, 190, 255, 0.58);
  --text: #f2f7ff;
  --muted: #9fb1cb;
  --blue: #178bff;
  --cyan: #38c8ff;
  --green: #65ef96;
  --amber: #ffc94a;
  --purple: #a98cff;
  --danger: #ff7272;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 16% -8%, rgba(31, 103, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(25, 210, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 50% 105%, rgba(39, 219, 137, 0.12), transparent 36rem),
    linear-gradient(180deg, #020713 0%, #031024 46%, #020916 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(81, 183, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 183, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 28%, #000 0%, rgba(0, 0, 0, 0.66) 42%, transparent 82%);
}

body::after {
  position: fixed;
  inset: auto -12% -30% -12%;
  z-index: 0;
  height: 48vh;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, rgba(10, 133, 255, 0.16), transparent 68%);
  filter: blur(10px);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(740px, 1.35fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 20px;
}

.hero {
  min-width: 0;
  margin: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 0 18px rgba(34, 139, 255, 0.55));
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.brand-mark::before {
  left: 4px;
  top: 3px;
  width: 22px;
  height: 38px;
  transform: rotate(34deg);
  background: linear-gradient(180deg, #4a8cff 0%, #0e57d7 100%);
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.24);
}

.brand-mark::after {
  right: 6px;
  bottom: 2px;
  width: 21px;
  height: 36px;
  transform: rotate(34deg);
  background: linear-gradient(180deg, #ffe179 0%, #f0b628 100%);
  box-shadow: 0 0 18px rgba(255, 202, 74, 0.28), inset 0 1px 7px rgba(255, 255, 255, 0.24);
}

.brand-mark i {
  left: 17px;
  top: 10px;
  width: 19px;
  height: 29px;
  transform: rotate(34deg);
  background: #061127;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 2.35vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-shadow: 0 0 28px rgba(92, 183, 255, 0.18);
}

.hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto auto;
  gap: 14px;
  min-width: 0;
}

input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 24px;
  color: #eff7ff;
  font: inherit;
  font-size: 18px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(4, 15, 32, 0.96), rgba(5, 18, 38, 0.88)),
    radial-gradient(circle at 15% 0%, rgba(48, 176, 255, 0.16), transparent 45%);
  border: 1px solid rgba(54, 168, 255, 0.7);
  border-radius: 12px;
  box-shadow:
    inset 0 0 22px rgba(17, 100, 197, 0.18),
    0 0 0 1px rgba(9, 21, 41, 0.5),
    0 0 22px rgba(23, 139, 255, 0.14);
}

input::placeholder {
  color: rgba(217, 229, 250, 0.58);
}

input:focus {
  border-color: rgba(67, 209, 255, 0.95);
  box-shadow:
    inset 0 0 24px rgba(17, 100, 197, 0.22),
    0 0 0 3px rgba(38, 184, 255, 0.13),
    0 0 28px rgba(23, 139, 255, 0.22);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 22px;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(34, 163, 255, 0.98), rgba(10, 103, 221, 0.98));
  border: 1px solid rgba(82, 190, 255, 0.72);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 24px rgba(20, 124, 255, 0.42);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 34px rgba(36, 177, 255, 0.48);
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

button.secondary,
button.ghost {
  color: #dfeeff;
  background: rgba(12, 27, 49, 0.78);
  border-color: rgba(141, 174, 214, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

button.secondary:hover,
button.ghost:hover {
  border-color: rgba(75, 199, 255, 0.68);
  box-shadow: 0 0 24px rgba(51, 166, 255, 0.16);
}

button.small {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 9px;
}

.layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(390px, 0.78fr);
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 154, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 84% 30%, rgba(55, 235, 146, 0.08), transparent 31rem),
    linear-gradient(180deg, rgba(6, 20, 39, 0.88), rgba(4, 16, 32, 0.84));
  border: 1px solid rgba(106, 151, 197, 0.35);
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.layout::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(64, 188, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(64, 188, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, rgba(0, 0, 0, 0.35) 100%);
}

.layout > .panel {
  position: relative;
  z-index: 1;
}

.panel {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(5, 24, 48, 0.78), rgba(5, 18, 36, 0.64));
  border: 1px solid rgba(89, 137, 188, 0.32);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 44px rgba(18, 108, 206, 0.08);
  backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2,
.section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.panel-head h2 {
  font-size: 24px;
}

.section h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.panel-head h2::before,
.section h3::before {
  width: 24px;
  height: 24px;
  flex: none;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, transparent 36%, var(--cyan) 38% 48%, transparent 50%),
    conic-gradient(from 0deg, transparent 0 18%, var(--cyan) 18% 32%, transparent 32% 48%, var(--cyan) 48% 64%, transparent 64% 100%);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(56, 200, 255, 0.46);
}

.section h3::before {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(180deg, rgba(88, 206, 255, 0.95), rgba(24, 135, 255, 0.95));
  border-radius: 5px;
}

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

.placeholder,
.error {
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
  background: rgba(2, 12, 26, 0.54);
  border: 1px dashed rgba(95, 154, 208, 0.36);
  border-radius: 12px;
}

.error {
  color: #ffd9d9;
  background: rgba(84, 18, 28, 0.28);
  border-color: rgba(255, 114, 114, 0.46);
  border-style: solid;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  height: 36px;
  padding: 0 14px;
  color: #aebed4;
  font-size: 12px;
  background: rgba(8, 21, 40, 0.78);
  border-color: rgba(101, 142, 184, 0.28);
  border-radius: 999px;
  box-shadow: none;
}

.tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(45, 177, 255, 0.94), rgba(18, 99, 223, 0.94));
  border-color: rgba(84, 199, 255, 0.72);
  box-shadow: 0 0 22px rgba(25, 145, 255, 0.28);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
}

.tag::before {
  width: 8px;
  height: 8px;
  flex: none;
  content: "";
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.tag.success {
  color: var(--green);
  background: rgba(101, 239, 150, 0.12);
  border-color: rgba(101, 239, 150, 0.38);
}

.tag.warning {
  color: var(--amber);
  background: rgba(255, 201, 74, 0.12);
  border-color: rgba(255, 201, 74, 0.38);
}

.tag.danger {
  color: var(--danger);
  background: rgba(255, 114, 114, 0.12);
  border-color: rgba(255, 114, 114, 0.38);
}

.tag.info {
  color: #d7ebff;
  background: rgba(56, 200, 255, 0.1);
  border-color: rgba(56, 200, 255, 0.32);
}

.section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(109, 151, 197, 0.2);
}

.probability-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.prob-card {
  --card: var(--cyan);
  --card-2: var(--blue);
  --card-rgb: 56, 200, 255;
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 48%, rgba(var(--card-rgb), 0.16), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(var(--card-rgb), 0.14), transparent 34%),
    linear-gradient(180deg, rgba(5, 25, 54, 0.92), rgba(2, 14, 29, 0.88));
  border: 1px solid rgba(var(--card-rgb), 0.72);
  border-radius: 12px;
  box-shadow:
    inset 0 0 40px rgba(var(--card-rgb), 0.08),
    0 0 28px rgba(var(--card-rgb), 0.2);
}

.prob-card.weekly {
  --card: var(--green);
  --card-2: #25c878;
  --card-rgb: 101, 239, 150;
}

.prob-card::before {
  position: absolute;
  right: -8%;
  bottom: -38%;
  width: 58%;
  height: 72%;
  content: "";
  background:
    linear-gradient(120deg, rgba(var(--card-rgb), 0.2) 1px, transparent 1px),
    linear-gradient(60deg, rgba(var(--card-rgb), 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: skewY(-10deg);
  opacity: 0.55;
}

.prob-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 26%, transparent 74%, rgba(var(--card-rgb), 0.08));
}

.prob-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  flex: none;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(4, 18, 36, 0.98) 0 48%, transparent 49%),
    conic-gradient(from -90deg, var(--card) 0 72%, rgba(var(--card-rgb), 0.22) 72% 100%);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(var(--card-rgb), 0.36),
    inset 0 0 18px rgba(var(--card-rgb), 0.42);
}

.prob-orb::before {
  position: absolute;
  inset: 13px;
  content: "";
  border: 1px solid rgba(var(--card-rgb), 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(var(--card-rgb), 0.16);
}

.prob-orb::after {
  position: absolute;
  inset: 24px;
  content: "";
  border: 1px dashed rgba(var(--card-rgb), 0.34);
  border-radius: 50%;
}

.prob-orb span,
.prob-orb small {
  position: relative;
  z-index: 1;
  display: block;
}

.prob-orb span {
  align-self: end;
  color: #dff6ff;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 0 16px rgba(var(--card-rgb), 0.9);
}

.prob-orb small {
  align-self: start;
  margin-top: 6px;
  color: rgba(234, 248, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.prob-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.prob-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.prob-head .muted {
  color: var(--card);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.prob-head strong {
  display: block;
  margin-top: 5px;
  color: #f8fbff;
  font-size: 18px;
  font-weight: 900;
}

.prob-label {
  color: #d3e5f7;
  font-size: 13px;
  font-weight: 800;
}

.prob-value {
  margin-top: 4px;
  color: var(--card);
  font-size: clamp(52px, 5.4vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.075em;
  text-shadow: 0 0 26px rgba(var(--card-rgb), 0.62);
}

.prob-sub {
  margin-top: 16px;
  color: #c7d6e8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.prob-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric {
  position: relative;
  min-height: 110px;
  padding: 16px 18px 16px 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 42%, rgba(56, 200, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(7, 29, 57, 0.84), rgba(5, 18, 35, 0.78));
  border: 1px solid rgba(97, 151, 201, 0.32);
  border-radius: 12px;
  box-shadow: inset 0 0 28px rgba(29, 133, 235, 0.08);
}

.metric::before {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 42px;
  height: 42px;
  content: "";
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 24%, transparent 26%),
    linear-gradient(180deg, rgba(56, 200, 255, 0.95), rgba(26, 114, 232, 0.9));
  border: 1px solid rgba(112, 214, 255, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(56, 200, 255, 0.28);
}

.metric:nth-child(2)::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 24%, transparent 26%),
    linear-gradient(180deg, rgba(255, 208, 84, 0.98), rgba(219, 141, 24, 0.94));
  border-color: rgba(255, 210, 92, 0.7);
  box-shadow: 0 0 18px rgba(255, 201, 74, 0.3);
}

.metric:nth-child(3)::before,
.metric:nth-child(5)::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 24%, transparent 26%),
    linear-gradient(180deg, rgba(101, 239, 150, 0.98), rgba(34, 168, 96, 0.94));
  border-color: rgba(101, 239, 150, 0.7);
  box-shadow: 0 0 18px rgba(101, 239, 150, 0.3);
}

.metric:nth-child(6)::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 24%, transparent 26%),
    linear-gradient(180deg, rgba(169, 140, 255, 0.98), rgba(104, 84, 218, 0.94));
  border-color: rgba(169, 140, 255, 0.7);
  box-shadow: 0 0 18px rgba(169, 140, 255, 0.3);
}

.metric .label {
  margin-bottom: 8px;
  color: #cfdaea;
  font-size: 14px;
  font-weight: 700;
}

.metric .value {
  color: var(--green);
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(101, 239, 150, 0.22);
}

.metric .sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.kv,
.insight,
.row {
  background: rgba(3, 15, 31, 0.62);
  border: 1px solid rgba(91, 142, 190, 0.26);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.kv {
  padding: 13px 14px;
}

.kv .key {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.kv .val {
  color: #eef6ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.insights,
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  color: #e5f0ff;
  line-height: 1.7;
}

.dot {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: none;
  background:
    linear-gradient(180deg, rgba(101, 239, 150, 0.92), rgba(31, 177, 100, 0.92));
  border: 1px solid rgba(131, 255, 176, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(101, 239, 150, 0.28);
}

.row {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1.3fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
}

.row strong {
  color: #eff7ff;
  font-weight: 900;
}

.addr-btn {
  display: inline;
  height: auto;
  max-width: 100%;
  padding: 0;
  color: #79dbff;
  font-size: inherit;
  font-weight: 900;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.addr-btn:hover {
  color: #b8f0ff;
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

#winnerList,
#topWinners {
  overflow-x: auto;
}

.top-table {
  width: 100%;
  min-width: 560px;
  overflow: hidden;
  color: #dce9f8;
  font-size: 13px;
  border: 1px solid rgba(94, 143, 190, 0.28);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
}

.top-table th,
.top-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(94, 143, 190, 0.22);
}

.top-table th {
  color: #a9bad1;
  font-weight: 800;
  background: rgba(5, 18, 36, 0.7);
}

.top-table tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  color: #dff6ff;
  font-weight: 900;
  background: rgba(56, 200, 255, 0.12);
  border: 1px solid rgba(56, 200, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(56, 200, 255, 0.16);
}

.note,
.footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.note {
  margin: 14px 0 0;
  text-align: center;
}

.footnote {
  margin: 18px 0 0;
  padding-top: 16px;
  text-align: center;
  border-top: 1px solid rgba(109, 151, 197, 0.18);
}

code {
  padding: 1px 7px;
  color: #dff6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.94em;
  background: rgba(56, 200, 255, 0.1);
  border: 1px solid rgba(56, 200, 255, 0.18);
  border-radius: 999px;
}

.block-gap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(109, 151, 197, 0.2);
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .toolbar {
    grid-template-columns: minmax(300px, 1fr) auto auto auto;
  }
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .prob-value {
    font-size: clamp(48px, 8vw, 82px);
  }
}

@media (max-width: 860px) {
  .container {
    padding: 18px 14px 28px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input,
  button {
    height: 52px;
  }

  .layout {
    padding: 14px;
  }

  .metrics,
  .kvs,
  .probability-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand {
    align-items: flex-start;
  }

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

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 12px;
  }

  .panel {
    padding: 15px;
  }

  .panel-head,
  .prob-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .prob-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 18px;
  }

  .prob-orb {
    width: 138px;
    height: 138px;
  }

  .prob-head .muted {
    font-size: 22px;
  }

  .prob-value {
    font-size: 52px;
  }

  .metric {
    padding-left: 70px;
  }
}

/* Screenshot-matched dashboard layout */
#analyzeLatestBtn,
.visual-hidden,
[hidden] {
  display: none !important;
}

.dashboard-head #analyzeStatus,
.winners-panel #winnerMeta {
  display: none;
}

.topbar {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

.toolbar {
  grid-template-columns: minmax(420px, 1fr) 176px 188px;
}

#analyzeBtn::before,
#copyLinkBtn::before {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 24%, currentColor 24% 36%, transparent 36% 48%, currentColor 48% 60%, transparent 60%),
    linear-gradient(180deg, transparent 0 46%, currentColor 46% 56%, transparent 56%);
  opacity: 0.95;
}

#copyLinkBtn::before {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(currentColor, currentColor) 4px 2px / 11px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 16px / 11px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 2px / 2px 16px no-repeat,
    linear-gradient(currentColor, currentColor) 15px 2px / 2px 16px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 5px / 11px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 19px / 11px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 5px / 2px 16px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 5px / 2px 16px no-repeat;
}

.hero h1 {
  font-size: 34px;
}

.dashboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr) minmax(0, 1.38fr);
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(25, 149, 255, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 30%, rgba(68, 238, 148, 0.08), transparent 32rem),
    linear-gradient(180deg, rgba(6, 20, 39, 0.9), rgba(4, 16, 32, 0.88));
  border: 1px solid rgba(106, 151, 197, 0.38);
  border-radius: 14px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.dashboard::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(64, 188, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(64, 188, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0, 0, 0, 0.45) 100%);
}

.dashboard > * {
  position: relative;
  z-index: 1;
}

.dashboard-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-head h2,
.board-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.dashboard-head h2 {
  font-size: 28px;
}

.dashboard-head h2::before {
  width: 30px;
  height: 30px;
  flex: none;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(56, 200, 255, 0.9) 23% 34%, transparent 35%),
    conic-gradient(from 10deg, transparent 0 18%, var(--cyan) 18% 32%, transparent 32% 52%, var(--cyan) 52% 68%, transparent 68% 100%);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(56, 200, 255, 0.55);
}

.analysis-content {
  display: contents;
}

.analysis-content > .placeholder {
  grid-column: 1 / -1;
}

.dashboard-wide {
  grid-column: 1 / -1;
}

.probability-section {
  margin: 0;
  padding: 0;
}

.probability-grid {
  gap: 20px;
}

.prob-card {
  min-height: 286px;
  padding: 28px;
  border-radius: 11px;
}

.prob-orb {
  width: 220px;
  height: 220px;
}

.prob-orb span {
  font-size: clamp(28px, 2.8vw, 44px);
}

.prob-head .muted {
  font-size: 31px;
}

.prob-head strong {
  font-size: 24px;
}

.prob-value {
  font-size: clamp(78px, 7.1vw, 116px);
}

.prob-sub {
  color: #cdd9e8;
  font-size: 18px;
}

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

.status-card,
.board-card {
  background:
    radial-gradient(circle at 12% 22%, rgba(56, 200, 255, 0.11), transparent 24%),
    linear-gradient(180deg, rgba(7, 29, 57, 0.84), rgba(5, 18, 35, 0.78));
  border: 1px solid rgba(97, 151, 201, 0.34);
  border-radius: 11px;
  box-shadow: inset 0 0 28px rgba(29, 133, 235, 0.08);
}

.status-card {
  display: grid;
  grid-template-columns: 58px auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 104px;
  padding: 16px 18px;
}

.status-icon {
  width: 52px;
  height: 52px;
  grid-row: span 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.17) 0 18%, transparent 20%),
    linear-gradient(180deg, rgba(101, 239, 150, 0.95), rgba(26, 166, 94, 0.95));
  border: 1px solid rgba(127, 255, 174, 0.68);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(101, 239, 150, 0.34);
}

.status-card.warning .status-icon {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.17) 0 18%, transparent 20%),
    linear-gradient(180deg, rgba(255, 204, 79, 0.98), rgba(212, 136, 20, 0.96));
  border-color: rgba(255, 207, 89, 0.7);
  box-shadow: 0 0 20px rgba(255, 201, 74, 0.34);
}

.status-card.danger .status-icon {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.17) 0 18%, transparent 20%),
    linear-gradient(180deg, rgba(255, 114, 114, 0.98), rgba(190, 54, 72, 0.96));
  border-color: rgba(255, 126, 126, 0.7);
  box-shadow: 0 0 20px rgba(255, 114, 114, 0.3);
}

.status-card.info .status-icon {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.17) 0 18%, transparent 20%),
    linear-gradient(180deg, rgba(169, 140, 255, 0.98), rgba(93, 83, 211, 0.96));
  border-color: rgba(169, 140, 255, 0.7);
  box-shadow: 0 0 20px rgba(169, 140, 255, 0.32);
}

.status-label {
  color: #d9e5f3;
  font-size: 18px;
  font-weight: 800;
}

.status-value {
  min-width: 0;
  color: var(--green);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 0 0 16px rgba(101, 239, 150, 0.24);
}

.status-card.warning .status-value {
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 201, 74, 0.22);
}

.status-card.danger .status-value {
  color: var(--danger);
}

.status-card.info .status-value {
  color: #f1f5ff;
  font-size: clamp(18px, 1.6vw, 26px);
}

.board-card {
  min-height: 296px;
  padding: 22px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.board-head h3 {
  font-size: 25px;
}

.board-head h3::before {
  width: 28px;
  height: 28px;
  flex: none;
  content: "";
  background: linear-gradient(180deg, rgba(88, 206, 255, 0.98), rgba(24, 135, 255, 0.96));
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(56, 200, 255, 0.38);
}

.insight-panel {
  grid-column: 1;
}

.stats-panel {
  grid-column: 2;
}

.winners-panel {
  grid-column: 3;
}

.insight {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 7px 0;
}

.dot {
  position: relative;
  width: 28px;
  height: 28px;
  margin-top: 0;
  background: rgba(101, 239, 150, 0.12);
}

.dot::before {
  position: absolute;
  left: 8px;
  top: 5px;
  width: 8px;
  height: 14px;
  content: "";
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.stat-cell {
  min-height: 94px;
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(104, 150, 194, 0.26);
}

.stat-cell:nth-child(odd) {
  border-right: 1px solid rgba(104, 150, 194, 0.26);
}

.stat-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat-cell span {
  display: block;
  color: #cbd8e8;
  font-size: 15px;
}

.stat-cell strong {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: clamp(38px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(56, 200, 255, 0.28);
}

.stat-cell strong.warn {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 201, 74, 0.24);
}

.stats-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.winner-table {
  width: 100%;
  overflow: hidden;
  color: #dce9f8;
  font-size: 14px;
  border: 1px solid rgba(94, 143, 190, 0.3);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 9px;
}

.winner-table th,
.winner-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid rgba(94, 143, 190, 0.22);
  border-bottom: 1px solid rgba(94, 143, 190, 0.22);
}

.winner-table th:last-child,
.winner-table td:last-child {
  border-right: 0;
}

.winner-table tr:last-child td {
  border-bottom: 0;
}

.winner-table th {
  color: #a9bad1;
  font-weight: 800;
  background: rgba(5, 18, 36, 0.7);
}

.daily-text {
  color: var(--cyan);
}

.weekly-text {
  color: var(--green);
}

.footnote {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 8px;
  border-top: 0;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: minmax(300px, 1fr) auto auto;
  }

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

  .insight-panel,
  .stats-panel,
  .winners-panel {
    grid-column: auto;
  }

  .winners-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .dashboard,
  .status-strip,
  .probability-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-wide,
  .footnote,
  .winners-panel {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

  .status-strip {
    gap: 10px;
  }

  .status-card {
    grid-template-columns: 48px auto 1fr;
    min-height: 86px;
    padding: 12px;
  }

  .status-icon {
    width: 42px;
    height: 42px;
  }

  .winner-table {
    min-width: 560px;
  }

  #winnerList {
    overflow-x: auto;
  }
}

/* Compact pass: keep the reference-style icons, but stop them from dominating layout. */
.container {
  max-width: 1536px;
}

.hero h1 {
  font-size: clamp(28px, 2.2vw, 34px);
}

button {
  font-size: 16px;
}

#analyzeBtn::before,
#copyLinkBtn::before {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.dashboard {
  gap: 17px;
  padding: 22px;
}

.dashboard-head h2 {
  font-size: 26px;
}

.dashboard-head h2::before,
.board-head h3::before {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.prob-card {
  min-height: 246px;
  padding: 22px 24px;
  gap: 22px;
}

.prob-orb {
  width: 178px;
  height: 178px;
}

.prob-orb span {
  font-size: clamp(24px, 2vw, 34px);
}

.prob-orb small {
  font-size: 12px;
}

.prob-head {
  margin-bottom: 12px;
}

.prob-head .muted {
  font-size: clamp(22px, 2vw, 30px);
}

.prob-head strong {
  font-size: 20px;
}

.prob-value {
  font-size: clamp(58px, 5.4vw, 88px);
  letter-spacing: -0.06em;
}

.prob-sub {
  margin-top: 12px;
  font-size: 15px;
}

.prob-note {
  margin-top: 8px;
  font-size: 12px;
}

.status-strip {
  gap: 14px;
}

.status-card {
  grid-template-columns: 46px 1fr;
  grid-template-areas:
    "icon label"
    "icon value";
  min-height: 86px;
  padding: 13px 16px;
  column-gap: 12px;
}

.status-icon {
  position: relative;
  grid-area: icon;
  width: 42px;
  height: 42px;
}

.status-icon::before,
.status-icon::after {
  position: absolute;
  content: "";
}

.status-card:nth-child(1) .status-icon::before {
  left: 13px;
  top: 9px;
  width: 16px;
  height: 20px;
  background: rgba(255, 255, 255, 0.78);
  clip-path: polygon(50% 0, 88% 16%, 82% 70%, 50% 100%, 18% 70%, 12% 16%);
}

.status-card:nth-child(2) .status-icon::before {
  left: 12px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 12px 0 0 rgba(255, 255, 255, 0.72);
}

.status-card:nth-child(2) .status-icon::after {
  left: 9px;
  top: 21px;
  width: 24px;
  height: 10px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px 10px 4px 4px;
}

.status-card:nth-child(3) .status-icon::before {
  left: 14px;
  top: 8px;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.status-card:nth-child(3) .status-icon::after {
  left: 10px;
  top: 23px;
  width: 22px;
  height: 11px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px 12px 5px 5px;
}

.status-card:nth-child(4) .status-icon::before,
.status-card:nth-child(5) .status-icon::before {
  left: 10px;
  top: 11px;
  width: 22px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-top-width: 6px;
  border-radius: 4px;
}

.status-card:nth-child(4) .status-icon::after,
.status-card:nth-child(5) .status-icon::after {
  left: 15px;
  top: 20px;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    6px 0 0 rgba(255, 255, 255, 0.75),
    12px 0 0 rgba(255, 255, 255, 0.75),
    0 6px 0 rgba(255, 255, 255, 0.75),
    6px 6px 0 rgba(255, 255, 255, 0.75);
}

.status-label {
  grid-area: label;
  font-size: 15px;
}

.status-value {
  grid-area: value;
  font-size: clamp(18px, 1.55vw, 24px);
}

.status-card.info .status-value {
  font-size: clamp(16px, 1.35vw, 22px);
}

.board-card {
  min-height: 276px;
  padding: 19px;
}

.board-head {
  margin-bottom: 12px;
}

.board-head h3 {
  font-size: 23px;
}

.insight {
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.58;
}

.dot {
  width: 23px;
  height: 23px;
}

.dot::before {
  left: 7px;
  top: 4px;
  width: 7px;
  height: 12px;
}

.stat-cell {
  min-height: 82px;
  padding: 11px 10px;
}

.stat-cell span {
  font-size: 14px;
}

.stat-cell strong {
  font-size: clamp(30px, 3vw, 44px);
}

.winner-table {
  font-size: 13px;
}

.winner-table th,
.winner-table td {
  padding: 11px 12px;
}

@media (max-width: 620px) {
  .prob-card {
    padding: 16px;
  }

  .prob-orb {
    width: 132px;
    height: 132px;
  }

  .prob-value {
    font-size: 48px;
  }
}

/* Exact icon pass: use cropped PNG icons from lis1.png instead of CSS approximations. */
#analyzeBtn::before {
  width: 22px;
  height: 22px;
  background: url("./assets/icons/lis1-btn-analyze.png?v=20260428-transparent") center / contain no-repeat;
}

#copyLinkBtn::before {
  width: 22px;
  height: 22px;
  background: url("./assets/icons/lis1-btn-copy.png?v=20260428-transparent") center / contain no-repeat;
}

.dashboard-head h2::before {
  width: 28px;
  height: 28px;
  background: url("./assets/icons/lis1-target.png?v=20260428-transparent") center / contain no-repeat;
  border-radius: 0;
  box-shadow: none;
}

.board-head h3::before {
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 0;
  box-shadow: none;
}

.insight-panel .board-head h3::before {
  background-image: url("./assets/icons/lis1-analysis.png?v=20260428-transparent");
}

.stats-panel .board-head h3::before {
  background-image: url("./assets/icons/lis1-stats.png?v=20260428-transparent");
}

.winners-panel .board-head h3::before {
  background-image: url("./assets/icons/lis1-trophy.png?v=20260428-transparent");
}

.status-card {
  grid-template-columns: 62px 1fr;
  min-height: 94px;
}

.status-icon {
  width: 58px;
  height: 58px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.status-icon::before,
.status-icon::after {
  content: none !important;
}

.status-card.icon-shield .status-icon {
  background-image: url("./assets/icons/lis1-status-shield.png?v=20260428-transparent");
}

.status-card.icon-group .status-icon {
  background-image: url("./assets/icons/lis1-status-group.png?v=20260428-transparent");
}

.status-card.icon-daily .status-icon {
  background-image: url("./assets/icons/lis1-status-daily.png?v=20260428-iconfix");
}

.status-card.icon-weekly .status-icon {
  background-image: url("./assets/icons/lis1-status-weekly.png?v=20260428-transparent");
}

.status-card.icon-recent .status-icon {
  background-image: url("./assets/icons/lis1-status-recent.png?v=20260428-recent2");
}

/* lis2 layout */
.dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.75fr) minmax(0, 1.32fr);
  gap: 18px;
  padding: 22px;
}

.dashboard-head {
  display: none;
}

.top-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(390px, 1fr);
  gap: 14px;
}

.top-matrix .prob-card,
.reward-card {
  min-height: 322px;
}

.top-matrix .prob-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 12px 22px;
  padding: 24px;
}

.prob-title {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.top-matrix .prob-orb {
  width: 172px;
  height: 172px;
}

.top-matrix .prob-copy {
  align-self: center;
}

.top-matrix .prob-head {
  margin-bottom: 10px;
}

.top-matrix .prob-head .muted {
  font-size: 26px;
}

.top-matrix .prob-head strong {
  display: inline;
  margin-left: 8px;
  font-size: 19px;
}

.top-matrix .prob-value {
  font-size: clamp(62px, 5vw, 90px);
}

.top-matrix .prob-label,
.top-matrix .prob-note {
  display: none;
}

.top-matrix .prob-sub {
  max-width: 360px;
  color: #cbd6e6;
  font-size: 18px;
}

.top-matrix .prob-sub::first-letter {
  color: var(--cyan);
}

.top-matrix .prob-trophy {
  width: 28px;
  height: 28px;
}

.reward-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 34% 48%, rgba(130, 255, 90, 0.2), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(86, 255, 108, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 42, 24, 0.9), rgba(3, 24, 23, 0.88));
  border: 1px solid rgba(96, 255, 105, 0.66);
  border-radius: 11px;
  box-shadow: inset 0 0 48px rgba(90, 255, 90, 0.08), 0 0 24px rgba(82, 255, 92, 0.12);
}

.reward-card::after {
  position: absolute;
  right: -5%;
  bottom: -32%;
  width: 64%;
  height: 58%;
  content: "";
  background:
    linear-gradient(120deg, rgba(98, 255, 110, 0.18) 1px, transparent 1px),
    linear-gradient(60deg, rgba(98, 255, 110, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: skewY(-10deg);
}

.reward-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-head h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
}

.reward-head span {
  padding: 10px 14px;
  color: #d9ffe0;
  background: rgba(49, 143, 54, 0.2);
  border: 1px solid rgba(104, 255, 119, 0.42);
  border-radius: 999px;
}

.reward-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 230px;
}

.reward-icon {
  width: 150px;
  height: 150px;
  background: url("./assets/circled-icons/icon-total-reward-star-coin.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 24px rgba(117, 255, 76, 0.35));
}

.reward-value {
  color: var(--green);
  font-size: clamp(58px, 5.5vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 0 26px rgba(101, 239, 150, 0.45);
}

.reward-value small {
  font-size: 0.58em;
  letter-spacing: -0.04em;
}

.reward-sub {
  margin-top: 18px;
  color: #cbd8ca;
  font-size: 17px;
}

.metric-strip {
  display: grid;
  grid-template-columns: 1.32fr repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 142px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 42%, rgba(56, 200, 255, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(7, 29, 57, 0.84), rgba(5, 18, 35, 0.78));
  border: 1px solid rgba(97, 151, 201, 0.34);
  border-radius: 11px;
}

.metric-card.interest {
  border-color: rgba(255, 201, 74, 0.52);
  background:
    radial-gradient(circle at 12% 42%, rgba(255, 201, 74, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(45, 31, 11, 0.82), rgba(5, 18, 35, 0.78));
}

.metric-icon {
  width: 66px;
  height: 66px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.metric-card.interest .metric-icon { background-image: url("./assets/circled-icons/icon-total-interest-coins.svg"); }
.metric-card.history .metric-icon { background-image: url("./assets/circled-icons/icon-participation-bar-chart.svg"); }
.metric-card.daily-days .metric-icon { background-image: url("./assets/circled-icons/icon-daily-calendar.svg"); }
.metric-card.weekly-days .metric-icon { background-image: url("./assets/circled-icons/icon-weekly-calendar.svg"); }
.metric-card.wins .metric-icon { background-image: url("./assets/circled-icons/icon-win-count-trophy.svg"); }
.metric-card.recent .metric-icon { background-image: url("./assets/circled-icons/icon-latest-participation-clock.svg"); }

.metric-label {
  color: #d9e5f3;
  font-size: 18px;
  font-weight: 800;
}

.metric-value {
  margin-top: 6px;
  color: var(--cyan);
  font-size: clamp(34px, 3.2vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 0 18px rgba(56, 200, 255, 0.26);
}

.metric-card.interest .metric-value {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 201, 74, 0.26);
}

.metric-card.weekly-days .metric-value {
  color: var(--green);
  text-shadow: 0 0 18px rgba(101, 239, 150, 0.24);
}

.metric-card.wins .metric-value {
  color: var(--purple);
}

.metric-value.small {
  color: #f2f7ff;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.18;
  letter-spacing: 0;
}

.metric-sub {
  margin-top: 8px;
  color: #d8cfad;
  font-size: 15px;
}

.insight-panel {
  grid-column: 1;
}

.status-panel {
  grid-column: 2;
}

.winners-panel {
  grid-column: 3;
}

.status-list {
  overflow: hidden;
  border: 1px solid rgba(94, 143, 190, 0.28);
  border-radius: 9px;
}

.status-row {
  display: grid;
  grid-template-columns: 34px auto minmax(90px, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(94, 143, 190, 0.22);
}

.status-row:last-child {
  border-bottom: 0;
}

.mini-icon {
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mini-icon.blacklist { background-image: url("./assets/circled-icons/icon-blacklist-shield.svg"); }
.mini-icon.graylist { background-image: url("./assets/circled-icons/icon-graylist-users.svg"); }
.mini-icon.current-daily { background-image: url("./assets/circled-icons/icon-current-daily-users.svg"); }
.mini-icon.current-weekly { background-image: url("./assets/circled-icons/icon-current-weekly-calendar-small.svg"); }

.status-row span {
  color: #d3deed;
  font-weight: 800;
}

.status-row strong {
  justify-self: start;
  color: var(--green);
  font-size: 22px;
}

.success-text { color: var(--green) !important; }
.warning-text,
.warn-text { color: var(--amber) !important; }
.danger-text { color: var(--danger) !important; }
.info-text { color: var(--cyan) !important; }

.board-card {
  min-height: 294px;
}

.winners-panel .board-head h3::before {
  background-image: url("./assets/circled-icons/icon-daily-probability-trophy.svg");
}

.insight-panel .board-head h3::before {
  background-image: url("./assets/circled-icons/icon-analysis-document.svg");
}

.prob-card .prob-trophy {
  background-image: url("./assets/circled-icons/icon-daily-probability-trophy.svg");
}

.prob-card.weekly .prob-trophy {
  background-image: url("./assets/circled-icons/icon-weekly-probability-trophy.svg");
}

.winner-table th,
.winner-table td {
  padding: 10px 12px;
}

@media (max-width: 1360px) {
  .top-matrix,
  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .reward-card,
  .metric-card.recent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .top-matrix,
  .metric-strip,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .winners-panel,
  .insight-panel {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .top-matrix .prob-card,
  .reward-body,
  .metric-card {
    grid-template-columns: 1fr;
  }

  .top-matrix .prob-orb,
  .reward-icon {
    margin: 0 auto;
  }
}

.prob-orb {
  grid-template-rows: 1fr 30px auto;
  row-gap: 2px;
}

.prob-trophy {
  position: relative;
  z-index: 1;
  display: block;
  width: 32px;
  height: 32px;
  background: url("./assets/icons/lis1-trophy-daily.png?v=20260428-transparent") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(var(--card-rgb), 0.55));
}

.prob-card.weekly .prob-trophy {
  background-image: url("./assets/icons/lis1-trophy-weekly.png?v=20260428-transparent");
}

@media (max-width: 620px) {
  .status-card {
    grid-template-columns: 54px 1fr;
  }

  .status-icon {
    width: 50px;
    height: 50px;
  }
}

/* lis2 exact spacing pass: fill the canvas like the reference image. */
.container {
  width: 100%;
  max-width: none;
  padding: 20px 22px 28px;
}

.topbar {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 22px;
}

.toolbar {
  grid-template-columns: minmax(0, 1fr) 198px 182px;
  gap: 16px;
}

input,
button {
  height: 58px;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 0.75fr) minmax(520px, 1.25fr);
  gap: 18px;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard::before {
  display: none;
}

.top-matrix {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.93fr) minmax(0, 1.03fr);
  gap: 14px;
}

.top-matrix .prob-card,
.reward-card {
  min-width: 0;
  min-height: 322px;
}

.top-matrix .prob-card {
  grid-template-columns: clamp(152px, 11.2vw, 178px) minmax(0, 1fr);
  padding: 22px 24px;
  gap: 10px 22px;
}

.prob-title {
  font-size: clamp(22px, 1.65vw, 27px);
}

.top-matrix .prob-orb {
  width: clamp(152px, 11.2vw, 178px);
  height: clamp(152px, 11.2vw, 178px);
}

.top-matrix .prob-head .muted {
  font-size: clamp(22px, 1.65vw, 28px);
}

.top-matrix .prob-head strong {
  font-size: clamp(17px, 1.28vw, 21px);
}

.top-matrix .prob-value {
  font-size: clamp(58px, 5.15vw, 92px);
}

.top-matrix .prob-sub {
  max-width: none;
  font-size: clamp(15px, 1.2vw, 18px);
}

.prob-card .prob-trophy {
  background-image: url("./assets/circled-icons/icon-daily-probability-trophy.svg");
}

.prob-card.weekly .prob-trophy {
  background-image: url("./assets/circled-icons/icon-weekly-probability-trophy.svg");
}

.reward-card {
  padding: 22px;
}

.reward-body {
  grid-template-columns: clamp(130px, 10.5vw, 158px) minmax(0, 1fr);
  gap: 26px;
}

.reward-icon {
  width: clamp(128px, 10.4vw, 156px);
  height: clamp(128px, 10.4vw, 156px);
}

.reward-value {
  font-size: clamp(56px, 5.1vw, 90px);
}

.metric-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-width: 0;
  grid-template-columns: clamp(54px, 4.8vw, 72px) minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 18px;
}

.metric-icon {
  width: clamp(54px, 4.6vw, 66px);
  height: clamp(54px, 4.6vw, 66px);
}

.metric-label {
  font-size: clamp(15px, 1.18vw, 18px);
}

.metric-value {
  font-size: clamp(30px, 3vw, 52px);
}

.metric-value.small {
  font-size: clamp(20px, 1.75vw, 30px);
}

.insight-panel {
  grid-column: 1;
}

.status-panel {
  grid-column: 2;
}

.winners-panel {
  grid-column: 3;
}

.footnote {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 18px 20px;
  background: rgba(4, 18, 36, 0.72);
  border: 1px solid rgba(94, 143, 190, 0.34);
  border-radius: 11px;
}

@media (max-width: 1180px) {
  .top-matrix,
  .metric-strip,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .reward-card,
  .metric-card.recent,
  .insight-panel,
  .status-panel,
  .winners-panel {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 16px 14px 24px;
  }

  .topbar,
  .toolbar {
    grid-template-columns: 1fr;
  }
}
