:root {
  --page: #ecebea;
  --shell: rgba(255, 255, 255, 0.88);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --mint: #58e4cf;
  --mint-deep: #22c7b2;
  --mint-soft: #dffaf5;
  --ink: #242832;
  --muted: #78808b;
  --line: rgba(36, 40, 50, 0.08);
  --line-strong: rgba(36, 40, 50, 0.14);
  --shadow: 0 28px 70px rgba(54, 76, 93, 0.16);
  --float-shadow: 0 18px 45px rgba(54, 76, 93, 0.18);
  --blue: #4c7cf3;
  --green: #22b889;
  --gold: #f4b942;
  --red: #ec6a64;
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 14px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 228, 207, 0.22), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.92), transparent 28%),
    var(--page);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(255, 255, 255, 0.35) 48% 52%, transparent 52%),
    radial-gradient(circle at 58% 52%, rgba(255, 255, 255, 0.56), transparent 30%);
  opacity: 0.72;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  padding: 16px 24px;
}

.topbar {
  width: calc(100vw - 60px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 20px 0 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(72, 85, 96, 0.12);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--mint), #8ff5e8);
  color: #18322e;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(34, 199, 178, 0.25);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 16px;
  background: #2b3038;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(36, 40, 50, 0.22);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.page {
  width: calc(100vw - 60px);
  margin: 18px auto 24px;
}

.login-page {
  min-height: 100vh;
  width: min(460px, calc(100vw - 60px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.login-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: stretch;
}

.hero-panel,
.login-panel,
.panel,
.metric,
.table-panel,
.screen-panel {
  background: var(--shell);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 54px 44px 36px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  left: -4%;
  top: -8%;
  width: 48%;
  height: 78%;
  border-radius: 0 48% 48% 0;
  background: linear-gradient(145deg, #59e7d0, #78f2e3);
  z-index: 0;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 72px;
  bottom: 76px;
  width: 230px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  filter: blur(10px);
  transform: rotate(-8deg);
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.hero-title h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-title p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  max-width: 650px;
}

.rule-strip {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rule {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 32px rgba(72, 85, 96, 0.11);
}

.rule strong {
  display: block;
  font-size: 25px;
}

.rule span {
  color: var(--muted);
  font-size: 13px;
}

.login-panel {
  padding: 30px;
}

.simple-login {
  width: 100%;
  padding: 34px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-brand h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.login-brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-field {
  display: block;
}

.login-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #e04f49;
  font-size: 13px;
  font-weight: 800;
}

.login-panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.role-grid {
  display: grid;
  gap: 12px;
}

.role-card {
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s, background 0.22s;
}

.role-card:hover,
.role-card.active {
  border-color: rgba(34, 199, 178, 0.55);
  background: rgba(223, 250, 245, 0.82);
  box-shadow: 0 14px 30px rgba(34, 199, 178, 0.14);
  transform: translateY(-2px);
}

.role-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.role-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.team-select {
  display: none;
  margin-top: 16px;
}

.team-select.visible {
  display: block;
}

.team-select label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.team-select select,
.login-field input,
.entry-row input,
.entry-team-box input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
}

.login-submit {
  width: 100%;
  margin-top: 18px;
}

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

.cockpit-shell {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.content-deck {
  display: grid;
  gap: 18px;
}

.stage-card {
  min-height: calc(100vh - 126px);
  position: sticky;
  top: 104px;
  overflow: hidden;
  padding: 26px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage-card::before {
  content: "";
  position: absolute;
  left: -34%;
  top: -6%;
  width: 124%;
  height: 43%;
  border-radius: 0 0 52% 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.58), transparent 16%),
    linear-gradient(145deg, #4fe1cc, #88f4e7);
  z-index: 0;
}

.stage-card::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 204px;
  width: 176px;
  height: 62px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(10px);
  transform: rotate(-10deg);
}

.stage-orb,
.stage-copy,
.stage-stats,
.stage-highlight,
.stage-mini {
  position: relative;
  z-index: 1;
}

.stage-orb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  color: #156b60;
  box-shadow: 0 18px 34px rgba(72, 85, 96, 0.12);
}

.stage-copy {
  margin-top: 78px;
}

.stage-copy span,
.stage-highlight span {
  display: block;
  color: #237568;
  font-size: 12px;
  font-weight: 900;
}

.stage-copy h2 {
  margin: 8px 0 0;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.stage-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.stage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.stage-stats div,
.stage-highlight,
.stage-mini {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(72, 85, 96, 0.08);
}

.stage-stats div {
  padding: 15px;
}

.stage-stats strong {
  display: block;
  font-size: 21px;
}

.stage-stats span,
.stage-mini span,
.stage-highlight small {
  color: var(--muted);
  font-size: 12px;
}

.stage-highlight {
  margin-top: 12px;
  padding: 18px;
}

.stage-highlight strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.stage-highlight small {
  display: block;
  margin-top: 6px;
}

.stage-mini {
  margin-top: 12px;
  padding: 10px 14px;
}

.stage-mini div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  border-bottom: 1px solid var(--line);
}

.stage-mini div:last-child {
  border-bottom: 0;
}

.stage-mini b {
  font-size: 13px;
}

.floating-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(72, 85, 96, 0.12);
  backdrop-filter: blur(18px);
}

.floating-nav .side-btn {
  width: auto;
  white-space: nowrap;
}

.sidebar {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 104px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.side-btn {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  margin-bottom: 0;
}

.side-btn:hover,
.side-btn.active {
  background: #2b3038;
  color: #1f776b;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(36, 40, 50, 0.14);
}

.main {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 0 4px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: #1f776b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(72, 85, 96, 0.1);
}

.round-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(72, 85, 96, 0.1);
}

.round-switch-btn {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  gap: 1px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.round-switch-btn strong {
  font-size: 13px;
  line-height: 1.1;
}

.round-switch-btn span {
  font-size: 10px;
  line-height: 1.1;
}

.round-switch-btn.active {
  background: #2b3038;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(36, 40, 50, 0.14);
}

.table-panel h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric {
  padding: 20px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  right: -22px;
  bottom: -28px;
  border-radius: 999px;
  background: rgba(88, 228, 207, 0.24);
}

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

.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 31px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.panel {
  padding: 20px;
  border-radius: 28px;
}

.panel h3,
.table-panel h3,
.screen-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.table-panel {
  overflow: hidden;
  border-radius: 28px;
}

.table-panel h3 {
  padding: 20px 20px 0;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.match-table {
  min-width: 1280px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

th {
  background: rgba(223, 250, 245, 0.78);
  color: #236d64;
  font-weight: 900;
}

td {
  color: var(--ink);
}

tbody tr:hover {
  background: rgba(88, 228, 207, 0.08);
}

td.left,
th.left {
  text-align: left;
}

.team-cell strong {
  display: block;
  font-size: 14px;
}

.team-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.vs-cell {
  color: #1f776b;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.status.ok {
  background: #daf7ed;
  color: var(--green);
}

.status.bad {
  background: #ffe2df;
  color: var(--red);
}

.status.wait {
  background: #fff1cd;
  color: #b37712;
}

.round-report-stack {
  display: grid;
  gap: 18px;
}

.round-report-card {
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 250, 0.72)),
    radial-gradient(circle at 88% 8%, rgba(88, 228, 207, 0.2), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.round-report-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.round-report-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.round-report-head h3 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.1;
}

.round-winner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.round-winner-chip {
  min-width: 118px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  text-align: center;
}

.round-winner-chip small,
.match-summary-top small,
.day-result-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.round-winner-chip strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.round-winner-chip.decided {
  background: #daf7ed;
  border-color: rgba(34, 184, 137, 0.22);
}

.round-winner-chip.pending {
  background: #fff1cd;
  border-color: rgba(179, 119, 18, 0.18);
}

.tier-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.tier-report-card {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.tier-report-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(43, 48, 56, 0.92);
  color: #fff;
}

.tier-report-title span {
  font-size: 20px;
  font-weight: 1000;
}

.tier-report-title strong {
  font-size: 13px;
}

.match-summary-list {
  display: grid;
  gap: 12px;
}

.match-summary-card {
  min-width: 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(72, 85, 96, 0.08);
}

.match-summary-card.decided {
  border-color: rgba(34, 184, 137, 0.24);
  box-shadow: 0 16px 34px rgba(34, 184, 137, 0.1);
}

.match-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.match-summary-top strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
}

.match-summary-top em {
  color: #1f776b;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
}

.team-display.round {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.team-display.round em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.final-winner {
  flex: none;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.final-winner.ok {
  color: var(--green);
  background: #daf7ed;
}

.final-winner.wait {
  color: #b37712;
  background: #fff1cd;
}

.daily-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.day-result-card {
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(248, 250, 249, 0.88);
  border: 1px solid var(--line);
}

.day-result-card.win {
  background: rgba(218, 247, 237, 0.68);
}

.day-result-card.draw {
  background: rgba(255, 241, 205, 0.72);
}

.day-result-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--ink);
  font-size: 12px;
}

.day-result-card b {
  color: #d7192f;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.day-result-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
}

.win-count-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.win-count-line span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(36, 40, 50, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.win-count-line b {
  color: var(--ink);
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sync-pill.syncing,
.sync-pill.saving {
  background: #fff1cd;
  color: #9f680d;
}

.sync-pill.synced {
  background: #daf7ed;
  color: var(--green);
}

.sync-pill.error {
  background: #ffe2df;
  color: var(--red);
}

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

.screen-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.screen-date-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.34);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.screen-date-select span {
  color: #50606a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.screen-date-select select {
  height: 30px;
  min-width: 96px;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 249, 247, 0.96);
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  outline: none;
}

.screen-home-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 16px;
  background: #2b3038;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(36, 40, 50, 0.18);
}

.screen-home-btn:hover {
  background: #151922;
}

.refresh-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(88, 228, 207, 0.2);
  border: 1px solid rgba(34, 199, 178, 0.35);
  color: #1f776b;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(34, 199, 178, 0.12);
}

.refresh-btn:hover {
  background: #58e4cf;
  color: #18322e;
}

.fullscreen-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(72, 85, 96, 0.1);
}

.fullscreen-btn:hover {
  background: #2b3038;
  color: #fff;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tab.active {
  background: #2b3038;
  color: #fff;
  border-color: transparent;
  font-weight: 900;
}

.screen {
  min-height: 100vh;
}

.screen .topbar {
  background: rgba(255, 255, 255, 0.78);
}

.screen-page {
  width: calc(100vw - 60px);
  margin: 18px auto 24px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.18fr 0.86fr;
  gap: 18px;
}

.screen-panel {
  padding: clamp(18px, 2vw, 32px);
  border-radius: var(--radius-xl);
}

.screen-panel h3 {
  font-size: clamp(28px, 2.9vw, 52px);
}

.screen-match-stage {
  margin-top: 18px;
  min-height: auto;
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(16px, 1.6vw, 28px);
  overflow: visible;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 250, 0.72)),
    radial-gradient(circle at 8% 10%, rgba(88, 228, 207, 0.2), transparent 32%);
}

.screen-match-stage:fullscreen {
  width: 100vw;
  min-height: 100vh;
  height: auto;
  overflow: auto;
  padding: clamp(18px, 1.7vw, 30px);
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(88, 228, 207, 0.26), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(135deg, #f7faf9, #e8efed);
}

.screen-match-stage:fullscreen h3 {
  font-size: clamp(28px, 2.9vw, 52px);
}

.match-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  margin-top: 12px;
}

.screen-match-card {
  min-height: clamp(170px, 20vh, 238px);
  display: grid;
  grid-template-columns: clamp(56px, 4.8vw, 86px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(26px, 2vw, 40px);
  padding: clamp(16px, 1.45vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 50% 0%, rgba(88, 228, 207, 0.14), transparent 35%);
  box-shadow: 0 22px 46px rgba(72, 85, 96, 0.12);
}

.screen-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(58px, 4.8vw, 86px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.35vw, 24px);
}

.screen-versus .team-row {
  min-height: clamp(128px, 13.5vh, 170px);
  grid-template-columns: minmax(0, 1fr) minmax(168px, auto) auto;
  padding: clamp(18px, 1.6vw, 28px);
  border-radius: clamp(22px, 1.8vw, 34px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(222, 229, 226, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.screen-vs {
  width: clamp(58px, 4.8vw, 86px);
  height: clamp(58px, 4.8vw, 86px);
  display: grid;
  place-items: center;
  border-radius: clamp(22px, 1.7vw, 34px);
  background: #2b3038;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 26px);
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 34px rgba(36, 40, 50, 0.18);
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.team-name {
  font-size: 18px;
  font-weight: 900;
}

.screen-versus .team-name {
  min-width: 0;
  font-size: clamp(26px, 2.5vw, 46px);
  line-height: 1.12;
}

.score {
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.score small,
.team-money small {
  display: block;
  color: var(--muted);
  font-size: clamp(11px, 0.8vw, 15px);
  font-weight: 700;
  line-height: 1.1;
}

.team-money b {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.screen-versus .team-money b {
  font-size: clamp(34px, 3.3vw, 62px);
  line-height: 1.1;
  color: #e33b32;
}

.screen-stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.screen-stage-head span {
  display: block;
  color: #087368;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 900;
  margin-bottom: 6px;
}

.screen-stage-head h3 {
  margin: 0;
  line-height: 1;
}

.screen-stat-strip {
  display: flex;
  gap: 10px;
}

.screen-stat-strip div {
  min-width: clamp(104px, 9vw, 160px);
  padding: clamp(10px, 1vw, 16px) clamp(14px, 1.2vw, 20px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.screen-stat-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.screen-stat-strip b {
  display: block;
  margin-top: 3px;
  font-size: clamp(22px, 2vw, 38px);
  font-variant-numeric: tabular-nums;
}

.screen-match-list {
  min-height: 0;
  display: grid;
  gap: clamp(16px, 1.5vw, 26px);
}

.screen-match-stage:fullscreen .screen-match-list {
  grid-auto-rows: auto;
}

.screen-match-stage:fullscreen .screen-match-card {
  min-height: clamp(178px, 23vh, 260px);
}

.team-display.screen {
  display: grid;
  align-items: start;
  gap: 5px;
}

.team-display.screen strong {
  font-size: inherit;
  line-height: 1.05;
}

.team-display.screen em {
  margin-left: 0;
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.2;
}

.screen-team-card.winner {
  border-color: rgba(39, 201, 157, 0.38);
  background: linear-gradient(135deg, rgba(231, 252, 246, 0.94), rgba(255, 255, 255, 0.72));
}

.screen-team-card.loser {
  border-color: rgba(255, 122, 112, 0.32);
}

.entry-grid {
  display: grid;
  gap: 10px;
}

.entry-match-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(72, 85, 96, 0.08);
}

.entry-match-meta {
  display: grid;
  gap: 6px;
}

.entry-match-meta strong {
  font-size: 16px;
}

.entry-match-meta span {
  color: var(--muted);
  font-size: 12px;
}

.entry-team-box {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 128px 128px 78px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.entry-team-head {
  display: grid;
  gap: 4px;
}

.entry-team-head strong {
  font-size: 16px;
}

.entry-team-head span {
  color: var(--muted);
  font-size: 12px;
}

.entry-vs {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 20px;
  background: #2b3038;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(36, 40, 50, 0.16);
}

.entry-row {
  display: grid;
  grid-template-columns: 120px 1fr 130px 130px 130px 120px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(72, 85, 96, 0.08);
}

.entry-row input {
  text-align: right;
}

.entry-row label {
  display: grid;
  gap: 5px;
}

.entry-row label small,
.entry-team-box label small {
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
}

.entry-team-box label {
  display: grid;
  gap: 5px;
}

.entry-team-box .status {
  justify-self: center;
  align-self: end;
  margin-bottom: 3px;
}

.helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.team-display {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.team-display strong {
  font-weight: 900;
}

.team-display em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}

.team-display.table,
.team-display.entry,
.team-display.stage,
.team-display.heading,
.team-display.mini {
  display: inline-flex;
}

.team-display.stage,
.team-display.heading {
  align-items: flex-end;
}

.team-display.screen em {
  margin-left: 0;
  font-size: clamp(14px, 0.95vw, 18px);
}

.team-display.mini em {
  font-size: 0.78em;
}

.screen .screen-page {
  width: calc(100vw - 60px);
  margin-top: 12px;
}

.screen-match-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 1.7vw, 30px);
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 222, 112, 0.68), transparent 20%),
    radial-gradient(circle at 18% 18%, rgba(76, 210, 255, 0.38), transparent 28%),
    radial-gradient(circle at 83% 24%, rgba(95, 155, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #0637d9 0%, #0f68ff 48%, #0451df 100%);
  box-shadow: 0 28px 70px rgba(16, 67, 169, 0.32);
}

.screen-match-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px) 0 0 / 42px 42px,
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.18) 46% 48%, transparent 48%);
  opacity: 0.42;
}

.screen-match-stage:fullscreen {
  padding: clamp(18px, 1.7vw, 30px);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 222, 112, 0.68), transparent 20%),
    radial-gradient(circle at 18% 18%, rgba(76, 210, 255, 0.38), transparent 28%),
    radial-gradient(circle at 83% 24%, rgba(95, 155, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #0637d9 0%, #0f68ff 48%, #0451df 100%);
}

.screen-stage-head {
  position: relative;
  z-index: 1;
  color: #fff;
}

.screen-stage-head span {
  color: #d9fff7;
  text-shadow: 0 2px 10px rgba(2, 39, 112, 0.45);
}

.screen-stage-head h3 {
  color: #fff;
  text-shadow: 0 5px 22px rgba(2, 28, 92, 0.48);
}

.screen-stat-strip div {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.screen-stat-strip small {
  color: rgba(255, 255, 255, 0.78);
}

.screen-match-list {
  position: relative;
  z-index: 1;
  gap: clamp(18px, 1.8vw, 30px);
}

.screen-match-card,
.screen-match-stage:fullscreen .screen-match-card {
  min-height: clamp(255px, 28vh, 330px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: clamp(16px, 1.7vw, 28px);
  border-radius: clamp(28px, 2.6vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 218, 91, 0.45), transparent 25%),
    linear-gradient(90deg, rgba(255, 43, 67, 0.84) 0 47%, rgba(0, 73, 232, 0.92) 53% 100%);
  box-shadow: 0 26px 56px rgba(2, 37, 126, 0.36);
}

.screen-match-card::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1vw, 18px);
  border-radius: clamp(24px, 2.2vw, 38px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 236, 241, 0.84) 47%, transparent 47% 53%, rgba(235, 247, 255, 0.86) 53%, rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.screen-match-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(14px, 1.2vw, 22px);
  width: clamp(76px, 6.4vw, 112px);
  height: clamp(60px, 5.2vw, 90px);
  transform: translateX(-50%);
  border-radius: 0 0 48% 48%;
  background:
    radial-gradient(circle at 50% 28%, #fff3b6 0 22%, transparent 23%),
    linear-gradient(145deg, #ffef8a, #f8a817 68%, #9c5d0a);
  filter: drop-shadow(0 15px 20px rgba(112, 57, 0, 0.3));
  opacity: 0.72;
  z-index: 1;
}

.screen-versus {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 6.8vw, 128px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
}

.screen-vs {
  position: relative;
  z-index: 4;
  width: clamp(84px, 6.8vw, 128px);
  height: clamp(84px, 6.8vw, 128px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 30%, #ffffff 0 5%, transparent 6%),
    radial-gradient(circle at center, #1264ff 0 58%, #082bb6 59% 100%);
  border: clamp(5px, 0.55vw, 10px) solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 clamp(7px, 0.7vw, 13px) rgba(255, 72, 70, 0.34),
    0 0 0 clamp(13px, 1.2vw, 22px) rgba(46, 145, 255, 0.34),
    0 18px 38px rgba(3, 20, 92, 0.35);
}

.screen-vs span {
  color: #ffe58f;
  font-size: clamp(28px, 2.5vw, 46px);
  font-weight: 1000;
  font-style: italic;
  text-shadow: 0 3px 0 #8d4a00, 0 0 18px rgba(255, 235, 142, 0.9);
}

.screen-versus .team-row {
  min-height: clamp(198px, 21vh, 270px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 1.2vw, 22px);
  padding: clamp(22px, 2vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: clamp(24px, 2.2vw, 38px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 16px 34px rgba(18, 40, 115, 0.13);
}

.screen-team-card.red {
  color: #cf1230;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 228, 237, 0.86));
  border-color: rgba(255, 90, 111, 0.5);
}

.screen-team-card.blue {
  color: #1253d8;
  background: linear-gradient(135deg, rgba(235, 248, 255, 0.94), rgba(211, 231, 255, 0.88));
  border-color: rgba(75, 147, 255, 0.55);
}

.screen-team-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  width: 100%;
}

.screen-versus .team-name {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: inherit;
  text-align: center;
}

.screen-versus .team-name strong {
  font-size: clamp(34px, 3.2vw, 60px);
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: 0;
  color: inherit;
}

.screen-versus .team-name em {
  font-style: normal;
  font-size: clamp(20px, 1.7vw, 32px);
  font-weight: 900;
  color: #424a5b;
}

.screen-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.8vw, 14px);
}

.screen-amount > span {
  font-size: clamp(30px, 2.8vw, 54px);
  font-weight: 1000;
}

.screen-amount div {
  display: flex;
  gap: clamp(5px, 0.55vw, 10px);
}

.screen-amount b {
  min-width: clamp(32px, 2.8vw, 54px);
  height: clamp(50px, 4.6vw, 84px);
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0 47%, #e8eaf1 48% 100%);
  border: 1px solid rgba(42, 54, 96, 0.12);
  box-shadow: 0 7px 0 rgba(42, 54, 96, 0.18), 0 14px 22px rgba(22, 40, 103, 0.18);
  font-size: clamp(36px, 3.9vw, 72px);
  line-height: 1;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.red .screen-amount b {
  color: #df142c;
}

.blue .screen-amount b {
  color: #1555d8;
}

.screen-result-pill {
  justify-self: center;
  min-width: clamp(150px, 12vw, 230px);
  min-height: clamp(42px, 3.6vw, 66px);
  display: grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(20px, 1.65vw, 32px);
  font-weight: 1000;
  box-shadow: 0 14px 26px rgba(37, 54, 112, 0.22);
}

.red .screen-result-pill {
  background: linear-gradient(145deg, #ff6b88, #e0193a);
}

.blue .screen-result-pill {
  background: linear-gradient(145deg, #5d9bff, #1c57f0);
}

.screen-match-stage,
.screen-match-card,
.screen-versus,
.screen-versus .team-row,
.screen-amount,
.screen-amount div {
  min-width: 0;
}

.screen-match-card {
  overflow: hidden;
}

.screen-match-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.6vmin, 22px);
  padding: clamp(14px, 2vmin, 28px);
  overflow: hidden;
  border-radius: 0;
}

.screen-match-stage:fullscreen .screen-stage-head {
  align-items: center;
  flex: none;
  min-height: 0;
}

.screen-match-stage:fullscreen .screen-stage-head span {
  font-size: clamp(12px, 1.65vmin, 18px);
  margin-bottom: 4px;
}

.screen-match-stage:fullscreen .screen-stage-head h3 {
  margin-bottom: 0;
  font-size: clamp(26px, 4.4vmin, 48px);
}

.screen-match-stage:fullscreen .screen-stat-strip div {
  min-width: clamp(88px, 13vmin, 142px);
  padding: clamp(8px, 1.3vmin, 14px) clamp(10px, 1.6vmin, 18px);
  border-radius: clamp(16px, 2.5vmin, 24px);
}

.screen-match-stage:fullscreen .screen-stat-strip small {
  font-size: clamp(11px, 1.45vmin, 14px);
}

.screen-match-stage:fullscreen .screen-stat-strip b {
  font-size: clamp(22px, 3.6vmin, 38px);
}

.screen-match-stage:fullscreen .screen-match-list {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(10px, 1.6vmin, 20px);
}

.screen-match-stage:fullscreen .screen-match-card {
  height: 100%;
  min-height: 0;
  padding: clamp(10px, 1.7vmin, 20px);
  border-radius: clamp(22px, 3.4vmin, 38px);
}

.screen-match-stage:fullscreen .screen-match-card::before {
  inset: clamp(7px, 1.1vmin, 14px);
  border-radius: clamp(18px, 3vmin, 34px);
}

.screen-match-stage:fullscreen .screen-match-card::after {
  top: clamp(8px, 1.3vmin, 14px);
  width: clamp(58px, 9vmin, 92px);
  height: clamp(44px, 7vmin, 72px);
}

.screen-match-stage:fullscreen .screen-versus {
  height: 100%;
  grid-template-columns: minmax(0, 1fr) clamp(62px, 10vmin, 104px) minmax(0, 1fr);
  gap: clamp(10px, 1.8vmin, 22px);
}

.screen-match-stage:fullscreen .screen-vs {
  width: clamp(62px, 10vmin, 104px);
  height: clamp(62px, 10vmin, 104px);
}

.screen-match-stage:fullscreen .screen-vs span {
  font-size: clamp(24px, 4.4vmin, 42px);
}

.screen-match-stage:fullscreen .screen-versus .team-row {
  height: 100%;
  min-height: 0;
  padding: clamp(10px, 1.8vmin, 22px);
  gap: clamp(6px, 1.2vmin, 14px);
  border-radius: clamp(18px, 3vmin, 34px);
}

.screen-match-stage:fullscreen .screen-versus .team-name {
  gap: clamp(2px, 0.7vmin, 6px);
}

.screen-match-stage:fullscreen .screen-versus .team-name strong {
  font-size: clamp(24px, 4.6vmin, 48px);
}

.screen-match-stage:fullscreen .screen-versus .team-name em {
  font-size: clamp(14px, 2.4vmin, 26px);
}

.screen-match-stage:fullscreen .screen-amount {
  gap: clamp(5px, 1vmin, 10px);
}

.screen-match-stage:fullscreen .screen-amount > span {
  font-size: clamp(24px, 4.6vmin, 46px);
}

.screen-match-stage:fullscreen .screen-amount div {
  gap: clamp(3px, 0.75vmin, 7px);
}

.screen-match-stage:fullscreen .screen-amount b {
  min-width: clamp(24px, 4.5vmin, 44px);
  height: clamp(34px, 6.8vmin, 64px);
  border-radius: clamp(6px, 1vmin, 10px);
  font-size: clamp(28px, 5.6vmin, 56px);
  box-shadow: 0 clamp(4px, 0.8vmin, 7px) 0 rgba(42, 54, 96, 0.18), 0 10px 18px rgba(22, 40, 103, 0.16);
}

.screen-match-stage:fullscreen .screen-result-pill {
  min-width: clamp(96px, 17vmin, 170px);
  min-height: clamp(30px, 5vmin, 48px);
  padding: 0 clamp(12px, 2vmin, 20px);
  font-size: clamp(16px, 3vmin, 28px);
}

.battle-report-stage {
  isolation: isolate;
  min-height: calc(100vh - 174px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  overflow: hidden;
  color: #fff8e8;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 219, 110, 0.8), transparent 17%),
    radial-gradient(circle at 7% 12%, rgba(20, 175, 255, 0.72), transparent 20%),
    radial-gradient(circle at 94% 13%, rgba(65, 214, 255, 0.72), transparent 22%),
    radial-gradient(circle at 50% 48%, rgba(255, 92, 36, 0.36), transparent 18%),
    linear-gradient(90deg, #160921 0%, #8c1022 37%, #10133b 50%, #0647bd 66%, #041c63 100%);
  box-shadow: 0 28px 90px rgba(8, 34, 115, 0.42);
}

.battle-report-stage::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px) 0 0 / 44px 44px,
    linear-gradient(105deg, transparent 0 42%, rgba(255, 235, 132, 0.2) 43%, transparent 48%),
    linear-gradient(75deg, transparent 0 52%, rgba(56, 204, 255, 0.2) 54%, transparent 60%);
  opacity: 0.56;
}

.battle-report-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(255, 64, 31, 0.58), transparent 32%),
    radial-gradient(ellipse at 100% 50%, rgba(0, 154, 255, 0.62), transparent 34%),
    radial-gradient(circle at 50% 53%, rgba(255, 223, 116, 0.44), transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 24% 76%, rgba(0, 0, 0, 0.24));
  mix-blend-mode: screen;
}

.battle-report-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1.15vmin, 14px);
  padding: clamp(12px, 1.7vmin, 24px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 219, 110, 0.8), transparent 17%),
    radial-gradient(circle at 7% 12%, rgba(20, 175, 255, 0.72), transparent 20%),
    radial-gradient(circle at 94% 13%, rgba(65, 214, 255, 0.72), transparent 22%),
    radial-gradient(circle at 50% 48%, rgba(255, 92, 36, 0.36), transparent 18%),
    linear-gradient(90deg, #160921 0%, #8c1022 37%, #10133b 50%, #0647bd 66%, #041c63 100%);
}

.battle-report-head {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(4px, 0.55vw, 8px);
  text-align: center;
}

.battle-kicker {
  display: inline-grid;
  place-items: center;
  min-height: clamp(26px, 2.2vw, 36px);
  padding: 0 clamp(18px, 2vw, 34px);
  border-radius: 999px;
  color: #fbe6a6;
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 1000;
  background: rgba(3, 20, 72, 0.68);
  border: 1px solid rgba(255, 224, 132, 0.52);
  box-shadow: inset 0 0 22px rgba(255, 222, 109, 0.16), 0 10px 30px rgba(0, 0, 0, 0.24);
}

.battle-report-head h3 {
  margin: 0;
  color: #ffd66c;
  font-size: clamp(38px, 5.2vw, 86px);
  line-height: 0.98;
  text-shadow:
    0 2px 0 #7c2d00,
    0 7px 0 rgba(93, 23, 0, 0.58),
    0 0 28px rgba(255, 191, 50, 0.68);
}

.battle-report-head p {
  margin: 0;
  color: #dbefff;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
}

.battle-report-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #dbefff;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
}

.battle-date-select {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 222, 123, 0.5);
  background: rgba(5, 18, 67, 0.6);
  box-shadow: inset 0 0 18px rgba(255, 224, 132, 0.12), 0 10px 26px rgba(0, 0, 0, 0.18);
  text-shadow: none;
}

.battle-date-select small {
  color: #ffe9a4;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}

.battle-date-select select {
  height: 28px;
  min-width: 104px;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 999px;
  color: #171b24;
  background: linear-gradient(180deg, #fff8dc, #f7cd63);
  font-size: 13px;
  font-weight: 1000;
  outline: none;
}

.battle-report-list {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: minmax(86px, 1fr);
  gap: clamp(9px, 1vw, 15px);
}

.battle-report-row {
  --battle-red: #e22b23;
  --battle-blue: #0b67ff;
  --battle-copy-shift: clamp(10px, 1vw, 18px);
  position: relative;
  min-height: clamp(88px, 9.6vh, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(84px, 8vw, 132px);
}

.battle-report-row::before {
  content: "";
  position: absolute;
  inset: 15% 45%;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 238, 152, 0.95), rgba(255, 87, 31, 0.32) 48%, transparent 72%);
  filter: blur(8px);
}

.battle-side {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  display: grid;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  padding: clamp(12px, 1.25vw, 20px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 36px rgba(0, 0, 0, 0.26);
}

.battle-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.24), transparent 18% 76%, rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.32), transparent 20%);
}

.battle-red {
  grid-template-columns: clamp(70px, 6vw, 104px) minmax(0, 1fr);
  border-radius: 28px 10px 10px 28px;
  background:
    linear-gradient(100deg, rgba(255, 70, 42, 0.98), rgba(168, 12, 24, 0.94) 72%, rgba(93, 7, 24, 0.9)),
    radial-gradient(circle at 8% 50%, rgba(255, 230, 112, 0.5), transparent 28%);
  border-color: rgba(255, 210, 103, 0.62);
}

.battle-blue {
  grid-template-columns: minmax(0, 1fr) clamp(70px, 6vw, 104px);
  border-radius: 10px 28px 28px 10px;
  background:
    linear-gradient(100deg, rgba(4, 42, 141, 0.92), rgba(11, 99, 255, 0.98) 72%, rgba(20, 194, 255, 0.82)),
    radial-gradient(circle at 92% 50%, rgba(119, 226, 255, 0.42), transparent 32%);
  border-color: rgba(113, 215, 255, 0.56);
}

.battle-result-medal {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: clamp(54px, 4.8vw, 82px);
  height: clamp(54px, 4.8vw, 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  color: #7a2d00;
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 1000;
  background:
    radial-gradient(circle at 35% 25%, #fff9be 0 17%, #ffd256 18% 58%, #b86a00 59% 100%);
  border: 2px solid rgba(255, 241, 154, 0.96);
  filter: drop-shadow(0 0 18px rgba(255, 211, 82, 0.48)) drop-shadow(0 8px 0 rgba(93, 42, 0, 0.16));
  text-shadow: 0 2px 0 rgba(255, 246, 180, 0.56), 0 3px 10px rgba(113, 56, 0, 0.26);
}

.battle-result-medal::before {
  content: none;
}

.battle-red .battle-result-medal::after {
  content: none;
}

.battle-blue .battle-result-medal {
  width: clamp(54px, 4.8vw, 82px);
  height: clamp(54px, 4.8vw, 82px);
  padding: 0;
  border-radius: 50%;
  color: #34557d;
  background:
    radial-gradient(circle at 35% 25%, #ffffff 0 18%, #cfdcf1 19% 58%, #7d93b5 59% 100%);
  border: 2px solid rgba(233, 244, 255, 0.92);
  filter: drop-shadow(0 0 18px rgba(148, 202, 255, 0.44)) drop-shadow(0 8px 0 rgba(32, 61, 103, 0.16));
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.62);
}

.battle-blue .battle-result-medal::before {
  content: none;
}

.battle-blue .battle-result-medal::after {
  content: none;
}

.battle-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: clamp(3px, 0.45vw, 7px);
  text-align: center;
}

.battle-red .battle-copy {
  transform: translateX(clamp(-18px, -1vw, -10px));
}

.battle-blue .battle-copy {
  text-align: center;
  transform: translateX(var(--battle-copy-shift));
}

.battle-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(24px, 2.8vw, 48px);
  line-height: 1.05;
  font-weight: 1000;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
}

.battle-copy span {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 1.2vw, 22px);
  font-weight: 900;
}

.battle-copy small {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffe9a4;
  font-size: clamp(11px, 0.85vw, 15px);
  font-weight: 900;
  background: rgba(54, 10, 18, 0.3);
  border: 1px solid rgba(255, 228, 137, 0.28);
}

.battle-blue .battle-copy small {
  justify-self: center;
  color: #dff5ff;
  background: rgba(2, 25, 88, 0.32);
  border-color: rgba(162, 223, 255, 0.32);
}

.battle-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  justify-self: center;
  width: clamp(62px, 5.4vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffe875;
  font-size: clamp(24px, 2.7vw, 48px);
  font-weight: 1000;
  font-style: italic;
  background:
    radial-gradient(circle at 36% 26%, #48d9ff 0 14%, #0a60ff 16% 58%, #03186f 60% 100%);
  border: clamp(4px, 0.45vw, 8px) solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 0 0 clamp(5px, 0.55vw, 10px) rgba(255, 85, 45, 0.3),
    0 0 34px rgba(255, 229, 110, 0.66);
  text-shadow: 0 3px 0 #673100, 0 0 16px rgba(255, 255, 255, 0.72);
}

.battle-report-stage:fullscreen .battle-report-head h3 {
  font-size: clamp(32px, 6.4vmin, 72px);
}

.battle-report-stage:fullscreen .battle-report-list {
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(7px, 1vmin, 12px);
}

.battle-report-stage:fullscreen .battle-report-row {
  --battle-copy-shift: clamp(6px, 1.25vmin, 14px);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(72px, 10vmin, 122px);
}

.battle-report-stage:fullscreen .battle-side {
  padding: clamp(8px, 1.35vmin, 16px);
  gap: clamp(7px, 1.1vmin, 13px);
}

.battle-report-stage:fullscreen .battle-copy strong {
  font-size: clamp(20px, 4vmin, 38px);
}

.battle-report-stage:fullscreen .battle-copy span {
  font-size: clamp(11px, 2vmin, 19px);
}

.battle-report-stage:fullscreen .battle-copy small {
  font-size: clamp(10px, 1.45vmin, 14px);
  padding: 3px 10px;
}

.battle-report-stage:fullscreen .battle-result-medal {
  width: clamp(42px, 7vmin, 76px);
  height: clamp(42px, 7vmin, 76px);
  font-size: clamp(15px, 2.7vmin, 27px);
  padding: 0;
}

.battle-report-stage:fullscreen .battle-blue .battle-result-medal {
  width: clamp(42px, 7vmin, 76px);
  height: clamp(42px, 7vmin, 76px);
  padding: 0;
}

.battle-report-stage:fullscreen .battle-vs {
  width: clamp(52px, 8.2vmin, 92px);
  font-size: clamp(20px, 4vmin, 42px);
}

@keyframes battle-row-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .battle-report-stage {
    min-height: auto;
    overflow: auto;
  }

  .battle-report-row {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .battle-vs {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 58px;
    margin: -2px 0;
  }

  .battle-red,
  .battle-blue {
    grid-template-columns: 1fr;
  }

  .battle-red,
  .battle-blue {
    border-radius: 24px;
  }
}

@media (max-width: 960px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    width: 100%;
    height: auto;
    padding: 16px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    top: 8px;
  }

  .nav-actions {
    width: 100%;
    overflow: auto;
  }

  .login-hero,
  .dashboard-grid,
  .cockpit-shell,
  .screen-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .page,
  .screen-page,
  .login-page {
    width: 100%;
    margin-top: 14px;
  }

  .sidebar {
    position: static;
  }

  .stage-card {
    min-height: auto;
    position: relative;
    top: 0;
  }

  .stage-copy {
    margin-top: 46px;
  }

  .floating-nav {
    width: 100%;
    border-radius: 24px;
  }

  .hero-panel {
    padding: 30px;
  }

  .hero-panel::before {
    width: 72%;
    height: 46%;
  }

  .hero-title h2 {
    font-size: 32px;
  }

  .rule-strip {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

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

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

  .entry-team-box {
    grid-template-columns: 1fr;
  }

  .round-report-head,
  .tier-report-grid,
  .daily-result-grid {
    grid-template-columns: 1fr;
  }

  .round-winner-strip {
    justify-content: flex-start;
  }

  .match-summary-top {
    display: grid;
  }

  .final-winner {
    justify-self: start;
  }

  .screen-versus {
    grid-template-columns: 1fr;
  }

  .screen-vs {
    justify-self: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .screen-versus .team-row {
    grid-template-columns: 1fr auto;
  }
}
