:root {
  --page-bg: #e9eef6;
  --surface: rgba(250, 252, 255, 0.86);
  --surface-soft: rgba(235, 241, 249, 0.82);
  --line: rgba(125, 143, 165, 0.32);
  --line-strong: rgba(82, 105, 132, 0.48);
  --text: #122033;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --violet: #7c3aed;
  --amber: #f59e0b;
  --page-pad: 10px;
  --board-pad: 10px;
  --card-w: 72px;
  --card-h: 96px;
  --card-gap: 7px;
  --team-pad: 6px;
  --team-w: calc((var(--card-w) * 2) + var(--card-gap) + (var(--team-pad) * 2));
  --team-gap: 10px;
  --board-inner-w: calc((var(--team-w) * 8) + (var(--team-gap) * 7));
  --draft-scrollbar-reserve: 14px;
  --diamond-sprinkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 380'%3E%3Cg stroke-linejoin='round'%3E%3Cpath d='M31 34l11 11-11 11-11-11z' fill='none' stroke='%230e7490' stroke-opacity='.18' stroke-width='1.2'/%3E%3Cpath d='M147 66l18 18-18 18-18-18z' fill='%23dbeafe' fill-opacity='.58' stroke='%233b82f6' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M129 84h36M147 66v36' stroke='%237c3aed' stroke-opacity='.13'/%3E%3Cpath d='M415 17l8 8-8 8-8-8z' fill='none' stroke='%230e7490' stroke-opacity='.17' stroke-width='1.2'/%3E%3Cpath d='M332 116l11 11-11 11-11-11z' fill='%2367e8f9' fill-opacity='.2' stroke='%230891b2' stroke-opacity='.16'/%3E%3Cpath d='M52 227l7 7-7 7-7-7z' fill='none' stroke='%237c3aed' stroke-opacity='.16'/%3E%3Cpath d='M246 191l15 15-15 15-15-15z' fill='%23e0f2fe' fill-opacity='.64' stroke='%232563eb' stroke-opacity='.2' stroke-width='1.1'/%3E%3Cpath d='M231 206h30M246 191v30' stroke='%238b5cf6' stroke-opacity='.13'/%3E%3Cpath d='M485 186l10 10-10 10-10-10z' fill='%23c4b5fd' fill-opacity='.2' stroke='%236366f1' stroke-opacity='.15'/%3E%3Cpath d='M165 332l9 9-9 9-9-9z' fill='none' stroke='%230891b2' stroke-opacity='.18'/%3E%3Cpath d='M388 306l16 16-16 16-16-16z' fill='%23dbeafe' fill-opacity='.58' stroke='%236366f1' stroke-opacity='.2' stroke-width='1.1'/%3E%3Cpath d='M372 322h32M388 306v32' stroke='%237c3aed' stroke-opacity='.12'/%3E%3Cpath d='M505 351l5 5-5 5-5-5z' fill='%2367e8f9' fill-opacity='.22'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.18), transparent 28%, rgba(124, 58, 237, 0.13) 58%, rgba(245, 158, 11, 0.15)),
    linear-gradient(160deg, #f7fbff 0%, #e9eef6 48%, #f7f0e7 100%);
  background-size: 150% 150%, 100% 100%;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow: hidden;
  background-position: 42% 50%, center;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.12));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.12));
}

@keyframes pageGradient {
  from {
    background-position: 0% 42%, center;
  }

  to {
    background-position: 100% 58%, center;
  }
}

button {
  font: inherit;
}

.app-shell {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 1600px;
  height: 960px;
  min-height: 0;
  padding: var(--page-pad);
  transform-origin: top left;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
  width: var(--board-inner-w);
  margin: 0 auto;
  text-align: left;
}

.sponsor-info {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(51, 65, 85, 0.82);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 1px;
  color: rgba(71, 85, 105, 0.88);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(90deg, #0f766e, #1d4ed8 48%, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

h2 {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.board-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.draft-board,
.view-board {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(var(--board-inner-w) + (var(--board-pad) * 2));
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  padding: var(--board-pad);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 253, 0.8)),
    var(--surface);
  box-shadow:
    0 26px 70px rgba(32, 48, 71, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(100, 116, 139, 0.12);
  overflow: hidden;
}

.draft-board {
  width: calc(var(--board-inner-w) + (var(--board-pad) * 2) + var(--draft-scrollbar-reserve));
  padding-right: calc(var(--board-pad) + var(--draft-scrollbar-reserve));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.draft-board::before,
.view-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.38), transparent 18%, transparent 72%, rgba(15, 118, 110, 0.06));
}

.teams-row,
.pool-section {
  position: relative;
  z-index: 1;
}

.teams-row {
  display: grid;
  grid-template-columns: repeat(var(--team-count, 8), var(--team-w));
  gap: var(--team-gap);
  align-items: start;
  justify-content: center;
  width: var(--board-inner-w);
  margin: 0 auto;
}

.team-box {
  padding: var(--team-pad);
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 10%, rgba(45, 212, 191, 0.13), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(124, 58, 237, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(232, 240, 249, 0.72)),
    rgba(248, 251, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(30, 41, 59, 0.06);
  overflow: hidden;
}

.team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 16px;
  margin-bottom: 4px;
}

.team-head h2 {
  color: #0f2742;
  font-size: 12px;
  font-weight: 800;
}

.team-count {
  color: rgba(29, 78, 216, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.team-slots {
  display: grid;
  grid-template-columns: repeat(2, var(--card-w));
  grid-auto-rows: var(--card-h);
  gap: var(--card-gap);
}

.slot {
  width: var(--card-w);
  height: var(--card-h);
  border: 1px dashed rgba(69, 95, 128, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.88), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(213, 225, 239, 0.58)),
    rgba(245, 249, 253, 0.78);
  box-shadow:
    inset 0 1px 3px rgba(45, 61, 82, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.82);
}

.slot.occupied {
  border-style: solid;
  background: rgba(255, 255, 255, 0.36);
}

.slot:nth-child(5) {
  grid-column: 1;
}

.pool-section {
  flex: 0 0 auto;
  width: var(--board-inner-w);
  margin: 8px auto 0;
  padding-top: 8px;
  border-top: 1px solid rgba(120, 139, 163, 0.22);
}

.pool-section::before {
  content: "";
  position: absolute;
  inset: 24px -12px -4px;
  z-index: -1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.09), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(124, 58, 237, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.62), rgba(239, 244, 250, 0.34));
}

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

.section-title span {
  color: rgba(71, 85, 105, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.candidate-grid,
.pending-grid {
  display: grid;
  grid-template-columns: repeat(17, var(--card-w));
  grid-auto-rows: var(--card-h);
  gap: var(--card-gap);
  min-height: var(--card-h);
  max-height: calc((var(--card-h) * 2) + var(--card-gap));
  overflow: auto;
  align-content: start;
}

.pending-grid {
  padding: 5px;
  min-height: calc(var(--card-h) + 14px);
  max-height: calc(var(--card-h) + 16px);
  border: 1px dashed rgba(69, 95, 128, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.13), transparent 34%),
    radial-gradient(circle at 92% 40%, rgba(245, 158, 11, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(236, 243, 251, 0.86), rgba(221, 232, 244, 0.7)),
    var(--surface-soft);
  box-shadow: inset 0 1px 5px rgba(30, 41, 59, 0.06);
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: var(--card-w);
  height: var(--card-h);
  padding: 3px;
  border: 1px solid #9fb0c4;
  border-radius: 9px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    #dce7f2;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: grab;
  overflow: hidden;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.46), transparent 34%, rgba(255, 255, 255, 0.22) 72%, transparent);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.card-effect-shell {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
}

.card-effect-shell.has-effect-frame {
  z-index: 2;
  isolation: isolate;
  overflow: visible;
}

.card-effect-shell.has-effect-frame .player-card {
  position: relative;
  z-index: 1;
}

.card-effect-shell.has-effect-frame::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 0;
  border-radius: 13px;
  pointer-events: none;
}

.card-effect-shell.has-effect-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

.card-effect-shell.card-frame-diamond {
  color: #38bdf8;
}

.card-effect-shell.card-frame-diamond::before {
  border: 2px solid rgba(103, 232, 249, 0.96);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.22), rgba(129, 140, 248, 0.22)) padding-box,
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255, 255, 255, 0.74) 8px 10px, transparent 10px 18px) border-box;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.86),
    0 0 16px rgba(34, 211, 238, 0.72),
    0 0 30px rgba(99, 102, 241, 0.4);
}

.card-effect-shell.card-frame-diamond::after {
  top: -11px;
  left: 24%;
  box-shadow:
    90px 0 0 -1px rgba(186, 230, 253, 0.96),
    22px 245px 0 -1px rgba(165, 243, 252, 0.92),
    132px 218px 0 -1px rgba(196, 181, 253, 0.9);
}

.card-effect-shell.card-frame-gold {
  color: #f59e0b;
}

.card-effect-shell.card-frame-gold::before {
  inset: -6px;
  border: 3px solid rgba(245, 158, 11, 0.92);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.7), rgba(180, 83, 9, 0.34)) padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 247, 237, 0.96),
    0 0 16px rgba(245, 158, 11, 0.52),
    inset 0 0 8px rgba(255, 255, 255, 0.72);
}

.card-effect-shell.card-frame-gold::after {
  top: -9px;
  left: 50%;
  border-radius: 1px;
  box-shadow: 0 245px 0 -1px rgba(245, 158, 11, 0.96);
}

.card-effect-shell.card-frame-ice {
  color: #60a5fa;
}

.card-effect-shell.card-frame-ice::before {
  inset: -5px;
  border: 2px solid rgba(96, 165, 250, 0.9);
  border-radius: 11px 15px 10px 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.72), rgba(125, 211, 252, 0.22)) padding-box;
  box-shadow:
    0 0 0 1px rgba(219, 234, 254, 0.92),
    0 0 14px rgba(96, 165, 250, 0.52);
}

.card-effect-shell.card-frame-ice::after {
  top: -8px;
  left: 38%;
  border-radius: 50%;
  box-shadow:
    105px 5px 0 -2px rgba(191, 219, 254, 0.96),
    7px 243px 0 -2px rgba(186, 230, 253, 0.96);
}

.card-effect-shell.has-effect-wings {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

.card-effect-shell .wing-effect {
  position: absolute;
  inset: -86px -224px;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.card-effect-shell .wing-effect::before,
.card-effect-shell .wing-effect::after {
  content: "";
  position: absolute;
  top: 42px;
  width: 174px;
  height: 192px;
  border: 1px solid rgba(191, 219, 254, 0.96);
  border-radius: 50%;
  background:
    linear-gradient(160deg, transparent 45%, rgba(125, 164, 207, 0.48) 48%, rgba(255, 255, 255, 0.98) 51%, transparent 54%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.92) 72%, rgba(147, 197, 253, 0.84));
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.96),
    0 0 36px rgba(96, 165, 250, 0.7),
    inset 0 0 20px rgba(255, 255, 255, 0.92);
  opacity: 0.86;
}

.card-effect-shell .wing-effect::before {
  left: 46px;
  clip-path: polygon(100% 50%, 72% 14%, 25% 0, 6% 28%, 0 50%, 6% 72%, 25% 100%, 72% 86%);
  transform: rotate(-5deg);
  transform-origin: 100% 50%;
}

.card-effect-shell .wing-effect::after {
  right: 46px;
  clip-path: polygon(0 50%, 28% 14%, 75% 0, 94% 28%, 100% 50%, 94% 72%, 75% 100%, 28% 86%);
  transform: rotate(5deg);
  transform-origin: 0 50%;
}

.card-effect-shell .wing-feather {
  position: absolute;
  z-index: 1;
  display: block;
  width: 220px;
  height: 58px;
  border: 1px solid rgba(191, 219, 254, 0.98);
  background:
    linear-gradient(12deg, transparent 46%, rgba(115, 157, 204, 0.56) 48%, rgba(255, 255, 255, 0.98) 51%, transparent 54%),
    linear-gradient(178deg, #ffffff 0%, #ffffff 38%, #e4f4ff 72%, #93c5fd 100%);
  box-shadow:
    0 0 13px rgba(255, 255, 255, 0.96),
    0 0 24px rgba(96, 165, 250, 0.56),
    inset 0 1px 5px rgba(255, 255, 255, 1);
}

.card-effect-shell .wing-left {
  left: 0;
  border-radius: 88% 16% 18% 86%;
  clip-path: polygon(0 50%, 12% 20%, 54% 2%, 90% 18%, 100% 50%, 90% 82%, 54% 98%, 12% 80%);
  transform-origin: 100% 50%;
}

.card-effect-shell .wing-right {
  right: 0;
  border-radius: 16% 88% 86% 18%;
  background:
    linear-gradient(168deg, transparent 46%, rgba(115, 157, 204, 0.56) 48%, rgba(255, 255, 255, 0.98) 51%, transparent 54%),
    linear-gradient(2deg, #ffffff 0%, #ffffff 38%, #e4f4ff 72%, #93c5fd 100%);
  clip-path: polygon(100% 50%, 88% 20%, 46% 2%, 10% 18%, 0 50%, 10% 82%, 46% 98%, 88% 80%);
  transform-origin: 0 50%;
}

.card-effect-shell .wing-feather-1 { top: 76px; }
.card-effect-shell .wing-feather-2 { top: 67px; }
.card-effect-shell .wing-feather-3 { top: 76px; }
.card-effect-shell .wing-feather-4 { top: 102px; }
.card-effect-shell .wing-feather-5 { top: 131px; }
.card-effect-shell .wing-feather-6 { top: 160px; }
.card-effect-shell .wing-feather-7 { top: 178px; }

.card-effect-shell .wing-left.wing-feather-1 { transform: rotate(62deg); }
.card-effect-shell .wing-left.wing-feather-2 { transform: rotate(43deg); }
.card-effect-shell .wing-left.wing-feather-3 { transform: rotate(24deg); }
.card-effect-shell .wing-left.wing-feather-4 { transform: rotate(4deg); }
.card-effect-shell .wing-left.wing-feather-5 { transform: rotate(-18deg); }
.card-effect-shell .wing-left.wing-feather-6 { transform: rotate(-38deg); }
.card-effect-shell .wing-left.wing-feather-7 { transform: rotate(-56deg); }

.card-effect-shell .wing-right.wing-feather-1 { transform: rotate(-62deg); }
.card-effect-shell .wing-right.wing-feather-2 { transform: rotate(-43deg); }
.card-effect-shell .wing-right.wing-feather-3 { transform: rotate(-24deg); }
.card-effect-shell .wing-right.wing-feather-4 { transform: rotate(-4deg); }
.card-effect-shell .wing-right.wing-feather-5 { transform: rotate(18deg); }
.card-effect-shell .wing-right.wing-feather-6 { transform: rotate(38deg); }
.card-effect-shell .wing-right.wing-feather-7 { transform: rotate(56deg); }

.card-effect-shell.has-effect-wings .player-card {
  position: relative;
  z-index: 1;
}

.description-mark {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #7c3aed);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.player-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  filter: saturate(1.06);
}

.player-card.rarity-plain {
  border-color: rgba(71, 85, 105, 0.86);
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.82), rgba(148, 163, 184, 0.72)),
    linear-gradient(135deg, #f1f5f9, #94a3b8 54%, #cbd5e1);
  box-shadow:
    0 5px 12px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(51, 65, 85, 0.16);
}

.player-card.rarity-plain .card-image {
  border-color: rgba(71, 85, 105, 0.42);
  background:
    linear-gradient(135deg, rgba(71, 85, 105, 0.24), rgba(148, 163, 184, 0.2)),
    linear-gradient(180deg, rgba(241, 245, 249, 0.72), rgba(148, 163, 184, 0.58));
}

.player-card.rarity-plain .position-icon {
  border-color: rgba(71, 85, 105, 0.68);
  color: #334155;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(203, 213, 225, 0.82)),
    rgba(226, 232, 240, 0.92);
}

.player-card.rarity-white {
  border-color: #e2e8f0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.86)),
    linear-gradient(135deg, #ffffff, #e7eef7 45%, #ffffff);
  box-shadow:
    0 7px 16px rgba(148, 163, 184, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.player-card.rarity-blue {
  border-color: #2563eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(219, 234, 254, 0.78)),
    linear-gradient(135deg, #eff6ff, #93c5fd 54%, #dbeafe);
  box-shadow:
    0 7px 16px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.player-card.rarity-purple {
  border-color: #7c3aed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(231, 218, 255, 0.78)),
    linear-gradient(135deg, #f5f0ff, #cfc0ff 52%, #e7ddff);
  box-shadow:
    0 7px 16px rgba(91, 33, 182, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.player-card.rarity-orange {
  border-color: #d97706;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 231, 177, 0.78)),
    linear-gradient(135deg, #fff7e2, #f5c263 54%, #ffe2a1);
  box-shadow:
    0 7px 16px rgba(180, 83, 9, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.player-card.rarity-red {
  border-color: #dc2626;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(254, 202, 202, 0.78)),
    linear-gradient(135deg, #fff1f2, #f87171 52%, #fecaca);
  box-shadow:
    0 7px 16px rgba(185, 28, 28, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.player-card.rarity-black {
  border-color: #475569;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(203, 213, 225, 0.9)),
    linear-gradient(135deg, #f1f5f9, #64748b 52%, #cbd5e1);
  box-shadow:
    0 7px 16px rgba(51, 65, 85, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.player-card.rarity-black .card-image {
  border-color: rgba(71, 85, 105, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(100, 116, 139, 0.44)),
    #cbd5e1;
}

.player-card.rarity-black .card-name {
  color: #1e293b;
}

.player-card.rarity-black .card-meta {
  color: #475569;
}

.player-card.rarity-black .position-icon {
  border-color: rgba(71, 85, 105, 0.42);
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.player-card.honor-style-spectrum {
  border-color: #22d3ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(224, 242, 254, 0.62)),
    conic-gradient(from 210deg, #22d3ee, #8b5cf6, #f472b6, #34d399, #60a5fa, #c084fc, #22d3ee);
  box-shadow:
    0 8px 18px rgba(124, 58, 237, 0.24),
    0 0 0 1px rgba(34, 211, 238, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.player-card.honor-style-spectrum .card-image {
  border-color: rgba(56, 189, 248, 0.62);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.34), rgba(139, 92, 246, 0.24), rgba(244, 114, 182, 0.22)),
    rgba(240, 249, 255, 0.9);
}

.player-card.honor-style-diamond {
  border: 2px solid transparent;
  border-radius: 10px;
  color: #102a43;
  background:
    var(--diamond-sprinkles) center / 540px 380px repeat fixed padding-box,
    linear-gradient(143deg, rgba(255, 255, 255, 0.9), rgba(224, 247, 255, 0.78) 43%, rgba(230, 228, 255, 0.84)) padding-box,
    conic-gradient(from 214deg, #a5f3fc, #38bdf8, #818cf8, #f8fafc, #67e8f9, #60a5fa, #c4b5fd, #a5f3fc) border-box;
  box-shadow:
    0 8px 18px rgba(59, 130, 246, 0.24),
    0 0 0 2px rgba(103, 232, 249, 0.52),
    0 0 0 4px rgba(129, 140, 248, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -12px 20px rgba(147, 197, 253, 0.2);
}

.player-card.honor-style-diamond::before {
  inset: -2px;
  z-index: 4;
  border-radius: 10px;
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(103, 232, 249, 0.94) 28%, transparent 28%) top left / 22px 22px no-repeat,
    linear-gradient(225deg, rgba(255, 255, 255, 0.96), rgba(129, 140, 248, 0.94) 28%, transparent 28%) top right / 22px 22px no-repeat,
    linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(56, 189, 248, 0.9) 28%, transparent 28%) bottom left / 22px 22px no-repeat,
    linear-gradient(315deg, rgba(255, 255, 255, 0.9), rgba(167, 139, 250, 0.94) 28%, transparent 28%) bottom right / 22px 22px no-repeat,
    linear-gradient(90deg, rgba(56, 189, 248, 0.86), rgba(167, 139, 250, 0.84)) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}

.player-card.honor-style-diamond .card-image {
  border-color: rgba(56, 189, 248, 0.76);
  background:
    linear-gradient(135deg, rgba(207, 250, 254, 0.38), rgba(191, 219, 254, 0.26) 46%, rgba(221, 214, 254, 0.32)),
    #dbeafe;
  box-shadow:
    inset 0 1px 4px rgba(14, 116, 144, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.72);
}

.player-card.honor-style-diamond .card-name {
  color: #172554;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.player-card.honor-style-diamond .card-meta {
  color: #155e75;
}

.player-card.honor-style-diamond .position-icon {
  border-color: rgba(14, 116, 144, 0.54);
  color: #164e63;
  background: linear-gradient(180deg, #f0fdfa, #a5f3fc);
}

.honor-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #172554;
  background: linear-gradient(105deg, #67e8f9, #a78bfa 35%, #f9a8d4 65%, #6ee7b7);
  box-shadow: 0 2px 7px rgba(79, 70, 229, 0.25);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
}

.player-card.honor-style-diamond .honor-badge {
  border-color: rgba(255, 255, 255, 0.94);
  color: #172554;
  background: linear-gradient(110deg, #ffffff, #a5f3fc 36%, #818cf8 68%, #f5f3ff);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.player-card.is-honorary.is-selected .selected-mark {
  top: 20px;
}

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(71, 85, 105, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(29, 78, 216, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(226, 236, 246, 0.74));
  box-shadow:
    inset 0 1px 4px rgba(15, 23, 42, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image-placeholder {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(124, 58, 237, 0.12)),
    rgba(100, 116, 139, 0.16);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.card-name {
  min-height: 12px;
  overflow: hidden;
  color: #152236;
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-name.is-double-score,
.score-name-cell strong.is-double-score {
  color: #dc2626 !important;
}

.position-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 12px;
}

.position-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(15, 118, 110, 0.58);
  border-radius: 3px;
  color: #0f5f58;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(204, 251, 241, 0.9)),
    rgba(240, 253, 250, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
}

.player-card:active {
  cursor: grabbing;
}

.player-card.dragging {
  opacity: 0.45;
}

.description-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 252, 0.9)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  contain: layout paint;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  will-change: opacity, transform;
  white-space: pre-wrap;
}

.description-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.drop-target {
  outline: 2px solid rgba(15, 118, 110, 0.82);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.16);
}

.login-board {
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: 420px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.16), transparent 35%),
    radial-gradient(circle at 90% 18%, rgba(124, 58, 237, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px rgba(32, 48, 71, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.login-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.panel-kicker {
  margin: 0 0 4px;
  color: rgba(15, 118, 110, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.login-form,
.player-form {
  display: grid;
  gap: 12px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.license-admin-board {
  gap: 10px;
}

.license-admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 14px;
  min-height: 0;
}

.license-admin-panel {
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(30, 41, 59, 0.07);
}

.license-admin-panel textarea {
  height: 138px;
  min-height: 138px;
  max-height: 138px;
  font-family:
    Consolas,
    "Microsoft YaHei",
    monospace;
  font-size: 11px;
  word-break: break-all;
}

.license-admin-actions {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.license-admin-status {
  align-self: start;
}

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

.license-stat-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(125, 143, 165, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(51, 65, 85, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.license-stat-grid strong {
  overflow: hidden;
  color: #0f2742;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status {
  min-height: 32px;
  margin: -2px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(125, 143, 165, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-status.is-valid {
  border-color: rgba(15, 118, 110, 0.34);
  color: #0f766e;
  background: rgba(236, 253, 245, 0.62);
}

.auth-status.is-error {
  border-color: rgba(220, 38, 38, 0.26);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.62);
}

.player-form {
  padding-right: 14px;
}

.player-form > *,
.player-form .field,
.player-form input,
.player-form select,
.player-form textarea {
  min-width: 0;
}

.field {
  display: grid;
  gap: 6px;
  color: rgba(51, 65, 85, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(125, 143, 165, 0.35);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 252, 0.82)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.82);
  font: inherit;
}

.field textarea {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 8px 10px;
  line-height: 1.35;
  resize: none;
}

.field textarea[name="aliases"] {
  height: 62px;
  min-height: 62px;
  max-height: 62px;
}

.field-hint {
  overflow: hidden;
  color: rgba(100, 116, 139, 0.82);
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.double-score-control {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #334155;
  font-size: 12px;
}

.double-score-control input {
  width: 16px;
  height: 16px;
  accent-color: #dc2626;
}

.double-score-control small {
  color: #b91c1c;
  font-size: 10px;
}

.login-panel .field textarea {
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  font-family:
    Consolas,
    "Microsoft YaHei",
    monospace;
  font-size: 11px;
  word-break: break-all;
}

.login-panel .field textarea[readonly] {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(231, 240, 249, 0.76)),
    rgba(255, 255, 255, 0.7);
}

.login-panel .field textarea.is-copied {
  border-color: rgba(15, 118, 110, 0.62);
}

.field input[type="file"] {
  padding: 6px 8px;
}

.honorary-style-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 8px;
  color: #1e3a8a;
  background:
    linear-gradient(110deg, rgba(248, 250, 252, 0.94), rgba(219, 234, 254, 0.8), rgba(237, 233, 254, 0.68)),
    rgba(255, 255, 255, 0.72);
}

.honorary-style-control select {
  height: 22px;
  min-width: 0;
  padding: 0 6px;
  border-color: rgba(96, 165, 250, 0.42);
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
}

.honorary-style-control small {
  min-width: 0;
  overflow: hidden;
  color: rgba(30, 64, 175, 0.78);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(125, 143, 165, 0.34);
  border-radius: 8px;
  color: #173047;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(231, 240, 249, 0.82)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.ui-button.primary {
  border-color: rgba(15, 118, 110, 0.72);
  color: #ffffff;
  background:
    linear-gradient(135deg, #0f766e, #1d4ed8 58%, #7c3aed),
    #0f766e;
}

.ui-button.ghost {
  color: rgba(30, 41, 59, 0.78);
  background: rgba(255, 255, 255, 0.56);
}

.ui-button.danger {
  border-color: rgba(220, 38, 38, 0.48);
  color: #b91c1c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(254, 226, 226, 0.8)),
    rgba(255, 255, 255, 0.74);
}

.ui-button.tiny {
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.ui-button.wide {
  width: 100%;
}

.ui-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.library-board {
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 14px;
}

.form-panel,
.roster-panel,
.match-toolbar,
.match-select-grid {
  position: relative;
  z-index: 1;
}

.form-panel,
.roster-panel {
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(30, 41, 59, 0.07);
  overflow: hidden;
}

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

.panel-title-row h2 {
  color: #0f2742;
  font-size: 18px;
}

.panel-actions,
.form-actions,
.match-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-panel .panel-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.roster-view-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.52);
}

.roster-view-toggle .ui-button {
  box-shadow: none;
}

.position-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.position-picker input {
  display: none;
}

.position-picker span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 1px solid rgba(125, 143, 165, 0.34);
  border-radius: 8px;
  color: rgba(51, 65, 85, 0.82);
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
}

.position-picker input:checked + span {
  border-color: rgba(15, 118, 110, 0.72);
  color: #0f5f58;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(204, 251, 241, 0.78)),
    rgba(240, 253, 250, 0.8);
}

.description-color-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.description-color-picker input {
  display: none;
}

.description-color-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border: 1px solid rgba(125, 143, 165, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.description-color-option::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.description-color-picker input:checked + .description-color-option {
  border-color: rgba(15, 118, 110, 0.72);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.94), rgba(219, 234, 254, 0.78)),
    rgba(255, 255, 255, 0.78);
}

.description-color-picker input:checked + .description-color-option::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(15, 118, 110, 0.42);
  border-radius: 6px;
  pointer-events: none;
}

.color-slate::before {
  background: #334155;
}

.color-teal::before {
  background: #0f766e;
}

.color-blue::before {
  background: #2563eb;
}

.color-purple::before {
  background: #7c3aed;
}

.color-orange::before {
  background: #d97706;
}

.color-red::before {
  background: #dc2626;
}

.form-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  border: 1px dashed rgba(69, 95, 128, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 8%, rgba(45, 212, 191, 0.12), transparent 35%),
    rgba(238, 245, 252, 0.7);
}

.roster-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 30px 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: auto;
}

.score-history-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.score-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(71, 85, 105, 0.84);
  background: rgba(240, 253, 250, 0.5);
  font-size: 11px;
  font-weight: 800;
}

.score-history-summary strong {
  flex: 0 0 auto;
  color: #0f766e;
}

.score-history-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 8px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.score-history-record {
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.score-history-record.is-manual-adjustment {
  border-color: rgba(14, 116, 144, 0.3);
  background: linear-gradient(112deg, rgba(236, 254, 255, 0.82), rgba(255, 255, 255, 0.72) 46%, rgba(238, 242, 255, 0.76));
}

.score-history-record > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-history-record h3 {
  margin: 0;
  color: #0f2742;
  font-size: 13px;
  line-height: 1.25;
}

.score-history-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  color: rgba(51, 65, 85, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.score-history-manual-delta {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 16px;
  font-weight: 900;
}

.score-history-manual-delta.is-up {
  color: #b45309;
}

.score-history-manual-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.score-history-manual-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.score-history-manual-summary strong {
  color: #0f2742;
  font-size: 12px;
}

.score-history-manual-summary span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
}

.score-history-reason {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 7px 0 0;
  color: rgba(51, 65, 85, 0.88);
  font-size: 10px;
  line-height: 1.45;
}

.score-history-reason b {
  flex: 0 0 auto;
  color: #0f766e;
}

.manual-score-history-form {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
}

.manual-score-history-form .field {
  gap: 4px;
}

.manual-score-history-form .field > span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
}

.manual-score-history-form input {
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.manual-score-history-form-actions {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.match-score-history-form {
  display: grid;
  grid-template-columns: 172px auto;
  justify-content: start;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.8);
}

.match-score-history-form .field {
  gap: 4px;
}

.match-score-history-form .field > span {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
}

.match-score-history-form input {
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.match-score-history-form-actions {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.score-history-tier-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 7px 0 0;
  padding: 5px 7px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 6px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.76);
  font-size: 10px;
  font-weight: 900;
}

.score-history-tier-note b {
  color: #b45309;
}

.score-history-entries {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.score-history-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 5px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.72);
}

.score-history-entry.has-tier-change {
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(255, 251, 235, 0.72);
}

.score-history-entry strong,
.score-history-entry span,
.score-history-entry small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-history-entry strong {
  color: #0f2742;
  font-size: 10px;
}

.score-history-entry span {
  color: rgba(71, 85, 105, 0.82);
  font-size: 9px;
  font-weight: 800;
}

.score-history-entry small {
  color: #0f766e;
  font-size: 9px;
  font-weight: 900;
}

.score-history-entry em {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: #2563eb;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.score-history-entry em.is-up {
  color: #b45309;
}

.score-history-empty {
  margin: 7px 0 0;
  color: rgba(100, 116, 139, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.roster-score-table {
  width: 100%;
  min-width: 1150px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.score-col-tier {
  width: 36px;
}

.score-col-name {
  width: 118px;
}

.score-col-score {
  width: 52px;
}

.score-col-delta {
  width: 39px;
}

.score-col-activity {
  width: 43px;
}

.roster-score-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 24px;
  padding: 0 6px;
  border-right: 1px solid rgba(148, 163, 184, 0.26);
  border-bottom: 1px solid rgba(100, 116, 139, 0.24);
  color: rgba(15, 39, 66, 0.78);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 236, 246, 0.9)),
    rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
}

.roster-score-table td {
  height: 27px;
  min-width: 0;
  padding: 0 5px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(30, 41, 59, 0.9);
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.roster-score-table th:nth-child(5n),
.roster-score-table td:nth-child(5n) {
  border-right-color: rgba(100, 116, 139, 0.34);
}

.score-tier-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 17px;
  border: 1px solid rgba(71, 85, 105, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.score-name-cell button {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.score-name-cell strong,
.score-name-cell small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-name-cell strong {
  color: #0f2742;
  font-size: 11px;
}

.score-name-cell small {
  color: rgba(100, 116, 139, 0.74);
  font-size: 9px;
  font-weight: 800;
}

.score-value-cell,
.score-delta-cell,
.score-activity-cell {
  text-align: right;
}

.score-value-cell {
  color: #0f766e;
}

.score-delta-cell {
  color: rgba(100, 116, 139, 0.82);
}

.score-delta-cell.is-up {
  color: #b45309;
}

.score-delta-cell.is-down {
  color: #2563eb;
}

.score-activity-cell {
  color: #0f766e;
}

.roster-score-table td.score-name-cell.score-effect-wings {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.roster-score-table td.score-name-cell .table-wing-effect {
  position: absolute;
  inset: -102px -160px;
  z-index: 5;
  pointer-events: none;
}

.roster-score-table td.score-name-cell .table-wing-effect::before,
.roster-score-table td.score-name-cell .table-wing-effect::after {
  content: "";
  position: absolute;
  top: 40px;
  z-index: 0;
  width: 154px;
  height: 176px;
  border: 1px solid rgba(191, 219, 254, 0.96);
  border-radius: 50%;
  background:
    linear-gradient(160deg, transparent 45%, rgba(115, 157, 204, 0.46) 48%, rgba(255, 255, 255, 0.98) 51%, transparent 54%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.9) 72%, rgba(147, 197, 253, 0.82));
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.62), 0 0 12px rgba(255, 255, 255, 0.9);
  opacity: 0.88;
}

.roster-score-table td.score-name-cell .table-wing-effect::before {
  left: 34px;
  clip-path: polygon(100% 50%, 72% 14%, 25% 0, 6% 28%, 0 50%, 6% 72%, 25% 100%, 72% 86%);
  transform: rotate(-5deg);
  transform-origin: 100% 50%;
}

.roster-score-table td.score-name-cell .table-wing-effect::after {
  right: 34px;
  clip-path: polygon(0 50%, 28% 14%, 75% 0, 94% 28%, 100% 50%, 94% 72%, 75% 100%, 28% 86%);
  transform: rotate(5deg);
  transform-origin: 0 50%;
}

.roster-score-table td.score-name-cell .table-wing-effect .wing-feather {
  position: absolute;
  z-index: 1;
  display: block;
  width: 190px;
  height: 44px;
  border: 1px solid rgba(191, 219, 254, 0.98);
  background:
    linear-gradient(12deg, transparent 46%, rgba(115, 157, 204, 0.56) 48%, rgba(255, 255, 255, 0.98) 51%, transparent 54%),
    linear-gradient(178deg, #ffffff 0%, #ffffff 38%, #e4f4ff 72%, #93c5fd 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.94), 0 0 20px rgba(96, 165, 250, 0.52);
}

.roster-score-table td.score-name-cell .table-wing-effect .wing-left {
  left: -30px;
  border-radius: 88% 16% 18% 86%;
  clip-path: polygon(0 50%, 12% 20%, 54% 2%, 90% 18%, 100% 50%, 90% 82%, 54% 98%, 12% 80%);
  transform-origin: 100% 50%;
}

.roster-score-table td.score-name-cell .table-wing-effect .wing-right {
  right: -30px;
  border-radius: 16% 88% 86% 18%;
  background:
    linear-gradient(168deg, transparent 46%, rgba(115, 157, 204, 0.56) 48%, rgba(255, 255, 255, 0.98) 51%, transparent 54%),
    linear-gradient(2deg, #ffffff 0%, #ffffff 38%, #e4f4ff 72%, #93c5fd 100%);
  clip-path: polygon(100% 50%, 88% 20%, 46% 2%, 10% 18%, 0 50%, 10% 82%, 46% 98%, 88% 80%);
  transform-origin: 0 50%;
}

.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-1 { top: 76px; }
.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-2 { top: 67px; }
.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-3 { top: 76px; }
.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-4 { top: 99px; }
.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-5 { top: 125px; }
.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-6 { top: 151px; }
.roster-score-table td.score-name-cell .table-wing-effect .wing-feather-7 { top: 169px; }

.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-1 { transform: rotate(62deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-2 { transform: rotate(43deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-3 { transform: rotate(24deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-4 { transform: rotate(4deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-5 { transform: rotate(-18deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-6 { transform: rotate(-38deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-left.wing-feather-7 { transform: rotate(-56deg); }

.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-1 { transform: rotate(-62deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-2 { transform: rotate(-43deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-3 { transform: rotate(-24deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-4 { transform: rotate(-4deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-5 { transform: rotate(18deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-6 { transform: rotate(38deg); }
.roster-score-table td.score-name-cell .table-wing-effect .wing-right.wing-feather-7 { transform: rotate(56deg); }

.roster-score-table td.score-name-cell.score-effect-wings button {
  position: relative;
  z-index: 6;
}

.score-empty-cell {
  background: rgba(248, 250, 252, 0.46);
}

.tier-soft-plain {
  background: rgba(226, 232, 240, 0.28);
}

.tier-soft-white {
  background: rgba(248, 250, 252, 0.62);
}

.tier-soft-blue {
  background: rgba(219, 234, 254, 0.36);
}

.tier-soft-purple {
  background: rgba(237, 233, 254, 0.4);
}

.tier-soft-orange {
  background: rgba(254, 243, 199, 0.44);
}

.tier-soft-red {
  background: rgba(254, 226, 226, 0.44);
}

.tier-soft-black {
  color: #0f172a !important;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.94), rgba(148, 163, 184, 0.68));
}

.score-tier-cell.tier-soft-black span {
  border-color: rgba(71, 85, 105, 0.46);
  color: #1e293b;
  background: rgba(255, 255, 255, 0.7);
}

.score-name-cell.tier-soft-black strong,
.score-value-cell.tier-soft-black {
  color: #0f172a;
}

.score-name-cell.tier-soft-black small {
  color: #475569;
}

.score-delta-cell.tier-soft-black {
  color: #334155;
}

.score-delta-cell.tier-soft-black.is-up {
  color: #047857;
}

.score-delta-cell.tier-soft-black.is-down {
  color: #b91c1c;
}

.roster-score-table td.score-honorary {
  color: #172554 !important;
  background:
    linear-gradient(
      100deg,
      rgba(34, 211, 238, 0.36) 0%,
      rgba(139, 92, 246, 0.34) 30%,
      rgba(244, 114, 182, 0.3) 56%,
      rgba(52, 211, 153, 0.32) 78%,
      rgba(96, 165, 250, 0.34) 100%
    );
}

.score-tier-cell.score-honorary span {
  border-color: rgba(124, 58, 237, 0.42);
  color: #312e81;
  background: rgba(255, 255, 255, 0.78);
}

.score-name-cell.score-honorary strong,
.score-value-cell.score-honorary {
  color: #172554;
}

.score-name-cell.score-honorary small {
  color: rgba(49, 46, 129, 0.8);
}

.score-delta-cell.score-honorary.is-up {
  color: #9d174d !important;
}

.score-delta-cell.score-honorary.is-down {
  color: #0369a1 !important;
}

.roster-score-table td.score-honor-diamond {
  color: #172554 !important;
  background:
    var(--diamond-sprinkles) center / 540px 380px repeat fixed,
    linear-gradient(116deg, rgba(255, 255, 255, 0.72) 0%, transparent 24%, rgba(255, 255, 255, 0.54) 47%, transparent 68%),
    linear-gradient(135deg, #67e8f9 0%, #93c5fd 42%, #c4b5fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), inset 0 -1px 0 rgba(79, 70, 229, 0.24);
}

.score-tier-cell.score-honor-diamond span {
  border-color: rgba(79, 70, 229, 0.64);
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb 52%, #7c3aed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 1px 3px rgba(30, 64, 175, 0.28);
}

.score-name-cell.score-honor-diamond strong,
.score-value-cell.score-honor-diamond {
  color: #172554;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.score-name-cell.score-honor-diamond small {
  color: #155e75;
}

.score-delta-cell.score-honor-diamond.is-up {
  color: #a7f3d0 !important;
}

.score-delta-cell.score-honor-diamond.is-down {
  color: #fecdd3 !important;
}

.roster-score-table tr:hover td.score-honor-diamond {
  background-image:
    var(--diamond-sprinkles) center / 540px 380px repeat fixed,
    linear-gradient(116deg, rgba(255, 255, 255, 0.86) 0%, transparent 24%, rgba(255, 255, 255, 0.68) 47%, transparent 68%),
    linear-gradient(135deg, #5eead4 0%, #7dd3fc 42%, #c4b5fd 100%);
}

.roster-score-table tr:hover td:not(.score-empty-cell):not(.score-honor-diamond) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(240, 253, 250, 0.38));
}

.roster-score-table td.score-effect-night {
  border-color: rgba(96, 165, 250, 0.52);
  color: rgba(239, 246, 255, 0.94);
  background:
    repeating-linear-gradient(0deg, rgba(191, 219, 254, 0.1) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, rgba(30, 64, 175, 0.94), rgba(15, 23, 42, 0.96));
}

.roster-score-table td.score-effect-night .score-tier-cell span,
.roster-score-table td.score-effect-night span {
  border-color: rgba(191, 219, 254, 0.52);
  color: rgba(239, 246, 255, 0.94);
  background: rgba(15, 23, 42, 0.34);
}

.roster-score-table td.score-effect-night .score-name-cell,
.roster-score-table td.score-effect-night .score-name-cell strong,
.roster-score-table td.score-effect-night .score-name-cell small,
.roster-score-table td.score-effect-night.score-name-cell strong,
.roster-score-table td.score-effect-night.score-name-cell small {
  color: rgba(239, 246, 255, 0.94);
}

.roster-score-table td.score-effect-hall {
  border-color: rgba(180, 83, 9, 0.46);
  color: #78350f;
  background:
    repeating-linear-gradient(90deg, rgba(180, 83, 9, 0.1) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(253, 230, 138, 0.82));
}

.roster-score-table td.score-effect-hall .score-tier-cell span,
.roster-score-table td.score-effect-hall span {
  border-color: rgba(180, 83, 9, 0.42);
  color: #92400e;
  background: rgba(255, 251, 235, 0.62);
}

.roster-score-table td.score-effect-hall.score-name-cell strong,
.roster-score-table td.score-effect-hall.score-name-cell small {
  color: #78350f;
}

.roster-score-table td.score-effect-flame {
  border-color: rgba(220, 38, 38, 0.38);
  color: #7f1d1d;
  background: transparent;
  box-shadow: none;
}

.roster-score-table td.score-effect-flame:not(.score-effect-flame-end) {
  border-right-color: rgba(249, 115, 22, 0.2);
}

.roster-score-table td.score-effect-flame.score-tier-cell {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.roster-score-table td.score-effect-flame.score-name-cell strong {
  color: #7f1d1d;
  text-shadow: 0 1px 0 rgba(255, 251, 235, 0.78);
}

.roster-score-table td.score-effect-flame.score-name-cell small,
.roster-score-table td.score-effect-flame.score-delta-cell,
.roster-score-table td.score-effect-flame.score-activity-cell {
  color: #9a3412;
}

.roster-score-table td.score-effect-flame.score-name-cell button {
  position: relative;
  z-index: 6;
}

.roster-score-table td.score-effect-flame > span {
  position: relative;
  z-index: 6;
}

.roster-score-table td.score-effect-flame.score-activity-cell {
  padding-right: 5px;
}

.roster-score-table td.score-effect-flame.score-effect-flame-end {
  position: relative;
  z-index: 7;
  overflow: visible;
}

.roster-score-table td.score-effect-flame.score-effect-flame-end::after {
  content: none;
}

.roster-score-table td.score-effect-flame > .table-side-flame {
  position: absolute;
  top: -2px;
  width: 5px;
  min-width: 0;
  height: calc(100% + 4px);
  z-index: 8;
  pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(to bottom, #fff7ad 0%, #facc15 32%, #f97316 68%, #dc2626 100%);
  filter: drop-shadow(0 0 1px rgba(249, 115, 22, 0.78));
}

/* Temporarily hide side flames while their silhouette is being redesigned. */
.roster-score-table .table-side-flame {
  display: none;
}

.roster-score-table .table-side-flame-left {
  right: calc(100% - 1px);
}

.roster-score-table .table-side-flame-right {
  left: calc(100% - 1px);
}

.roster-score-table .table-side-flame i {
  position: absolute;
  display: block;
  width: 14px;
  height: 10px;
  z-index: 1;
}

.roster-score-table .table-side-flame-left i {
  right: -1px;
  clip-path: path("M 14 0 L 14 10 C 11 9.8 8 8.5 5.2 6.8 C 2.8 5.3 1.1 3.8 0.8 2.6 C 0.5 1.5 1.1 0.5 2.1 0.2 C 3.1 -0.1 4 0.7 4.8 1.7 C 6.8 4.1 9.8 5.1 14 5.2 Z");
  background: linear-gradient(to right, #fff7ad 0%, #facc15 30%, #f97316 65%, #dc2626 100%);
  filter: drop-shadow(-1px 0 2px rgba(249, 115, 22, 0.62));
  transform-origin: right center;
  animation: tableSideTongueLeft 1.1s ease-in-out infinite alternate;
}

.roster-score-table .table-side-flame-right i {
  left: -1px;
  clip-path: path("M 0 0 L 0 10 C 3 9.8 6 8.5 8.8 6.8 C 11.2 5.3 12.9 3.8 13.2 2.6 C 13.5 1.5 12.9 0.5 11.9 0.2 C 10.9 -0.1 10 0.7 9.2 1.7 C 7.2 4.1 4.2 5.1 0 5.2 Z");
  background: linear-gradient(to right, #dc2626 0%, #f97316 35%, #facc15 70%, #fff7ad 100%);
  filter: drop-shadow(1px 0 2px rgba(249, 115, 22, 0.62));
  transform-origin: left center;
  animation: tableSideTongueRight 1.1s ease-in-out infinite alternate;
}

.roster-score-table .table-side-flame i:nth-child(1) {
  top: 0;
  animation-delay: -0.35s;
}

.roster-score-table .table-side-flame i:nth-child(2) {
  top: 9.4px;
  animation-delay: -0.8s;
}

.roster-score-table .table-side-flame i:nth-child(3) {
  top: 18.8px;
  animation-delay: -0.15s;
}

/* Slightly different rounded contours echo the taller top tongue and fuller lower tongue. */
.roster-score-table .table-side-flame-left i:nth-child(2) {
  clip-path: path("M 14 0 L 14 10 C 10.8 9.8 7.8 8.8 5.1 7 C 2.7 5.5 1.3 3.8 1 2.5 C 0.8 1.6 1.3 0.8 2.2 0.5 C 3.2 0.2 4.1 0.9 4.9 2 C 6.8 4.3 9.8 5.3 14 5.3 Z");
}

.roster-score-table .table-side-flame-left i:nth-child(3) {
  clip-path: path("M 14 0 L 14 10 C 10.4 9.9 7.3 8.7 4.6 6.9 C 2.1 5.3 0.8 3.8 0.6 2.6 C 0.4 1.7 0.9 0.7 1.9 0.4 C 2.9 0.1 3.9 0.9 4.8 2 C 6.6 4.2 9.8 5.2 14 5.4 Z");
}

.roster-score-table .table-side-flame-right i:nth-child(2) {
  clip-path: path("M 0 0 L 0 10 C 3.2 9.8 6.2 8.8 8.9 7 C 11.3 5.5 12.7 3.8 13 2.5 C 13.2 1.6 12.7 0.8 11.8 0.5 C 10.8 0.2 9.9 0.9 9.1 2 C 7.2 4.3 4.2 5.3 0 5.3 Z");
}

.roster-score-table .table-side-flame-right i:nth-child(3) {
  clip-path: path("M 0 0 L 0 10 C 3.6 9.9 6.7 8.7 9.4 6.9 C 11.9 5.3 13.2 3.8 13.4 2.6 C 13.6 1.7 13.1 0.7 12.1 0.4 C 11.1 0.1 10.1 0.9 9.2 2 C 7.4 4.2 4.2 5.2 0 5.4 Z");
}

/* Sketch-matched side tongues: each root is a broad 10px visual band, not a pin. */
.roster-score-table .table-side-flame i {
  width: 20px;
  height: 12px;
}

.roster-score-table .table-side-flame-left i,
.roster-score-table .table-side-flame-left i:nth-child(2),
.roster-score-table .table-side-flame-left i:nth-child(3) {
  clip-path: path("M 20 0 L 20 12 C 16 11.9 11 10.5 7 8.2 C 3.2 6.1 1 4.4 0.8 3 C 0.4 1.8 1.2 0.6 2.5 0.25 C 3.9 -0.1 5.2 0.9 6.4 2.2 C 8.9 5 13.5 6.2 20 6.4 Z");
}

.roster-score-table .table-side-flame-right i,
.roster-score-table .table-side-flame-right i:nth-child(2),
.roster-score-table .table-side-flame-right i:nth-child(3) {
  clip-path: path("M 0 0 L 0 12 C 4 11.9 9 10.5 13 8.2 C 16.8 6.1 19 4.4 19.2 3 C 19.6 1.8 18.8 0.6 17.5 0.25 C 16.1 -0.1 14.8 0.9 13.6 2.2 C 11.1 5 6.5 6.2 0 6.4 Z");
}

.roster-score-table .table-side-flame i:nth-child(2) {
  top: 9px;
}

.roster-score-table .table-side-flame i:nth-child(3) {
  top: 18px;
}

.roster-score-table td.score-tier-cell .table-flame-effect {
  position: absolute;
  top: -2px;
  left: -2px;
  /* The tier column is exactly one eighth of its five-column player group. */
  width: calc(800% + 10px);
  height: calc(100% + 4px);
  border: 2px solid rgba(220, 38, 38, 0.9);
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.98) 0%,
    rgba(254, 215, 170, 0.94) 48%,
    rgba(254, 202, 202, 0.94) 100%
  );
  box-shadow:
    0 0 8px rgba(249, 115, 22, 0.58),
    inset 0 8px 10px rgba(255, 251, 235, 0.52),
    inset 0 -6px 9px rgba(220, 38, 38, 0.13),
    inset 0 0 7px rgba(254, 215, 170, 0.34);
  z-index: 5;
  pointer-events: none;
}

.table-flame-effect::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: calc(100% - 1px);
  height: 8px;
  clip-path: polygon(
    0 100%, 0 86%,
    1.7% 25%, 3.3% 80%, 5% 5%, 6.7% 82%,
    8.3% 38%, 10% 79%, 11.7% 0%, 13.3% 82%,
    15% 30%, 16.7% 80%, 18.3% 6%, 20% 82%,
    21.7% 42%, 23.3% 79%, 25% 2%, 26.7% 82%,
    28.3% 27%, 30% 80%, 31.7% 7%, 33.3% 82%,
    35% 35%, 36.7% 80%, 38.3% 1%, 40% 82%,
    41.7% 31%, 43.3% 80%, 45% 5%, 46.7% 82%,
    48.3% 40%, 50% 80%, 51.7% 0%, 53.3% 82%,
    55% 29%, 56.7% 80%, 58.3% 6%, 60% 82%,
    61.7% 36%, 63.3% 80%, 65% 2%, 66.7% 82%,
    68.3% 28%, 70% 80%, 71.7% 7%, 73.3% 82%,
    75% 41%, 76.7% 80%, 78.3% 1%, 80% 82%,
    81.7% 32%, 83.3% 80%, 85% 5%, 86.7% 82%,
    88.3% 37%, 90% 80%, 91.7% 2%, 93.3% 82%,
    95% 30%, 96.7% 80%, 98.3% 6%, 100% 86%, 100% 100%
  );
  background: linear-gradient(180deg, #fff7ed 0%, #fef08a 22%, #fb923c 62%, #dc2626 100%);
  filter: drop-shadow(0 -1px 5px rgba(249, 115, 22, 0.78));
  opacity: 0.78;
  transform-origin: center bottom;
  animation: tableFlameFlicker 1.25s ease-in-out infinite alternate;
}

.table-flame-effect::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 100%;
  height: 6px;
  clip-path: polygon(0 100%, 0 48%, 4% 66%, 8% 14%, 12% 63%, 17% 4%, 21% 64%, 26% 25%, 31% 66%, 36% 0, 41% 64%, 46% 20%, 51% 66%, 56% 7%, 61% 65%, 66% 25%, 71% 66%, 76% 3%, 81% 64%, 86% 15%, 91% 65%, 96% 31%, 100% 48%, 100% 100%);
  background: linear-gradient(0deg, #fed7aa 0%, #fb923c 58%, #dc2626 100%);
  filter: drop-shadow(0 1px 4px rgba(220, 38, 38, 0.58));
  opacity: 0.82;
}

.table-flame-effect .flame-tongue {
  position: absolute;
  display: none;
}

.table-flame-effect .flame-tongue-1 {
  display: none;
}

.table-flame-effect .flame-tongue-5 {
  display: none;
}

.table-flame-effect .flame-tongue-2,
.table-flame-effect .flame-tongue-3,
.table-flame-effect .flame-tongue-4 {
  display: block;
  width: 6px;
  height: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #fff7ed;
  box-shadow:
    0 0 4px #fef08a,
    0 0 8px rgba(249, 115, 22, 0.96),
    11px 6px 0 -2px rgba(251, 146, 60, 0.94);
  filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.9));
  animation: tableFlameEmber 1.7s ease-out infinite;
}

.table-flame-effect .flame-tongue-2 {
  left: 19%;
  top: -16px;
  animation-delay: -0.4s;
}

.table-flame-effect .flame-tongue-3 {
  left: 51%;
  top: -13px;
  width: 4px;
  height: 4px;
  animation-delay: -1.1s;
}

.table-flame-effect .flame-tongue-4 {
  right: 14%;
  top: -18px;
  animation-delay: -0.8s;
}

@keyframes tableFlameFlicker {
  from {
    transform: scaleY(0.88) skewX(-0.7deg);
  }

  to {
    transform: scaleY(1.06) skewX(0.7deg);
  }
}

@keyframes tableSideTongueLeft {
  from {
    transform: scaleX(0.94);
    opacity: 0.86;
  }

  to {
    transform: scaleX(1.04);
    opacity: 1;
  }
}

@keyframes tableSideTongueRight {
  from {
    transform: scaleX(0.94);
    opacity: 0.86;
  }

  to {
    transform: scaleX(1.04);
    opacity: 1;
  }
}

@keyframes tableFlameEmber {
  0% {
    opacity: 0.56;
    transform: translateY(4px) scale(0.9);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0.36;
    transform: translateY(-8px) scale(0.62);
  }
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(16, var(--card-w));
  grid-auto-rows: 134px;
  justify-content: space-between;
  gap: 9px;
}

.library-item {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.rarity-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 72px;
  height: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rarity-swatch {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(71, 85, 105, 0.32);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 3px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  opacity: 0.62;
}

.rarity-swatch:disabled {
  cursor: default;
}

.rarity-swatch.is-active {
  outline: 1px solid rgba(15, 118, 110, 0.82);
  outline-offset: 1px;
  opacity: 1;
  transform: scale(1.08);
}

.swatch-plain {
  border-color: rgba(51, 65, 85, 0.62);
  border-style: dashed;
  background: linear-gradient(135deg, #e2e8f0, #64748b);
}

.swatch-white {
  background:
    linear-gradient(135deg, #ffffff, #e2e8f0 45%, #ffffff);
}

.swatch-blue {
  background: linear-gradient(135deg, #eff6ff, #2563eb);
}

.swatch-purple {
  background: linear-gradient(135deg, #f5f0ff, #8b5cf6);
}

.swatch-orange {
  background: linear-gradient(135deg, #fff7e2, #f59e0b);
}

.swatch-red {
  background: linear-gradient(135deg, #fff1f2, #dc2626);
}

.swatch-black {
  border-color: rgba(15, 23, 42, 0.88);
  background: linear-gradient(135deg, #64748b, #020617);
}

.library-actions {
  display: flex;
  gap: 4px;
}

.library-actions button {
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(125, 143, 165, 0.3);
  border-radius: 5px;
  color: rgba(51, 65, 85, 0.82);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.match-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.12), transparent 36%),
    radial-gradient(circle at 88% 30%, rgba(124, 58, 237, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.58);
}

.match-name-field {
  width: 280px;
}

.match-team-count-field {
  width: 112px;
}

.relay-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 10px;
  width: var(--board-inner-w);
  min-height: 148px;
  max-height: 148px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(235, 243, 251, 0.58)),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.relay-input-block {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-height: 0;
}

.relay-input-block textarea {
  height: 78px;
  min-height: 78px;
  max-height: 78px;
}

.relay-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.relay-results {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.relay-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.relay-summary span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  color: rgba(51, 65, 85, 0.84);
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
}

.relay-result-list {
  display: grid;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.relay-result-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.relay-row-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.relay-row-main strong,
.relay-row-main span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relay-row-main strong {
  color: #0f2742;
}

.relay-row-main span {
  color: rgba(71, 85, 105, 0.82);
}

.relay-row-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.relay-row-controls select {
  width: 132px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(125, 143, 165, 0.34);
  border-radius: 7px;
  color: #173047;
  background: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
}

.relay-result-row.is-matched {
  border-color: rgba(15, 118, 110, 0.3);
}

.relay-result-row.is-missing {
  border-color: rgba(245, 158, 11, 0.38);
}

.relay-result-row.is-duplicate,
.relay-result-row.is-duplicate-missing {
  opacity: 0.58;
}

.relay-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  color: rgba(100, 116, 139, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.match-summary {
  color: rgba(51, 65, 85, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.match-select-grid {
  display: grid;
  grid-template-columns: repeat(17, var(--card-w));
  grid-auto-rows: var(--card-h);
  gap: var(--card-gap);
}

.selected-mark {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  font-size: 8px;
  font-weight: 800;
}

.player-card.is-selected {
  outline: 2px solid rgba(15, 118, 110, 0.88);
  outline-offset: 2px;
}

.draft-control-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--board-inner-w);
  min-height: 24px;
  margin: 0 auto 6px;
  color: rgba(51, 65, 85, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.score-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  min-width: 22px;
  padding: 1px 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(29, 78, 216, 0.9));
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.player-card .description-mark {
  top: 18px;
}

.card-meta {
  display: block;
  min-height: 9px;
  overflow: hidden;
  color: rgba(30, 41, 59, 0.78);
  font-size: 7px;
  font-weight: 800;
  line-height: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-board {
  justify-content: center;
  gap: 18px;
}

.community-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 16px;
  justify-content: center;
}

.community-card {
  display: grid;
  gap: 16px;
  min-height: 270px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.14), transparent 36%),
    radial-gradient(circle at 92% 16%, rgba(245, 158, 11, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(30, 41, 59, 0.08);
}

.community-card.is-active {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 38px rgba(15, 118, 110, 0.14);
}

.community-card h2 {
  color: #0f2742;
  font-size: 32px;
}

.community-stats {
  display: grid;
  gap: 8px;
}

.community-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  color: rgba(51, 65, 85, 0.82);
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.community-stats strong {
  color: #0f766e;
  font-size: 18px;
}

.community-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(51, 65, 85, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.view-nav {
  position: relative;
  z-index: 2;
  display: grid;
  /* Keep the same slots even when the status message is empty. */
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  width: var(--board-inner-w);
  min-height: 38px;
  margin: 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 243, 251, 0.56)),
    rgba(255, 255, 255, 0.5);
}

.view-nav-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  color: #0f2742;
  font-size: 14px;
  font-weight: 900;
}

.view-nav-title span {
  flex: 0 0 auto;
}

.view-nav-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(71, 85, 105, 0.72);
  font-size: 11px;
}

.view-nav-actions,
.draft-actions,
.champion-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.view-nav-actions {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.view-nav-actions .ui-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.view-toast {
  grid-column: 3;
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.library-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.library-roster-panel {
  flex: 1 1 auto;
  width: var(--board-inner-w);
  min-height: 0;
  margin: 0 auto;
}

.roster-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.form-panel {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 24px;
  scrollbar-gutter: stable;
}

.player-editor-layout {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  width: var(--board-inner-w);
  min-height: 0;
  margin: 0 auto;
}

.player-editor-panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  padding: 16px 26px 18px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.player-editor-panel .player-form {
  width: min(660px, 100%);
  margin: 0 auto;
  padding-right: 0;
}

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

.player-editor-panel .form-preview {
  min-height: 136px;
}

.library-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: clip;
  overflow-y: auto;
  align-content: start;
  padding: 2px 6px 10px 2px;
}

.activity-shop-board {
  gap: 10px;
}

.activity-shop-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  flex: 1 1 auto;
  width: var(--board-inner-w);
  min-height: 0;
  margin: 0 auto;
}

.shop-catalog,
.shop-checkout {
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.11), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(30, 41, 59, 0.07);
}

.shop-catalog {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-section-head h2 {
  color: #0f2742;
  font-size: 18px;
}

.shop-product-count {
  color: rgba(71, 85, 105, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.shop-category-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.shop-category-tab {
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 7px;
  color: rgba(51, 65, 85, 0.82);
  background: rgba(248, 250, 252, 0.72);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.shop-category-tab:hover,
.shop-category-tab.is-active {
  border-color: rgba(13, 148, 136, 0.58);
  color: #0f766e;
  background: rgba(204, 251, 241, 0.68);
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 14px;
  align-content: start;
}

.shop-product-card {
  display: grid;
  grid-template-rows: 116px auto auto 1fr auto;
  gap: 7px;
  min-height: 294px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 10px;
  color: #18314f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(224, 242, 254, 0.72)),
    #eff6ff;
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  text-align: left;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.shop-product-card:hover,
.shop-product-card.is-selected {
  border-color: rgba(37, 99, 235, 0.84);
  box-shadow:
    0 12px 26px rgba(37, 99, 235, 0.22),
    0 0 0 2px rgba(125, 211, 252, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.shop-product-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(135deg, #e0f2fe, #bfdbfe 48%, #ddd6fe);
}

.shop-product-art-wings::before,
.shop-product-art-wings::after {
  content: "";
  position: absolute;
  bottom: 11px;
  width: 58px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 94% 12% 76% 24%;
  background:
    repeating-linear-gradient(160deg, transparent 0 12px, rgba(255, 255, 255, 0.8) 12px 15px, transparent 15px 21px),
    linear-gradient(140deg, #ffffff, #bae6fd 52%, #818cf8);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.48);
}

.shop-product-art-wings::before {
  left: 46px;
  transform: rotate(-27deg);
}

.shop-product-art-wings::after {
  right: 46px;
  transform: scaleX(-1) rotate(-27deg);
}

.shop-product-art-diamond {
  border-color: rgba(34, 211, 238, 0.72);
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.94) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.88) 0 2px, transparent 3px),
    linear-gradient(135deg, #dffafe, #a5b4fc 52%, #e0f2fe);
}

.shop-product-art-diamond::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid rgba(103, 232, 249, 0.92);
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(34, 211, 238, 0.62),
    inset 0 0 15px rgba(255, 255, 255, 0.58);
}

.shop-product-art-diamond::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 38px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
  box-shadow:
    66px 22px 0 -1px rgba(255, 255, 255, 0.9),
    30px 53px 0 -1px rgba(129, 140, 248, 0.92),
    122px 64px 0 -1px rgba(255, 255, 255, 0.9),
    80px 84px 0 -2px rgba(34, 211, 238, 0.92);
}

.shop-product-art-gold {
  border-color: rgba(217, 119, 6, 0.66);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 251, 235, 0.98), transparent 30%),
    linear-gradient(135deg, #fff7d6, #fbbf24 48%, #b45309);
}

.shop-product-art-gold::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 4px double rgba(255, 251, 235, 0.96);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.54), inset 0 0 10px rgba(255, 255, 255, 0.72);
}

.shop-product-art-gold::after {
  content: "✦";
  position: absolute;
  right: 22px;
  bottom: 15px;
  color: rgba(255, 251, 235, 0.98);
  font-size: 25px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.92);
}

.shop-product-art-ice {
  border-color: rgba(96, 165, 250, 0.7);
  background:
    radial-gradient(circle at 25% 28%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    linear-gradient(140deg, #eff6ff, #bae6fd 52%, #bfdbfe);
}

.shop-product-art-ice::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px 8px 13px 7px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.48), inset 0 0 11px rgba(255, 255, 255, 0.66);
}

.shop-product-art-ice::after {
  content: "✧";
  position: absolute;
  top: 18px;
  right: 28px;
  color: #ffffff;
  font-size: 25px;
  text-shadow: 0 0 10px #60a5fa;
}

.shop-product-art-night {
  border-color: rgba(30, 64, 175, 0.68);
  background:
    repeating-linear-gradient(0deg, rgba(147, 197, 253, 0.14) 0 1px, transparent 1px 17px),
    linear-gradient(145deg, #172554, #1e3a8a 54%, #0f766e);
}

.shop-product-art-night::before {
  content: "战力总表";
  position: absolute;
  inset: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191, 219, 254, 0.58);
  color: rgba(239, 246, 255, 0.94);
  background: rgba(15, 23, 42, 0.34);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.shop-product-art-hall {
  border-color: rgba(180, 83, 9, 0.64);
  background:
    repeating-linear-gradient(90deg, rgba(180, 83, 9, 0.08) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, #fff7ed, #fde68a 52%, #fef3c7);
}

.shop-product-art-hall::before {
  content: "冠军榜";
  position: absolute;
  inset: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(180, 83, 9, 0.58);
  color: #92400e;
  background: rgba(255, 251, 235, 0.66);
  font-size: 14px;
  font-weight: 900;
}

.shop-product-art-flame {
  overflow: visible;
  border-color: rgba(220, 38, 38, 0.72);
  background: linear-gradient(145deg, #fff1e9, #fecaca 52%, #fed7aa);
}

.shop-product-art-flame::before {
  content: "";
  position: absolute;
  inset: 17px 18px;
  border: 2px solid rgba(254, 215, 170, 0.9);
  border-radius: 6px;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(220, 38, 38, 0.94),
    0 0 15px rgba(249, 115, 22, 0.7),
    inset 0 0 12px rgba(254, 215, 170, 0.32);
}

.shop-product-art-flame::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 18px;
  height: 31px;
  clip-path: polygon(50% 0, 76% 27%, 100% 18%, 79% 65%, 67% 100%, 30% 100%, 12% 65%, 0 31%, 30% 43%);
  background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 27%, #fb923c 62%, #dc2626 100%);
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.92));
  box-shadow:
    220px 0 0 -1px rgba(251, 146, 60, 0.94),
    82px -17px 0 -2px rgba(254, 215, 170, 0.96),
    154px -15px 0 -3px rgba(220, 38, 38, 0.92);
}

.shop-product-category {
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
}

.shop-product-card > strong {
  color: #172554;
  font-size: 17px;
  font-weight: 900;
}

.shop-product-card > small {
  color: rgba(30, 64, 175, 0.8);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.shop-product-foot,
.shop-checkout-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-product-foot {
  padding-top: 8px;
  border-top: 1px solid rgba(96, 165, 250, 0.24);
}

.shop-product-foot b,
.shop-checkout-product strong {
  color: #0f766e;
  font-size: 12px;
}

.shop-product-foot em {
  color: rgba(71, 85, 105, 0.76);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.shop-checkout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.shop-target-note {
  padding: 8px 10px;
  border-left: 3px solid rgba(13, 148, 136, 0.58);
  color: rgba(51, 65, 85, 0.76);
  background: rgba(240, 253, 250, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.shop-checkout-art {
  flex: 0 0 76px;
  min-height: 76px;
}

.shop-player-preview,
.shop-player-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 252px;
}

.shop-player-placeholder {
  border: 1px dashed rgba(125, 143, 165, 0.34);
  border-radius: 10px;
  color: rgba(100, 116, 139, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.shop-player-preview .player-card {
  width: 172px;
  height: 224px;
  padding: 8px;
}

.shop-player-preview .card-effect-shell {
  width: 172px;
  height: 224px;
}

.shop-player-preview .score-badge {
  top: 8px;
  left: 8px;
  min-width: 42px;
  padding: 3px 6px;
  font-size: 13px;
}

.shop-player-preview .card-image-placeholder {
  width: 58px;
  height: 58px;
}

.shop-player-preview .card-name {
  min-height: 22px;
  font-size: 15px;
  line-height: 22px;
}

.shop-player-preview .card-meta {
  min-height: 18px;
  font-size: 12px;
  line-height: 18px;
}

.shop-player-preview .position-row {
  min-height: 20px;
  gap: 4px;
}

.shop-player-preview .position-icon {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.shop-player-preview .card-effect-shell .wing-effect {
  inset: -72px -190px;
}

.shop-player-preview .card-effect-shell .wing-effect::before,
.shop-player-preview .card-effect-shell .wing-effect::after {
  width: 170px;
  height: 300px;
}

.shop-balance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.shop-balance span,
.shop-checkout-product {
  padding: 9px 8px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.shop-balance span {
  display: grid;
  gap: 3px;
  color: rgba(71, 85, 105, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.shop-balance strong {
  color: #0f2742;
  font-size: 16px;
}

.shop-checkout-product {
  margin-top: auto;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.match-select-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding: 4px;
}

.score-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: var(--board-inner-w);
  margin: 0 auto;
}

.score-metrics article,
.team-score-strip span,
.data-status-grid article,
.tier-score-grid article {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(235, 243, 251, 0.58)),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.score-metrics span,
.team-score-strip span,
.data-status-grid span,
.tier-score-grid span {
  display: block;
  color: rgba(71, 85, 105, 0.78);
  font-size: 10px;
  font-weight: 900;
}

.score-metrics strong,
.team-score-strip strong,
.data-status-grid strong,
.tier-score-grid strong {
  display: block;
  color: #0f2742;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.tier-score-grid small {
  display: block;
  overflow: hidden;
  color: rgba(100, 116, 139, 0.82);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-score-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--team-count, 8), 1fr);
  gap: 6px;
  width: var(--board-inner-w);
  margin: 6px auto;
}

.team-score-strip span {
  padding: 5px 6px;
}

.team-score-strip strong {
  font-size: 12px;
}

.team-score {
  margin: -2px 0 5px;
  color: rgba(15, 118, 110, 0.86);
  font-size: 10px;
  font-weight: 900;
}

.draft-tier-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 10px;
  flex: 1 1 0;
  width: var(--board-inner-w);
  min-height: 300px;
  margin: 8px auto 0;
}

.draft-tier-panel.drop-target {
  outline-color: rgba(29, 78, 216, 0.82);
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.32), rgba(240, 253, 250, 0.26)),
    rgba(255, 255, 255, 0.18);
}

.tier-table-wrap,
.tier-preview {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(235, 243, 251, 0.6)),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.tier-table-wrap {
  overflow: hidden;
}

.tier-table {
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.tier-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.tier-row header {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 24px;
  padding: 2px 3px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  color: #0f2742;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.tier-row header span {
  color: #0f766e;
  font-size: 8px;
}

.tier-names {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  padding: 3px;
  overflow: hidden;
}

.tier-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 0 1 62px;
  min-width: 44px;
  max-width: 84px;
  height: 16px;
  min-height: 0;
  padding: 0 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 4px;
  color: #173047;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  text-align: center;
}

.tier-name strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-name span {
  flex: 0 0 auto;
  padding: 0 2px;
  border-radius: 3px;
  color: rgba(71, 85, 105, 0.78);
  background: rgba(226, 232, 240, 0.82);
  font-size: 7px;
  font-weight: 900;
  line-height: 10px;
}

.tier-name.is-active {
  border-color: rgba(15, 118, 110, 0.72);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.92), rgba(219, 234, 254, 0.74)),
    rgba(255, 255, 255, 0.78);
}

.tier-name.is-in-team {
  color: rgba(100, 116, 139, 0.72);
  background: rgba(226, 232, 240, 0.72);
  filter: grayscale(0.85);
}

.tier-empty {
  color: rgba(100, 116, 139, 0.66);
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
}

.tier-preview {
  padding: 10px;
}

.tier-preview-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  height: 100%;
}

.tier-preview-head {
  min-width: 0;
}

.tier-preview-card h2 {
  overflow: hidden;
  color: #0f2742;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.tier-preview-stage .player-card.preview-card {
  width: 130px;
  height: 174px;
  padding: 5px;
}

.tier-preview-stage .card-effect-shell.preview-card-shell {
  width: 130px;
  height: 174px;
}

.tier-preview-stage .player-card.preview-card .score-badge {
  top: 6px;
  left: 6px;
  min-width: 30px;
  padding: 2px 4px;
  font-size: 9px;
}

.tier-preview-stage .player-card.preview-card .description-mark {
  top: 26px;
  left: 7px;
  width: 8px;
  height: 8px;
}

.tier-preview-stage .player-card.preview-card .card-name {
  min-height: 16px;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
}

.tier-preview-stage .player-card.preview-card .card-meta {
  min-height: 13px;
  font-size: 9px;
  line-height: 13px;
}

.tier-preview-stage .player-card.preview-card .position-row {
  min-height: 16px;
}

.tier-preview-stage .player-card.preview-card .position-icon {
  width: 13px;
  height: 13px;
  font-size: 8px;
}

.tier-preview-stage .player-card.preview-card .card-image-placeholder {
  width: 32px;
  height: 32px;
}

.tier-preview-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  color: rgba(51, 65, 85, 0.82);
  font-size: 10px;
  font-weight: 900;
}

.tier-preview-meta span {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 360px;
  gap: 10px;
  flex: 1 1 0;
  width: var(--board-inner-w);
  min-height: 260px;
  margin: 8px auto 0;
}

.auction-current-panel,
.auction-bid-panel,
.auction-list-panel {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(235, 243, 251, 0.6)),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.auction-current-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 7px;
}

.auction-panel-head {
  min-width: 0;
}

.auction-panel-head h2 {
  overflow: hidden;
  color: #0f2742;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-current-stage {
  min-height: 142px;
}

.auction-price-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.auction-price-board span {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.auction-price-board em,
.auction-budget-pill em,
.auction-budget-pill small {
  display: block;
  overflow: hidden;
  color: rgba(71, 85, 105, 0.78);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-price-board strong {
  display: block;
  overflow: hidden;
  color: #0f2742;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-bid-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 5px;
}

.auction-captain-panel {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.auction-captain-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: end;
}

.auction-captain-head h2 {
  overflow: hidden;
  color: #0f2742;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-captain-head > span {
  overflow: hidden;
  color: rgba(71, 85, 105, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-captain-grid,
.auction-captain-hint {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.auction-captain-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auction-captain-field span {
  color: rgba(51, 65, 85, 0.78);
  font-size: 9px;
  font-weight: 900;
}

.auction-captain-field select {
  width: 100%;
  height: 22px;
  min-width: 0;
  padding: 0 5px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  color: #173047;
  background: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
}

.auction-captain-hint span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 7px;
  color: rgba(71, 85, 105, 0.78);
  background: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 900;
}

.auction-captain-hint strong {
  overflow: hidden;
  color: #0f2742;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-setting-row,
.auction-manual-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 6px;
  align-items: end;
}

.auction-setting-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.auction-setting-row input[readonly] {
  color: #0f766e;
  font-weight: 900;
}

.auction-bid-panel .field {
  gap: 3px;
  font-size: 10px;
}

.auction-bid-panel .field input,
.auction-bid-panel .field select {
  height: 28px;
}

.auction-bid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
  min-height: 0;
  overflow: visible;
}

.auction-bid-button {
  width: 100%;
  min-width: 0;
  padding: 0 6px;
}

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

.auction-command-row .ui-button {
  min-width: 0;
  padding: 0 8px;
}

.auction-list-panel {
  display: grid;
  grid-template-rows: auto minmax(112px, 1fr) auto minmax(82px, 0.8fr) auto;
  gap: 6px;
}

.auction-candidate-list,
.auction-sale-list {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.auction-candidate-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: #173047;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  text-align: left;
}

.auction-candidate-row[draggable="true"] {
  cursor: grab;
}

.auction-candidate-row.dragging {
  opacity: 0.45;
}

.auction-candidate-row.is-active {
  border-color: rgba(15, 118, 110, 0.62);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.9), rgba(219, 234, 254, 0.68)),
    rgba(255, 255, 255, 0.66);
}

.auction-candidate-row strong,
.auction-candidate-row span,
.auction-sale-row strong,
.auction-sale-row span,
.auction-sale-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-candidate-row strong {
  color: #0f2742;
  font-size: 11px;
  font-weight: 900;
}

.auction-candidate-row span {
  color: rgba(71, 85, 105, 0.8);
  font-size: 10px;
  font-weight: 800;
}

.auction-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 64px;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.auction-sale-row strong {
  color: #0f2742;
  font-size: 11px;
  font-weight: 900;
}

.auction-sale-row span,
.auction-sale-row em {
  color: rgba(71, 85, 105, 0.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.auction-pending-note {
  color: rgba(71, 85, 105, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.auction-team-box .team-slots {
  margin-top: 4px;
}

.auction-captain-name,
.auction-team-money {
  overflow: hidden;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-captain-name {
  color: rgba(15, 118, 110, 0.86);
  font-size: 9px;
}

.auction-team-money {
  color: rgba(29, 78, 216, 0.78);
  font-size: 9px;
}

.auction-captain-slot {
  position: relative;
}

.auction-captain-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 5;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}

.auction-budget-strip > span.auction-budget-pill {
  padding: 5px 6px;
}

.auction-budget-pill strong {
  font-size: 12px;
}

.candidate-grid .empty-state,
.pending-grid .empty-state,
.match-select-grid .empty-state,
.library-grid .empty-state {
  grid-column: 1 / -1;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  color: rgba(100, 116, 139, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.settings-board,
.records-board,
.data-board {
  gap: 10px;
}

.settings-layout,
.data-layout,
.records-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  width: var(--board-inner-w);
  min-height: 0;
  margin: 0 auto;
}

.settings-layout,
.data-layout {
  grid-template-columns: 360px 1fr;
}

.tier-settings-layout {
  grid-template-columns: 1fr;
}

.settings-panel,
.record-list,
.record-detail {
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.11), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(30, 41, 59, 0.07);
  overflow: hidden;
}

.tier-score-grid,
.data-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.data-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.data-actions .ui-button {
  min-width: 0;
}

.data-actions .data-action-wide {
  grid-column: 1 / -1;
}

.data-path-input[readonly] {
  color: #365066;
  cursor: default;
}

.data-path-hint {
  min-height: 30px;
  color: rgba(71, 85, 105, 0.84);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.data-storage-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.data-file-detail {
  display: grid;
  gap: 8px;
}

.data-file-detail div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.data-file-detail span {
  color: rgba(71, 85, 105, 0.8);
  font-size: 10px;
  font-weight: 900;
}

.data-file-detail strong,
.data-file-detail code {
  color: #173047;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.data-file-detail code {
  font-family: Consolas, "Courier New", monospace;
  white-space: normal;
}

.data-storage-note {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 8px;
  color: #24536e;
  background: rgba(224, 242, 254, 0.56);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.data-storage-note.is-warning {
  border-color: rgba(234, 88, 12, 0.3);
  color: #9a3412;
  background: rgba(255, 237, 213, 0.68);
}

.tier-score-grid {
  grid-template-columns: repeat(5, 1fr);
  overflow: auto;
  max-height: 720px;
}

.tier-config-panel {
  display: grid;
  gap: 12px;
}

.tier-config-table {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: auto;
}

.tier-config-head,
.tier-config-row {
  display: grid;
  grid-template-columns: 44px minmax(120px, 1fr) 120px 120px 120px 140px;
  gap: 8px;
  align-items: center;
}

.tier-config-head {
  padding: 0 8px;
  color: rgba(71, 85, 105, 0.76);
  font-size: 11px;
  font-weight: 900;
}

.tier-config-row {
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.tier-config-row strong {
  color: #0f766e;
  font-size: 13px;
}

.tier-config-row input,
.tier-config-row select {
  width: 100%;
  height: 28px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(125, 143, 165, 0.34);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.tier-config-range {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(125, 143, 165, 0.2);
  border-radius: 8px;
  color: rgba(51, 65, 85, 0.84);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-layout {
  grid-template-columns: 310px 1fr;
}

.record-list,
.record-detail {
  display: flex;
  flex-direction: column;
}

.record-detail {
  gap: 10px;
  overflow: auto;
}

.record-list-items {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.record-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: rgba(51, 65, 85, 0.86);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  text-align: left;
}

.record-list-item.is-active {
  border-color: rgba(15, 118, 110, 0.62);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.88), rgba(219, 234, 254, 0.64)),
    rgba(255, 255, 255, 0.76);
}

.record-list-item strong {
  overflow: hidden;
  color: #0f2742;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-list-item span,
.record-list-item small {
  color: rgba(100, 116, 139, 0.82);
  font-size: 11px;
  font-weight: 800;
}

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

.record-detail-head h2 {
  color: #0f2742;
  font-size: 20px;
}

.record-champion-status {
  display: inline-flex;
  margin-top: 4px;
  color: rgba(15, 118, 110, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
}

.record-roster-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.66), rgba(239, 246, 255, 0.56)),
    rgba(255, 255, 255, 0.62);
}

.record-roster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-roster-head h3 {
  margin: 0;
  color: #0f2742;
  font-size: 15px;
}

.record-roster-head > span {
  color: rgba(15, 118, 110, 0.9);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.record-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(274px, 1fr));
  gap: 8px;
}

.record-roster-team {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.64);
}

.record-roster-team header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.record-roster-team h4 {
  margin: 0;
  color: #0f2742;
  font-size: 12px;
}

.record-roster-team header span {
  color: rgba(15, 118, 110, 0.88);
  font-size: 10px;
  font-weight: 900;
}

.record-roster-members {
  display: grid;
  gap: 4px;
}

.record-roster-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 96px;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.record-roster-member > span {
  display: grid;
  min-width: 0;
}

.record-roster-member strong,
.record-roster-member small,
.record-score-roster strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-roster-member strong {
  color: #173047;
  font-size: 11px;
  font-weight: 900;
}

.record-roster-member small {
  color: rgba(100, 116, 139, 0.8);
  font-size: 9px;
  font-weight: 800;
}

.record-roster-member em {
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.record-roster-member em.is-original {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.8);
}

.record-roster-member em.is-substitute {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.88);
}

.record-roster-member select {
  width: 96px;
  min-width: 0;
  height: 23px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 9px;
}

.record-score-roster,
.record-substitution-history,
.champion-score-roster {
  margin: 6px 0 0;
  color: rgba(71, 85, 105, 0.84);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
}

.record-score-roster {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px;
}

.record-score-roster span {
  color: rgba(15, 118, 110, 0.9);
}

.record-score-roster strong {
  color: #334155;
}

.record-substitution-history {
  color: rgba(37, 99, 235, 0.84);
}

.record-share-preview {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 245, 249, 0.5)),
    rgba(255, 255, 255, 0.6);
}

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

.record-share-preview-head h3 {
  margin: 0;
  color: #0f2742;
  font-size: 15px;
}

.record-share-preview-meta {
  color: rgba(100, 116, 139, 0.84);
  font-size: 11px;
  font-weight: 800;
}

.record-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}

.record-preview-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.record-preview-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.record-preview-dialog-head h2 {
  color: #0f2742;
  font-size: 16px;
}

.record-preview-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.92), rgba(241, 245, 249, 0.92)),
    #e2e8f0;
}

.record-preview-canvas img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.champion-direct {
  display: grid;
  gap: 4px;
  color: rgba(51, 65, 85, 0.86);
  font-size: 10px;
  font-weight: 900;
}

.champion-direct select {
  width: 96px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 7px;
  color: #173047;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.bracket-section,
.champion-road {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.bracket-section-head,
.champion-road-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bracket-section-head h3,
.champion-road h3 {
  margin: 0;
  color: #0f2742;
  font-size: 15px;
}

.bracket-section-head > span {
  color: rgba(100, 116, 139, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.seed-editor {
  display: grid;
  gap: 6px;
}

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

.seed-select {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seed-select span {
  color: rgba(15, 39, 66, 0.74);
  font-size: 10px;
  font-weight: 900;
}

.seed-select select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 7px;
  color: #173047;
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 900;
}

.seed-hint {
  margin: 0;
  color: rgba(100, 116, 139, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.bracket-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(86px, 1fr));
  gap: 8px 12px;
  min-width: 0;
  min-height: 382px;
}

.bracket-stage.bracket-size-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(104px, 1fr));
  min-height: 226px;
}

.bracket-stage.bracket-size-2 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(112px, 1fr);
  min-height: 124px;
}

.bracket-match {
  display: grid;
  grid-column: var(--bracket-col);
  grid-row: var(--bracket-row) / span var(--bracket-span, 1);
  align-self: center;
  gap: 5px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 245, 249, 0.48)),
    rgba(255, 255, 255, 0.58);
}

.bracket-match.has-winner {
  border-color: rgba(15, 118, 110, 0.42);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.82), rgba(239, 246, 255, 0.54)),
    rgba(255, 255, 255, 0.68);
}

.bracket-match-head,
.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.bracket-match-head span {
  color: rgba(100, 116, 139, 0.82);
  font-size: 10px;
  font-weight: 900;
}

.bracket-match-head strong {
  overflow: hidden;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-participants {
  display: grid;
  gap: 4px;
}

.bracket-team-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.bracket-team-row.no-seed {
  grid-template-columns: minmax(0, 1fr);
}

.bracket-seed-select {
  min-width: 0;
  height: 34px;
  padding: 0 5px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 7px;
  color: #173047;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
}

.bracket-team {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  color: rgba(30, 41, 59, 0.9);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.bracket-team:hover {
  border-color: rgba(59, 130, 246, 0.58);
  transform: translateY(-1px);
}

.bracket-team.is-winner {
  border-color: rgba(245, 158, 11, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 247, 226, 0.94), rgba(240, 253, 250, 0.7)),
    rgba(255, 255, 255, 0.78);
}

.bracket-team.is-empty {
  justify-content: center;
  color: rgba(100, 116, 139, 0.72);
  background: rgba(241, 245, 249, 0.62);
  cursor: default;
}

.bracket-team.is-locked {
  cursor: default;
}

.bracket-team.is-locked:hover,
.bracket-team.is-empty:hover {
  border-color: rgba(148, 163, 184, 0.32);
  transform: none;
}

.bracket-team strong,
.bracket-team span,
.bracket-team small {
  min-width: 0;
  font-size: 10px;
  font-weight: 900;
}

.bracket-team strong {
  color: #0f2742;
}

.bracket-team span {
  color: #0f766e;
}

.bracket-team small {
  flex: 1 1 auto;
  overflow: hidden;
  color: rgba(100, 116, 139, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-road {
  background:
    linear-gradient(180deg, rgba(255, 247, 226, 0.82), rgba(240, 253, 250, 0.62)),
    rgba(255, 255, 255, 0.64);
}

.champion-road-head > span {
  flex: 0 0 auto;
  color: rgba(15, 118, 110, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.champion-road-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 8px;
  min-height: 0;
}

.champion-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  max-height: 78px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.champion-members span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 7px;
  color: rgba(51, 65, 85, 0.9);
  background: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.champion-members strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-members small {
  flex: 0 0 auto;
  color: rgba(100, 116, 139, 0.82);
  font-size: 9px;
}

.champion-road-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-height: 78px;
  min-height: 0;
  overflow: auto;
}

.champion-road-steps span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: rgba(51, 65, 85, 0.88);
  background: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
}

.record-team-grid {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 0;
  overflow: visible;
}

.record-team {
  min-height: 154px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.record-team.is-champion {
  border-color: rgba(245, 158, 11, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 247, 226, 0.92), rgba(240, 253, 250, 0.66)),
    rgba(255, 255, 255, 0.72);
}

.record-team header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.record-team h3 {
  margin: 0;
  color: #0f2742;
  font-size: 14px;
}

.record-team header span {
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.record-members {
  display: grid;
  gap: 5px;
}

.record-members span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: rgba(30, 41, 59, 0.9);
  font-size: 11px;
  font-weight: 900;
}

.record-members small {
  flex: 0 0 auto;
  color: rgba(100, 116, 139, 0.8);
  font-size: 9px;
}

.data-schema-panel pre {
  height: 680px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: #173047;
  background: rgba(255, 255, 255, 0.62);
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}

.dota-league-board {
  gap: 10px;
}

.dota-league-toolbar,
.dota-league-candidates,
.dota-match-list-panel,
.dota-league-message {
  position: relative;
  z-index: 1;
  width: var(--board-inner-w);
  margin: 0 auto;
}

.dota-league-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px auto;
  gap: 10px;
}

.dota-league-current,
.dota-league-summary {
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.dota-league-current {
  display: grid;
  align-content: center;
  gap: 3px;
}

.dota-league-current .panel-kicker,
.dota-league-summary > span,
.dota-league-summary small {
  color: rgba(71, 85, 105, 0.8);
  font-size: 10px;
  font-weight: 900;
}

.dota-league-current .panel-kicker {
  margin: 0;
}

.dota-league-current strong {
  overflow: hidden;
  color: #0f2742;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dota-league-current small {
  overflow: hidden;
  color: rgba(71, 85, 105, 0.78);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dota-league-summary {
  display: grid;
  align-content: center;
  gap: 3px;
}

.dota-league-summary strong {
  overflow: hidden;
  color: #0f2742;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dota-league-actions {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 6px;
  min-width: 90px;
}

.dota-league-actions .ui-button {
  min-width: 90px;
}

.dota-league-message {
  margin-top: -2px;
  margin-bottom: 0;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.dota-league-message.is-error {
  color: #b45309;
}

.dota-league-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dota-league-candidate {
  display: grid;
  gap: 3px;
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(14, 116, 144, 0.26);
  border-radius: 7px;
  color: #173047;
  background: rgba(240, 249, 255, 0.76);
  cursor: pointer;
  text-align: left;
}

.dota-league-candidate:hover {
  border-color: rgba(14, 116, 144, 0.62);
  background: rgba(224, 242, 254, 0.88);
}

.dota-league-candidate strong {
  font-size: 12px;
  font-weight: 900;
}

.dota-league-candidate span {
  color: rgba(71, 85, 105, 0.75);
  font-size: 9px;
  font-weight: 800;
}

.dota-match-list-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.dota-match-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 8px 0 7px;
}

.dota-match-list-head .panel-kicker {
  margin-bottom: 2px;
}

.dota-match-list-head h2 {
  margin: 0;
  color: #0f2742;
  font-size: 17px;
}

.dota-match-list-head > span {
  max-width: 52%;
  overflow: hidden;
  color: rgba(71, 85, 105, 0.74);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dota-match-list {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  padding: 1px 3px 2px 0;
}

.dota-match-row {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.dota-match-row:hover {
  border-color: rgba(14, 116, 144, 0.38);
  background: rgba(240, 249, 255, 0.76);
}

.dota-match-time,
.dota-match-result {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dota-match-time strong,
.dota-match-result strong {
  color: #173047;
  font-size: 12px;
  font-weight: 900;
}

.dota-match-time span,
.dota-match-result span {
  color: rgba(71, 85, 105, 0.74);
  font-size: 9px;
  font-weight: 800;
}

.dota-match-heroes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.dota-hero-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}

.dota-hero-strip.is-dire {
  justify-content: flex-start;
}

.dota-hero {
  display: block;
  flex: 0 0 auto;
  width: 37px;
  height: 27px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.4);
  border-radius: 3px;
  background: #d7e0e8;
}

.dota-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dota-hero.is-missing {
  display: grid;
  place-items: center;
  color: rgba(71, 85, 105, 0.74);
  font-size: 11px;
  font-weight: 900;
}

.dota-heroes-loading {
  color: rgba(71, 85, 105, 0.66);
  font-size: 9px;
  font-weight: 800;
}

.dota-versus {
  color: rgba(100, 116, 139, 0.75);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.dota-match-result {
  text-align: right;
}

.dota-match-result.is-radiant-win strong {
  color: #0f766e;
}

.dota-match-result.is-dire-win strong {
  color: #b91c1c;
}

.dota-list-loading {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: rgba(71, 85, 105, 0.8);
  font-size: 12px;
  font-weight: 900;
}

.dota-load-more {
  align-self: center;
  margin-top: 7px;
}

.dota-settings-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
}

.dota-settings-dialog {
  display: grid;
  width: min(620px, 100%);
  max-height: min(720px, calc(100% - 24px));
  gap: 12px;
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
}

.dota-settings-dialog-head,
.dota-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dota-settings-dialog-head .panel-kicker {
  margin: 0 0 2px;
}

.dota-settings-dialog-head h2 {
  margin: 0;
  color: #0f2742;
  font-size: 17px;
}

.dota-settings-dialog .field {
  gap: 5px;
}

.dota-settings-dialog .field > span {
  color: rgba(71, 85, 105, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.dota-selected-league {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(14, 116, 144, 0.3);
  border-radius: 8px;
  background: rgba(240, 249, 255, 0.8);
}

.dota-selected-league.is-empty {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.88);
}

.dota-selected-league span,
.dota-selected-league small,
.dota-settings-hint,
.dota-search-empty {
  color: rgba(71, 85, 105, 0.8);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
}

.dota-selected-league strong {
  color: #0f2742;
  font-size: 14px;
  font-weight: 900;
}

.dota-league-search-row {
  display: flex;
  gap: 7px;
}

.dota-league-search-row input {
  min-width: 0;
  flex: 1 1 auto;
}

.dota-league-search-row .ui-button {
  flex: 0 0 auto;
}

.dota-league-search-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: rgba(71, 85, 105, 0.76);
  font-size: 10px;
  font-weight: 800;
}

.dota-league-search-keywords button {
  padding: 3px 8px;
  border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(236, 254, 255, 0.78);
  cursor: pointer;
  font: inherit;
}

.dota-league-search-keywords button:hover {
  border-color: rgba(14, 116, 144, 0.58);
  background: rgba(207, 250, 254, 0.95);
}

.dota-settings-hint {
  margin: -3px 0 0;
  color: #9a3412;
}

.dota-settings-dialog .dota-league-candidates {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 230px;
  overflow: auto;
}

.dota-settings-dialog .dota-league-candidate {
  min-width: 0;
  width: 100%;
}

.dota-settings-dialog .dota-league-candidate.is-selected {
  border-color: rgba(14, 116, 144, 0.8);
  background: rgba(207, 250, 254, 0.9);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.16);
}

.dota-search-empty {
  padding: 8px 10px;
  border: 1px dashed rgba(148, 163, 184, 0.46);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.78);
}

.dota-settings-note {
  margin: 0;
  color: rgba(71, 85, 105, 0.8);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.dota-settings-actions {
  justify-content: flex-end;
  padding-top: 2px;
}
/* Local access layer and community interaction hall */
.access-login-board {
  min-height: 720px;
  display: grid;
  place-items: center;
}

.access-login-panel {
  width: min(620px, 92%);
  padding: 38px 44px;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(30, 41, 59, .14);
}

.access-login-panel h2,
.access-admin-panel h2,
.hall-stage-panel h2,
.hall-chat-panel h2 {
  margin: 0;
  color: #172554;
}

.access-lead,
.access-security-note,
.access-hint {
  color: #64748b;
  line-height: 1.7;
}

.access-login-form {
  display: grid;
  gap: 14px;
}

.access-login-form .field input,
.access-login-form .field select,
.hall-chat-form input {
  width: 100%;
}

.access-login-form .auth-status {
  margin: 0;
}

.access-admin-board,
.hall-board {
  padding-bottom: 36px;
}

.access-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 18px;
}

.access-admin-panel,
.hall-stage-panel,
.hall-chat-panel {
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 36px rgba(30, 41, 59, .08);
  padding: 22px;
}

.access-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.access-role-badge.admin {
  color: #92400e;
  background: #fef3c7;
}

.access-credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.access-credential-grid > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.access-credential-grid span,
.invite-row span {
  color: #64748b;
  font-size: 12px;
}

.access-password,
.invite-row code {
  color: #312e81;
  font-size: 15px;
  letter-spacing: .06em;
}

.invite-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.invite-row > div {
  display: grid;
  gap: 4px;
}

.hall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
}

.hall-stage-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(240, 249, 255, .66)),
    rgba(255, 255, 255, .6);
}

.hall-stage-panel .panel-title-row {
  margin-bottom: 8px;
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(var(--hall-cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--hall-rows), minmax(0, 1fr));
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin-top: 18px;
  aspect-ratio: 7 / 4;
  border: 1px solid rgba(74, 116, 132, .72);
  border-radius: 16px;
  background:
    radial-gradient(700px 300px at 18% 12%, rgba(125, 211, 252, .34), transparent 66%),
    radial-gradient(520px 260px at 82% 84%, rgba(45, 212, 191, .16), transparent 68%),
  linear-gradient(180deg, rgba(224, 242, 254, .96), rgba(207, 234, 241, .94) 52%, rgba(186, 220, 229, .96));
  outline: none;
  box-shadow:
    inset 0 0 0 3px rgba(224, 242, 254, .34),
    inset 0 0 28px rgba(15, 76, 92, .2),
    0 18px 34px rgba(30, 64, 76, .14);
  overflow: visible;
}

.hall-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-right: 1px solid rgba(77, 132, 151, .2);
  border-bottom: 1px solid rgba(77, 132, 151, .2);
  border-radius: 0;
  background: rgba(255, 255, 255, .13);
  color: #334155;
  transition: background .15s ease, box-shadow .15s ease;
}

.hall-cell.is-occupied {
  background: rgba(148, 193, 202, .24);
}

.hall-cell.is-self {
  background: rgba(254, 243, 199, .3);
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, .86);
}

.hall-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: min(54px, 78%);
  height: min(66px, 78%);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hall-avatar::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 16.7%;
  width: 66.6%;
  height: 43.9%;
  border: 1px solid #1e3a8a;
  border-radius: 4px 4px 3px 3px;
  background: #8ec1f2;
}

.hall-avatar::after {
  content: "";
  position: absolute;
  left: 9.3%;
  bottom: 1.5%;
  width: 81.4%;
  height: 51.5%;
  border: 1px solid #1e3a8a;
  border-radius: 5px 5px 3px 3px;
  background: #5b9bea;
}

.hall-avatar-head,
.hall-avatar-body {
  display: block;
}

.hall-avatar-head {
  display: none;
}

.hall-avatar-body {
  display: none;
}

.hall-avatar-eye {
  position: absolute;
  z-index: 2;
  top: 22.7%;
  width: 11.1%;
  height: 9.1%;
  border-radius: 50%;
  background: #334155;
}

.hall-avatar-eye.is-left {
  left: 31.5%;
}

.hall-avatar-eye.is-right {
  right: 31.5%;
}

.hall-nameplate {
  position: absolute;
  top: -19px;
  left: 50%;
  z-index: 5;
  max-width: none;
  overflow: visible;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  background: rgba(15, 23, 42, .64);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.hall-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.hall-controls .ui-button {
  min-width: 42px;
  padding-inline: 10px;
  font-size: 18px;
}

.hall-chat-panel {
  display: flex;
  width: auto;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  border: 1px solid rgba(186, 230, 253, .44);
  background: rgba(15, 35, 54, .72);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px) saturate(1.15);
}

.hall-chat-panel h2,
.hall-chat-panel .panel-kicker {
  color: #f8fafc;
}

.hall-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: none;
  margin: 16px 0;
  overflow: auto;
  padding-right: 4px;
}

.hall-message {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, .14);
  border: 1px solid rgba(226, 232, 240, .16);
}

.hall-message > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hall-message strong {
  color: #f8fafc;
  font-size: 13px;
}

.hall-message time {
  color: #bae6fd;
  font-size: 11px;
}

.hall-message p {
  margin: 6px 0 0;
  color: #e2e8f0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hall-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

@media (max-width: 980px) {
  .access-admin-layout,
  .hall-layout {
    grid-template-columns: 1fr;
  }

  .hall-chat-panel {
    height: min(420px, 45vh);
  }
}

@media (max-width: 640px) {
  .access-login-panel,
  .access-admin-panel,
  .hall-stage-panel,
  .hall-chat-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .access-credential-grid {
    grid-template-columns: 1fr;
  }

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

  .invite-row .ui-button {
    grid-column: 1 / -1;
  }

  .hall-grid {
    gap: 0;
    padding: 0;
    aspect-ratio: 7 / 4;
  }

  .hall-cell {
    min-height: 0;
  }

  .hall-nameplate {
    top: -16px;
    max-width: none;
    padding: 1px 3px;
    font-size: 9px;
  }

  .hall-chat-panel {
    height: min(360px, 48vh);
  }
}
