@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --green: #123b30;
  --dark: #102c27;
  --gold: #e8bc69;
  --paper: #f5f3ec;
  --muted: #797d72;
  --line: #dedfd4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--dark);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c38522;
  outline-offset: 4px;
}
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
  font-weight: 500;
}
.brand-icon {
  border: 2px solid var(--green);
  width: 40px;
  height: 45px;
  display: grid;
  place-content: center;
  font-family: Georgia;
  font-size: 28px;
  line-height: 25px;
  text-align: center;
}
.brand-icon span {
  font-size: 10px;
  line-height: 10px;
}
nav {
  display: flex;
  gap: 35px;
  height: 100%;
  align-items: center;
}
nav a {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #767c72;
}
nav a.active {
  color: var(--green);
  border-bottom: 3px solid var(--green);
  font-weight: 700;
}
.header-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83ad77;
  margin-right: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 530px;
  background: var(--dark);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.hero-copy {
  padding: 60px 0 40px 9.1%;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
  margin: 0 0 17px;
}
.hero .eyebrow {
  color: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
.art-stamp,
.results-seal {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
}
h1 {
  font-size: clamp(56px, 6.5vw, 94px);
  line-height: 0.97;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-copy > p:not(.eyebrow) {
  color: #b7c5b8;
  line-height: 1.8;
  font-size: 14px;
}
.button {
  border: 0;
  display: inline-flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  min-height: 44px;
}
.gold {
  background: var(--gold);
  color: var(--dark);
}
.green {
  background: var(--green);
  color: white;
}
.outline {
  border: 1px solid #cdd0c5;
  background: transparent;
  color: var(--green);
}
.hero .button {
  margin-top: 10px;
}
.hero-numbers {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.hero-numbers span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #a6b6a9;
}
.hero-numbers b {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 29px;
  letter-spacing: 0;
  margin-right: 7px;
  color: white;
}
.hero-art {
  position: relative;
  background: radial-gradient(ellipse at center, #35564477, transparent 65%);
}
.field {
  width: 450px;
  height: 450px;
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  border: 1px solid #72947722;
  border-radius: 50%;
}
.field:before,
.field:after {
  content: "";
  position: absolute;
  border: 1px solid #72947722;
  border-radius: 50%;
  inset: 40px;
}
.field:after {
  inset: -50px;
}
.diamond {
  width: 245px;
  height: 245px;
  border: 1px solid #98ae7355;
  transform: rotate(45deg);
  position: absolute;
  top: 100px;
  left: 100px;
  background: repeating-linear-gradient(
    0deg,
    #52714214 0 30px,
    transparent 30px 60px
  );
}
.base {
  position: absolute;
  background: #ccbb7d88;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}
.b1 {
  left: 218px;
  top: 45px;
}
.b2 {
  left: 391px;
  top: 218px;
}
.b3 {
  left: 218px;
  top: 391px;
}
.b4 {
  left: 45px;
  top: 218px;
}
.ball {
  width: 190px;
  height: 190px;
  position: absolute;
  border-radius: 50%;
  top: 70px;
  left: calc(50% - 95px);
  transform: rotate(-24deg);
  overflow: hidden;
  background: radial-gradient(circle at 32% 30%, #fffef1, #dedace 60%, #777f69);
  box-shadow:
    24px 36px 50px #0007,
    inset -12px -10px 25px #0002;
}
.ball:before,
.ball:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 200px;
  top: -10px;
  border: 5px dashed #a5453b;
  border-radius: 50%;
  left: -94px;
}
.ball:after {
  left: 140px;
}
.art-stamp {
  position: absolute;
  top: 292px;
  width: 100%;
  text-align: center;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: 4px;
  transform: rotate(-7deg);
  color: #eae8cd;
}
.art-stamp strong {
  font-size: 60px;
}
.art-stamp small {
  display: block;
  font: 8px "DM Sans";
  letter-spacing: 3px;
  margin-top: 17px;
}
.art-caption {
  position: absolute;
  bottom: 32px;
  width: 100%;
  text-align: center;
  font-size: 8px;
  letter-spacing: 3px;
  color: #8ba28e;
}
.ticker {
  display: flex;
  justify-content: space-around;
  gap: 18px;
  padding: 18px 5%;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  background: #eeeee4;
}
.ticker span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.ticker img {
  width: 25px;
  height: 25px;
}
.section {
  padding: 60px 5%;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-title .eyebrow {
  color: #80876e;
  font-size: 9px;
  margin-bottom: 12px;
}
h2 {
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}
.section-title > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.draw-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.wheel-panel {
  background: #e9ebdf;
  padding: 25px 30px;
  position: relative;
  background-image: radial-gradient(#51624522 0.7px, transparent 0.7px);
  background-size: 8px 8px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.wheel-wrap {
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: 32px auto 20px;
  position: relative;
}
canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 12px #132b2826);
}
.pointer {
  position: absolute;
  z-index: 3;
  top: -8px;
  left: calc(50% - 13px);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 30px solid var(--gold);
  filter: drop-shadow(0 3px 2px #0005);
}
.wheel-hub {
  position: absolute;
  inset: 39%;
  background: #f7f2dd;
  border: 7px solid var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Georgia;
  font-weight: 900;
  font-size: 37px;
  box-shadow: 0 2px 6px #0003;
}
.wheel-hub span {
  font: 6px "DM Sans";
  letter-spacing: 1px;
  margin-top: 3px;
}
.wheel-note {
  text-align: center;
  font-size: 8px;
  letter-spacing: 2px;
  color: #7b8472;
  margin-bottom: 5px;
}
.draw-panel {
  background: #fdfcf6;
  padding: 28px;
}
.draw-panel > .eyebrow {
  color: #7e866f;
  font-size: 9px;
}
.next-team {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
}
.next-team img {
  width: 74px;
  height: 74px;
}
.next-team h3 {
  font: 700 34px "Barlow Condensed";
  margin: 4px 0;
}
.next-team p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.chip {
  font-size: 8px;
  letter-spacing: 1px;
  color: #697556;
  background: #eff0e5;
  padding: 5px 7px;
  border-radius: 3px;
}
.draw-panel > .button {
  width: 100%;
  justify-content: space-between;
}
.draw-options {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 21px;
  font-size: 10px;
  color: #747d6e;
}
.draw-options label {
  display: flex;
  align-items: center;
  gap: 5px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.latest {
  border: 1px solid #dedfd2;
  background: #f3f3e9;
  border-radius: 4px;
  padding: 15px;
  font-size: 11px;
  line-height: 1.6;
  min-height: 52px;
}
.latest strong {
  color: var(--green);
}
.roster-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
}
.roster-heading h3 {
  font-size: 12px;
  margin: 0;
}
.roster-heading span {
  font-size: 9px;
  color: var(--muted);
}
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 13px 0 20px;
}
.roster span {
  border: 1px solid var(--line);
  padding: 8px 4px;
  text-align: center;
  font-size: 10px;
  border-radius: 3px;
}
.roster .picked {
  background: #e6edde;
  color: #718064;
  border-color: transparent;
}
.reset {
  font-size: 10px;
  color: #7c7f75;
}
.assignments {
  padding-top: 5px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.assignment-card {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 20px 16px;
  background: #fbfaf4;
  position: relative;
}
.assignment-card img {
  width: 40px;
  height: 40px;
}
.assignment-card .initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eeeee2;
  display: grid;
  place-content: center;
  color: #889179;
  font-size: 13px;
}
.assignment-card h3 {
  font-size: 12px;
  margin: 0 0 6px;
}
.assignment-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.assignment-card small {
  display: block;
  font-size: 8px;
  margin-top: 7px;
  color: #41744d;
}
.assignment-card.out {
  opacity: 0.55;
}
.assignment-card.champion {
  border: 1px solid #b79242;
  background: #f6eed5;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 5%;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
footer .brand {
  font-size: 11px;
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 24px;
  background: var(--dark);
  color: white;
  box-shadow: 0 6px 25px #0003;
  border-radius: 5px;
  z-index: 20;
  display: none;
  max-width: 90%;
  font-size: 12px;
}
#toast.visible {
  display: block;
}
.results-hero {
  background: var(--dark);
  padding: 52px 5%;
  color: #f6f3e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-hero .eyebrow {
  color: var(--gold);
}
.results-hero h1 {
  font-size: 76px;
}
.results-hero p:last-child {
  margin: 0;
  color: #afc2b3;
}
.results-seal {
  border: 1px solid #bcaa6377;
  transform: rotate(-6deg);
  padding: 20px 35px;
  text-align: center;
  font-size: 24px;
  line-height: 1;
}
.results-seal strong {
  font-size: 42px;
  display: block;
}
.results-seal span {
  font: 10px "DM Sans";
  letter-spacing: 5px;
  display: block;
  color: var(--gold);
  margin-top: 12px;
}
.result-toolbar {
  padding: 25px 5% 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.result-toolbar > span {
  font-size: 11px;
  color: #6c7968;
}
.file-label {
  cursor: pointer;
}
.file-label input {
  display: none;
}
.bracket-hint {
  margin: 15px 5%;
  font-size: 10px;
  color: var(--muted);
}
.bracket-scroll {
  overflow-x: auto;
  margin: 0 5%;
  padding: 15px 0 28px;
}
.bracket {
  display: grid;
  grid-template-columns: repeat(4, minmax(238px, 1fr));
  gap: 28px;
  min-width: 1050px;
}
.round {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.round-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #cdd0c2;
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 700;
}
.round-title small {
  font: 8px "DM Sans";
  color: var(--muted);
  letter-spacing: 1px;
}
.match {
  border: 1px solid #d7dbc9;
  border-radius: 5px;
  background: #fcfbf5;
  position: relative;
  padding: 12px;
}
.match:after {
  content: "";
  position: absolute;
  right: -29px;
  top: 50%;
  width: 28px;
  border-top: 1px solid #c2cab5;
}
.round:last-child .match:after {
  display: none;
}
.match-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7d876f;
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #e8e9de;
}
.match-team img {
  width: 27px;
  height: 27px;
}
.match-team .team-info {
  flex: 1;
}
.match-team strong {
  display: block;
  font-size: 11px;
}
.match-team small {
  font-size: 9px;
  color: #889078;
  display: block;
  margin-top: 3px;
}
.match-team b {
  font: 700 22px "Barlow Condensed";
  color: #79866b;
}
.match-team.winner b {
  color: #1d694c;
}
.match-team.winner strong:after {
  content: " ✓";
  color: #609255;
}
.match button {
  margin-top: 8px;
  font-size: 10px;
}
.round:nth-child(3) .match {
  margin-top: 64px;
  margin-bottom: 60px;
}
.round:nth-child(4) .match {
  margin-top: 182px;
  border-color: #bfaa6d;
  background: #f6efdb;
}
.champion-banner {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #957420;
}
.storage-note {
  margin: 0 5% 35px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.notice {
  margin: 15px 5%;
  padding: 15px;
  background: #f0e5c9;
  font-size: 12px;
}
.notice button {
  margin-left: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  width: min(460px, 90vw);
  color: var(--dark);
  background: var(--paper);
}
dialog::backdrop {
  background: #051710aa;
}
dialog h2 {
  margin-bottom: 15px;
  font-size: 30px;
}
dialog p {
  font-size: 12px;
  line-height: 1.6;
}
#scoreFields label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 13px;
}
#scoreFields input {
  width: 70px;
  padding: 10px;
  border: 1px solid #bcc6b4;
  background: white;
  border-radius: 3px;
}
#scoreError {
  color: #b43636;
}
.empty-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
@media (min-width: 1500px) {
  main,
  header,
  footer {
    max-width: 1500px;
    margin: auto;
  }
}
@media (max-width: 1000px) {
  .header-tag {
    display: none;
  }
  .hero-copy {
    padding-top: 45px;
  }
  .hero {
    min-height: 490px;
  }
  .hero-art {
    transform: scale(0.86);
  }
  .draw-layout {
    grid-template-columns: 1.1fr 1fr;
  }
  .draw-panel {
    padding: 22px;
  }
  .wheel-panel {
    padding: 24px 16px;
  }
  .wheel-wrap {
    margin: 55px auto 30px;
  }
  .assignment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ticker {
    justify-content: flex-start;
  }
  .section-title {
    align-items: start;
  }
  .section-title .actions {
    justify-content: end;
  }
  .hero-numbers {
    gap: 16px;
  }
}
@media (max-width: 680px) {
  header {
    height: 77px;
    padding: 0 5%;
  }
  .brand {
    font-size: 12px;
    gap: 9px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  .brand-icon {
    width: 30px;
    height: 37px;
    font-size: 22px;
  }
  nav {
    gap: 20px;
  }
  nav a {
    font-size: 11px;
    gap: 5px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 440px;
  }
  .hero-copy {
    padding: 40px 6%;
    position: relative;
  }
  .hero-copy h1 {
    font-size: 65px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .hero-art {
    position: absolute;
    width: 260px;
    height: 400px;
    right: -110px;
    top: 20px;
    transform: scale(0.75);
    opacity: 0.3;
  }
  .hero-numbers {
    gap: 25px;
  }
  .hero-numbers b {
    font-size: 26px;
  }
  .hero-numbers span {
    font-size: 7px;
  }
  .section {
    padding: 36px 5%;
  }
  .section-title {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .section-title > p {
    font-size: 11px;
  }
  h2 {
    font-size: 32px;
  }
  .draw-layout {
    grid-template-columns: 1fr;
  }
  .wheel-panel {
    padding: 20px;
  }
  .wheel-wrap {
    margin: 30px auto 15px;
    max-width: 340px;
  }
  .draw-panel {
    padding: 24px;
  }
  .roster {
    gap: 8px;
  }
  .assignment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .assignment-card {
    padding: 14px 10px;
    gap: 9px;
  }
  .assignment-card img,
  .assignment-card .initial {
    width: 32px;
    height: 32px;
  }
  .assignment-card h3 {
    font-size: 11px;
  }
  .assignment-card p {
    font-size: 9px;
  }
  .assignments {
    padding-top: 5px;
  }
  .button {
    font-size: 11px;
    padding: 13px 15px;
  }
  .results-hero {
    padding: 36px 5%;
  }
  .results-hero h1 {
    font-size: 56px;
  }
  .results-hero p:last-child {
    font-size: 11px;
  }
  .results-seal {
    display: none;
  }
  .result-toolbar {
    flex-direction: column;
    align-items: start;
  }
  .result-toolbar .actions {
    gap: 7px;
  }
  .result-toolbar .button {
    padding: 11px;
    font-size: 10px;
  }
  .bracket {
    gap: 20px;
    min-width: 1030px;
  }
  .match:after {
    right: -21px;
    width: 20px;
  }
  footer {
    flex-wrap: wrap;
    line-height: 1.7;
  }
  footer > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  header,
  footer,
  .actions,
  .result-toolbar,
  .bracket-hint,
  .storage-note,
  .match button {
    display: none !important;
  }
  .bracket-scroll {
    overflow: visible;
    margin: 0;
  }
  .bracket {
    min-width: 0;
    gap: 8px;
  }
  .results-hero {
    padding: 20px;
    background: white;
    color: black;
  }
  .section {
    padding: 20px 0;
  }
  .assignment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  body {
    font-size: 10px;
  }
  .match:after {
    display: none;
  }
}
