* {
  box-sizing: border-box;
  font-family: "Roboto", "Segoe UI", Tahoma, sans-serif;
}

body {
  margin: 0;
  padding: 24px;
  background-color: #050b12;
  color: #ecf2ff;
  /* Add performance optimizations */
  will-change: scroll-position;
  backface-visibility: hidden;
}

:root {
  --blue-accent: rgba(41, 150, 246, 0.35);
  --red-accent: rgba(244, 67, 54, 0.35);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #c8d4f0;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #24304a;
  background: #0f1523;
  color: #ecf2ff;
}

/* Ensure dropdown option labels keep their intended side colors.
   (Some browsers inherit the select's current color for all options.) */
select option[value="blue"] {
  color: #5dc0ff;
}

select option[value="red"] {
  color: #ff7b7b;
}

.side-blue {
  color: #5dc0ff;
  background: linear-gradient(135deg, rgba(45, 156, 255, 0.14), rgba(15, 23, 35, 0.9));
  border-color: rgba(45, 156, 255, 0.45);
}

.side-red {
  color: #ff7b7b;
  background: linear-gradient(135deg, rgba(255, 99, 132, 0.16), rgba(15, 23, 35, 0.9));
  border-color: rgba(255, 99, 132, 0.45);
}

input::placeholder {
  color: #8aa4ce;
}

input:focus,
select:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15);
  background: #0c1120;
}

button:not(.lock-button) {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #2c3955;
  background: linear-gradient(135deg, #1f2c3d, #152034);
  color: #f5fbff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #2c3955;
  background: linear-gradient(135deg, #1f2c3d, #152034);
  color: #f5fbff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:not(.lock-button):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 19, 34, 0.55);
  background: linear-gradient(135deg, #26364c, #1a2740);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 19, 34, 0.55);
  background: linear-gradient(135deg, #26364c, #1a2740);
}

button:not(.lock-button):active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.column {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
}

main {
  width: min(106vw, 1778px); /* compensates for scale so visible area matches 90% browser zoom */
  margin: 0 auto;
  transform: scale(0.9);
  transform-origin: top center;
}

.page-index main {
  width: min(64vw, 1068px); /* narrower index layout only */
}

h1 {
  text-align: center;
  margin-bottom: 16px;
}

.site-footer {
  margin-top: 18px;
  text-align: center;
  color: #9bb3d8;
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer a {
  color: #bfe7ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 231, 255, 0.35);
}

.site-footer a:hover {
  border-bottom-color: rgba(100, 255, 218, 0.65);
  color: #64ffda;
}

.site-footer__row {
  margin-bottom: 10px;
}

.site-footer__sep {
  margin: 0 10px;
  opacity: 0.7;
}

.site-footer__disclaimer {
  max-width: 980px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(155, 179, 216, 0.85);
}

.legal h2 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal ul {
  margin-top: 8px;
}

.top-row {
  display: grid;
  grid-template-columns: 1.2fr 2.6fr 1.2fr;
  gap: 12px;
  margin-bottom: 1px;
  align-items: stretch;
}

.top-panel {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  min-height: 116px; /* match bottom containers */
  height: 116px;
  padding: 12px 14px; /* align with bottom panels */
}

.top-panel.card {
  padding: 12px 14px; /* ensure override sticks */
}

.top-panel:not(.top-panel--center) {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-panel--center {
  flex: 2 1 320px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.top-panel--center h1 {
  margin: 0;
}

.top-panel--blue {
  border-color: rgba(41, 150, 246, 0.35);
}

.top-panel--red {
  border-color: rgba(255, 107, 129, 0.35);
}

.top-panel__label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9bb3d8;
}

.top-panel__name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.viewer-chip {
  display: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  width: fit-content;
}

.viewer-chip.blue-chip {
  background: rgba(45, 156, 255, 0.18);
  border: 1px solid rgba(45, 156, 255, 0.5);
  color: #d9ecff;
}

.viewer-chip.red-chip {
  background: rgba(255, 107, 129, 0.18);
  border: 1px solid rgba(255, 107, 129, 0.5);
  color: #ffe9ef;
}

.match-meta__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.top-consensus {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  align-content: center;
  min-height: 64px;
}

.top-consensus .consensus-button {
  height: 46px;
  min-width: 200px;
  padding: 8px 12px;
  white-space: nowrap;
}

.glow-action {
  position: relative;
  z-index: 1;
  --glow-border: rgba(100, 255, 218, 0.6);
  --glow-outline: rgba(100, 255, 218, 0.8);
  --glow-inner-static: rgba(100, 255, 218, 0.2);
  --glow-outer-static: rgba(100, 255, 218, 0.2);
  --glow-inner-low: rgba(100, 255, 218, 0.15);
  --glow-inner-high: rgba(100, 255, 218, 0.4);
  --glow-outer-low: rgba(100, 255, 218, 0.16);
  --glow-outer-high: rgba(100, 255, 218, 0.35);
  box-shadow: inset 0 0 0px transparent, 0 0 1px var(--glow-outer-static);
  outline: 1px solid var(--glow-outline);
  outline-offset: 0;
  animation: glowPulse 1.8s ease-in-out infinite;
}

.glow-action::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--glow-outline);
  box-shadow: 0 0 2px var(--glow-outer-static);
  pointer-events: none;
  animation: glowPulse 1.8s ease-in-out infinite;
}

.glow-action.glow-blue {
  --glow-border: #40b8ff;
  --glow-outline: rgba(64, 184, 255, 0.95);
  --glow-inner-static: rgba(64, 184, 255, 0.6);
  --glow-outer-static: rgba(64, 184, 255, 0.5);
  --glow-inner-low: rgba(64, 184, 255, 0.4);
  --glow-inner-high: rgba(64, 184, 255, 0.82);
  --glow-outer-low: rgba(64, 184, 255, 0.32);
  --glow-outer-high: rgba(64, 184, 255, 0.65);
}

.glow-action.glow-decline,
.glow-action.glow-red {
  --glow-border: #ff5c7a;
  --glow-outline: rgba(255, 92, 122, 0.95);
  --glow-inner-static: rgba(255, 92, 122, 0.62);
  --glow-outer-static: rgba(255, 92, 122, 0.52);
  --glow-inner-low: rgba(255, 92, 122, 0.42);
  --glow-inner-high: rgba(255, 92, 122, 0.85);
  --glow-outer-low: rgba(255, 92, 122, 0.34);
  --glow-outer-high: rgba(255, 92, 122, 0.7);
}

.card {
  background: #101622;
  border: 1px solid #242d3f;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  .team-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
  }

  .ban-row-wrapper {
    margin-top: auto;
    border: 1px solid #242d3f;
    border-radius: 14px;
    padding: 14px 12px;
    background: #060c15;
  }

  .team-panel.blue .ban-row-wrapper {
    border-color: rgba(41, 150, 246, 0.35);
  }

  .team-panel.red .ban-row-wrapper {
    border-color: rgba(244, 67, 54, 0.35);
  }

  .ban-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .team-panel.blue .ban-row {
    justify-content: flex-start;
  }

  .team-panel.red .ban-row {
    justify-content: flex-end;
  }
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.links-list a {
  display: block;
  word-break: break-all;
  color: #64ffda;
  margin-bottom: 8px;
}

.links-list {
  margin-top: 6px;
}

.link-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.link-row--blue .link-label,
.link-row--blue .link-box,
.link-row--blue .link-btn {
  border-color: rgba(45, 156, 255, 0.55);
}

.link-row--blue .link-label {
  background: linear-gradient(135deg, rgba(45, 156, 255, 0.18), rgba(15, 23, 35, 0.92));
  color: #8fd5ff;
}

.link-row--blue .link-box {
  background: linear-gradient(135deg, rgba(45, 156, 255, 0.08), #0f1521);
  color: #d8edff;
}

.link-row--blue .link-btn {
  background: linear-gradient(135deg, #162437, #0f1929);
  color: #d8edff;
}

.link-row--red .link-label,
.link-row--red .link-box,
.link-row--red .link-btn {
  border-color: rgba(255, 107, 129, 0.55);
}

.link-row--red .link-label {
  background: linear-gradient(135deg, rgba(255, 107, 129, 0.2), rgba(15, 23, 35, 0.92));
  color: #ffc8d3;
}

.link-row--red .link-box {
  background: linear-gradient(135deg, rgba(255, 107, 129, 0.1), #0f1521);
  color: #ffe9ef;
}

.link-row--red .link-btn {
  background: linear-gradient(135deg, #1f161c, #231019);
  color: #ffe9ef;
}

.link-label {
  width: 220px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #242d3f;
  border-radius: 6px;
  background: linear-gradient(135deg, #0f1728, #0c1220);
  color: #c8d4f0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
  white-space: nowrap;
}

.link-box {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #242d3f;
  border-radius: 6px;
  background: #0f1521;
  font-size: 13px;
  color: #e2e8f0;
  word-break: break-all;
}

.link-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 240px;
}

.link-btn {
  padding: 10px 12px;
  flex: 1;
  border: 1px solid #242d3f;
  border-radius: 6px;
  background: linear-gradient(135deg, #131a29, #111827);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.link-btn:hover {
  transform: translateY(-1px);
  border-color: #3a4a68;
}

.link-btn:active {
  transform: translateY(0);
}

.tips {
  font-size: 0.85rem;
  color: #8aa4ce;
  margin-top: 12px;
}

.draft-grid {
  display: grid;
  grid-template-columns: 1.2fr 2.6fr 1.2fr;
  gap: 20px;
  align-items: flex-start;
}

.panel {
  border: 1px solid #242d3f;
  border-radius: 12px;
  padding: 16px;
  background: #0b111b;
  height: 620px;
  display: flex;
  flex-direction: column;
}

.team-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 24px;
}

.ban-wrapper {
  flex: 1;
  border: 1px solid #242d3f;
  border-radius: 14px;
  padding: 16px;
  background: #060c15;
  display: flex;
}

.ban-wrapper.blue {
  border-color: var(--blue-accent);
}

.ban-wrapper.red {
  border-color: var(--red-accent);
}

.team-name {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.team-name__label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-name__meta {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #c8d4f0;
}

.ban-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.team-panel.blue .ban-column {
  align-items: flex-start;
}

.team-panel.red .ban-column {
  align-items: flex-end;
}

.ban-slot {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050b12;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f94bf;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.team-panel.blue .ban-slot {
  border-color: var(--blue-accent);
}

.team-panel.red .ban-slot {
  border-color: var(--red-accent);
}

.ban-panel.blue .ban-slot {
  border-color: var(--blue-accent);
}

.ban-panel.red .ban-slot {
  border-color: var(--red-accent);
}

.ban-slot.filled {
  border-style: solid;
}

.ban-slot:nth-child(3)::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: calc(-1 * var(--ban-gap) / 2);
  width: 3px;
  background: linear-gradient(180deg, rgba(180, 190, 210, 0) 0%, rgba(180, 190, 210, 0.9) 50%, rgba(180, 190, 210, 0) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.ban-slot.pending:nth-child(3)::after {
  opacity: 0;
}

.ban-panel.red .ban-slot:nth-child(3)::after {
  right: auto;
  left: calc(-1 * var(--ban-gap) / 2);
}

.ban-slot.pending,
.pick-slot.pending {
  --glow-border: #39ff14;
  --glow-outline: rgba(57, 255, 20, 0.9);
  --glow-inner-static: rgba(57, 255, 20, 0.58);
  --glow-outer-static: rgba(57, 255, 20, 0.48);
  --glow-inner-low: rgba(57, 255, 20, 0.45);
  --glow-inner-high: rgba(57, 255, 20, 0.78);
  --glow-outer-low: rgba(57, 255, 20, 0.38);
  --glow-outer-high: rgba(57, 255, 20, 0.68);
  animation: glowPulse 2s ease-in-out infinite;
  border-color: var(--glow-border);
  outline: 1px solid var(--glow-outline);
  outline-offset: 0;
  position: relative;
  overflow: visible;
  z-index: 3;
}

.ban-slot.pending {
  --glow-inner-static: rgba(57, 255, 20, 0.55);
  --glow-outer-static: rgba(57, 255, 20, 0.5);
  box-shadow: inset 0 0 0px var(--glow-inner-static), 0 0 1px var(--glow-outer-static);
}

.ban-slot.pending::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 7px;
  border: 1px solid var(--glow-outline);
  box-shadow: 0 0 2px var(--glow-outer-static);
  pointer-events: none;
  animation: glowPulse 2s ease-in-out infinite;
  z-index: 3;
}

.ban-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.pick-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  position: relative;
}

.pick-strip::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(95px * 3 + 12px * 2 - 3px);
  height: 3px;
  background: linear-gradient(90deg, rgba(180, 190, 210, 0) 0%, rgba(180, 190, 210, 0.9) 50%, rgba(180, 190, 210, 0) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.pick-slot {
  width: 100%;
  height: 95px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050b12;
  color: #9bb1da;
  font-size: 0.85rem;
  text-align: center;
  padding: 0 12px;
}

.pick-slot.filled {
  border-style: solid;
}

.pick-slot.pending {
  --glow-inner-static: rgba(57, 255, 20, 0.6);
  --glow-outer-static: rgba(57, 255, 20, 0.45);
  box-shadow: inset 0 0 2px var(--glow-inner-static), 0 0 4px var(--glow-outer-static);
}

.pick-slot.pending::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1px solid var(--glow-outline);
  box-shadow: 0 0 3px var(--glow-outer-static);
  pointer-events: none;
  animation: glowPulse 2s ease-in-out infinite;
  z-index: 3;
}

.ban-panel.blue .ban-slot.pending,
.pick-slot--blue.pending {
  --glow-border: #40b8ff;
  --glow-outline: rgba(64, 184, 255, 0.95);
  --glow-inner-static: rgba(64, 184, 255, 0.6);
  --glow-outer-static: rgba(64, 184, 255, 0.5);
  --glow-inner-low: rgba(64, 184, 255, 0.4);
  --glow-inner-high: rgba(64, 184, 255, 0.82);
  --glow-outer-low: rgba(64, 184, 255, 0.32);
  --glow-outer-high: rgba(64, 184, 255, 0.65);
}

.ban-panel.red .ban-slot.pending,
.pick-slot--red.pending {
  --glow-border: #ff5c7a;
  --glow-outline: rgba(255, 92, 122, 0.95);
  --glow-inner-static: rgba(255, 92, 122, 0.62);
  --glow-outer-static: rgba(255, 92, 122, 0.52);
  --glow-inner-low: rgba(255, 92, 122, 0.42);
  --glow-inner-high: rgba(255, 92, 122, 0.85);
  --glow-outer-low: rgba(255, 92, 122, 0.34);
  --glow-outer-high: rgba(255, 92, 122, 0.7);
}

.team-panel.blue .pick-slot {
  border-color: var(--blue-accent);
}

.team-panel.red .pick-slot {
  border-color: var(--red-accent);
}

.pick-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.pick-slot .pick-splash {
  filter: blur(3px) brightness(0.7) saturate(1.05);
  transform: scale(1.12);
}

.pick-slot .pick-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 11, 18, 0.72) 0%, rgba(5, 11, 18, 0.35) 45%, rgba(5, 11, 18, 0.72) 100%);
  pointer-events: none;
}

.pick-slot .pick-portrait {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  z-index: 3;
}

.pick-slot--blue .pick-portrait {
  left: 12px;
}

.pick-slot--red .pick-portrait {
  right: 12px;
  left: auto;
}

.pick-slot .pick-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 72%;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.78) 100%);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #f5fbff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  text-align: center;
}

.pick-slot.empty span {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.pick-strip span,
.ban-slot span {
  text-transform: uppercase;
}

.control-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.control-row .search-wrapper {
  flex: 0 1 640px;
  width: 100%;
}

.control-row .search-wrapper input,
.search-wrapper--inline input {
  width: 100%;
}

.search-wrapper--inline {
  margin-bottom: 12px;
}

.lock-button {
  flex: 0 0 200px;
  padding: 10px 14px;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #f5fbff;
}

.lock-button.blue {
  background: linear-gradient(135deg, #2196f3, #0277fc);
}

.lock-button.red {
  background: linear-gradient(135deg, #f44336, #c62828);
}

.lock-button:disabled {
  opacity: 1;
  cursor: not-allowed;
  filter: saturate(0.9);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(5, 12, 24, 0.8));
  color: #c8d9f1;
}

.lock-button.blue:disabled {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.42), rgba(9, 45, 92, 0.82));
  border: 1px solid rgba(64, 184, 255, 0.45);
  color: #e4f4ff;
}

.lock-button.red:disabled {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.4), rgba(58, 8, 12, 0.8));
  border: 1px solid rgba(255, 107, 129, 0.45);
  color: #ffe7ed;
}

.lock-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.ban-lock-row {
  display: grid;
  grid-template-columns: 1.2fr 2.6fr 1.2fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.ban-panel {
  border: 1px solid #242d3f;
  border-radius: 12px;
  background: #0b111b;
  padding: 12px 14px;
  min-height: 116px;
  height: 100%;
}

.ban-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #c8d4f0;
  margin-bottom: 10px;
  text-align: center;
}

.ban-strip {
  --ban-gap: 14px;
  display: flex;
  gap: var(--ban-gap);
  align-items: center;
  justify-content: center;
  position: relative;
}

.ban-panel.red .ban-strip {
  justify-content: center;
  flex-direction: row-reverse;
}

.lock-zone {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #0b111b;
  border: 1px solid #242d3f;
  border-radius: 12px;
  min-height: 116px;
  height: 100%;
  overflow: hidden;
}

.lock-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 820px;
  flex: 0 1 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.lock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 2 1 0;
  height: 80px;
  min-width: 200px;
  border-radius: 11px;
  border: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #081020;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  padding: 10px 14px;
  white-space: pre-line;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.lock-button.blue {
  background: linear-gradient(135deg, #214c8d7e, #0a2f7073);
  box-shadow: 0 8px 16px rgba(12, 19, 34, 0.5);
  color: #fff;
}

.lock-button.red {
  background: linear-gradient(135deg, #a5283471, #6c141c);
  box-shadow: 0 8px 16px rgba(12, 19, 34, 0.5);
  color: #fff;
}

.lock-button:disabled {
  filter: saturate(0.55) brightness(0.92);
  opacity: 0.95;
}

.lock-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.consensus-button {
  flex: 1 1 0;
  height: 80px;
  min-width: 160px;
  border-radius: 11px;
  border: 1px solid #2c3955;
  background: linear-gradient(135deg, #131c2e, #0f1524);
  color: #e4ecff;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  padding: 12px 14px;
  white-space: pre-line;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.consensus-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.consensus-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(12, 19, 34, 0.55);
}

.champion-scroller {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;

  /* Scrollbar styling (scoped to champions pool) */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(100, 255, 218, 0.45) rgba(15, 21, 35, 0.75); /* thumb track */
}

.champion-scroller::-webkit-scrollbar {
  width: 10px;
}

.champion-scroller::-webkit-scrollbar-track {
  background: rgba(15, 21, 35, 0.75);
  border: 1px solid rgba(36, 48, 74, 0.6);
  border-radius: 999px;
}

.champion-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(100, 255, 218, 0.35),
    rgba(45, 156, 255, 0.25)
  );
  border: 2px solid rgba(15, 21, 35, 0.85);
  border-radius: 999px;
}

.champion-scroller::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(100, 255, 218, 0.5),
    rgba(45, 156, 255, 0.35)
  );
}

.champion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 7px;
  /* Add performance optimizations */
  contain: layout style paint;
  transform: translateZ(0); /* Force hardware acceleration */
}

.champion-button {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 8px;
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border 0.15s ease, filter 0.15s ease;
  /* Add performance optimizations */
  contain: layout style paint;
  will-change: transform, border-color, filter;
}

.champion-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Add performance optimizations */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.champion-button.disabled {
  filter: grayscale(0.8);
  cursor: not-allowed;
  opacity: 0.5;
}

.champion-button.selected {
  border-color: #64ffda;
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.4);
}

.timer {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0;
}

.timer.warning {
  color: #ffb74d;
}

.timer.danger {
  color: #ff6b6b;
}

@keyframes glowPulse {
  0% {
    box-shadow: inset 0 0 3px var(--glow-inner-low), 0 0 3px var(--glow-outer-low);
  }
  50% {
    box-shadow: inset 0 0 8px var(--glow-inner-high), 0 0 8px var(--glow-outer-high);
  }
  100% {
    box-shadow: inset 0 0 3px var(--glow-inner-low), 0 0 3px var(--glow-outer-low);
  }
}

.action-bar {
  margin-top: 12px;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-text {
  color: #9fb2d7;
  font-size: 0.9rem;
  min-height: 0;
  text-align: center;
  display: none;
}

@media (max-width: 1024px) {
  .draft-grid {
    grid-template-columns: 1fr;
  }
  .ban-lock-row {
    grid-template-columns: 1fr;
  }
  .ban-lock-row {
    gap: 18px;
  }
  .top-row {
    grid-template-columns: 1fr;
  }
  .panel {
    height: auto;
  }
  .champion-search input {
    width: 100%;
  }
}
