/* Battle of the Bulbs.
   Look: a night sky hero with a glowing string of bulbs, light sections for reading, a dark prize stage, and brand colors used as district colors. */
:root {
  --night: #121C27;
  --night2: #1B2B3A;
  --red: #A90E1D;
  --burgundy: #7F1220;
  --aqua: #65BDC3;
  --gold: #D7A84D;
  --glow: #F6CE6B;
  --navy: #2E3D4F;
  --lime: #7BA54A;
  --grey: #D7D8D9;
  --green: #357F12;
  --paper: #FFFFFF;
  --panel: #F3F6F8;
  --line: #DDE1E7;
  --muted: #55627A;
  --focus: #1D5FD1;
  --display: 'Londrina Solid', 'Arial Rounded MT Bold', 'Avenir Next', system-ui, sans-serif;
  --body: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 16px/1.6 var(--body); }
.gut {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  max-width: 1180px;
  margin: 0 auto;
}
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0; }

/* hero: night sky */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(246, 206, 107, .20), transparent 70%),
    radial-gradient(40% 40% at 12% 30%, rgba(101, 189, 195, .14), transparent 70%),
    radial-gradient(40% 40% at 88% 24%, rgba(169, 14, 29, .20), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(1.4px 1.4px at 8% 62%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 21% 78%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 34% 70%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 58% 82%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 68%, #fff, transparent 60%),
    radial-gradient(1.3px 1.3px at 86% 80%, #fff, transparent 60%),
    radial-gradient(1.1px 1.1px at 94% 64%, #fff, transparent 60%);
}
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 22px; padding-bottom: 56px; }
.plate { background: #fff; border-radius: 16px; padding: 8px 14px; width: min(100%, 380px); box-shadow: 0 0 40px rgba(246, 206, 107, .28); }
.plate img { display: block; width: 100%; height: auto; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 6.6vw, 70px); line-height: 1; max-width: 14em; }
.hero h1 .glow { color: var(--glow); text-shadow: 0 0 22px rgba(246, 206, 107, .55), 0 0 60px rgba(246, 206, 107, .3); }
.lede { max-width: 36em; font-size: 17px; text-wrap: balance; color: #E4EAF0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600; font-size: 14px; }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9FB0C0; }
.pill.open::before { background: #5BD66B; box-shadow: 0 0 8px #5BD66B; }
.count { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 20px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(246, 206, 107, .5); }
.count b { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--glow); font-variant-numeric: tabular-nums; }
.count span { font-weight: 500; font-size: 15px; color: #E4EAF0; text-align: left; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .2s, transform .2s; }
.hero-btn:hover { background: rgba(255, 255, 255, .14); }
.hero-btn.primary { background: var(--glow); border-color: var(--glow); color: #1A1F27; box-shadow: 0 0 26px rgba(246, 206, 107, .45); }
.hero-btn.primary:hover { background: #FFDD86; }
@media (max-width: 520px) { .hero-actions, .hero-btn { width: 100%; } }

/* string of bulbs */
.string { display: block; width: 100%; height: 52px; --wire: #6B8197; }
.hero .string { position: relative; filter: drop-shadow(0 0 7px rgba(246, 206, 107, .55)); }
.string .wire { stroke: var(--wire); }
@media (prefers-reduced-motion: no-preference) {
  .hero .string use { animation: twinkle 3.2s ease-in-out infinite; }
  .hero .string use:nth-of-type(3n) { animation-delay: -1.1s; }
  .hero .string use:nth-of-type(3n+1) { animation-delay: -2.1s; animation-duration: 4.1s; }
  @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
}

/* sticky section nav */
.subnav { position: sticky; top: 0; z-index: 20; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.subnav-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; color: #E4EAF0; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.subnav a:hover { background: rgba(255, 255, 255, .1); }
.subnav .subnav-cta { margin-left: auto; background: var(--glow); color: #1A1F27; font-weight: 600; }
.subnav .subnav-cta:hover { background: #FFDD86; }

/* page flow: sections reorder by phase */
.flow { display: flex; flex-direction: column; }
.flow > * { order: 5; }
.flow > #how { order: 1; }
.flow > #prizes { order: 2; }
.flow > #app { order: 3; }
.flow > #library { order: 4; }
.flow > #categories { order: 5; }
.flow > #rules { order: 6; }
.flow > .cta { order: 7; }
.flow > #about { order: 8; }
.flow[data-phase="open"] > #app, .flow[data-phase="closed"] > #app { order: 0; }

/* shared section styles */
#vote, .sec, .trophy, #app { scroll-margin-top: 56px; }
.sec { padding: 64px 0; }
.sec.soft { background: var(--panel); }
.sec.night { background: linear-gradient(180deg, var(--night2), var(--night)); color: #fff; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sec.night .eyebrow { color: var(--glow); }
.sec-h { font-weight: 900; color: var(--navy); font-size: clamp(34px, 6vw, 54px); line-height: 1.02; margin-top: 4px; }
.sec.night .sec-h { color: #fff; }
.sec-sub { color: var(--muted); margin-top: 10px; max-width: 40em; }
.center { text-align: center; }
p.center { margin-top: 30px; }

/* timeline */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 24px; background: var(--panel); border-radius: 16px; border: 2px solid transparent; }
.steps .when { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.05; white-space: nowrap; color: var(--red); }
.steps li:nth-child(2) .when { color: var(--green); }
.steps li:nth-child(3) .when { color: var(--navy); }
.steps li:nth-child(4) .when { color: #A27414; }
.steps h3 { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.steps li.now { background: #FFF8E4; border-color: var(--gold); box-shadow: 0 8px 24px rgba(215, 168, 77, .28); }
.steps li.now::after { content: "Happening now"; position: absolute; top: -12px; right: 14px; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: #1A1F27; font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* prizes */
.prizes { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .prizes { grid-template-columns: repeat(3, 1fr); } }
.prizes li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px 26px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.prizes img { width: min(190px, 52vw); height: auto; }
.prizes h3 { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; margin-top: 10px; }
.amt { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--glow); text-shadow: 0 0 22px rgba(246, 206, 107, .4); margin-top: 4px; }
.runner { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #BAC6D2; margin-top: 6px; }
.cheer { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8EE39A; margin-top: 8px; }
.trophy { margin-top: 28px; display: grid; gap: 18px 36px; grid-template-columns: 1fr; align-items: center; justify-items: center; text-align: center; padding: 30px 22px; border-radius: 20px; background: linear-gradient(120deg, rgba(246, 206, 107, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(246, 206, 107, .45); }
@media (min-width: 720px) { .trophy { grid-template-columns: 200px minmax(0, 1fr); text-align: left; justify-items: start; } .trophy img { justify-self: center; } }
.trophy img { width: min(180px, 52vw); height: auto; }
.trophy h3 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 5vw, 40px); text-transform: uppercase; line-height: 1.05; color: var(--glow); }
.trophy p { font-size: 17px; margin-top: 8px; max-width: 32em; color: #E4EAF0; }

/* buttons */
.btn { font: 600 15px/1 var(--body); min-height: 46px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-vote { background: var(--red); color: #fff; }
.btn-vote:hover:not(:disabled) { background: var(--burgundy); }
.btn-vote.done { background: var(--green); opacity: 1; }
.btn-gold { background: var(--glow); color: #1A1F27; }
.btn-gold:hover { background: #FFDD86; }
.btn-quiet { background: #fff; color: var(--navy); border-color: var(--navy); }
.linkbtn-solid { display: inline-flex; align-items: center; text-decoration: none; }

/* notices */
.banner, .notice { margin-top: 18px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.banner { background: #FFF3D1; border: 1px solid var(--gold); }
.notice { background: var(--panel); border: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* participants */
#app { padding: 64px 0 56px; background: var(--paper); }
.vote-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.vote-count { color: var(--muted); font-weight: 600; font-size: 14px; }
.bar { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.tab { font: 600 14px/1 var(--body); padding: 0 18px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--navy); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.filters { display: flex; flex: 1 1 280px; gap: 10px; min-width: 0; }
input[type="search"], select { font: 400 16px/1.2 var(--body); color: var(--navy); background: #fff; border: 1px solid #B8C0CC; border-radius: 12px; padding: 0 14px; min-height: 46px; }
input[type="search"] { flex: 1 1 0; min-width: 0; width: 100%; }
select { flex: 0 0 auto; min-width: 0; }
.legend { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .legend { flex-wrap: wrap; overflow: visible; } }
.lg { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #B8C0CC; border-radius: 999px; background: #fff; color: var(--navy); font: 500 13px/1 var(--body); cursor: pointer; }
.lg .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.lg.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.lg.on .n { color: #E6EAF0; }
.lg.on .dot { border-color: #fff; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--navy); flex: none; }

.layout { margin-top: 18px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.pane { display: none; min-width: 0; }
#app[data-view="list"] #paneList, #app[data-view="standings"] #paneStand, #app[data-view="map"] #paneMap { display: block; }
.map { width: 100%; height: min(70vh, 560px); min-height: 360px; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); text-align: center; }
@media (min-width: 900px) {
  .tabs.no-stand { display: none; }
  .layout { grid-template-columns: minmax(400px, 500px) minmax(0, 1fr); align-items: start; }
  .tab-map { display: none; }
  #paneMap { display: block; position: sticky; top: 60px; grid-column: 2; grid-row: 1; }
  #paneList, #paneStand { grid-column: 1; grid-row: 1; }
  #app[data-view="map"] #paneList { display: block; }
  .map { height: calc(100vh - 84px); max-height: 720px; }
}

/* business cards */
.cards, .standings { list-style: none; margin: 0; padding: 0; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { --b: var(--lime); display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--b); border-radius: 14px; }
.card.sel { border-color: var(--navy); border-left-color: var(--b); box-shadow: 0 0 0 2px var(--navy); }
.card.mine { background: color-mix(in srgb, var(--b) 12%, #fff); }
.thumb { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.thumb .bulb { --bf: var(--b); --bs: var(--navy); width: 28px; height: 37px; display: block; }
.thumb .logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.card.mine .thumb .bulb, .pin.mine svg { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--b) 85%, transparent)); }
.card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.name { font-weight: 600; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.addr { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 13px; margin-top: 2px; }
.dist { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.where { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; margin-top: 4px; }
.links a, .linkbtn { color: var(--navy); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 28px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; cursor: pointer; }
.card-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card-act .btn { min-width: 100px; }
.votes { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--panel); border-radius: 14px; }
.grp { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-bottom: 4px; border-bottom: 2px solid var(--b); }
.grp:first-child { margin-top: 0; }
.grp .grp-bulb { width: 18px; height: 24px; --bf: var(--b); --bs: var(--navy); }
.grp-name { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.grp-count { color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { .tabs { width: 100%; } .tab { flex: 1; padding: 0 8px; } .filters { flex-basis: 100%; } }
@media (max-width: 520px) {
  .card { grid-template-columns: 64px minmax(0, 1fr); }
  .card-act { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
  .card-act .btn { flex: 1; max-width: 220px; }
}

/* standings */
.standings { display: flex; flex-direction: column; gap: 16px; }
.srow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.rank { font-family: var(--display); font-weight: 900; font-size: 24px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.sname { font-weight: 600; overflow-wrap: anywhere; }
.tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--burgundy); }
.track { grid-column: 2; height: 12px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.fill { height: 100%; background: var(--aqua); }
.srow.leader .fill { background: var(--red); }
.tally { grid-column: 3; grid-row: 1 / span 2; text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tally b { display: block; font-family: var(--display); font-size: 24px; font-weight: 900; }
.tally span { font-size: 13px; color: var(--muted); }

/* logo library */
.library { background: var(--paper); border-top: 1px solid var(--line); }
.lib { margin-top: 34px; display: flex; flex-direction: column; gap: 34px; }
.lib-dist { --b: var(--lime); }
.lib-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--b); }
.lib-head .bulb { width: 22px; height: 29px; --bf: var(--b); --bs: var(--navy); }
.lib-head h3 { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.lib-head .lib-n { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.lib-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); text-decoration: none; }
a.tile:hover { border-color: var(--b); box-shadow: 0 6px 16px rgba(46, 61, 79, .12); }
.tile .thumb { width: 96px; height: 96px; border-radius: 14px; }
.tile .thumb .bulb { width: 36px; height: 48px; }
.tile-name { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }

/* accordions */
.acc { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 56px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.acc details[open] > summary::after { transform: rotate(-135deg); }
.cat summary img { flex: none; width: 56px; height: auto; }
.sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum-t { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--red); }
.sum-d { font-size: 14px; color: var(--muted); }
.rule summary { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; color: var(--green); }
.acc-body { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.cat .acc-body { padding-left: 90px; }
@media (max-width: 560px) { .cat .acc-body { padding-left: 18px; } }
.acc-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.judges { font-weight: 600; }
.announce { font-weight: 700; font-size: 17px; text-align: center; padding: 14px 16px; border: 2px dashed var(--red); border-radius: 12px; text-wrap: balance; }
.rules-lead { margin-top: 14px; font-size: 17px; }

/* call to action and about */
.cta { background: linear-gradient(135deg, var(--red), var(--burgundy)); color: #fff; }
.cta .sec-h { color: #fff; }
.cta .narrow { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cta p { text-wrap: balance; font-size: 18px; }
.reg-note { font-weight: 600; }
.about .narrow { display: flex; flex-direction: column; gap: 14px; }

/* footer, dialog, toast, map */
.foot { background: var(--night); color: #C9D3DD; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot .small { color: #94A3B3; font-size: 13px; margin-top: 6px; }
.foot a { color: #fff; text-underline-offset: 3px; }
dialog { border: 0; border-radius: 16px; padding: 24px; max-width: min(92vw, 420px); color: var(--navy); }
dialog::backdrop { background: rgba(10, 16, 24, .6); }
dialog h2 { font-size: 30px; font-weight: 900; margin-bottom: 8px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px); padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 10px; font-weight: 500; z-index: 50; }
.pin { --b: var(--lime); width: 30px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.pin svg { --bf: var(--b); --bs: var(--navy); width: 30px; height: 40px; display: block; }
.pin.sel { z-index: 3; }
.pin.sel svg { transform: scale(1.25); transform-origin: 50% 100%; }
.popup { display: flex; flex-direction: column; gap: 6px; font-family: var(--body); color: var(--navy); min-width: 180px; }
.popup .name { font-size: 15px; }
.popup .addr { font-size: 13px; }
.popup .btn { min-height: 40px; font-size: 14px; }
.popup .chip { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.maplibregl-popup-content { border-radius: 10px; padding: 14px 16px 12px; }
@media (prefers-reduced-motion: no-preference) { .card, .fill, .btn, .tile { transition: background-color .2s, box-shadow .2s, border-color .2s, width .4s; } }


/* registration page */
.reg { max-width: 720px; padding-bottom: 40px; }
.intro { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.intro a, .small-note a, .done a:not(.btn) { color: var(--navy); text-underline-offset: 3px; }
.form { margin-top: 22px; display: flex; flex-direction: column; gap: 22px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field legend { margin-bottom: 4px; }
.req { color: var(--red); }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.field input[type="text"], .field input[type="email"], .field textarea, .field input[type="file"] {
  font: 400 16px/1.3 var(--body); color: var(--navy); background: #fff; width: 100%;
  border: 1px solid #B8C0CC; border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 9px 10px; }
.field.bad input[type="text"], .field.bad input[type="email"], .field.bad input[type="file"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid #B8C0CC; border-radius: 8px; font-weight: 500; cursor: pointer; background: #fff; }
.choice input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.choice:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, #fff); }
.err { color: var(--red); font-size: 14px; font-weight: 500; margin: 0; min-height: 0; }
.err:empty { display: none; }
.form-err { padding: 10px 12px; border: 1px solid var(--red); border-radius: 8px; background: #FDECEE; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.logo-preview { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.logo-preview img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.btn-submit { align-self: flex-start; min-height: 50px; padding: 0 28px; font-size: 16px; }
.small-note { color: var(--muted); font-size: 13px; }
.done { margin-top: 24px; padding: 24px; border: 2px solid var(--green); border-radius: 14px; background: color-mix(in srgb, var(--green) 7%, #fff); display: flex; flex-direction: column; gap: 14px; }
.done h2 { font-size: 36px; font-weight: 900; color: var(--green); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.linkbtn-solid { display: inline-flex; align-items: center; text-decoration: none; }


/* address suggestions */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #c3c8d1; border-radius: 10px; box-shadow: 0 10px 24px rgba(46, 61, 79, .18); max-height: 280px; overflow-y: auto; }
.ac-opt { padding: 11px 14px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.ac-opt:hover, .ac-opt.on { background: #eef6f6; }
.ac-foot { padding: 7px 14px 5px; font-size: 12px; color: var(--muted); border-top: 1px solid #e6e8ec; margin-top: 4px; }

/* logo link, document pages (privacy, thank you) */
a.plate { display: block; text-decoration: none; }
a.plate:hover { box-shadow: 0 0 52px rgba(246, 206, 107, .42); }
.doc { max-width: 820px; padding-top: 44px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 30px; }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc-h { font-size: clamp(28px, 4.6vw, 38px); font-weight: 900; line-height: 1.05; color: var(--navy); }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 6px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc a:not(.btn):not(.promo-link) { color: var(--navy); text-underline-offset: 3px; }
.muted { color: var(--muted); font-size: 14px; }
.addendum { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.addendum-body { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.addendum-body h3 { font-size: 20px; margin: 0; }
.addendum-body h4 { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .03em; color: var(--green); margin: 10px 0 0; }
.addendum-body h5 { font-size: 15px; font-weight: 600; margin: 6px 0 0; }

.next-list { list-style: none; padding: 0 !important; gap: 14px !important; }
.next-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; background: var(--panel); border-radius: 16px; }
.next-list .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-weight: 900; font-size: 24px; }
.next-list li:nth-child(2) .n { background: var(--green); }
.next-list li:nth-child(3) .n { background: var(--navy); }
.next-list h3 { margin: 2px 0 4px; }
.callout { padding: 24px; border-radius: 16px; background: linear-gradient(135deg, var(--night2), var(--night)); color: #fff; border: 1px solid rgba(246, 206, 107, .5); }
.callout .doc-h { color: var(--glow); }
.promo-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promo-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--red); color: #fff; text-decoration: none; }
.promo-link:hover { background: var(--burgundy); }
.promo-t { font-weight: 600; font-size: 17px; }
.promo-d { font-size: 14px; opacity: .92; }
.caption { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.caption label { font-weight: 600; }
.caption textarea { width: 100%; font: 400 16px/1.5 var(--body); color: var(--navy); background: #fff; border: 1px solid #B8C0CC; border-radius: 12px; padding: 12px 14px; resize: vertical; }
.tips { color: var(--navy); }
.doc .actions-row { margin-top: 4px; }

/* choices: spacing and a lighter outline (must out-rank .field label) */
.choices { gap: 12px; }
.field .choice { padding: 12px 18px; border: 1px solid #DDE2E8; font-weight: 500; transition: border-color .15s, background .15s, box-shadow .15s; }
.field .choice:hover { border-color: #B8C0CC; }
.field .choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: color-mix(in srgb, var(--green) 9%, #fff); }
.field .choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent); outline-offset: 2px; }

/* public / private badges */
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font: 600 11px/1.5 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag.pub { background: color-mix(in srgb, var(--green) 14%, #fff); color: #245c0d; border: 1px solid color-mix(in srgb, var(--green) 40%, #fff); }
.tag.priv { background: #EEF1F4; color: #4a5a6b; border: 1px solid #D5DBE2; }
.key { margin: 0 0 8px; padding: 12px 16px; background: #F6F8FA; border: 1px solid #E3E8ED; border-radius: 10px; font-size: 14px; color: var(--muted); line-height: 2; }
.key .tag { margin: 0 4px 0 0; }
.key .tag + .tag, .key .tag:not(:first-child) { margin-left: 10px; }
.group { border: 1px solid #E3E8ED; border-radius: 14px; padding: 20px; background: #FBFCFD; display: flex; flex-direction: column; gap: 18px; }
.group h2 { margin: 0; font-size: 22px; }
.group .opt { font: 600 11px/1.5 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid #D5DBE2; border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: 3px; }
.field input[type="date"] { font: inherit; padding: 12px 14px; border: 1px solid #B8C0CC; border-radius: 8px; max-width: 240px; }
.consent { background: #F6F8FA; border-radius: 10px; padding: 12px 14px; }

/* tiles are buttons now */
button.tile { font: inherit; cursor: pointer; width: 100%; }
button.tile:hover { border-color: var(--b); box-shadow: 0 6px 16px rgba(46, 61, 79, .12); transform: translateY(-2px); }
button.tile:focus-visible, .namebtn:focus-visible, .pill-link:focus-visible, .biz-x:focus-visible { outline: 3px solid var(--teal, #65BDC3); outline-offset: 2px; }
.namebtn { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.namebtn:hover { text-decoration-color: currentColor; }
.card-special { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #7a5a12; }
.popup .card-special { margin: 0; }

/* business pop-up */
dialog.biz { --b: #65BDC3; width: min(94vw, 520px); max-width: none; max-height: 90vh; overflow: auto; padding: 0; border-top: 8px solid var(--b); }
.biz-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1F3F6; font-size: 26px; line-height: 1; color: var(--navy); cursor: pointer; }
.biz-x:hover { background: #E3E7EC; }
#bizBody { padding: 24px 24px 8px; display: flex; flex-direction: column; gap: 16px; }
.biz-head { display: flex; gap: 16px; align-items: center; padding-right: 36px; }
.biz-head .thumb { width: 88px; height: 88px; flex: none; border-radius: 16px; }
.biz-title h2 { font-size: 28px; line-height: 1.1; margin: 0 0 4px; overflow-wrap: anywhere; }
.biz-addr { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.biz-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.biz-chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.biz-special { background: #FBF3DC; border: 1px solid #E8D08A; border-radius: 12px; padding: 14px 16px; }
.biz-special-text { margin: 4px 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.biz-ends { font-size: 13px; color: #7a5a12; font-weight: 600; }
.biz-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.biz-special .biz-label { color: #7a5a12; }
.biz-row p { margin: 4px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.biz-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 600 14px var(--body); text-decoration: none; cursor: pointer; }
.pill-link:hover { border-color: var(--navy); }
.biz-foot { padding: 12px 24px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.biz-foot:empty { display: none; }
.biz-foot .btn { flex: 1 1 220px; }
.biz-soon { margin: 0; padding: 12px 16px; background: var(--panel); border-radius: 10px; font-weight: 600; width: 100%; }

/* email signup */
.signup { background: var(--panel); }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; max-width: 640px; }
.signup-form input[type="text"], .signup-form input[type="email"] { flex: 1 1 200px; min-height: 48px; padding: 0 14px; font: 400 16px var(--body); border: 1px solid #B8C0CC; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }
@media (max-width: 520px) { .biz-head { flex-direction: column; align-items: flex-start; } }

/* ---------- judging portal (phone first) ---------- */
body.judge { background: var(--panel); min-height: 100vh; }
.j-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--night); color: #fff; }
.j-brand img { display: block; height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px 8px; }
.j-who { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; min-width: 0; }
.j-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36vw; }
.j-link { background: none; border: 0; color: var(--glow); font: 600 14px var(--body); text-decoration: underline; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.j-main { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
.j-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; }
.j-login h1 { font-size: 36px; font-weight: 900; margin: 0 0 6px; }
.j-login label { display: block; font-weight: 600; margin: 18px 0 6px; }
.j-login input { width: 100%; min-height: 56px; font: 600 24px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 0 12px; border: 2px solid #B8C0CC; border-radius: 12px; color: var(--navy); }
.j-login .btn { width: 100%; margin-top: 16px; min-height: 54px; font-size: 18px; }
.j-sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

.j-progress { position: sticky; top: 60px; z-index: 15; background: var(--panel); padding: 10px 0 8px; }
.j-progress-text { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
#lockText { color: var(--red); font-weight: 700; }
.j-bar { height: 10px; background: #DDE3EA; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.j-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .3s; }

.j-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; }
.j-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 2px solid #D5DBE2; border-radius: 999px; background: #fff; color: var(--navy); font: 600 14px var(--body); cursor: pointer; scroll-snap-align: start; white-space: nowrap; }
.j-tab .dot { width: 12px; height: 12px; border-radius: 50%; }
.j-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.j-tab-n { font-size: 12px; opacity: .8; }
.j-tab-n.all { color: var(--green); font-weight: 800; opacity: 1; }
.j-tab.on .j-tab-n.all { color: #9be07a; }
.j-tab.results { border-style: dashed; }

.j-dhead { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.j-dhead h2 { font-size: 32px; font-weight: 900; line-height: 1.05; border-left: 8px solid var(--b, var(--navy)); padding-left: 12px; margin: 0; }
.j-route, .j-walk { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); font: 600 14px var(--body); text-decoration: none; background: #fff; }
.j-walk { flex: none; min-height: 44px; }

.j-stop { background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--b, var(--navy)); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.j-stop.done { background: #F6FBF3; border-color: #BCDDAE; border-left-color: var(--b, var(--navy)); }
.j-stop-head { display: flex; gap: 12px; align-items: flex-start; }
.j-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.j-stop-title { flex: 1; min-width: 0; }
.j-stop-title h3 { font-size: 20px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.j-addr, .j-lights { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.j-rate { margin-top: 14px; }
.j-rate-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.j-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.j-dot { min-height: 52px; border: 2px solid #C9D1DA; border-radius: 12px; background: #fff; color: var(--navy); font: 700 20px var(--body); cursor: pointer; touch-action: manipulation; }
.j-dot.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 70%, transparent); }
.j-dot:disabled { opacity: .5; }
.j-notes-label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
.j-notes { width: 100%; font: 400 16px/1.4 var(--body); border: 1px solid #B8C0CC; border-radius: 10px; padding: 10px 12px; resize: vertical; color: var(--navy); }
.j-status { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--green); font-weight: 600; }
.j-status.bad { color: var(--red); }

.j-pick { background: #fff; border: 2px solid var(--b, var(--navy)); border-radius: 14px; padding: 16px; margin: 20px 0; }
.j-pick h3 { margin: 0; font-size: 22px; }
.j-pick-list { display: grid; gap: 8px; margin-top: 12px; }
.j-pick-opt { min-height: 52px; padding: 8px 16px; text-align: left; border: 2px solid #C9D1DA; border-radius: 12px; background: #fff; color: var(--navy); font: 600 16px var(--body); cursor: pointer; }
.j-pick-opt.on { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, #fff); box-shadow: 0 0 0 1px var(--green); }
.j-next { display: flex; flex-wrap: wrap; gap: 10px; }
.j-next .btn { flex: 1 1 160px; min-height: 52px; }
.j-done-note { margin: 0; font-weight: 600; }

.j-res { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.j-res h3 { margin: 0 0 8px; font-size: 20px; }
.j-scroll { overflow-x: auto; }
.j-res table { width: 100%; border-collapse: collapse; font-size: 14px; }
.j-res th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; }
.j-res td { padding: 8px 6px; border-top: 1px solid var(--line); }
.j-res td.nm { font-weight: 600; } .j-res td.ds { color: var(--muted); } .j-res td.num { text-align: right; font-variant-numeric: tabular-nums; }
.j-pickrow { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.j-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: 90vw; font-size: 14px; }
.judge .btn-quiet { background: #fff; border: 2px solid var(--navy); color: var(--navy); }
.judge .banner { margin-bottom: 12px; }

/* ---------- footer ---------- */
.foot { padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-h { font: 900 22px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.foot-h2 { margin-top: 22px; }
.foot-about p { margin: 0 0 16px; line-height: 1.65; max-width: 34em; }
.foot-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px; background: var(--glow); color: #1A1F27 !important; font-weight: 600; text-decoration: none; }
.foot-btn:hover { background: #FFDD86; }
.foot-list, .foot-social { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin: 0 0 10px; }
.foot-list a, .foot-list span { display: inline-block; }
.foot-list a { min-height: 24px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-decoration: none !important; font-size: 14px; font-weight: 600; }
.foot-pill:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; }
.foot-base p { margin: 0 0 6px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } .foot { padding-top: 36px; } .foot-list a { padding: 6px 0; } }

.j-set { display: flex; flex-direction: column; gap: 16px; }
.j-set-group { margin: 18px 0 0; font-size: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.j-set-group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.j-set-field label { font-weight: 600; display: block; }
.j-set-field input, .j-set-field textarea { width: 100%; font: 400 16px/1.4 var(--body); border: 1px solid #B8C0CC; border-radius: 10px; padding: 12px; min-height: 48px; margin-top: 6px; color: var(--navy); background: #fff; }
.j-set .btn { min-height: 54px; font-size: 17px; }


/* ================= round 2: top bar, order, sections ================= */
html { scroll-padding-top: 88px; }
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(18, 28, 39, .06); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 8px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; position: relative; }
.tb-logo { display: block; justify-self: center; }
.tb-logo img { display: block; height: 62px; width: auto; }
.tb-links { display: flex; gap: 2px; flex-wrap: wrap; }
.tb-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.tb-links a:hover { background: var(--panel); }
.tb-right { justify-self: end; }
.tb-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.tb-cta:hover { background: var(--burgundy); }
.tb-menu { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: 600 14px var(--body); cursor: pointer; }
.tb-burger { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.tb-burger::before, .tb-burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.tb-burger::before { top: -6px; } .tb-burger::after { top: 6px; }
@media (max-width: 860px) {
  .topbar-in { padding: 6px 14px; }
  .tb-logo img { height: 46px; }
  .tb-menu { display: inline-flex; }
  .tb-left { position: static; }
  .tb-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(18, 28, 39, .12); padding: 8px 14px 12px; }
  .topbar.open .tb-links { display: flex; }
  .tb-links a { min-height: 52px; font-size: 17px; padding: 0 8px; border-bottom: 1px solid var(--panel); }
  .tb-cta { min-height: 44px; padding: 0 18px; }
}
.hero-in { padding-top: 40px; }

/* new page order: prizes and criteria sit lower */
.flow > #how { order: 1; }
.flow > #ctaTop { order: 2; }
.flow > #app { order: 3; }
.flow > #library { order: 4; }
.flow > #prizes { order: 5; }
.flow > #rules { order: 6; }
.flow > .cta:not(#ctaTop) { order: 7; }
.flow > #signup { order: 8; }
.flow > #about { order: 9; }
.flow[data-phase="open"] > #app, .flow[data-phase="closed"] > #app { order: 0; }

.prizes-wrap { padding: 0; }
.prizes-wrap > .sec { margin: 0; }

/* register button inside the dates box + clearer deadline */
.step-btn { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }
.step-btn:hover { background: var(--burgundy); }
.steps li[data-step="register"] strong, .steps li[data-step="vote"] strong { color: var(--navy); }

/* compact call-to-action strip near the top */
.cta-top { padding: 0; }
.cta-top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.cta-top-h { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.05; color: #fff; margin: 0 0 6px; }
.cta-top p { margin: 0; font-size: 17px; max-width: 40em; }
.cta-top .btn { min-height: 52px; font-size: 17px; padding: 0 28px; text-decoration: none; display: inline-flex; align-items: center; }

/* email signup: its own colored band */
.signup { background: var(--aqua); color: var(--navy); }
.signup .eyebrow { color: var(--navy); opacity: .8; }
.signup .sec-h { color: var(--navy); }
.signup .sec-sub, .signup .small-note { color: #1F3A4A; }
.signup .small-note a { color: var(--navy); }
.signup-form input[type="text"], .signup-form input[type="email"] { border-color: #fff; background: #fff; }
.signup-form .btn-vote { background: var(--navy); }
.signup-form .btn-vote:hover:not(:disabled) { background: #1D2A38; }

/* about DBA with logo on the left */
.about-grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 28px 48px; align-items: center; max-width: 980px; }
.about-logo { display: grid; place-items: center; padding: 28px 24px; border-radius: 20px; background: linear-gradient(160deg, var(--night2), var(--night)); box-shadow: 0 10px 30px rgba(18, 28, 39, .18); }
.about-logo img { width: 100%; max-width: 240px; height: auto; display: block; }
.about-body { display: flex; flex-direction: column; gap: 14px; }
.about-body p { margin: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-logo { max-width: 320px; } }

/* footer logo */
.foot-logo { display: inline-block; margin-bottom: 14px; }
.foot-logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps a:not(.step-btn) { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.foot-logo img { margin-left: -14px; }
.signup-form { max-width: 820px; }
.signup-form input[type="text"] { flex: 1 1 180px; }
.signup-form input[type="email"] { flex: 1 1 260px; }

/* round 3: all-caps header, livelier map bulbs */
.tb-links a, .tb-cta, .tb-menu { text-transform: uppercase; letter-spacing: .08em; }
.tb-links a { font-size: 13.5px; }
.tb-cta { font-size: 14px; }
.pin svg { --bs: color-mix(in srgb, var(--b) 45%, #1B2330); filter: drop-shadow(0 2px 3px rgba(16, 24, 36, .35)) saturate(1.15); }
.pin:hover svg { transform: scale(1.12); transform-origin: 50% 100%; }
.pin.sel:hover svg { transform: scale(1.25); }

/* share page (promo toolkit) */
.tb-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.tb-back:hover { background: var(--panel); }
.share { max-width: 1040px; padding-top: 36px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.share-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.tk-chip:hover { border-color: var(--navy); }
.tk-sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; margin-bottom: 18px; }
.tk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tk-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tk-thumb { background: var(--panel); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.tk-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tk-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.tk-body h3 { margin: 0; font-size: 17px; font-weight: 600; }
.tk-desc { margin: 0; font-size: 14px; color: var(--muted); }
.tk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.tk-body > .btn { align-self: flex-start; margin-top: auto; }
.tk-view { font-size: 14px; color: var(--navy); text-underline-offset: 3px; }
.tk-copy { width: 100%; font: 400 14px/1.5 var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--navy); resize: vertical; }
.tk-soon { align-self: flex-start; margin-top: auto; padding: 6px 14px; border-radius: 999px; background: var(--panel); border: 1px dashed var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.share-help { margin-top: 4px; }
.promo-link.tk-feat .promo-d { opacity: .92; }
.promo-more { margin-top: 4px; }
@media (max-width: 860px) { .tb-back { padding: 0 6px; } }
#shareSections { width: 100%; }

/* thank-you page: sharing call to action */
.doc section.share-cta { align-items: flex-start; padding: 30px 28px; border-radius: 18px; background: linear-gradient(135deg, #FFF3D1, #FFE7A8); border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(215, 168, 77, .28); gap: 12px; }
.share-eyebrow { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.share-cta .doc-h { margin: 0; }
.share-cta p { margin: 0; }
.doc .share-chips-row { list-style: none; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.share-chips-row li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gold); font-size: 14px; font-weight: 600; }
.share-cta .btn { min-height: 56px; padding: 0 30px; font-size: 17px; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(169, 14, 29, .3); }
.share-cta .btn:hover { background: var(--burgundy); }
.share-cta-note { font-size: 14px; color: var(--muted); }

.tk-thumb { background: #fff; padding: 10px; border-bottom: 1px solid var(--line); }
.tk-thumb img { max-height: 100%; }

.intro-lead { font-size: 18px; font-weight: 500; margin: 0; }
.intro-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.intro p { margin: 0; }
