:root {
  --lake-900: #173f46;
  --lake-800: #1d515b;
  --lake-700: #2b6973;
  --lake-100: #dcebea;
  --pine-700: #365b49;
  --pine-100: #e4ede6;
  --sunset: #bd7045;
  --sunset-soft: #f3e2d2;
  --sand: #f5f1e8;
  --paper: #fffdf8;
  --ink: #1d2c2e;
  --muted: #64716f;
  --line: #d8d6cc;
  --danger: #9b4038;
  --shadow: 0 18px 50px rgb(23 63 70 / 8%);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 88% 8%, rgb(220 235 234 / 65%), transparent 28rem);
}

a { color: var(--lake-700); }
a:hover { color: var(--lake-900); }
img { max-width: 100%; }

h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -.018em;
}
h1 { margin-bottom: .28em; font-size: clamp(2.25rem, 5vw, 4.35rem); }
h2 { margin-bottom: .4em; font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { margin-bottom: .35em; font-size: 1.25rem; }
p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid #d99a62; outline-offset: 3px; }

.site-header {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: var(--lake-900);
  color: white;
}

.header-inner {
  width: min(1180px, 92vw);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}
.brand:hover { color: white; }
.brand-mark { width: 42px; height: 42px; fill: none; stroke: #c9dfd9; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .brand small { display: block; }
.brand strong { font: 1.16rem/1.1 Georgia, serif; }
.brand small { margin-top: 3px; color: #b9d2ce; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); }
.site-nav a, .nav-button { color: white; font-size: .93rem; font-weight: 650; text-decoration: none; }
.site-nav form { margin: 0; }
.nav-button { border: 0; background: transparent; cursor: pointer; padding: 8px 0; }

.page { width: min(1120px, 92vw); min-height: calc(100vh - 150px); margin: 0 auto; padding: clamp(32px, 6vw, 70px) 0 80px; }
.site-footer { width: min(1120px, 92vw); margin: 0 auto; padding: 24px 0 35px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .83rem; }

.eyebrow { margin-bottom: 9px; color: var(--pine-700); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.lede { max-width: 680px; color: #405153; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.lede-small { max-width: 720px; color: #4f5e5d; font-size: 1.08rem; }
.back-link { display: inline-block; margin-bottom: 30px; font-size: .9rem; font-weight: 700; text-decoration: none; }

.button-row, .form-actions, .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button, button.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--lake-800);
  border-radius: 8px;
  background: var(--lake-800);
  color: white;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { border-color: var(--lake-900); background: var(--lake-900); color: white; transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--lake-800); }
.button-secondary:hover { color: white; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #7f302a; border-color: #7f302a; }
.button-light { border-color: #d5e4e0; background: #d5e4e0; color: var(--lake-900) !important; }
.button-small { min-height: 36px; padding: 7px 12px; }
.button-wide { width: 100%; }
.button[disabled] { opacity: .68; cursor: wait; transform: none; }

.text-button {
  min-height: 40px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--lake-700);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.danger-text { color: var(--danger); }

.card {
  margin: 24px 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 5px 24px rgb(23 63 70 / 5%);
}
.narrow-card { width: min(100%, 520px); margin: 20px auto; }

.messages { margin-bottom: 24px; }
.message { padding: 13px 16px; border: 1px solid #b9d7cd; border-radius: 8px; background: #e5f2ec; }
.message + .message { margin-top: 8px; }
.message.error { border-color: #e4b9b1; background: #f8e4df; }
.message.info { border-color: #b9ccda; background: #e7eff3; }

.hero { min-height: min(680px, calc(100vh - 120px)); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.hero-copy .button-row { margin-top: 32px; }
.lake-scene { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 48% 48% 18px 18px; background: linear-gradient(#e7d8bb 0 42%, #91b9b6 42% 100%); box-shadow: var(--shadow); }
.sun { position: absolute; top: 13%; right: 16%; width: 74px; aspect-ratio: 1; border-radius: 50%; background: #d9955d; box-shadow: 0 0 50px rgb(217 149 93 / 40%); }
.ridge { position: absolute; left: -12%; width: 125%; clip-path: polygon(0 100%, 18% 45%, 31% 70%, 47% 25%, 64% 68%, 80% 37%, 100% 100%); }
.ridge-back { top: 27%; height: 30%; background: #78968a; }
.ridge-front { top: 35%; height: 25%; background: #365b49; transform: scaleX(-1); }
.water-lines { position: absolute; inset: 55% 0 0; opacity: .55; background: repeating-linear-gradient(0deg, transparent 0 15px, rgb(255 255 255 / 55%) 16px 17px); }
.loon { position: absolute; right: 25%; bottom: 25%; color: var(--lake-900); font-size: 28px; transform: rotate(-10deg); }
.loon span { position: absolute; top: 21px; right: -13px; width: 38px; height: 13px; border-radius: 50%; background: var(--lake-900); }

.how-it-works { padding: 60px 0 20px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.steps article { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 253 248 / 60%); }
.steps article > span { color: var(--sunset); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.steps h3 { margin-top: 22px; font-size: 1.45rem; }
.steps p { margin-bottom: 0; color: var(--muted); }

.page-heading { margin-bottom: 34px; }
.heading-with-action, .contest-heading, .section-heading, .ballot-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.page-heading h1 { font-size: clamp(2.25rem, 4vw, 3.6rem); }
.section-heading { margin: 40px 0 18px; align-items: flex-end; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading > span { color: var(--muted); font-size: .9rem; }

.phase, .owner-label, .saved-badge, .your-entry {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.phase-uploading { background: var(--pine-100); color: var(--pine-700); }
.phase-voting { background: #e2e9f4; color: #3c537a; }
.phase-results { background: var(--sunset-soft); color: #854c2d; }
.owner-label { padding-inline: 0; color: var(--muted); }
.saved-badge, .your-entry { background: var(--pine-100); color: var(--pine-700); }

.contest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.contest-card { min-height: 260px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: inherit; text-decoration: none; box-shadow: 0 6px 25px rgb(23 63 70 / 4%); transition: border-color .18s, transform .18s, box-shadow .18s; }
.contest-card:hover { border-color: #8db1ab; color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); }
.contest-card-top, .contest-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.contest-card h2 { margin: 23px 0 8px; }
.contest-summary { color: var(--muted); }
.contest-meta { justify-content: flex-start; margin-top: auto; color: var(--muted); font-size: .82rem; }
.contest-meta span + span::before { content: "·"; margin-right: 8px; }
.contest-deadline { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.contest-deadline strong { color: var(--ink); }

.empty-state { padding: clamp(40px, 8vw, 80px) 24px; border: 1px dashed #b7beb5; border-radius: var(--radius); text-align: center; }
.empty-state p { max-width: 500px; margin-inline: auto; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--lake-100); color: var(--lake-800); font: 1.8rem Georgia, serif; }
.compact-empty { padding-block: 45px; }

.form-layout { max-width: 800px; margin: 0 auto; }
.stacked-form fieldset { margin: 0 0 34px; padding: 0; border: 0; }
.stacked-form legend { width: 100%; margin-bottom: 20px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font: 700 1.35rem Georgia, serif; }
.stacked-form legend span, label span { color: var(--muted); font: 500 .78rem/1.2 sans-serif; }
.field-intro { margin-top: -10px; color: var(--muted); font-size: .9rem; }
.form-field { margin-bottom: 20px; }
.form-field label, .file-picker > label { display: block; margin-bottom: 6px; font-weight: 750; }
.short-field { max-width: 220px; }
.two-column-fields, .category-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aeb8b4;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #788d87; }
input:focus, textarea:focus, select:focus { border-color: var(--lake-700); outline: 3px solid rgb(43 105 115 / 15%); }
input[type="file"] { min-height: auto; padding: 11px; border-style: dashed; background: #f8faf7; }
small { display: block; color: var(--muted); font-size: .78rem; }
.helptext ul { margin: 8px 0 0; padding-left: 20px; }
.errorlist { margin: 7px 0 0; padding-left: 20px; color: var(--danger); font-size: .85rem; }
.notice { margin: 18px 0; padding: 13px 15px; border-left: 3px solid var(--sunset); border-radius: 4px; background: var(--sunset-soft); font-size: .9rem; }

.auth-card { margin-top: clamp(10px, 6vh, 70px); }
.auth-card h1 { font-size: 2.8rem; }
.auth-switch { margin: 22px 0 0; text-align: center; font-size: .9rem; }
.invitation { text-align: center; }
.invitation-mark svg { width: 70px; fill: none; stroke: var(--lake-700); stroke-width: 2; stroke-linecap: round; }
.invitation-details { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invitation-details div { padding: 12px; border-radius: 8px; background: #f2f3ed; }
.invitation-details dt { color: var(--muted); font-size: .73rem; text-transform: uppercase; }
.invitation-details dd { margin: 3px 0 0; font-weight: 700; }

.heading-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.contest-heading { margin-bottom: 35px; }
.contest-heading > div { max-width: 720px; }
.contest-facts { min-width: 270px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; background: rgb(255 253 248 / 65%); }
.contest-facts div { padding: 15px 12px; text-align: center; }
.contest-facts div + div { border-left: 1px solid var(--line); }
.contest-facts dt { color: var(--muted); font-size: .65rem; line-height: 1.25; text-transform: uppercase; }
.contest-facts dd { margin: 3px 0 0; font: 700 1.15rem Georgia, serif; }

.phase-banner { margin: 30px 0; padding: clamp(22px, 4vw, 38px); display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: var(--radius); }
.phase-banner h2 { margin-bottom: 6px; }
.phase-banner p:last-child { margin-bottom: 0; }
.phase-banner-uploading { background: var(--pine-100); }
.phase-banner-voting { background: #e4eaf3; }
.phase-banner-results { background: var(--sunset-soft); }
.phase-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.phase-actions form { margin: 0; }
.phase-actions .button { width: 100%; }

.upload-panel { margin-top: 30px; }
.upload-panel .section-heading { margin: 0 0 10px; }
.upload-panel .section-heading > strong { font: 700 1.25rem Georgia, serif; }
.upload-meter { height: 7px; overflow: hidden; border-radius: 99px; background: #e0e3dd; }
.upload-meter span { display: block; width: calc(var(--used) / var(--total) * 100%); height: 100%; border-radius: inherit; background: var(--lake-700); transition: width .25s ease; }
.upload-panel > p { margin: 14px 0 22px; color: var(--muted); }
.upload-form { display: grid; grid-template-columns: 1.35fr 1fr auto; align-items: end; gap: 16px; }
.upload-form .form-field { margin: 0; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.is-uploading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.creator-tools summary { cursor: pointer; }
.creator-tools summary > span { display: inline-flex; flex-direction: column; margin-left: 5px; }
.creator-tools[open] summary { margin-bottom: 20px; }
.danger-zone { border-color: #e4b9b1; }
.danger-confirmation { max-width: 680px; margin: 24px auto; border-color: #e4b9b1; }
.danger-confirmation h1 { margin-top: 4px; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.copy-status { min-height: 22px; margin: 6px 0; color: var(--pine-700); font-size: .82rem; }

.gallery-section { margin-top: 55px; }
.your-photos-section { margin-top: 50px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.your-photo-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 280px)); }
.own-photo-card { border-color: #9cbab4; box-shadow: 0 6px 22px rgb(23 63 70 / 7%); }
.section-description { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.photo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.photo-link { position: relative; display: block; overflow: hidden; background: #dfe5df; }
.photo-link img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; transition: transform .3s ease; }
.photo-link:hover img { transform: scale(1.025); }
.view-photo { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 99px; background: rgb(23 63 70 / 82%); color: white; font-size: .7rem; font-weight: 800; opacity: 0; transition: opacity .2s; }
.photo-link:hover .view-photo, .photo-link:focus-visible .view-photo { opacity: 1; }
.photo-info { min-height: 85px; padding: 13px 14px; }
.photo-info p { margin-bottom: 4px; font-family: Georgia, serif; font-size: 1.03rem; }
.photo-info form { margin-top: 5px; }

.ballot-heading { align-items: center; }
.saved-badge { flex: none; padding: 8px 12px; }
.ballot-form { max-width: 820px; margin: 0 auto; }
.ballot-form-wide { max-width: none; }
.ballot-enhanced[hidden], .ballot-fallback[hidden], .category-panel[hidden] { display: none !important; }
.ballot-stage + .ballot-stage { margin-top: 75px; }
.ballot-instructions { margin-top: 0; }
.voting-photo-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.voting-photo { transition: border-color .16s, box-shadow .16s; }
.voting-photo.has-selection { border-color: var(--lake-700); box-shadow: 0 0 0 2px var(--lake-100); }
.voting-photo .photo-info { min-height: 118px; }
.place-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.place-button { min-height: 38px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: #f5f5f0; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.place-button:hover { border-color: var(--lake-700); background: var(--lake-100); }
.place-button.is-selected { border-color: var(--lake-800); background: var(--lake-800); color: white; }
.place-1.is-selected { border-color: #9b6437; background: #9b6437; }
.overall-summary { position: sticky; bottom: 12px; z-index: 8; margin-top: 22px; padding: 16px; border: 1px solid #9eb8b3; border-radius: 12px; background: rgb(255 253 248 / 96%); box-shadow: 0 12px 35px rgb(23 63 70 / 16%); backdrop-filter: blur(8px); }
.summary-heading { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 15px; font-size: .84rem; }
.summary-heading span { color: var(--muted); }
.summary-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.summary-slot { min-width: 0; min-height: 64px; padding: 7px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 9px; border: 1px dashed #aab5af; border-radius: 8px; background: #f6f6f1; color: var(--ink); text-align: left; cursor: pointer; }
.summary-slot.is-filled { border-style: solid; border-color: var(--lake-700); background: white; }
.summary-image { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--lake-100); color: var(--lake-800); font-family: Georgia, serif; font-weight: 800; }
.summary-image img { width: 100%; height: 100%; object-fit: cover; }
.summary-slot small, .summary-slot strong { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
.summary-slot small { text-transform: uppercase; }
.summary-slot strong { font-size: .82rem; }
.ballot-section { margin-bottom: 18px; }
.rank-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.rank-field:first-child label { color: #895327; }
.category-progress { flex: none; padding: 7px 11px; border-radius: 99px; background: var(--lake-100); color: var(--lake-800); font-size: .78rem; }
.category-panel { margin: 0; padding: 0; border: 0; scroll-margin-top: 20px; }
.category-panel legend { width: 100%; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.2 Georgia, serif; }
.category-panel legend span { display: block; margin-bottom: 5px; color: var(--muted); font: 800 .68rem/1.2 sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.category-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-photo-choice { position: relative; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.category-photo-choice:hover { border-color: #9db8b3; }
.category-photo-choice.is-selected { border-color: var(--lake-700); box-shadow: 0 0 0 2px var(--lake-100); }
.category-photo-choice img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; }
.category-photo-choice > span { display: block; min-height: 48px; padding: 11px; font: 1rem/1.25 Georgia, serif; }
.choice-check { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; display: none; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--lake-800); color: white; }
.category-photo-choice.is-selected .choice-check { display: grid; }
.category-navigation { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; }
.ballot-submit { margin-top: 25px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); }
.ballot-submit p { max-width: 550px; margin: 0; color: var(--muted); font-size: .88rem; }
.ballot-client-error { min-height: 22px; margin-top: 6px !important; color: var(--danger) !important; font-weight: 700; }

.results-heading { max-width: 780px; }
.standings { display: grid; gap: 15px; }
.standing { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.standing.winner { border: 2px solid var(--sunset); background: linear-gradient(110deg, var(--paper), #fbf3e9); box-shadow: var(--shadow); }
.standing > a img { width: 190px; aspect-ratio: 1; display: block; border-radius: 9px; object-fit: cover; }
.standing-body { padding: 8px 8px 8px 0; }
.standing-body h2 { margin: 8px 0 3px; font-size: 1.6rem; }
.standing-body > p { color: var(--muted); }
.rank { color: var(--sunset); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.score-breakdown { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.score-breakdown div { min-width: 100px; padding: 8px 12px; border-radius: 7px; background: #f1f3ed; }
.score-breakdown dt { color: var(--muted); font-size: .64rem; text-transform: uppercase; }
.score-breakdown dd { margin: 1px 0 0; font: 700 1.1rem Georgia, serif; }
.category-section { margin-top: 65px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.category-results { margin: 0; }
.category-results h3 { font-size: 1.45rem; }
.category-results ol { margin: 18px 0 0; padding: 0; list-style: none; }
.category-results li { min-height: 76px; display: grid; grid-template-columns: 35px 58px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.category-rank { color: var(--sunset); font-weight: 800; }
.category-photo { display: block; border-radius: 7px; overflow: hidden; }
.category-photo img { width: 58px; height: 58px; display: block; object-fit: cover; }
.category-entry small { display: block; }
.category-votes { text-align: right; font-weight: 800; }
.category-votes small { display: inline; font-weight: 500; }

@media (max-width: 800px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 25px 0 60px; }
  .lake-scene { width: min(100%, 470px); aspect-ratio: 5 / 3; justify-self: center; border-radius: 100px 100px 14px 14px; }
  .steps { grid-template-columns: 1fr; }
  .contest-heading { display: block; }
  .contest-facts { width: 100%; margin-top: 25px; }
  .upload-form { grid-template-columns: 1fr 1fr; }
  .upload-form button { grid-column: 1 / -1; }
  .rank-fields { grid-template-columns: 1fr; }
  .summary-slot { grid-template-columns: 38px 1fr; }
  .summary-image { width: 38px; height: 38px; }
}

@media (max-width: 600px) {
  .header-inner { min-height: 66px; }
  .brand-mark { width: 35px; }
  .brand small { display: none; }
  .site-nav { gap: 13px; }
  .page { width: min(94vw, 1120px); padding-top: 32px; }
  .site-footer { width: 92vw; flex-direction: column; }
  .heading-with-action, .section-heading, .ballot-heading, .phase-banner, .ballot-submit { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 2.35rem; }
  .two-column-fields, .category-fields, .upload-form { grid-template-columns: 1fr; }
  .copy-row { grid-template-columns: 1fr; }
  .copy-row .button { width: 100%; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-info { min-height: 80px; padding: 10px; }
  .photo-info p { font-size: .92rem; }
  .standing { grid-template-columns: 110px 1fr; gap: 13px; padding: 10px; }
  .standing > a img { width: 110px; }
  .standing-body { padding: 3px 0; }
  .standing-body h2 { font-size: 1.2rem; }
  .score-breakdown { grid-column: 1 / -1; gap: 6px; }
  .score-breakdown div { min-width: 76px; padding: 6px 8px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-results li { grid-template-columns: 28px 52px 1fr; gap: 9px; padding: 8px 0; }
  .category-photo img { width: 52px; height: 52px; }
  .category-votes { grid-column: 3; text-align: left; }
  .invitation-details { grid-template-columns: 1fr; }
  .overall-summary { bottom: 6px; padding: 10px; }
  .summary-heading { margin-inline: 2px; }
  .summary-slots { gap: 5px; }
  .summary-slot { min-height: 52px; padding: 5px; grid-template-columns: 32px 1fr; gap: 6px; }
  .summary-image { width: 32px; height: 32px; }
  .summary-slot small { font-size: .58rem; }
  .summary-slot strong { font-size: .7rem; }
  .category-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .category-navigation { align-items: stretch; flex-direction: column-reverse; }
  .category-navigation .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
