:root {
  --orange: #e85a12;
  --orange-deep: #c2410c;
  --red: #b42318;
  --red-deep: #7f1d1d;
  --navy: #13233a;
  --navy-2: #0b1626;
  --silver: #c5c9d1;
  --cream: #f4efe6;
  --white: #fff8f0;
  --ink: #0a0f18;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  background: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  letter-spacing: 0.02em;
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #0a0f18 0%, #121a28 100%);
  border-bottom: 3px solid var(--navy);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
}
.brand-mark {
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-mark span { color: var(--orange); }
.brand-sub {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--silver);
}
.nav { display: flex; gap: 22px; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--silver);
}
.nav a:hover { color: var(--orange); }
.stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--red) 50% 100%);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
h1, h2, h3 { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.03em; }
h1 { font-size: clamp(52px, 8vw, 92px); line-height: 0.9; }
h1 span { color: var(--orange); }
.lede { max-width: 540px; font-size: 20px; color: #d7d0c4; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge img {
  width: min(340px, 100%);
  filter: drop-shadow(0 18px 40px rgba(232,90,18,.25));
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
}
.btn-primary {
  background: var(--orange);
  color: #1a0b04;
}
.btn-primary:hover { background: #ff6b1a; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  outline: 2px solid var(--silver);
}
.btn-ghost:hover { outline-color: var(--orange); color: var(--orange); }

.promo-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #243044;
  border-bottom: 1px solid #243044;
}
.promo-item {
  padding: 16px 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  background: #101824;
}
.promo-item:nth-child(1) { border-right: 1px solid #243044; }
.promo-item:nth-child(2) { border-right: 1px solid #243044; background: #16110d; }
.promo-item strong { color: var(--orange); margin-right: 8px; }

.rankings, .vote, .how {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}
.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head h2 { font-size: 56px; line-height: 0.95; }
.section-head p:last-child { color: #c9c2b6; font-size: 18px; margin-top: 10px; }

.api-flag { margin-top: 16px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa3b2; }
.api-flag.ok { color: #86efac; }
.api-flag.bad { color: #f87171; }
.promo-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.sub-tabs { margin-top: -16px; }
.tab.sub { font-size: 13px; padding: 8px 16px; }
.tab {
  background: #151c2a;
  color: var(--silver);
  border: 2px solid #2a3548;
  padding: 10px 22px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab.is-active {
  background: var(--orange);
  color: #1a0b04;
  border-color: var(--orange);
}

.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.board {
  background: linear-gradient(160deg, #182033 0%, #10161f 100%);
  border: 3px solid #2c3a52;
  position: relative;
  overflow: hidden;
}
.board.staff { border-color: var(--orange); }
.board.crowd { border-color: var(--red); }
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 20px 12px;
  background: linear-gradient(90deg, var(--navy) 0%, #1b283c 100%);
}
.board.staff .board-head { background: linear-gradient(90deg, #3b1d0a, #1a120c); }
.board.crowd .board-head { background: linear-gradient(90deg, #3a1212, #160c0c); }
.board-head h3 { font-size: 32px; }
.board-head span { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); }

.rank-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #243044;
}
.rank-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.rank-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  color: var(--orange);
}
.board.crowd .rank-num { color: #f87171; }
.rank-name { font-size: 24px; font-weight: 700; text-transform: uppercase; }
.rank-note { display: block; font-size: 13px; color: #9aa3b2; letter-spacing: 0.08em; text-transform: uppercase; }
.rank-pts { font-size: 13px; color: var(--silver); letter-spacing: 0.1em; }

.vote-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.ballot-meta label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--orange);
}
select {
  width: 100%;
  background: #121824;
  color: var(--cream);
  border: 2px solid #334155;
  padding: 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
}
.hint, .ballot-status { margin-top: 14px; color: #9aa3b2; font-size: 15px; }
.ballot-status.ok { color: #86efac; }
.vote-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vote-cols h3 {
  font-size: 28px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.name-list, .pick-list {
  list-style: none;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  border: 2px solid #2a3548;
  background: #0e1420;
}
.name-list li, .pick-list li {
  padding: 10px 14px;
  border-bottom: 1px solid #243044;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}
.name-list li:hover { background: #1c2738; color: var(--orange); }
.pick-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
}
.pick-list li span.pos {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  color: var(--orange);
  width: 28px;
}
.pick-list li button {
  margin-left: auto;
  background: none;
  border: 0;
  color: #f87171;
  cursor: pointer;
  font-size: 18px;
}
#submit-vote, #clear-vote { margin-top: 14px; margin-right: 8px; }

.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.rules article {
  background: #121824;
  border-left: 6px solid var(--orange);
  padding: 22px;
}
.rules article:nth-child(even) { border-left-color: var(--red); }
.rules h3 { font-size: 28px; margin-bottom: 8px; }
.rules p { color: #c9c2b6; font-size: 17px; }

.site-footer {
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, var(--orange), var(--red)) 1;
  background: #070b12;
  padding: 36px 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-logo { width: 72px; }
.fine { color: #6b7280; font-size: 13px; margin-top: 8px; }
.footer-links { margin-left: auto; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--orange); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; }

@media (max-width: 860px) {
  .hero, .boards, .vote-layout, .vote-cols, .rules, .promo-bar, .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .footer-links { margin-left: 0; }
}
