: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,
.ballot-meta input,
.admin-row input {
  width: 100%;
  background: #121824;
  color: var(--cream);
  border: 2px solid #334155;
  padding: 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
}
.nav a.is-current { color: var(--orange); }
.admin-page .nav { flex-wrap: wrap; }
.admin-pool-board { margin-top: 24px; }
.admin-pool-board .admin-pool { padding: 16px 18px 22px; }
.admin-boards + .admin-pool-board { grid-column: 1 / -1; }
.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; }

.champ-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.champ-pill {
  background: #151c2a;
  border: 1px solid #334155;
  padding: 8px 12px;
  font-size: 14px;
}
.champ-pill strong { color: var(--orange); margin-right: 6px; }
.move { display: inline-block; margin-left: 8px; font-size: 14px; letter-spacing: 0.08em; vertical-align: middle; }
.move.up { color: #86efac; }
.move.down { color: #f87171; }
.move.nr { color: var(--orange); }
.move.flat { color: #6b7280; }
.week-label { color: var(--orange); letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; margin-top: 10px; }
.share-row { grid-column: 1 / -1; margin-top: 8px; }
.admin-site { display: flex; flex-direction: column; gap: 18px; margin: 8px 0 20px; }
.desk-card {
  background: linear-gradient(180deg, #161d2b 0%, #10161f 100%);
  border: 1px solid #2b364a;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.desk-card header { margin-bottom: 16px; }
.desk-card header p {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}
.desk-card header h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  color: #9aa3b2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}
.field input, .field textarea, .admin-row input, .admin-row textarea {
  background: #0c121c;
  border: 1px solid #3a465c;
  color: var(--cream);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 17px;
  width: 100%;
  border-radius: 10px;
}
.field textarea, .admin-row textarea { min-height: 84px; resize: vertical; line-height: 1.35; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,90,18,.18);
}
.field-full { grid-column: 1 / -1; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.rule-card {
  background: #0c121c;
  border: 1px solid #2b364a;
  border-radius: 12px;
  padding: 12px;
}
.desk-split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; align-items: start; }
.desk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.desk-subtle { color: #9aa3b2; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; margin: 16px 0 8px; }
.archive-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.archive-list li {
  background: #0c121c;
  border: 1px solid #2b364a;
  border-radius: 10px;
  padding: 10px 12px;
}
.gold-box label { display: block; color: var(--orange); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; margin-bottom: 8px; }
@media (max-width: 860px) {
  .field-grid, .rule-grid, .desk-split { grid-template-columns: 1fr; }
}

.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; position: relative; z-index: 1; }
.admin-card {
  background: #121824;
  border: 2px solid #2a3548;
  padding: 22px;
  margin-bottom: 20px;
}
.admin-card h1 { font-size: 48px; margin-bottom: 8px; }
.admin-card label { display: block; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--orange); }
.admin-card input, .admin-pass-row input, .pool-add input {
  background: #0e1420;
  border: 2px solid #334155;
  color: var(--cream);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 18px;
  width: 100%;
}
.hidden { display: none !important; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-pass-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.admin-pass-row input { width: auto; flex: 1; min-width: 180px; }
.pool-add { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-pool { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-pool li {
  background: #0e1420;
  border: 1px solid #334155;
  padding: 6px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-pool button, .btn-x {
  background: none;
  border: 0;
  color: #f87171;
  cursor: pointer;
  font-weight: 700;
}
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
}

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