.teams-panel {
  min-height: 380px;
}
.public-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.public-team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.public-team-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.public-team-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.public-team-roster li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #232925;
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.player-role {
  font-size: 13px;
  line-height: 1;
}
.player-name-replaced {
  text-decoration: line-through;
  color: #6a6f6b;
}
.player-substitute-icon {
  color: var(--acid);
  font-size: 12px;
}
.player-substitute-name {
  color: var(--ink);
}
.public-team-logo,
.admin-team-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #101414;
  font: 700 20px "Barlow Condensed";
}
.public-team-logo {
  width: 62px;
  height: 62px;
}
.public-team-logo img,
.admin-team-logo img,
.team-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.public-team-card h3 {
  font: 600 30px "Barlow Condensed";
  margin: 0;
}
.public-team-card span {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.admin-team-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-team-logo {
  width: 30px;
  height: 30px;
  font-size: 12px;
  flex: 0 0 30px;
}
.admin-team-summary strong,
.admin-team-summary small {
  display: block;
}
.admin-team-summary small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.team-editor .editor-form {
  max-width: 760px;
}
.team-editor .editor-form .save-button {
  grid-column: 1/-1;
}
.editor-form label.member-field,
.admin-form label.member-field {
  grid-column: 1/-1;
}
.standings-panel {
  min-height: 380px;
  overflow-x: auto;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}
.standings-table th,
.standings-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.standings-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
}
.standings-table tr:last-child td {
  border-bottom: 0;
}
.standings-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.standings-pts {
  font-weight: 700;
  color: var(--acid);
}
.tournament-date-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 18px;
  background: #232925;
  border: 1px solid var(--line);
  color: var(--acid);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
@media (max-width: 700px) {
  .public-team-grid {
    grid-template-columns: 1fr;
  }
  .standings-table th,
  .standings-table td {
    padding: 9px 8px;
    font-size: 12px;
  }
}
.progress span {
  width: 50%;
}
.admin-only.hidden {
  display: none;
}
.match-controls {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: #202622;
  border: 1px solid #52653a;
  padding: 16px;
  margin-bottom: 18px;
}
.match-controls h3 {
  font: 600 30px "Barlow Condensed";
  margin: 0;
  color: var(--ink);
}
.control-help {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 5px 0 0;
}
.match-controls label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.match-controls select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #2a302b;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 15px;
}
.match-controls .save-button {
  margin: 0;
  white-space: nowrap;
}
.ban-picker {
  grid-column: 1/-1;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-height: 350px;
  overflow: auto;
  margin-top: 14px;
  padding-right: 6px;
  width: 100%;
}
.hero-choice {
  border: 1px solid var(--line);
  background: #202522;
  color: var(--muted);
  padding: 8px;
  font-size: 11px;
  min-width: 0;
}
.hero-choice img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.8);
  opacity: 0.7;
}
.hero-choice span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.hero-choice.selected {
  border-color: var(--acid);
  color: var(--acid);
  background: #384329;
}
.hero-choice.selected img {
  filter: none;
  opacity: 1;
}
.hero-ban {
  padding: 0 !important;
  overflow: hidden;
}
.hero-ban img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: cover;
}
.hero-ban[title] {
  cursor: help;
}
@media (max-width: 900px) {
  .match-controls {
    grid-template-columns: 1fr 1fr;
  }
  .match-controls > div {
    grid-column: 1/-1;
  }
  .match-controls .save-button {
    grid-column: 1/-1;
  }
  .hero-picker-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #202622;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--acid);
  font-size: 14px;
}
.text-button,
.admin-tab,
.admin-list-item button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
.admin-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0 16px;
}
.admin-tab {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.admin-tab.active {
  color: var(--ink);
  border-color: var(--acid);
}
.admin-form h3 {
  font: 600 24px "Barlow Condensed";
  margin: 22px 0 14px;
  color: var(--ink);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.admin-list {
  display: grid;
  gap: 7px;
}
.admin-list-item {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
  background: #202522;
  border: 1px solid var(--line);
  padding: 10px;
}
.admin-list-item div {
  min-width: 0;
  flex: 1;
}
.admin-list-item strong,
.admin-list-item small {
  display: block;
}
.admin-list-item strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-list-item small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.admin-list-item button {
  padding: 6px 4px;
  color: var(--acid);
}
.admin-list-item .danger-button {
  color: var(--coral);
}
.member-list {
  display: grid;
  gap: 6px;
  margin: 6px 0;
}
.member-row {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: #202522;
  border: 1px solid var(--line);
  padding: 8px;
}
.member-row select,
.member-row input[type="text"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.member-sub-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.member-sub-toggle input {
  width: auto;
}
.member-remove-btn {
  border: 0;
  background: none;
  color: var(--coral);
  font-size: 16px;
  padding: 0 6px;
}
.member-add-btn {
  color: var(--acid);
  padding: 4px 0;
}
@media (max-width: 700px) {
  .member-row {
    grid-template-columns: 1fr 1fr;
  }
  .member-remove-btn {
    justify-self: end;
  }
}
.admin-drawer {
  width: min(1180px, calc(100% - 40px)) !important;
  left: 50% !important;
  right: auto !important;
  top: 20px !important;
  bottom: 20px !important;
  transform: translateX(-50%) !important;
  border: 1px solid #46503f;
  border-radius: 4px;
}
.admin-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}
.match-editor-overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: #090d0ccc;
  display: grid;
  place-items: center;
  padding: 25px;
}
.match-editor {
  width: min(720px, 100%);
  max-height: calc(100vh - 50px);
  overflow: auto;
  background: #171b1a;
  border: 1px solid #5b7038;
  padding: 28px;
  box-shadow: 0 25px 80px #000b;
}
.match-editor h2 {
  font: 600 32px "Barlow Condensed";
  margin: 0;
}
.match-editor h2 em {
  font: 400 16px "DM Sans";
  color: var(--muted);
}
.editor-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 30px 0;
  padding: 24px;
  background: #202622;
  border: 1px solid var(--line);
}
.editor-team {
  text-align: center;
}
.editor-team .team-logo {
  margin: 0 auto 9px;
  width: 34px;
  height: 34px;
  font-size: 16px;
}
.editor-team strong {
  display: block;
  font: 600 22px "Barlow Condensed";
}
.editor-vs {
  font: 700 28px "Barlow Condensed";
  color: var(--muted);
}
.score-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.score-stepper button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #2b332e;
  color: var(--ink);
  font-size: 22px;
}
.score-stepper output {
  min-width: 32px;
  font: 700 38px "Barlow Condensed";
  color: var(--acid);
}
.editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 15px;
}
.editor-form label:last-of-type {
  grid-column: auto;
}
.editor-form .save-button {
  grid-column: 1/-1;
  margin-top: 17px;
}
.map-game-admin {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 18px;
}
.map-game-heading,
.map-game-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.map-game-heading strong {
  display: block;
}
.map-game-heading small,
.ban-history {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.map-game-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #202522;
}
.map-game-row-heading b {
  color: var(--acid);
  font: 700 12px "Barlow Condensed";
}
.map-game-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.map-game-fields label {
  min-width: 0;
  font-size: 10px;
  color: var(--muted);
}
.map-game-fields select {
  padding: 9px 7px;
  font-size: 12px;
}
.map-game-row .text-button {
  margin: 0;
}
@media (max-width: 700px) {
  .admin-drawer {
    width: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
  }
  .editor-scoreboard {
    gap: 8px;
    padding: 15px 5px;
  }
  .editor-team strong {
    font-size: 17px;
  }
  .editor-form {
    display: block;
  }
  .map-game-fields {
    grid-template-columns: 1fr 1fr;
  }
  .editor-form label {
    margin: 16px 0;
  }
  .match-editor-overlay {
    padding: 10px;
  }
  .match-editor {
    padding: 20px;
  }
}
:root {
  font-family: "DM Sans", sans-serif;
  color: #f7f5f0;
  background: #111313;
  --ink: #f7f5f0;
  --muted: #959a95;
  --line: #343938;
  --acid: #d8ef62;
  --coral: #ff6e59;
  --teal: #71d7cb;
  --panel: #191d1c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 8%, #29312b 0, transparent 26%), #111313;
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 56px;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--acid);
  color: #151817;
  font-weight: 800;
  font-size: 13px;
  transform: skew(-10deg);
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font: 700 17px "Barlow Condensed";
  letter-spacing: 0.08em;
}
.brand small {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 2px;
}
.topbar-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.live-pill,
.updated {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.live-pill i,
.updated i,
.status-dot,
.live-label i,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 7px;
  box-shadow: 0 0 0 4px #ff6e5918;
}
.icon-button,
.close-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
}
.admin-button {
  background: var(--acid);
  border: 0;
  padding: 12px 17px;
  font-weight: 700;
  font-size: 12px;
  color: #171b18;
}
.admin-button span {
  margin-right: 6px;
}
.hero {
  min-height: 304px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 45px 9% 40px 4%;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, transparent 55%, #c4dd5210 100%);
}
.hero-copy {
  position: relative;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--acid);
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font: 800 clamp(58px, 7vw, 102px)/0.79 "Barlow Condensed";
  letter-spacing: 0.02em;
  margin: 0;
}
.hero h1 em {
  color: var(--acid);
  font-style: normal;
}
.hero-text {
  max-width: 350px;
  color: #b4bab2;
  font-size: 13px;
  line-height: 1.55;
  margin: 22px 0;
}
.hero-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.hero-meta strong {
  color: var(--ink);
}
.hero-meta b {
  color: var(--teal);
}
.divider {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 3px;
}
.hero-sigil {
  width: 140px;
  height: 140px;
  border: 1px solid #70803c77;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--acid);
}
.hero-sigil span {
  font-size: 56px;
  line-height: 0;
}
.hero-sigil b {
  position: absolute;
  font: 700 15px "Barlow Condensed";
  top: 20px;
}
.hero-sigil small {
  position: absolute;
  bottom: 18px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.16em;
}
.view-tabs {
  display: flex;
  gap: 30px;
  height: 67px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.tab {
  height: 48px;
  padding: 0 2px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.tab span {
  font-size: 9px;
  margin-left: 8px;
  color: #59605a;
}
.tab.active {
  color: var(--ink);
  border-color: var(--acid);
}
.tab.active span {
  color: var(--acid);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 44px;
  padding: 42px 0 64px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 27px;
}
.section-heading h2 {
  font: 600 35px "Barlow Condensed";
  margin: 0;
}
.bracket-board {
  display: grid;
  gap: 28px;
}
.bracket-section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.bracket-section > h3 {
  margin: 0 0 10px;
  color: var(--acid);
  font: 700 16px "Barlow Condensed";
}
.bracket {
  display: grid;
  grid-auto-columns: minmax(155px, 1fr);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 18px;
  scrollbar-color: var(--line) transparent;
}
.bracket-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.bracket-column:nth-child(2) {
  padding-top: 28px;
}
.bracket-column:nth-child(3) {
  padding-top: 56px;
}
.bracket-column:nth-child(4) {
  padding-top: 84px;
}
.bracket-column:nth-child(5) {
  padding-top: 112px;
}
.bracket-column h4 {
  font: 700 12px "Barlow Condensed";
  letter-spacing: 0.08em;
  color: var(--muted);
  min-height: 18px;
  margin: 0 0 2px;
}
.placement-section {
  position: relative;
  padding: 18px 14px 10px;
  border: 1px solid rgba(227, 195, 107, 0.28);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(22, 27, 25, 0.82),
    rgba(14, 17, 16, 0.7)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 30px rgba(0, 0, 0, 0.2);
}
.placement-section > h3 {
  color: #f7d776;
  letter-spacing: 0.16em;
}
.placement-section .bracket {
  padding-top: 16px;
}
.placement-section .bracket-column {
  background: rgba(19, 24, 23, 0.82);
  border: 1px solid rgba(218, 188, 93, 0.18);
  border-radius: 10px;
  padding: 12px 10px 10px;
}
.placement-section .bracket-column:nth-child(1) {
  box-shadow: inset 0 0 0 1px rgba(158, 192, 137, 0.2);
}
.placement-section .bracket-column:nth-child(2) {
  box-shadow: inset 0 0 0 1px rgba(247, 215, 118, 0.22);
}
.placement-section .bracket-column h4 {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.placement-section .bracket-column:nth-child(1) h4 {
  color: #a9d284;
}
.placement-section .bracket-column:nth-child(2) h4 {
  color: #f7d776;
}
.placement-section .match-card {
  background: linear-gradient(
    180deg,
    rgba(24, 31, 29, 0.98),
    rgba(17, 22, 22, 0.9)
  );
  border-color: rgba(230, 203, 123, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 18px rgba(0, 0, 0, 0.18);
}
.placement-section .third-place-match {
  border-color: rgba(149, 190, 111, 0.9);
  box-shadow:
    0 0 0 1px rgba(169, 210, 132, 0.25),
    0 12px 24px rgba(101, 120, 72, 0.18);
}
.placement-section .third-place-match .match-label {
  color: #dcebca;
}
.placement-section .third-place-match .match-label span {
  color: #a8d28a;
}
.placement-section .grand-final-match {
  border-color: rgba(249, 201, 86, 1);
  background: linear-gradient(
    180deg,
    rgba(43, 34, 11, 0.95),
    rgba(23, 20, 12, 0.96)
  );
  box-shadow:
    0 0 0 1px rgba(249, 201, 86, 0.28),
    0 0 30px rgba(249, 201, 86, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.28);
}
.placement-section .grand-final-match .match-label {
  color: #ffe9a8;
}
.placement-section .grand-final-match .match-label span {
  color: #ffd870;
}
.placement-section .grand-final-match .team.winner span {
  text-shadow: 0 0 10px rgba(249, 201, 86, 0.35);
}
.placement-section .finals-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  margin: -4px 0 10px;
  border-radius: 999px;
  font: 700 10px "Barlow Condensed";
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.placement-section .finals-badge.gold {
  background: linear-gradient(135deg, #f7d776 0%, #f2b947 100%);
  color: #1b1203;
  box-shadow: 0 0 18px rgba(247, 215, 118, 0.35);
}
.placement-section .finals-badge.bronze {
  background: linear-gradient(135deg, #d9bb8d 0%, #ab7b44 100%);
  color: #1f1204;
  box-shadow: 0 0 16px rgba(184, 129, 75, 0.28);
}
.placement-section .grand-final-match .team strong {
  font-size: 22px;
}
.podium-section {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.podium-heading {
  margin-bottom: 14px;
}
.podium-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
}
.podium-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 210px;
  padding: 18px 14px 14px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(22, 27, 25, 0.92),
    rgba(15, 18, 18, 0.74)
  );
  border: 1px solid rgba(129, 140, 134, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 18px rgba(0, 0, 0, 0.16);
  text-align: center;
}
.podium-slot.podium-1 {
  min-height: 240px;
  border-color: rgba(247, 215, 118, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(247, 215, 118, 0.18),
    0 0 0 1px rgba(247, 215, 118, 0.18),
    0 18px 28px rgba(247, 215, 118, 0.08);
}
.podium-slot.podium-2 {
  border-color: rgba(176, 190, 196, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(176, 190, 196, 0.14),
    0 12px 20px rgba(163, 177, 185, 0.06);
}
.podium-slot.podium-3 {
  border-color: rgba(190, 135, 90, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(190, 135, 90, 0.14),
    0 12px 20px rgba(190, 135, 90, 0.06);
}
.podium-medal {
  font-size: 26px;
  line-height: 1;
}
.podium-team-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font: 700 22px "Barlow Condensed";
  color: #101414;
  border-radius: 12px;
  overflow: hidden;
}
.podium-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.podium-details strong {
  display: block;
  font: 700 22px "Barlow Condensed";
  line-height: 1.1;
}
.podium-details small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.podium-points {
  font: 700 12px "Barlow Condensed";
  letter-spacing: 0.08em;
  color: var(--acid);
}
.podium-empty {
  opacity: 0.45;
  justify-content: center;
}
.podium-empty span {
  font: 700 28px "Barlow Condensed";
  color: var(--muted);
}
.bracket-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 12px 4px;
}
.match-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  position: relative;
  transition: 0.2s;
}
.match-card.selected {
  border-color: var(--acid);
  box-shadow: 0 0 25px #d8ef6210;
}
.match-card.selected:before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--acid);
}
.match-label {
  font: 700 13px "Barlow Condensed";
  letter-spacing: 0.12em;
  color: #737c75;
  margin-bottom: 14px;
}
.match-label span {
  float: right;
  font: 500 11px "DM Sans";
  color: #626962;
}
.live-label {
  color: var(--coral);
}
.match-winner-badge {
  background: linear-gradient(135deg, #d8ef62 0%, #eddb65 100%);
  color: #101414;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font: 700 13px "DM Sans";
  display: flex;
  align-items: center;
  gap: 8px;
  animation: winnerPulse 0.6s ease-in-out;
}
.match-winner-badge .trophy {
  font-size: 18px;
  display: inline-block;
  animation: trophyBounce 0.8s ease-in-out infinite;
}
@keyframes winnerPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes trophyBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.match-card.has-winner {
  border-left: 3px solid var(--acid);
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
}
.team.winner span {
  font-weight: 700;
}
.team strong {
  margin-left: auto;
  font: 700 20px "Barlow Condensed";
  text-align: center;
  min-width: 28px;
}
.team-logo {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #101414;
  font: bold 14px "Barlow Condensed";
}
.teal {
  background: var(--teal);
}
.yellow {
  background: #eddb65;
}
.pink {
  background: #ed7891;
}
.purple {
  background: #ad89e6;
}
.orange {
  background: #e8a45e;
}
.blue {
  background: #75a9e7;
}
.match-map {
  font-size: 13px;
  color: #7c847e;
  border-top: 1px solid #2d3330;
  margin-top: 8px;
  padding-top: 10px;
}
.match-map span {
  float: right;
  color: #646c65;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.match-routes {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #343a35;
}
.route-chip {
  display: grid;
  grid-template-columns: 13px 12px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 9px;
  line-height: 1.3;
  color: var(--muted);
}
.route-chip i {
  font-style: normal;
  font-size: 12px;
}
.route-winner i,
.route-winner b {
  color: var(--acid);
}
.route-loser i,
.route-loser b {
  color: var(--coral);
}
.route-eliminated {
  color: #858b84;
}
.route-chip b {
  font-size: 9px;
}
.bracket-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}
.bracket-admin-actions .save-button {
  margin: 0;
}
.bracket-admin-actions .danger-button {
  border: 1px solid #74494a;
  padding: 12px 15px;
  background: transparent;
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
}
.active-map {
  color: var(--acid);
}
.upcoming {
  opacity: 0.72;
}
.grand-card {
  border-color: #627238;
  background: linear-gradient(145deg, #1c211d, #191d1c);
}
.trophy {
  text-align: center;
  color: var(--acid);
  font-size: 23px;
  margin: 1px 0 8px;
}
.champion-note {
  font-size: 13px;
  color: var(--acid);
  padding-top: 14px;
  text-align: center;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 21px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-kicker {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.panel-kicker b {
  color: #6c756e;
  font-weight: 500;
}
.live-dot {
  background: var(--coral);
  width: 6px;
  height: 6px;
}
.match-detail h2 {
  font: 600 30px/0.95 "Barlow Condensed";
  margin: 25px 0 22px;
}
.match-detail h2 em {
  font: 400 18px "DM Sans";
  color: var(--muted);
}
.detail-score {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 15px;
}
.detail-score div {
  text-align: center;
}
.detail-score strong {
  display: block;
  font: 700 50px/0.8 "Barlow Condensed";
}
.detail-score span {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.score-dash {
  font-size: 22px;
  color: #677069;
  padding-bottom: 13px;
}
.progress {
  height: 3px;
  background: #303634;
  margin: 22px 0 18px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--acid);
}
.detail-map {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-art {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8c6d4c, #273b33);
  color: var(--acid);
  font: 700 19px "Barlow Condensed";
}
.detail-map small,
.detail-map strong {
  display: block;
}
.detail-map small {
  font-size: 8px;
  color: var(--muted);
}
.detail-map strong {
  font: 600 15px "Barlow Condensed";
  margin-top: 3px;
}
.detail-map > b {
  margin-left: auto;
  color: var(--acid);
  font-size: 9px;
}
.bans {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
.bans small {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.bans div {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.bans span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #2a302d;
  border: 1px solid #3d4640;
  color: #707a70;
  font-size: 13px;
}
.next-match {
  padding: 18px 21px;
}
.next-teams {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin: 18px 0 16px;
}
.next-teams em {
  font-size: 9px;
  color: var(--muted);
  margin: 0 2px;
}
.next-teams .team-logo {
  flex: 0 0 22px;
}
.next-info {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.stream-card {
  padding: 0;
  overflow: hidden;
}
.stream-visual {
  height: 116px;
  padding: 17px;
  background: linear-gradient(125deg, #26392f, #5d3b31);
  position: relative;
}
.stream-visual span {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--acid);
}
.stream-visual strong {
  display: block;
  font: 700 24px/0.8 "Barlow Condensed";
  margin-top: 18px;
}
.stream-visual b {
  position: absolute;
  right: 22px;
  top: 38px;
  color: var(--acid);
  font-size: 30px;
}
.stream-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
}
.stream-copy strong,
.stream-copy span {
  display: block;
}
.stream-copy strong {
  font-size: 11px;
}
.stream-copy span {
  font-size: 9px;
  color: var(--muted);
}
.stream-copy button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--acid);
  font-size: 10px;
  padding: 9px 10px;
}
.hidden {
  display: none !important;
}
.schedule-panel,
.rules-panel {
  min-height: 380px;
}
.schedule-row {
  display: flex;
  align-items: center;
  padding: 23px 17px;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.schedule-time {
  font-size: 9px;
  color: var(--muted);
  width: 100px;
}
.schedule-time b {
  display: block;
  font: 600 20px "Barlow Condensed";
  color: var(--ink);
  margin-top: 4px;
}
.schedule-row strong {
  font: 600 20px "Barlow Condensed";
  flex: 1;
}
.schedule-row em {
  font: 400 12px "DM Sans";
  color: var(--muted);
}
.tag {
  font-size: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 9px;
}
.live-tag {
  color: var(--coral);
  border-color: #ff6e5966;
}
.rules-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
}
.rules-panel h3 {
  font: 600 28px "Barlow Condensed";
  margin: 0;
}
.rules-panel p {
  color: var(--muted);
  font-size: 13px;
  max-width: 540px;
  line-height: 1.6;
}
.rules-list {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 17px 10px;
  margin-top: 32px;
  font-size: 12px;
  color: #ccd0c9;
}
.rules-list span {
  color: var(--acid);
  font: 700 16px "Barlow Condensed";
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 9px;
  color: #69716b;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
}
.admin-drawer {
  position: fixed;
  z-index: 5;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #171b1a;
  box-shadow: -15px 0 50px #0008;
  padding: 32px;
  overflow: auto;
  border-left: 1px solid #46503f;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.drawer-header h2 {
  font: 600 40px "Barlow Condensed";
  margin: 0;
}
.drawer-intro {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  border-left: 2px solid var(--acid);
  padding-left: 12px;
  margin: 26px 0;
}
.admin-drawer label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 20px 0;
}
.admin-drawer input,
.admin-drawer select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  background: #232925;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: 0;
  font-size: 15px;
}
.editor-form input,
.editor-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  background: #232925;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: 0;
  font-size: 15px;
}
.score-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.score-editor > div {
  background: #202522;
  padding: 14px;
}
.score-editor span {
  font-size: 10px;
  color: var(--muted);
}
.score-editor div div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.score-editor button {
  width: 28px;
  height: 28px;
  background: var(--line);
  border: 0;
  color: var(--ink);
  font-size: 18px;
}
.score-editor strong {
  font: 700 24px "Barlow Condensed";
}
.save-button {
  width: 100%;
  background: var(--acid);
  border: 0;
  padding: 15px;
  font-weight: 700;
  margin-top: 12px;
}
.save-button span {
  float: right;
}
.security-note {
  font-size: 10px;
  line-height: 1.5;
  color: #9d8c6d;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 28px;
}
.toast {
  position: fixed;
  z-index: 9999;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--acid);
  color: #151817;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .shell {
    padding: 0 22px;
  }
  .hero {
    padding-left: 0;
    padding-right: 0;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .match-detail {
    grid-row: span 2;
  }
  .stream-card {
    grid-column: 2;
  }
  .hero-sigil {
    width: 110px;
    height: 110px;
  }
  .bracket {
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 72px;
  }
  .brand strong {
    font-size: 15px;
  }
  .live-pill,
  .icon-button {
    display: none;
  }
  .admin-button {
    padding: 10px;
    font-size: 10px;
  }
  .hero {
    min-height: 315px;
    padding-top: 42px;
    align-items: start;
  }
  .hero-sigil {
    position: absolute;
    right: 32px;
    top: 102px;
    transform: scale(0.7);
    opacity: 0.65;
  }
  .hero-text {
    font-size: 12px;
    max-width: 270px;
  }
  .hero-meta {
    flex-wrap: wrap;
    max-width: 270px;
  }
  .divider {
    display: none;
  }
  .view-tabs {
    gap: 17px;
    overflow: auto;
  }
  .tab {
    white-space: nowrap;
    font-size: 11px;
  }
  .content-grid {
    padding-top: 30px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .updated {
    padding-top: 9px;
    white-space: nowrap;
    font-size: 8px;
  }
  .bracket {
    display: grid;
    grid-auto-columns: minmax(168px, 72vw);
    grid-auto-flow: column;
    overflow-x: auto;
    white-space: normal;
  }
  .bracket-column {
    display: flex;
    width: auto;
    margin-right: 0;
  }
  .sidebar {
    display: flex;
  }
  .match-detail {
    grid-row: auto;
  }
  .stream-card {
    grid-column: auto;
  }
  footer {
    display: block;
    line-height: 2;
  }
  .schedule-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .schedule-row strong {
    width: calc(100% - 110px);
    font-size: 17px;
  }
  .schedule-row .tag {
    margin-left: 110px;
  }
  .admin-drawer {
    padding: 26px 21px;
  }
  .score-editor {
    gap: 7px;
  }
}
