:root {
  color-scheme: light;
  --ink: #1c1714;
  --muted: #746a61;
  --paper: #f7efe3;
  --panel: #fffdf8;
  --line: #2a211d;
  --soft-line: rgba(42, 33, 29, 0.14);
  --gold: #d6a437;
  --red: #c93d34;
  --blue: #226fa4;
  --green: #287d5b;
  --sidebar: #17110f;
  --sidebar-soft: #251b17;
  --shadow: 0 6px 18px rgba(33, 24, 18, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-page {
  min-height: 100vh;
  color: #f8efe2;
  background: radial-gradient(circle at 72% 28%, rgba(214, 164, 55, 0.18), transparent 30%),
    linear-gradient(135deg, #15100e 0%, #14251f 58%, #0d1714 100%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
}

.landing-brand {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
}

.landing-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  color: #f8efe2;
  background: rgba(248, 239, 226, 0.08);
  border: 1px solid rgba(248, 239, 226, 0.18);
  border-radius: 999px;
  font-weight: 900;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(540px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: calc(100vh - 64px);
  padding: clamp(22px, 4vw, 56px) clamp(18px, 4vw, 56px);
}

.landing-copy {
  max-width: 690px;
}

.landing-eyebrow {
  margin: 0 0 12px;
  color: #f0c25b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-copy h1 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.landing-copy > p:not(.landing-eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(248, 239, 226, 0.82);
  font-size: 17px;
  line-height: 1.45;
}

.activity-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.activity-showcase figure {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 8px 6px;
  background: rgba(248, 239, 226, 0.1);
  border: 1px solid rgba(248, 239, 226, 0.16);
  border-radius: 8px;
}

.activity-showcase img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24));
}

.activity-showcase figcaption {
  color: rgba(248, 239, 226, 0.86);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

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

.landing-proof div {
  min-width: 0;
  padding: 12px;
  background: rgba(248, 239, 226, 0.08);
  border: 1px solid rgba(248, 239, 226, 0.14);
  border-radius: 8px;
}

.landing-proof strong,
.landing-proof span {
  display: block;
}

.landing-proof strong {
  color: #f0c25b;
}

.landing-proof span {
  margin-top: 4px;
  color: rgba(248, 239, 226, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.landing-rivalry {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  justify-items: center;
}

.clash-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(220px, 0.94fr) minmax(150px, 0.78fr);
  align-items: center;
  width: min(720px, 100%);
  min-height: 388px;
}

.clash-stage::before {
  position: absolute;
  inset: 20px 50% 20px auto;
  width: 2px;
  content: "";
  background: linear-gradient(transparent, rgba(248, 239, 226, 0.44), transparent);
  box-shadow: 0 0 34px rgba(214, 164, 55, 0.36);
}

.clash-side {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(248, 239, 226, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.clash-left {
  justify-self: end;
  color: #eefbf5;
  background: linear-gradient(145deg, rgba(44, 136, 97, 0.96), rgba(18, 64, 48, 0.92));
  border-color: rgba(240, 194, 91, 0.52);
  transform: rotate(-2deg);
}

.clash-right {
  justify-self: start;
  color: #fff4ef;
  background: linear-gradient(145deg, rgba(201, 61, 52, 0.9), rgba(110, 35, 32, 0.92));
  transform: rotate(2deg);
}

.king-crown {
  position: absolute;
  top: -34px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 22px);
  align-items: end;
  gap: 2px;
  height: 42px;
  padding: 0 8px 5px;
  background: linear-gradient(180deg, #f8d66a, #c89120);
  border: 2px solid rgba(42, 33, 29, 0.88);
  border-bottom-width: 4px;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(-8deg);
}

.king-crown::before,
.king-crown::after,
.king-crown span {
  display: block;
  content: "";
  background: #fff4b3;
  border: 2px solid rgba(42, 33, 29, 0.72);
  border-radius: 50% 50% 4px 4px;
}

.king-crown::before,
.king-crown::after {
  position: absolute;
  top: -12px;
  width: 18px;
  height: 24px;
}

.king-crown::before {
  left: 6px;
  transform: rotate(-18deg);
}

.king-crown::after {
  right: 6px;
  transform: rotate(18deg);
}

.king-crown span {
  width: 18px;
  height: 28px;
}

.king-crown span:nth-child(2) {
  height: 38px;
}

.king-label {
  justify-self: start;
  padding: 5px 8px;
  color: #17110f;
  background: #f0c25b;
  border: 1px solid rgba(42, 33, 29, 0.72);
  border-radius: 999px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.clash-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.clash-player span,
.clash-player strong,
.clash-player small {
  display: block;
}

.clash-player span {
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clash-player strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #17110f;
  background: #fffdf8;
  border: 1px solid rgba(42, 33, 29, 0.2);
  border-radius: 8px;
  font-size: 28px;
}

.clash-player small {
  grid-column: 1 / -1;
  color: rgba(255, 253, 248, 0.78);
  font-weight: 900;
}

.clash-side p {
  margin: 0;
  color: rgba(255, 253, 248, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.landing-seal-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(286px, 34vw);
  aspect-ratio: 1;
  padding: clamp(16px, 3vw, 28px);
  background: radial-gradient(circle, rgba(255, 253, 248, 0.2), rgba(214, 164, 55, 0.1) 52%, transparent 70%);
  border: 1px solid rgba(248, 239, 226, 0.16);
  border-radius: 50%;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
}

.landing-seal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.38));
}

.landing-seal-wrap span {
  position: absolute;
  right: 10%;
  bottom: 16%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #17110f;
  background: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.32);
  font-size: 20px;
  font-weight: 950;
}

.landing-verdict-card {
  width: min(560px, 96%);
  padding: 12px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(42, 33, 29, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.landing-verdict-card span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-verdict-card strong,
.landing-verdict-card p {
  display: block;
  margin: 4px 0 0;
}

.landing-verdict-card p {
  color: var(--muted);
  line-height: 1.35;
}

.pv-section {
  display: grid;
  place-items: center;
  padding: 0 clamp(18px, 4vw, 56px) 18px;
}

.pv-card {
  position: relative;
  width: min(1040px, 100%);
  margin-top: -6px;
  padding: 14px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(201, 61, 52, 0.08), transparent 16%),
    #fffdf8;
  border: 1px solid rgba(42, 33, 29, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.pv-card::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px dashed rgba(42, 33, 29, 0.18);
  border-radius: 6px;
  pointer-events: none;
}

.pv-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pv-card h2 {
  margin: 8px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
}

.pv-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.pv-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: calc(100% - 116px);
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pv-evidence li {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  background: rgba(42, 33, 29, 0.04);
  border: 1px solid rgba(42, 33, 29, 0.1);
  border-radius: 6px;
}

.pv-evidence strong,
.pv-evidence span {
  display: block;
}

.pv-evidence strong {
  color: var(--red);
  font-size: 11px;
  text-transform: uppercase;
}

.pv-evidence span {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.pv-stamp {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: var(--red);
  border: 4px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-13deg);
  opacity: 0.82;
}

.pv-stamp::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
}

.landing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 56px) 48px;
}

.landing-strip article {
  min-width: 0;
  padding: 18px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 8px;
}

.landing-strip span {
  color: var(--red);
  font-weight: 950;
}

.landing-strip h2 {
  margin: 8px 0;
  font-size: 20px;
}

.landing-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-frame {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  margin-top: 56px;
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 56px;
  padding: 0 14px;
  background: #fffdf8;
  border-bottom: 1px solid rgba(42, 33, 29, 0.14);
}

.top-brand {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.top-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(42, 33, 29, 0.18);
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
  line-height: 1;
}

.top-button.primary {
  color: #fffdf8;
  background: var(--red);
  border-color: var(--red);
}

.top-profile {
  display: grid;
  min-width: 180px;
}

.top-profile label {
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.top-profile select {
  min-height: 32px;
  padding: 6px 30px 6px 10px;
  border: 1px solid rgba(42, 33, 29, 0.18);
  border-radius: 999px;
}

.sidebar {
  position: sticky;
  top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 12px;
  color: #fff7ec;
  background: var(--sidebar);
  border-right: 2px solid var(--line);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a,
.side-form {
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.06);
}

.side-nav a {
  min-height: 34px;
  padding: 8px 10px;
  font-weight: 800;
}

.side-nav a:hover {
  background: rgba(255, 248, 236, 0.12);
}

.side-section,
.side-select-form,
.side-form {
  display: grid;
  gap: 8px;
}

.side-heading,
.eyebrow,
.section-heading p {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-heading {
  color: #f0c25b;
}

.side-select-form {
  padding: 10px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.06);
}

.side-select-form p {
  margin: 0;
  color: rgba(255, 248, 236, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.side-form {
  padding: 10px;
  margin-top: auto;
}

.workspace {
  min-width: 0;
  padding: 14px;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.workspace-header h1,
.section-heading h2,
.court-form h3,
.mini-form h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.workspace-header h1 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

.header-copy {
  max-width: 760px;
  margin: 4px 0 0;
  color: #51463f;
  font-size: 14px;
  line-height: 1.45;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary,
.btn-secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--line);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.btn-primary,
button {
  color: #fffdf8;
  background: var(--red);
}

.btn-secondary {
  background: var(--panel);
}

button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}

.stats-band,
.dashboard-grid,
.lower-grid {
  display: grid;
  gap: 10px;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) auto minmax(360px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(42, 33, 29, 0.14);
  border-radius: 8px;
}

.dashboard-context {
  min-width: 0;
}

.dashboard-context span {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-context strong {
  display: block;
  overflow: hidden;
  color: #51463f;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(42, 33, 29, 0.12);
  border-radius: 8px;
}

.scope-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
}

.scope-tabs a.active {
  color: #fffdf8;
  background: var(--sidebar);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
}

.filter-selects form {
  min-width: 0;
}

.filter-selects label {
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.filter-selects select {
  min-height: 28px;
  padding: 6px 10px;
  border-width: 1px;
}

.dashboard-filters p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.stats-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}

.insights-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1.25fr)) repeat(4, minmax(110px, 0.72fr));
  gap: 10px;
  margin-bottom: 10px;
}

.insight-card {
  min-width: 0;
  min-height: 62px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.spotlight-card {
  min-width: 0;
  padding: 8px 10px;
  color: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spotlight-card.victim {
  background: var(--green);
}

.spotlight-card.killer {
  background: var(--red);
}

.spotlight-card span {
  display: block;
  color: rgba(255, 253, 248, 0.82);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.spotlight-card strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-card p {
  margin: 4px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-weight: 850;
}

.stat-card {
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid rgba(42, 33, 29, 0.28);
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  font-size: 24px;
  line-height: 1;
}

.stat-card span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.cup-dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(480px, 1.32fr);
  gap: 10px;
  margin-bottom: 10px;
}

.cup-card,
.podium-card {
  min-width: 0;
  min-height: 154px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cup-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #fffdf8;
  background: linear-gradient(135deg, #17110f 0%, #24382f 100%);
}

.cup-visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 96px;
}

.cup-bowl {
  position: relative;
  width: 58px;
  height: 40px;
  background: linear-gradient(145deg, #f8d66a 0%, #c88921 78%);
  border: 2px solid #2a211d;
  border-radius: 12px 12px 30px 30px;
  box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.22);
}

.cup-bowl::before,
.cup-bowl::after {
  position: absolute;
  top: 10px;
  width: 14px;
  height: 20px;
  content: "";
  border: 2px solid #2a211d;
  border-radius: 50%;
}

.cup-bowl::before {
  left: 6px;
  border-right: 0;
}

.cup-bowl::after {
  right: 6px;
  border-left: 0;
}

.cup-stem {
  width: 18px;
  height: 22px;
  background: #d6a437;
  border: 2px solid #2a211d;
  border-top: 0;
}

.cup-base {
  width: 46px;
  height: 12px;
  background: #8b5d1c;
  border: 2px solid #2a211d;
  border-radius: 6px 6px 3px 3px;
}

.cup-copy {
  min-width: 0;
}

.cup-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.cup-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-weight: 750;
  line-height: 1.25;
}

.cup-copy .eyebrow {
  color: #f0c25b;
}

.cup-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cup-metrics div {
  min-width: 0;
  padding: 8px;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
}

.cup-metrics strong,
.cup-metrics span {
  display: block;
}

.cup-metrics strong {
  font-size: 18px;
  line-height: 1;
}

.cup-metrics span {
  color: rgba(255, 253, 248, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.podium-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.compact-heading h2 {
  font-size: 18px;
}

.podium-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 92px;
}

.podium-slot {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  min-width: 0;
}

.podium-player {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.podium-player span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
}

.podium-player strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-player small {
  color: var(--muted);
  font-weight: 850;
}

.podium-step {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px;
  color: #fffdf8;
  background: var(--green);
  border: 1px solid var(--line);
  border-radius: 8px 8px 4px 4px;
}

.podium-step strong,
.podium-step span {
  display: block;
  text-align: center;
}

.podium-step strong {
  font-size: 18px;
  line-height: 1;
}

.podium-step span {
  font-size: 12px;
  font-weight: 850;
}

.rank-1 .podium-step {
  min-height: 66px;
  background: #c89120;
}

.rank-2 .podium-step {
  min-height: 54px;
  background: #226fa4;
}

.rank-3 .podium-step {
  min-height: 42px;
  background: #8b5d1c;
}

.podium-slot.current .podium-player {
  border-color: var(--line);
  box-shadow: inset 0 0 0 3px rgba(214, 164, 55, 0.35);
}

.stats-band div,
.panel,
.empty-state {
  background: var(--panel);
  border: 1px solid rgba(42, 33, 29, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-band div {
  min-height: 64px;
  padding: 10px 12px;
}

.stats-band strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-grid {
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr) minmax(280px, 0.85fr);
  align-items: start;
}

.player-dashboard-grid {
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr) minmax(280px, 0.85fr);
}

.panel {
  min-width: 0;
  padding: 12px;
}

.section-heading {
  min-width: 0;
}

.section-heading p {
  margin: 0 0 4px;
}

.section-heading h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.activity-list,
.leaderboard,
.actions-stack,
.challenge-list,
.timeline,
.global-board {
  display: grid;
  gap: 8px;
}

.activity-list,
.leaderboard,
.global-board {
  margin-top: 10px;
}

.activity-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid var(--soft-line);
  border-radius: 6px;
  font-weight: 850;
}

.activity-pill span,
.activity-pill small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-pill small {
  color: var(--muted);
  font-weight: 750;
}

.activity-pill.active {
  color: #fffdf8;
  background: var(--blue);
  border-color: var(--line);
}

.activity-pill.active small {
  color: #e9f7ff;
}

.rank-row,
.global-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.rank-row {
  grid-template-columns: 54px minmax(0, 1fr) minmax(92px, auto) minmax(118px, auto);
}

.global-row {
  grid-template-columns: 54px minmax(0, 1fr) repeat(4, minmax(86px, auto));
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--gold);
  font-weight: 950;
}

.rank-main {
  min-width: 0;
}

.rank-main h3,
.rank-main p,
.global-row h3,
.global-row p {
  margin: 0;
}

.rank-main h3,
.global-row h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.rank-main p,
.global-row p,
.meta-cell small,
.timeline p,
.challenge-card p {
  color: var(--muted);
  line-height: 1.35;
}

.score-cell,
.meta-cell,
.global-row > div:not(.rank-number):not(.rank-main) {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.score-cell strong,
.global-row strong {
  font-size: 20px;
  line-height: 1;
}

.score-cell span,
.meta-cell span,
.global-row span {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.court-form,
.mini-form {
  display: grid;
  gap: 12px;
}

.mini-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--soft-line);
}

.court-form.flush {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #443830;
  font-weight: 850;
}

.side-form label {
  color: #fff7ec;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(42, 33, 29, 0.22);
  border-radius: 6px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #80766e;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34, 111, 164, 0.16);
}

.check-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
}

.check-row input {
  min-height: auto;
}

.lower-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  margin-top: 10px;
}

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

.rivalry-list,
.challenge-list,
.timeline,
.activity-summary-list {
  margin-top: 10px;
}

.rivalry-list {
  display: grid;
  gap: 10px;
}

.activity-summary-list {
  display: grid;
  gap: 10px;
}

.rivalry-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.rivalry-card > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.rivalry-card strong,
.rivalry-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rivalry-card > div:first-child span {
  color: var(--green);
  font-weight: 850;
  text-align: right;
}

.rivalry-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.rivalry-metrics div {
  min-width: 0;
  padding: 6px;
  border-radius: 6px;
  background: rgba(42, 33, 29, 0.05);
}

.rivalry-metrics span,
.rivalry-metrics small {
  display: block;
}

.rivalry-metrics span {
  font-size: 16px;
  font-weight: 950;
}

.rivalry-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.card-note,
.panel-note {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.activity-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.activity-summary-row div {
  display: grid;
  min-width: 0;
}

.activity-summary-row div:last-child {
  justify-items: end;
}

.activity-summary-row strong,
.activity-summary-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-summary-row div:first-child strong {
  font-size: 15px;
}

.activity-summary-row div:last-child strong {
  font-size: 20px;
  line-height: 1;
}

.activity-summary-row span {
  color: var(--muted);
  font-weight: 800;
}

.activity-summary-row div:last-child span {
  text-align: right;
}

.group-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.group-focus div {
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.group-focus strong,
.group-focus span {
  display: block;
}

.group-focus strong {
  font-size: 22px;
  line-height: 1;
}

.group-focus span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.challenge-card,
.timeline article {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.challenge-card > div,
.timeline article > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.challenge-card strong,
.challenge-card span,
.timeline strong,
.timeline span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.challenge-card span,
.timeline span {
  color: var(--green);
  font-weight: 850;
  text-align: right;
}

.challenge-card p,
.timeline p {
  margin: 0;
}

.challenge-card button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--gold);
}

.empty-state {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
}

.global-panel {
  margin-top: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .actions-stack {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: start;
  }
}

@media (max-width: 980px) {
  .landing-hero,
  .landing-proof,
  .landing-strip {
    grid-template-columns: 1fr;
  }

  .activity-showcase {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
  }

  .landing-hero {
    min-height: auto;
  }

  .pv-section {
    padding-top: 0;
  }

  .pv-evidence {
    grid-template-columns: 1fr;
    max-width: calc(100% - 112px);
  }

  .clash-stage {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .clash-stage::before {
    inset: 50% 20px auto;
    width: auto;
    height: 2px;
  }

  .landing-seal-wrap {
    width: min(320px, 76vw);
  }

  .clash-left,
  .clash-right {
    justify-self: stretch;
    transform: none;
  }

  .king-crown {
    top: -24px;
    left: 14px;
    transform: rotate(-5deg) scale(0.86);
    transform-origin: left bottom;
  }

  .top-header {
    gap: 10px;
    padding: 0 12px;
  }

  .top-brand span {
    font-size: 19px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-profile {
    min-width: 150px;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
  }

  .workspace {
    padding: 16px;
  }

  .workspace-header,
  .header-actions {
    display: grid;
    justify-content: stretch;
  }

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

  .dashboard-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dashboard-context strong {
    white-space: normal;
  }

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

  .dashboard-filters p {
    text-align: left;
  }

  .dashboard-grid,
  .lower-grid,
  .actions-stack,
  .player-dashboard-grid,
  .cup-dashboard {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 641px) and (max-width: 980px) {
  .clash-stage {
    grid-template-columns: minmax(130px, 0.78fr) minmax(210px, 0.94fr) minmax(130px, 0.78fr);
    align-items: center;
    min-height: 360px;
  }

  .clash-stage::before {
    inset: 20px 50% 20px auto;
    width: 2px;
    height: auto;
  }

  .landing-seal-wrap {
    width: min(260px, 34vw);
  }

  .clash-left {
    justify-self: end;
    transform: rotate(-2deg);
  }

  .clash-right {
    justify-self: start;
    transform: rotate(2deg);
  }

  .pv-evidence {
    max-width: none;
    padding-right: 108px;
  }
}

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

  .landing-copy h1 {
    font-size: 42px;
  }

  .landing-copy > p:not(.landing-eyebrow) {
    font-size: 16px;
  }

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

  .activity-showcase figure:last-child {
    grid-column: 1 / -1;
  }

  .clash-player span {
    font-size: 20px;
  }

  .pv-card p {
    max-width: none;
  }

  .pv-evidence {
    max-width: none;
    padding-bottom: 96px;
  }

  .pv-stamp {
    width: 92px;
    height: 92px;
  }

  .top-header {
    height: 104px;
    align-items: stretch;
    flex-direction: column;
    padding: 10px 12px;
  }

  .top-brand {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .top-brand img {
    width: 32px;
    height: 32px;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-button {
    flex: 1 1 0;
  }

  .top-profile {
    flex: 1 1 120px;
    min-width: 120px;
  }

  .app-frame {
    min-height: calc(100vh - 104px);
    margin-top: 104px;
  }

  .workspace {
    padding: 12px;
  }

  .stats-band,
  .two-cols,
  .group-focus,
  .cup-card,
  .filter-selects {
    grid-template-columns: 1fr;
  }

  .cup-visual {
    min-height: 132px;
  }

  .cup-copy h2 {
    font-size: 24px;
  }

  .podium-stage {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .podium-slot {
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-rows: auto;
    align-items: stretch;
  }

  .podium-step,
  .rank-1 .podium-step,
  .rank-2 .podium-step,
  .rank-3 .podium-step {
    min-height: 72px;
  }

  .spotlight-card strong {
    white-space: normal;
  }

  .insights-band {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .global-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .score-cell,
  .meta-cell,
  .global-row > div:not(.rank-number):not(.rank-main) {
    grid-column: 2;
    justify-items: start;
  }

  .score-cell span,
  .meta-cell span,
  .global-row span {
    text-align: left;
  }

  .challenge-card > div,
  .timeline article > div,
  .rivalry-card > div:first-child,
  .activity-summary-row {
    grid-template-columns: 1fr;
  }

  .challenge-card span,
  .timeline span,
  .rivalry-card > div:first-child span,
  .activity-summary-row div:last-child span {
    text-align: left;
  }

  .activity-summary-row div:last-child {
    justify-items: start;
  }

  .rivalry-metrics {
    grid-template-columns: 1fr;
  }
}
