:root {
  --bg0: #06060a;
  --bg1: #0b0d16;
  --card: rgba(18, 22, 38, 0.72);
  --card2: rgba(14, 16, 28, 0.55);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(144, 255, 240, 0.20), 0 0 30px rgba(124, 255, 227, 0.12);
  --accent: #6dfff0;
  --accent2: #b86dff;
  --danger: #ff4d6d;
  --radius: 18px;
  --radius-sm: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(109, 255, 240, 0.08), transparent 60%),
    radial-gradient(900px 650px at 90% 30%, rgba(184, 109, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: -2px;
  background:
    linear-gradient(180deg, rgba(5, 6, 12, 0.85), rgba(5, 6, 12, 0.25) 40%, rgba(5, 6, 12, 0.75)),
    url("./neon-chongqing-cityscape.svg"),
    radial-gradient(800px 380px at 60% 0%, rgba(109, 255, 240, 0.10), transparent 60%),
    radial-gradient(760px 420px at 0% 70%, rgba(184, 109, 255, 0.10), transparent 55%),
    radial-gradient(500px 500px at 100% 100%, rgba(255, 77, 109, 0.08), transparent 55%);
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  pointer-events: none;
  opacity: 0.9;
}

/* Sign-in page: show more skyline detail and neon glow */
.page-login .bg {
  background:
    linear-gradient(180deg, rgba(5, 6, 12, 0.72), rgba(5, 6, 12, 0.12) 38%, rgba(5, 6, 12, 0.55) 72%, rgba(5, 6, 12, 0.82)),
    url("./neon-chongqing-cityscape.svg"),
    radial-gradient(900px 420px at 55% 15%, rgba(109, 255, 240, 0.14), transparent 62%),
    radial-gradient(820px 480px at 15% 55%, rgba(184, 109, 255, 0.12), transparent 58%),
    radial-gradient(600px 500px at 95% 85%, rgba(255, 77, 109, 0.10), transparent 55%);
  background-size: cover;
  background-position: center 62%;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .page-login .bg {
    animation: loginSkyPulse 14s ease-in-out infinite alternate;
  }
}

@keyframes loginSkyPulse {
  from {
    filter: brightness(0.96) saturate(1.05);
  }
  to {
    filter: brightness(1.06) saturate(1.15);
  }
}

.shell {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 18px 54px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell-login {
  max-width: 1100px;
}

.login-hero {
  padding-top: 18px;
  text-align: center;
}

.neon-title {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #3aa3ff;
  text-shadow:
    0 0 6px rgba(58, 163, 255, 0.92),
    0 0 16px rgba(58, 163, 255, 0.55),
    0 0 46px rgba(58, 163, 255, 0.28);
}

.neon-subtitle {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.card-login {
  max-width: 520px;
  margin: auto auto 26px;
  padding: 18px 18px 16px;
}

.login-h1 {
  font-size: 20px;
  margin-bottom: 6px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 255, 240, 0.20), rgba(184, 109, 255, 0.18));
  box-shadow: var(--glow);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.title {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.2px;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.doc-section {
  margin-top: 16px;
}

.doc-section h2 {
  margin-top: 18px;
}

.doc-line {
  margin: 6px 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.rank-lines {
  margin-top: 10px;
  padding-left: 22px;
}

.rank-lines .doc-line {
  margin: 7px 0;
}

.hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 18px 0;
}

.hr.section-gap {
  margin: 32px 0 28px;
}

.section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

.form {
  margin-top: 16px;
}

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

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

.input {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  outline: none;
}

.input:focus {
  border-color: rgba(109, 255, 240, 0.55);
  box-shadow: 0 0 0 4px rgba(109, 255, 240, 0.10);
}

.button {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(109, 255, 240, 0.22), rgba(184, 109, 255, 0.18));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.button:hover {
  filter: brightness(1.08);
}

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

.error {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 120, 150, 0.92);
}

.fineprint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 2px 0;
}

.dot {
  color: rgba(255, 255, 255, 0.34);
}

.link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link:hover {
  color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.as-button {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.disabled {
  opacity: 0.45;
  pointer-events: none;
  border-bottom-color: transparent !important;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  cursor: pointer;
}

.pill:hover {
  filter: brightness(1.08);
}

.pill.danger {
  border-color: rgba(255, 77, 109, 0.35);
  color: rgba(255, 185, 196, 0.92);
}

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

.panel {
  grid-column: span 6;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
  padding: 16px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.list li {
  margin: 8px 0;
}

.callout {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(109, 255, 240, 0.18);
  background: rgba(109, 255, 240, 0.06);
  padding: 12px;
}

.callout-title {
  font-weight: 740;
  margin-bottom: 6px;
}

.callout-body {
  color: rgba(255, 255, 255, 0.74);
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
}

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

.table th,
.table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.table th {
  font-size: 12px;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.14);
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.empty-row td {
  padding: 14px 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 760;
  font-size: 12px;
  letter-spacing: 0.1px;
}

.badge.gold {
  border-color: rgba(255, 215, 0, 0.30);
  background: rgba(255, 215, 0, 0.10);
}

.badge.silver {
  border-color: rgba(212, 212, 212, 0.28);
  background: rgba(212, 212, 212, 0.10);
}

.badge.bronze {
  border-color: rgba(205, 127, 50, 0.32);
  background: rgba(205, 127, 50, 0.10);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.14);
}

.tag.t1 {
  border-color: rgba(109, 255, 240, 0.22);
  background: rgba(109, 255, 240, 0.06);
}

.tag.t2 {
  border-color: rgba(184, 109, 255, 0.22);
  background: rgba(184, 109, 255, 0.06);
}

.roster {
  margin: 12px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.roster li {
  margin: 8px 0;
}

.details {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 720;
  outline: none;
}

.summary::-webkit-details-marker {
  display: none;
}

.details[open] .summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.details > *:not(.summary) {
  padding: 12px 14px 14px;
}

.ranked {
  margin: 0;
  padding-left: 44px;
  color: rgba(255, 255, 255, 0.86);
}

.ranked li {
  margin: 8px 0;
}

/* NHL arena rafter-style championship banners */
.banner-hall {
  margin: 8px 0 20px;
  padding: 18px 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(40, 48, 72, 0.35), transparent 70%);
}

.banner-hall-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.banner-rafters {
  --rafter-bar: #4a4f5c;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 14px;
  margin-top: 20px;
  padding: 44px 8px 20px;
  perspective: 900px;
}

/* Steel rafter beam across the hall */
.banner-rafters::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 1%;
  right: 1%;
  height: 11px;
  border-radius: 5px;
  background: linear-gradient(180deg, #7a808e 0%, var(--rafter-bar) 35%, #2e323c 100%);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.banner-rafters::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.championship-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 132px);
  flex: 0 1 132px;
  margin: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

/* Cable + brass rod (hangs from rafters) */
.banner-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  z-index: 1;
}

.banner-cable {
  display: block;
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, rgba(160, 165, 175, 0.35), rgba(190, 195, 205, 0.9) 40%, rgba(120, 125, 135, 0.95));
  border-radius: 2px;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.2);
}

.banner-rod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 14px);
  max-width: 146px;
  height: 9px;
  margin-top: -1px;
  padding: 0 6px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e8dcc0 0%, #b8985a 28%, #8a6f38 55%, #c4a86a 78%, #9a7d42 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.banner-grommet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #6a5c38;
  background: radial-gradient(circle at 35% 30%, #f0e8d0, #a08850);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Banner cloth — tall vertical NHL-style pennant */
.banner-body {
  position: relative;
  width: 100%;
  min-height: 220px;
  margin-top: -2px;
  padding: 0 10px 22px;
  border-left: 3px solid #c8102e;
  border-right: 3px solid #1a2a5c;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.015) 3px,
      rgba(0, 0, 0, 0.015) 4px
    ),
    linear-gradient(
      95deg,
      rgba(0, 0, 0, 0.04) 0%,
      transparent 12%,
      transparent 88%,
      rgba(0, 0, 0, 0.06) 100%
    ),
    linear-gradient(180deg, #f8f5ee 0%, #efe9dc 45%, #e8e2d4 100%);
  box-shadow:
    inset 4px 0 12px rgba(0, 0, 0, 0.06),
    inset -4px 0 12px rgba(0, 0, 0, 0.06),
    0 6px 14px rgba(0, 0, 0, 0.28);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 50% 100%, 0 calc(100% - 14px));
}

/* Rod sleeve fold at top */
.banner-sleeve {
  height: 12px;
  margin: 0 -10px 0;
  background: linear-gradient(180deg, #d4cfc2 0%, #f8f5ee 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.08);
}

.banner-header {
  margin: 10px 0 0;
  padding: 8px 4px;
  text-align: center;
  background: linear-gradient(180deg, #1a2a5c 0%, #0f1838 100%);
  border-top: 2px solid #c8102e;
  border-bottom: 2px solid #c8102e;
}

.banner-season {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8f5ee;
  line-height: 1.35;
}

.banner-league-block {
  padding: 10px 2px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(26, 42, 92, 0.2);
}

.banner-league {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #1a2a5c;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  word-break: break-word;
}

.banner-podium {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 6px;
  flex: 1;
}

.banner-podium-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7px 4px;
  border-bottom: 1px dashed rgba(26, 42, 92, 0.15);
}

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

.banner-rank {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.banner-name {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #0f1218;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  word-break: break-word;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.banner-podium-row.place-gold .banner-rank {
  color: #9a7b1a;
}

.banner-podium-row.place-gold .banner-name {
  color: #0a0c10;
  font-size: 12px;
  font-weight: 900;
}

.banner-podium-row.place-silver .banner-rank {
  color: #6a7280;
}

.banner-podium-row.place-silver .banner-name {
  color: #1a2030;
  font-weight: 900;
}

.banner-podium-row.place-bronze .banner-rank {
  color: #8b5a32;
}

.banner-podium-row.place-bronze .banner-name {
  color: #2a2018;
  font-weight: 900;
}

/* Gold fringe tassels */
.banner-fringe {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 88%;
  height: 16px;
  background: repeating-linear-gradient(
    90deg,
    #c9a227 0 4px,
    #e8c84a 4px 6px,
    #a8861e 6px 8px
  );
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
  opacity: 0.95;
}

@media (max-width: 780px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    grid-column: span 12;
  }

  .championship-banner {
    flex: 0 1 118px;
    width: min(100%, 118px);
  }

  .banner-rafters {
    gap: 10px;
    padding-top: 40px;
  }
}

