:root {
  --lake: #1f8aa8;
  --lake-deep: #14677f;
  --lake-light: #7fc4d8;
  --sunset: #f2a268;
  --sunset-soft: #f7c9a3;
  --pine: #4e7d6e;
  --cream: #f7f1e3;
  --ink: #22332c;
  --muted: #8fa89c;
  --card: #ffffff;
  --red: #c0392b;
  --page-font: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--page-font); }
html[data-textsize="large"] { font-size: 18px; }
html[data-textsize="xl"] { font-size: 20px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(242, 162, 104, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 115%, rgba(31, 138, 168, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #14231c 0%, #0a1410 100%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ---------- background scene: lakeside night ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* starfield */
.stars {
  position: absolute; inset: 0 0 30% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 8%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 30%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 14%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 26%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 6%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 42%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 44%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 60%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 48%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 18%, rgba(255,255,255,0.5) 50%, transparent 51%);
  animation: starTwinkle 5s ease-in-out infinite;
}
@keyframes starTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* drifting snow specks */
.snowfall, .snowfall::after {
  position: absolute; inset: 0;
  content: '';
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 85%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 55%, rgba(255,255,255,0.4) 50%, transparent 51%);
  background-size: 360px 360px;
  animation: snowfall 16s linear infinite;
}
.snowfall::after { background-size: 240px 240px; animation-duration: 11s; opacity: 0.5; }
@keyframes snowfall { from { background-position-y: -360px; } to { background-position-y: 100vh; } }

/* soft out-of-focus holiday lights floating in the dark */
.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.3;
  animation: bokehDrift 12s ease-in-out infinite;
}
.bokeh.b1 { width: 130px; height: 130px; left: 6%; top: 24%; background: var(--sunset); }
.bokeh.b2 { width: 90px; height: 90px; right: 8%; top: 38%; background: var(--lake-light); animation-delay: 2.5s; }
.bokeh.b3 { width: 70px; height: 70px; left: 12%; top: 58%; background: var(--red); animation-delay: 5s; opacity: 0.22; }
.bokeh.b4 { width: 110px; height: 110px; right: 14%; top: 66%; background: var(--pine); animation-delay: 7.5s; opacity: 0.26; }
@keyframes bokehDrift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.08); }
}

/* pine silhouettes along the bottom — echoes the logo's tree line */
.treeline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: min(220px, 24vh);
}

/* keep content above the scene */
.hero, main, footer { position: relative; z-index: 1; }

.hero { padding: 34px 20px 24px; }

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  max-width: 980px;
  margin: 0 auto 20px;
  text-align: center;
}

.logo-link { flex-shrink: 0; }

.logo {
  width: min(221px, 29vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s;
}
.logo-link:hover .logo { transform: scale(1.03); }

.hero-text h1 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.fb-btn:hover { background: #0f65d8; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4); }
.fb-btn:focus-visible { outline: 3px solid var(--lake-light); outline-offset: 2px; }

@media (max-width: 640px) {
  .hero-row { flex-direction: column; text-align: center; gap: 14px; }
  .hero-text h1 { white-space: normal; }
}

/* string of lights — spread evenly across the hero width */
.lights {
  display: flex;
  justify-content: space-evenly;
  max-width: 980px;
  margin: 0 auto 18px;
}
.lights span {
  width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--sunset);
  box-shadow: 0 0 10px 3px rgba(242, 162, 104, 0.5);
  animation: twinkle 1.6s ease-in-out infinite;
}
.lights span:nth-child(3n) { background: var(--red); box-shadow: 0 0 10px 3px rgba(192, 57, 43, 0.45); animation-delay: 0.4s; }
.lights span:nth-child(3n+1) { background: var(--lake-light); box-shadow: 0 0 10px 3px rgba(127, 196, 216, 0.5); animation-delay: 0.8s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.amp { color: var(--sunset); font-style: italic; }
.sub {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 8px;
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.sub-text {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  background: linear-gradient(90deg, #e8a54b, #f7e0a8 30%, #f7c96a 50%, #f7e0a8 70%, #e8a54b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(232, 165, 75, 0.35));
  animation: sub-shimmer 7s linear infinite;
}
@keyframes sub-shimmer {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}
.sub-text::before, .sub-text::after {
  content: "";
  display: inline-block;
  width: clamp(16px, 3vw, 36px);
  height: 2px;
  margin-right: 0.6em;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 165, 75, 0.8));
}
.sub-text::after {
  margin-right: 0.35em;
  margin-left: 0.6em;
  background: linear-gradient(90deg, rgba(232, 165, 75, 0.8), transparent);
}
html[data-motion="reduced"] .sub-text { animation: none; }
html[data-contrast="high"] .sub-text {
  background: none;
  color: var(--sunset-soft);
  filter: none;
}
.awards-row { display: flex; justify-content: center; margin-top: 8px; }
.dates { margin-top: 10px; color: var(--muted); font-size: 0.95rem; letter-spacing: 0.1em; }

main { max-width: 1060px; margin: 0 auto; padding: 9px 20px 44px; }

/* floating pill pinned to the bottom of the viewport — one line, always */
.banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 35;
  max-width: 94vw;
  white-space: nowrap;
  background: rgba(20, 32, 26, 0.92);
  border: 1px solid rgba(242, 162, 104, 0.55);
  border-radius: 999px;
  padding: 11px 22px;
  text-align: center;
  font-size: clamp(0.82rem, 3vw, 1rem);
  color: var(--sunset-soft);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.banner.pop { animation: bannerPop 0.55s cubic-bezier(0.2, 1.5, 0.35, 1); }

.banner.away {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}


/* on phones the Aa button overlaps the pill — lift it above the widget */
@media (max-width: 640px) {
  .banner { bottom: 84px; }
}
@keyframes bannerPop {
  0% { transform: translateX(-50%) translateY(70px) scale(0.5); opacity: 0; }
  70% { transform: translateX(-50%) translateY(-4px) scale(1.06); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* holiday confetti burst around the banner */
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}
.confetti {
  position: absolute;
  left: 50%;
  bottom: 52px;
  animation: confettiFly 1.9s cubic-bezier(0.15, 0.6, 0.4, 1) forwards;
}
.confetti.bit { width: 9px; height: 13px; border-radius: 2px; }
.confetti.bit.round { width: 9px; height: 9px; border-radius: 50%; }
.confetti.glyph { font-size: 17px; line-height: 1; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
@keyframes confettiFly {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
  8% { opacity: 1; transform: translate(calc(var(--dx) * 0.2), calc(var(--dy) * 0.2)) rotate(calc(var(--rot) * 0.2)) scale(1); }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.9); opacity: 0; }
}

/* per-tree vote stats */
.stats { display: flex; gap: 10px; margin-bottom: 8px; }
.stat {
  flex: 1;
  background: rgba(53, 88, 75, 0.07);
  border: 1px solid rgba(53, 88, 75, 0.2);
  border-radius: 10px;
  padding: 7px 6px 6px;
  text-align: center;
}
.stat b { display: block; font-size: 1.25rem; color: var(--pine); line-height: 1.1; }
.stat span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* sponsor website / facebook links */
.sponsor-links { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1.5px solid;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sponsor-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.sponsor-link:focus-visible { outline: 3px solid var(--lake-light); outline-offset: 2px; }
/* website — xmas tree green with wrapping-paper pinstripes */
.sponsor-link.site {
  --pill: var(--brand, #2a6b4a);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--pill);
  background: repeating-linear-gradient(45deg, var(--pill) 0 7px, color-mix(in srgb, var(--pill) 82%, black) 7px 14px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.sponsor-link.site:hover { background: var(--pill); }
.sponsor-link.site:hover { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--pill) 88%, white) 0 7px, var(--pill) 7px 14px); }
/* facebook — solid blue like the Follow the LBO pill */
.sponsor-link.fb {
  color: #fff;
  border-color: transparent;
  background: #1877f2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.sponsor-link.fb:hover { background: #0f65d8; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* uniform cards — same size across the whole grid, like the member directory */
.card {
  position: relative;
  background: linear-gradient(180deg, #eaf3ee 0%, #ddebe2 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 380px;
}
.card:hover { transform: translateY(-3px); border-color: rgba(127, 196, 216, 0.6); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.card.mine { border-color: var(--lake-light); box-shadow: 0 0 0 2px var(--lake-light), 0 14px 34px rgba(0, 0, 0, 0.5); }

/* frame size is fixed by aspect-ratio; the logo is absolutely positioned
   inside so it can never stretch the frame — every card identical */
.photo-wrap {
  position: relative;
  aspect-ratio: 9 / 5;
  background:
    radial-gradient(ellipse 75% 90% at 50% 42%, #fffdf2 0%, rgba(255, 250, 232, 0.55) 45%, transparent 78%),
    linear-gradient(160deg, #f4ebd4, #e6d7b4);
}
.photo {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(20, 35, 28, 0.48));
}
.photo-placeholder {
  aspect-ratio: 9 / 5;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(242, 162, 104, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 75% 90% at 50% 42%, #fffdf2 0%, rgba(255, 250, 232, 0.55) 45%, transparent 78%),
    linear-gradient(160deg, #f4ebd4, #e6d7b4);
  font-size: 4.2rem;
  text-shadow: 0 3px 10px rgba(34, 51, 44, 0.18);
}


/* crowned winner — gold ring, floating crown, ribbon */
.card.winner {
  border-color: rgba(247, 201, 163, 0.9);
  box-shadow: 0 0 0 2px rgba(247, 201, 163, 0.55), 0 10px 34px rgba(247, 201, 163, 0.28), 0 6px 22px rgba(0, 0, 0, 0.35);
}
.card.not-winner { opacity: 0.82; }
.winner-crown {
  position: absolute;
  top: -14px; right: 12px;
  z-index: 3;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  background: radial-gradient(circle at 35% 30%, #fce9c8, #e8b96a 70%, #c99646);
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 224, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(140, 95, 20, 0.45);
  transform: rotate(8deg);
}
.winner-ribbon {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7c9a3, #dfa457);
  color: #4a2e08;
  font-family: Verdana, sans-serif;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-motion="reduced"] .winner-crown { transform: none; }

/* holiday dressing: candy-stripe top edge, ornaments on the numbers */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: 16px 16px 0 0;
  background: repeating-linear-gradient(
    -55deg,
    #c0392b 0px, #c0392b 14px,
    #f7f1e3 14px, #f7f1e3 22px,
    #4e7d6e 22px, #4e7d6e 36px,
    #f7f1e3 36px, #f7f1e3 44px
  );
  z-index: 2;
}
.card .dot { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }
.card:nth-child(even) .dot { background: var(--red); }

/* glyph shadows lift the sponsor names + numbers too */
.sponsor { text-shadow: 0 1px 2px rgba(20, 35, 28, 0.14); }
.card { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.tree-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #7a948a;
}
.tree-num .dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pine); color: #fff;
  font-size: 0.85rem; font-weight: bold; letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(53, 88, 75, 0.35);
}

.sponsor {
  font-size: 1.18rem; color: var(--ink); line-height: 1.3; height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.votes { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.votes .count { font-size: 0.92rem; color: var(--lake-deep); }
.bar { height: 7px; border-radius: 4px; background: rgba(31, 138, 168, 0.12); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 4px;
  background: repeating-linear-gradient(
    -55deg,
    #c0392b 0px, #c0392b 10px,
    #fdfaf2 10px, #fdfaf2 16px
  );
  background-size: 200% 100%;
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: caneSlide 1.4s linear infinite;
  transition: width 0.5s ease;
}
@keyframes caneSlide {
  from { background-position: 0 0; }
  to { background-position: 22.6px 0; }
}

.bar-hint {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: 2px;
  text-align: center;
}

/* Popular tag — earned at 10 votes in a day */
.popular-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c0392b, #a02d21);
  color: #fdfaf2;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(192, 57, 43, 0.4);
  vertical-align: middle;
}

button.vote {
  margin-top: 6px;
  width: 100%;
  padding: 13px 0;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(180deg, #2b9dbf, var(--lake-deep));
  border: none; border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(20, 103, 127, 0.3);
  transition: filter 0.15s ease, transform 0.1s ease;
}
button.vote:hover { filter: brightness(1.08); }
button.vote:active { transform: scale(0.98); }
button.vote:disabled {
  background: rgba(53, 88, 75, 0.12);
  color: #7a948a;
  box-shadow: none;
  cursor: default;
}
.card.mine button.vote:disabled {
  background: linear-gradient(180deg, #f6b98a, var(--sunset));
  color: #5b3a1c;
}

.total { text-align: center; margin-top: 26px; color: var(--lake-light); font-size: 1.05rem; font-weight: bold; }
.rule { text-align: center; margin-top: 8px; color: var(--muted); font-size: 0.9rem; font-style: italic; }

footer {
  position: relative;
  text-align: center;
  height: 168px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}
/* the lake, rolling in at the bottom like the logo's waterline */
.lake {
  position: absolute; left: -10%; right: -10%; bottom: -40px;
  height: 130px;
  background: linear-gradient(180deg, var(--lake) 0%, var(--lake-deep) 100%);
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
  z-index: -1;
}
footer p {
  position: absolute; left: 0; right: 0; bottom: 32px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.toast {
  position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%);
  background: #132219;
  border: 1px solid var(--lake-light);
  color: var(--cream);
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 1rem;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  animation: rise 0.25s ease;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- accessibility widget (ported from snipestudios.com) ---------- */
.a11y-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, #2b9dbf, var(--lake-deep));
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.25rem; font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.a11y-btn:hover { filter: brightness(1.1); }

.a11y-panel {
  position: fixed; right: 18px; bottom: 82px; z-index: 40;
  width: min(300px, calc(100vw - 36px));
  background: #13221a;
  border: 1px solid rgba(127, 196, 216, 0.4);
  border-radius: 14px;
  padding: 16px;
  color: var(--cream);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}
.a11y-panel h4 { font-size: 1rem; margin-bottom: 4px; color: var(--lake-light); }
.a11y-hint { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.a11y-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.95rem;
}
.a11y-seg { display: flex; gap: 6px; }
.a11y-seg button {
  font-family: inherit;
  border: 1px solid rgba(127, 196, 216, 0.4);
  background: transparent;
  color: var(--cream);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.a11y-seg button[aria-pressed="true"] { background: var(--lake-deep); border-color: var(--lake-light); }
.a11y-toggle {
  width: 46px; height: 26px; border-radius: 13px;
  border: 1px solid rgba(127, 196, 216, 0.4);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}
.a11y-toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream);
  transition: left 0.15s ease;
}
.a11y-toggle[aria-checked="true"] { background: var(--lake-deep); }
.a11y-toggle[aria-checked="true"]::after { left: 22px; background: var(--sunset-soft); }

/* high contrast */
html[data-contrast="high"] body { background: #000; }
html[data-contrast="high"] .card { border: 2px solid #fff; }
html[data-contrast="high"] .sponsor { color: #000; }
html[data-contrast="high"] .sub, html[data-contrast="high"] .total { color: #aee6ff; }
html[data-contrast="high"] .dates, html[data-contrast="high"] .rule { color: #d5e8dd; }
html[data-contrast="high"] button.vote:not(:disabled) { background: #0b5d75; border: 2px solid #aee6ff; }

/* reduced motion */
html[data-motion="reduced"] .stars,
html[data-motion="reduced"] .snowfall,
html[data-motion="reduced"] .snowfall::after,
html[data-motion="reduced"] .bokeh,
html[data-motion="reduced"] .lights span,
html[data-motion="reduced"] .toast,
html[data-motion="reduced"] .card,
html[data-motion="reduced"] .bar i,
html[data-motion="reduced"] .banner.pop { animation: none !important; transition: none !important; }

/* simpler look */
html[data-simple="true"] .lights,
html[data-simple="true"] .lake,
html[data-simple="true"] .scene { display: none; }
html[data-simple="true"] .card:hover { transform: none; }
html[data-simple="true"] body { background: #0d1a13; }
html[data-simple="true"] footer { padding-top: 30px; }

/* phones: one card per line, full width — no squeezing needed */
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 21px; }
  .location {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.86rem; color: var(--cream, #f7f1e3); opacity: 0.82;
  margin: 8px 0 0; letter-spacing: 0.02em;
}
.location svg { opacity: 0.75; flex-shrink: 0; }

.hero-actions { justify-content: center; }
  main { padding: 10px 17px 50px; }
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 14px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #e8813c, #d06a24);
  color: #fff; border: none; border-radius: 999px;
  padding: 8px 16px; font-family: inherit; font-size: 0.85rem; letter-spacing: 0.04em;
  cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.share-btn:active { transform: translateY(0); }


/* deep-link spotlight - gold pulse when a tree QR drops you on its card */
.card.spotlight { animation: spotlight-pulse 1.6s ease-in-out 3; position: relative; z-index: 2; }
@keyframes spotlight-pulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(232, 165, 75, 0.85), 0 12px 40px rgba(232, 165, 75, 0.45); }
}
html[data-motion="reduced"] .card.spotlight, html[data-simple="true"] .card.spotlight { animation: none; box-shadow: 0 0 0 4px rgba(232, 165, 75, 0.85); }

/* other voting & awards — header trigger */
.awards-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px dashed rgba(247, 201, 163, 0.6);
  background: rgba(242, 162, 104, 0.12);
  color: var(--sunset-soft);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.awards-link:hover { background: rgba(242, 162, 104, 0.24); border-color: var(--sunset-soft); transform: translateY(-1px); }
.awards-link:focus-visible { outline: 3px solid var(--lake-light); outline-offset: 2px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6, 14, 10, 0.72); backdrop-filter: blur(3px); }
.lightbox-card {
  position: relative;
  width: min(480px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  padding: 0 26px 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  animation: lightbox-pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.lightbox-card::before {
  content: "";
  display: block;
  margin: 0 -26px 18px;
  height: 6px;
  border-radius: 16px 16px 0 0;
  background: repeating-linear-gradient(45deg, var(--red) 0 12px, var(--cream) 12px 24px, #2a6b4a 24px 36px, var(--cream) 36px 48px);
}
@keyframes lightbox-pop {
  from { transform: scale(0.85) translateY(14px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.lightbox-card h2 {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-right: 34px;
}
.lightbox-sub { color: var(--muted); font-size: 0.85rem; margin: 4px 0 16px; }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(34, 51, 44, 0.08);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.lightbox-close:hover { background: rgba(34, 51, 44, 0.16); transform: rotate(90deg); }
.lightbox-close:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }

.awards-list { display: flex; flex-direction: column; gap: 10px; }
.award-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef3ee, #e4ece5);
  border: 1px solid rgba(78, 125, 110, 0.25);
}
.award-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.award-ico.red { background: linear-gradient(180deg, #d94f3d, var(--red)); }
.award-ico.green { background: linear-gradient(180deg, #35805a, #225a3d); }
.award-ico.gold { background: linear-gradient(180deg, #e8a54b, #c77f26); }
.award-item h3 { font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 2px; }
.award-item p { font-size: 0.82rem; color: #4c6357; line-height: 1.45; }

html[data-motion="reduced"] .lightbox-card { animation: none; }
