:root {
  --navy: #072533;
  --navy-2: #0b3244;
  --ink: #0a0e13;
  --blue: #135e80;
  --blue-2: #177ba9;
  --orange: #f2a366;
  --orange-2: #ee9f5f;
  --cyan: #2acddb;
  --white: #ffffff;
  --text: #e8f1f5;
  --muted: #9fbac8;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --green: #3ddc97;
  --red: #ff6b61;
  --radius: 10px;
  --display: 'Outfit', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Outfit', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--navy);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(23, 123, 169, 0.45), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(19, 94, 128, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); }
img { max-width: 100%; display: block; }
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0;
}
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--orange);
}
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 37, 51, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-width: 0; }
.brand .logo { width: 27px; height: 34px; flex: none; }
.brand span {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.label-short { display: none; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 0; border-radius: 4px;
  background: var(--bg); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #f7b680; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(242, 163, 102, 0.25); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn.small { padding: 7px 12px; font-size: 0.9rem; }
.btn.danger { background: var(--red); color: var(--white); }
.btn.cyan { background: var(--cyan); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero .mark { width: 72px; height: 90px; margin: 0 auto 20px; filter: drop-shadow(0 6px 24px rgba(240, 200, 90, 0.4)); }
.hero .mark .logo { width: 100%; height: 100%; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 700; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .when { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text); }
.hero .when strong { color: var(--white); }
.nowrap { white-space: nowrap; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: 40px; }
.countdown .unit {
  width: clamp(72px, 18vw, 128px);
  padding: 16px 6px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.countdown .num {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown .lbl { margin-top: 6px; font-family: var(--display); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; color: var(--orange); }
.live-now { margin-top: 36px; font-family: var(--display); font-weight: 600; font-size: 2rem; text-transform: uppercase; color: var(--cyan); letter-spacing: 0.08em; }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.welcome { margin: 26px 0 0; font-size: 1.15rem; color: var(--white); }
.record { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.record-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.record-card.champ { border-color: var(--orange); background: rgba(242, 163, 102, 0.1); }
.record-card .yr { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.08em; color: var(--orange); }
.record-card .big { font-family: var(--display); font-weight: 600; font-size: 2.8rem; color: var(--white); line-height: 1.1; margin-top: 6px; }
.record-card .big .of { font-size: 1.4rem; color: var(--muted); margin-left: 0.15em; }
.record-card .place { margin-top: 8px; font-weight: 600; color: var(--white); }
.record-card .quip { margin-top: 6px; font-size: 0.9rem; color: var(--orange); font-style: italic; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); margin-bottom: 20px; }
.details { font-size: 1.1rem; max-width: 720px; }

/* How to play: the nominee deck on the left, the steps on the right (stacked on phones). */
.howto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.howto .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--white); margin: 0 0 22px; max-width: 34em; }
.play-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 40em; }
.play-steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.play-steps .n { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--orange); min-width: 2ch; }
.play-steps p { margin: 0; font-size: 1.08rem; color: var(--text); }
.play-steps a { color: var(--white); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.howto .vibe { margin-top: 22px; color: var(--muted); max-width: 40em; }
.howto .vibe p { margin: 0 0 8px; }

.deck { position: relative; width: min(100%, 460px); aspect-ratio: 100 / 88; margin-inline: auto; }
.deck-card {
  position: absolute; left: 20%; top: 4.5%; width: 60%; aspect-ratio: 3 / 4;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease, filter 0.7s ease;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 3rem; color: rgba(255, 255, 255, 0.85);
}
.deck-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(4, 16, 24, 0.94) 55%);
  opacity: 0; transition: opacity 0.3s ease;
}
.deck-card .cap .cat { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--orange); }
.deck-card .cap .nm { font-weight: 700; color: var(--white); line-height: 1.2; margin-top: 3px; }
.deck-card[data-slot='front'] { z-index: 3; transform: none; }
.deck-card[data-slot='front'] .cap { opacity: 1; transition-delay: 0.35s; }
.deck-card[data-slot='right'] { z-index: 2; transform: translateX(27%) rotate(7deg) scale(0.94); filter: brightness(0.6); }
.deck-card[data-slot='left'] { z-index: 1; transform: translateX(-27%) rotate(-7deg) scale(0.94); filter: brightness(0.6); }
.deck-card[data-slot='out'] { z-index: 4; transform: translate(-30%, 14%) rotate(-16deg) scale(0.96); opacity: 0; }
.deck-card[data-slot='in'] { z-index: 0; transform: scale(0.82); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .deck-card { transition: opacity 0.6s ease; }
}
@media (max-width: 820px) {
  .howto { grid-template-columns: 1fr; }
  .deck { width: min(78%, 320px); }
}

.footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.85rem; text-align: center; border-top: 1px solid var(--line); }

/* ---------- ballot ---------- */
.ballot-head { padding: 44px 0 12px; }
.ballot-head h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); color: var(--white); }
.notice {
  margin: 18px 0 0; padding: 12px 16px;
  border-left: 3px solid var(--cyan); background: rgba(42, 205, 219, 0.08);
  border-radius: 0 6px 6px 0; color: var(--text);
}
.notice.warn { border-color: var(--orange); background: rgba(242, 163, 102, 0.1); }
.name-field { margin: 28px 0 8px; display: grid; gap: 8px; max-width: 480px; }
label.lbl { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--orange); }
input[type='text'], input[type='tel'], input[type='number'], input[type='password'], input[type='datetime-local'], input[type='url'], textarea, select {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 1.05rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 163, 102, 0.2); }
select option { background: var(--navy); }

.account-card {
  margin: 24px 0 8px; padding: 16px 18px; max-width: 760px;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.account-card.column { display: grid; gap: 12px; justify-content: stretch; }
.account-card strong { color: var(--white); }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-card .field { display: grid; gap: 6px; }
.account-card input[type='tel'] { max-width: 320px; }
.account-grid .field, .signin { display: grid; gap: 6px; }
.signin-row { display: flex; gap: 8px; max-width: 420px; }
.linklike { background: none; border: 0; padding: 0; color: var(--orange); font: inherit; text-decoration: underline; cursor: pointer; }
.small { font-size: 0.9rem; }
@media (max-width: 700px) { .account-grid { grid-template-columns: 1fr 1fr; } }

.progress-bar {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(7, 37, 51, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.progress-bar .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.progress-bar .track { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.progress-bar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--cyan)); transition: width 0.3s ease; }
.progress-bar .count { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }

.jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 8px; }
.jump a {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem;
  padding: 5px 10px; border-radius: 20px; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line);
}
.jump a.done { color: var(--navy); background: var(--orange); border-color: var(--orange); }

.category { padding: 36px 0 12px; scroll-margin-top: 130px; }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.category-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--white); }
.category-head .meta { font-family: var(--display); font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; white-space: nowrap; }
.category-head .meta.ok { color: var(--orange); }

.nominees { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.nominee {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0; text-align: left;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: inherit; font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nominee:hover { transform: translateY(-3px); background: var(--card-hover); }
.nominee:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.nominee .art { aspect-ratio: 3 / 4; background: var(--blue); position: relative; overflow: hidden; }
.nominee .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, filter 0.2s ease; }
.nominee:hover .art img { transform: scale(1.04); }
.nominee .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
}
.nominee .info { padding: 10px 12px 12px; }
.nominee .name { font-weight: 700; color: var(--white); line-height: 1.2; }
.nominee .sub { font-size: 0.8rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.nominee .check {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: var(--navy); display: grid; place-items: center;
  transform: scale(0); transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.6, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.nominee.selected { border-color: var(--orange); background: rgba(242, 163, 102, 0.12); }
.nominee.selected .check { transform: scale(1); }
.nominees.has-pick .nominee:not(.selected) .art img { filter: saturate(0.55) brightness(0.75); }

/* live results (after voting locks) */
.nominee .win-tag {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 3px 8px; border-radius: 3px;
  background: var(--green); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  transform: scale(0); transform-origin: top left; transition: transform 0.2s ease;
}
.nominee.winner { border-color: var(--green); background: rgba(61, 220, 151, 0.1); }
.nominee.winner .win-tag { transform: scale(1); }
.nominees.has-pick .nominee.winner .art img { filter: none; }
.nominee.selected.right .check { background: var(--green); }
.nominee.selected.wrong { border-color: var(--red); background: rgba(255, 107, 97, 0.1); }
.nominee.selected.wrong .check { background: var(--red); color: var(--white); }
.category-head .meta.right { color: var(--green); }
.category-head .meta.wrong { color: var(--red); }
.jump a.right { color: var(--navy); background: var(--green); border-color: var(--green); }
.jump a.wrong { color: var(--red); background: rgba(255, 107, 97, 0.12); border-color: rgba(255, 107, 97, 0.5); }
.progress-bar .rank { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--cyan); white-space: nowrap; }
.progress-bar .fill.results { background: var(--green); }
.notice.live { border-color: var(--green); background: rgba(61, 220, 151, 0.08); }
.notice.live strong { color: var(--white); }
.locked .nominee { cursor: default; }
.locked .nominee:hover { transform: none; }

.tiebreak { margin: 40px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 10px; max-width: 640px; scroll-margin-top: 130px; }
.tiebreak input { max-width: 200px; }
.submit-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px 0 80px; }
.error { color: var(--red); font-weight: 600; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(3, 12, 18, 0.75); backdrop-filter: blur(6px); padding: 16px; }
.modal-card {
  width: min(520px, 100%); padding: 32px 28px; text-align: center;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal-card h2 { font-size: 2.4rem; color: var(--white); margin: 8px 0 10px; }
.modal-card .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.copy-row { display: flex; gap: 8px; margin-top: 16px; }
.copy-row input { font-size: 0.85rem; padding: 8px 10px; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--white); color: var(--navy); padding: 10px 18px; border-radius: 6px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.25s ease; z-index: 200;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .nominees { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav-links .btn.ghost { display: none; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .nav-links .btn.small { padding: 6px 9px; }
  .hero { padding-top: 48px; }
  .category-head { flex-direction: column; gap: 4px; }
  .jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .jump a { white-space: nowrap; }
}
