:root {
  color-scheme: light;
  --green: #124425;
  --dark-green: #0b301b;
  --red: #ce3331;
  --cream: #fffdf5;
  --section-spacing: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #fff;
  background: #103b20;
  font-family: 'Quicksand', sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #f8d36c;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b301b;
  border-bottom: 3px solid #d9bb70;
}
.header-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-brand {
  display: block;
  position: relative;
  width: 130px;
  height: 68px;
  flex: 0 0 130px;
  overflow: hidden;
}
.header-brand img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  max-width: none;
  transform: translate(-50%, -50%);
}
.header-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.header-nav a {
  position: relative;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s ease;
}
.header-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #e6c77a;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.header-nav a:hover, .header-nav a:focus-visible { color: #f6d99a; }
.header-nav a:hover::after, .header-nav a:focus-visible::after { transform: scaleX(1); }
.header-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 21px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .93rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.header-register:hover { background: #96101b; }
#pradzia, #registracija, #remejai, .poster-anchor { scroll-margin-top: 145px; }
.poster-anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.poster-anchor-prizes { top: 41%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The supplied print artwork is displayed at its original proportions. */
.poster { display: flow-root; position: relative; container-type: inline-size; }
.poster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: max(700px, 50vw);
  background-image: linear-gradient(145deg, rgba(6, 43, 21, .91), rgba(16, 77, 35, .82)), url('../2026/background-complete.png');
  background-position: center top, center top;
  background-size: 100vw max(1000px, 50vw), 100vw auto;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 36vw, transparent 45vw);
  mask-image: linear-gradient(to bottom, #000 0, #000 36vw, transparent 45vw);
  transform: scaleX(-1);
  pointer-events: none;
}
@supports (width: 1cqw) {
  .poster::before {
    background-size: 100cqw max(1000px, 50cqw), 100cqw auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 36cqw, transparent 45cqw);
    mask-image: linear-gradient(to bottom, #000 0, #000 36cqw, transparent 45cqw);
  }
}
.poster-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: var(--section-spacing) auto;
  border: 3px solid #e4c880;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.poster-image { width: 100%; height: auto; }
/* Use the updated print artwork for the first participation step. Its content
   is offset by 64 × 74 pixels within the 2653 × 3670 clean poster. */
.poster-steps-update {
  position: absolute;
  left: 2.41236%;
  top: 2.01635%;
  width: 94.64757%;
  height: auto;
  max-width: none;
  clip-path: inset(83.83608% 74.51215% 12.12294% 3.98248%);
  pointer-events: none;
}
.poster-prize {
  position: absolute;
  z-index: 1;
  transform-origin: center 80%;
  transition: transform .35s ease, filter .35s ease;
}
.poster-prize img {
  width: 100%;
  height: auto;
  animation: prize-float 7s ease-in-out infinite;
  animation-delay: var(--prize-delay, 0s);
}
@media (hover: hover) {
  .poster-prize:hover {
    z-index: 2;
    transform: translateY(-2%) scale(1.045);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35));
  }
  .poster-prize:hover img { animation-play-state: paused; }
}
@keyframes prize-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-1.2%) rotate(.6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .poster-prize { transition: none; }
  .poster-prize img { animation: none; }
  .poster-prize:hover { transform: none; }
}
.poster-register {
  position: absolute;
  z-index: 1;
  left: 30%;
  top: 81%;
  width: 30%;
  height: 6%;
  border-radius: 6px;
}
.poster-register:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.poster-action {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 20px var(--section-spacing);
  background: transparent;
}
.poster-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 30px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.poster-action a:hover { background: #96101b; transform: translateY(-2px); }
.poster-action .poster-zoom { display: none; color: var(--green); background: #edf4ed; }
.poster-action .poster-zoom:hover { background: #dfece0; }

/* The registration form remains readable and usable at any screen width. */
.registration {
  padding: var(--section-spacing) 24px;
  border-top: 3px solid #d9bb70;
  border-bottom: 3px solid #d9bb70;
  background: linear-gradient(rgba(6, 50, 23, .74), rgba(6, 50, 23, .86)), url('../2026/background-complete.png') center top / cover;
}
.registration-inner {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.registration-intro { padding-top: 14px; }
.registration-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.registration-intro p { max-width: 390px; line-height: 1.65; }
.registration-intro .eyebrow {
  margin: 0 0 16px;
  color: #f7dda0;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.registration-intro .form-help { color: #f5e8c5; }
.registration-form {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  color: var(--dark-green);
  background: var(--cream);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 800; }
.form-field label span { font-weight: 400; }
.form-field input:not([type='checkbox']), .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  color: #173e26;
  font: inherit;
  background: #fff;
  border: 1px solid #a9bbae;
  border-radius: 8px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #a0aaa3; opacity: 1; }
.form-field input[type='file'] { min-height: 50px; padding: 9px; font-size: .9rem; }
.form-field input[type='file']::file-selector-button {
  margin-right: 12px;
  padding: 7px 11px;
  color: #173e26;
  background: #e4eee4;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.store-autocomplete { position: relative; }
.store-options {
  position: absolute;
  z-index: 8;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 264px;
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  list-style: none;
  color: var(--dark-green);
  background: #fffdf5;
  border: 1px solid #b9cbbb;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(11, 48, 27, .18);
}
.store-options[hidden] { display: none; }
.store-option {
  min-height: 44px;
  padding: 12px;
  border-radius: 6px;
  font-size: .95rem;
  line-height: 1.35;
  cursor: pointer;
}
.store-option:hover, .store-option.is-active { background: #e6f0e5; color: #0b4423; }
.store-autocomplete-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-help { margin: 0; color: #536c59; font-size: .83rem; line-height: 1.5; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: #284c32; font-size: .9rem; line-height: 1.5; }
.form-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #155e31; }
.form-check a { color: #a10e19; text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.form-actions .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.form-actions .button:hover { background: #96101b; }
.form-actions .button:disabled { opacity: .65; cursor: wait; }
#registration-status { flex-basis: 100%; margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.5; }
#registration-status:empty { display: none; }
#registration-status[data-state='error'] { color: #a10e19; }
#registration-status[data-state='success'] { color: #146635; }
.registration-dialog {
  width: min(460px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  padding: clamp(28px, 5vw, 42px);
  border: 2px solid #e4c880;
  border-radius: 20px;
  color: var(--dark-green);
  background: var(--cream);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.registration-dialog::backdrop { background: rgba(3, 23, 12, .72); }
.registration-dialog-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 2px solid #e4c880;
  border-radius: 50%;
  color: #fffdf5;
  background: var(--green);
  font-size: 1.8rem;
  font-weight: 700;
}
.registration-dialog h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; }
.registration-dialog p { margin: 0 0 12px; line-height: 1.55; }
.registration-dialog form { margin-top: 24px; }
.registration-dialog-close {
  min-height: 48px;
  padding: 10px 30px;
  border: 2px solid #e4c880;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.registration-dialog-close:hover { background: #ad2827; }

/* Full game rules: readable on small screens and consistent with the poster. */
.game-rules {
  scroll-margin-top: 145px;
  padding: var(--section-spacing) 24px;
  color: var(--dark-green);
  background: #f8f7ee;
}
.rules-inner { max-width: 1120px; margin: 0 auto; }
.rules-inner h2 {
  margin: 0 0 clamp(18px, 2vw, 24px);
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 900;
}
.rules-content {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(11, 48, 27, .08);
  overflow-wrap: anywhere;
}
.rules-content h3 {
  margin: 2em 0 .7em;
  color: var(--green);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
}
.rules-content h3:first-child { margin-top: 0; }
.rules-content details { border-bottom: 1px solid #dbe6da; }
.rules-content details:last-child { border-bottom: 0; }
.rules-content summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 4px;
  color: var(--green);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color .2s ease;
}
.rules-content summary::-webkit-details-marker { display: none; }
.rules-content summary::after {
  content: '+';
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf2e9;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}
.rules-content details[open] > summary::after { content: '−'; background: var(--green); color: #fff; }
.rules-content summary:hover { color: #bd1722; }
.rules-content summary:focus-visible { outline: 3px solid #b8892a; outline-offset: -3px; border-radius: 6px; }
.rule-body { padding: 0 4px 22px; }
.rule-body > :last-child { margin-bottom: 0; }
.rules-content p, .rules-content li { margin: 0 0 1em; font-size: 1rem; line-height: 1.7; }
.rules-content a { color: #a10e19; text-decoration: underline; }
.rules-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin: 1.25em 0; }
.rules-table-wrap table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.rules-table-wrap th, .rules-table-wrap td { padding: 12px; border: 1px solid #d5e2d6; text-align: left; vertical-align: top; }
.rules-table-wrap th { background: #e8f0e8; color: var(--dark-green); font-weight: 800; }

.sponsors {
  width: min(1120px, calc(100% - 48px));
  margin: var(--section-spacing) auto;
  padding: clamp(28px, 3vw, 40px) 20px;
  border: 2px solid #e4c880;
  border-radius: 20px;
  background: var(--cream);
  color: var(--dark-green);
}
.sponsors-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.sponsors h2 { display: inline-block; margin: 0 0 16px; padding: 10px 26px; border-radius: 999px; background: var(--green); color: #fff; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; text-transform: uppercase; }
.sponsors-list { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: center; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.sponsors-list li { min-width: 0; }
.sponsors-list img { width: 100%; height: 90px; object-fit: contain; }

.site-footer { background: #0b301b; border-top: 3px solid #d9bb70; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 20px;
}
.footer-brand { position: relative; display: block; flex: 0 0 130px; width: 130px; height: 72px; overflow: hidden; }
.footer-brand img { position: absolute; top: 50%; left: 50%; width: 165px; max-width: none; transform: translate(-50%, -50%); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-nav a, .footer-bottom a { color: #fff; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: #f6d99a; }
.footer-bottom {
  display: flex;
  flex: 0 0 100%;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.footer-bottom p { margin: 0; color: #d5e1d5; font-size: 1rem; }

@media (max-width: 800px) {
  .poster-inner { width: min(700px, calc(100% - 48px)); }
  .header-inner, .footer-inner { width: min(700px, calc(100% - 48px)); }
  .registration-inner { grid-template-columns: 1fr; gap: 20px; max-width: 700px; }
  .registration-intro { padding-top: 0; }
  .sponsors { width: min(700px, calc(100% - 48px)); }
  .rules-inner { max-width: 700px; }
  .sponsors-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 900px) {
  .header-inner { gap: 8px; }
  .header-brand { width: 82px; flex-basis: 82px; }
  .header-nav { gap: 8px; }
  .header-nav a { font-size: 1.125rem; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 0 8px; padding: 10px 0 18px; }
  .header-brand { width: 72px; height: 58px; flex-basis: 72px; margin-right: auto; }
  .header-brand img { width: 72px; }
  .header-register { min-height: 40px; padding: 9px 15px; font-size: .82rem; }
  .header-nav { order: 3; justify-content: space-between; width: 100%; gap: 4px; padding-top: 4px; }
  .header-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.2rem; letter-spacing: 0; }
  .header-nav a::after { bottom: 5px; }
  #pradzia, #registracija, #remejai, #taisykles, .poster-anchor { scroll-margin-top: 145px; }
}
@media (max-width: 600px) {
  :root { --section-spacing: 16px; }
  .poster-inner { width: calc(100% - 40px); margin: var(--section-spacing) auto; border-width: 2px; border-radius: 14px; }
  .header-inner { width: calc(100% - 40px); }
  .poster-action { display: flex; }
  .poster-action a { width: 100%; max-width: 360px; }
  .poster-action .poster-zoom { display: inline-flex; }
  .registration { padding: var(--section-spacing) 20px; }
  .game-rules { padding-left: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field.full { grid-column: auto; }
  .footer-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: calc(100% - 40px); gap: 12px; padding: 22px 0 26px; }
  .footer-brand { width: 130px; }
  .footer-nav { justify-content: space-between; flex-wrap: nowrap; width: 100%; gap: 8px; text-align: center; }
  .footer-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-size: clamp(.95rem, 4vw, 1.2rem); line-height: 1.3; white-space: nowrap; }
  .footer-bottom { width: 100%; flex: none; justify-content: center; margin-top: 6px; padding-top: 18px; border-top-color: rgba(228, 200, 128, .35); }
  .sponsors { width: calc(100% - 40px); padding: 28px 16px; border-radius: 14px; }
  .sponsors h2 { margin-bottom: 14px; padding: 10px 22px; }
  .sponsors-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
  .sponsors-list img { height: 74px; }
}
@media (max-width: 350px) {
  .header-nav a { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-nav a, .header-nav a::after { transition: none; }
  .poster-action a { transition: none; }
  .rules-content summary { transition: none; }
}

/* Šventinės detalės išdėstytos už turinio, kad jis liktų lengvai skaitomas. */
.site-header::after,
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background-image:
    radial-gradient(circle, #f4d582 0 2px, transparent 3px),
    radial-gradient(circle, #e94d3f 0 2px, transparent 3px),
    radial-gradient(circle, #a5d8b3 0 2px, transparent 3px);
  background-size: 120px 4px;
  background-position: 0 0, 40px 0, 80px 0;
  background-repeat: repeat-x;
  pointer-events: none;
  animation: christmas-lights 4.5s ease-in-out infinite alternate;
}
.site-header::after { position: absolute; inset: auto 0 -2px; }
.site-footer::before { opacity: .8; }

.registration { position: relative; isolation: isolate; overflow: hidden; }
.registration-inner { position: relative; z-index: 1; }
.registration-intro .eyebrow { animation: christmas-sparkle 4s ease-in-out infinite alternate; }

.sponsors {
  background-image:
    radial-gradient(circle at 5% 18%, rgba(215,178,102,.14) 0 3px, transparent 4px),
    radial-gradient(circle at 94% 30%, rgba(215,178,102,.14) 0 4px, transparent 5px),
    radial-gradient(circle at 9% 82%, rgba(215,178,102,.11) 0 2px, transparent 3px);
}
.sponsors h2::before, .sponsors h2::after {
  content: '✦';
  display: inline-block;
  margin: 0 .5em;
  color: #f3d99b;
  font-size: .72em;
  animation: christmas-sparkle 4s ease-in-out infinite alternate;
}
.sponsors-list a {
  display: block;
  border-radius: 12px;
  transition: transform .24s ease, background-color .24s ease, box-shadow .24s ease;
}
.sponsors-list a:hover, .sponsors-list a:focus-visible {
  transform: translateY(-5px);
  background-color: #fbf8ed;
  box-shadow: 0 8px 22px rgba(18,68,37,.1);
}
.header-register, .form-actions .button {
  gap: 10px;
  padding: 6px 7px 6px 19px;
  border: 2px solid #e6c77a;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(230,199,122,.15), 0 6px 18px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header-register span, .form-actions .button span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fffaf0;
  color: #aa2726;
  font-size: 1rem;
  line-height: 1;
}
.header-register {
  padding: 7px 8px 7px 23px;
  font-size: 1.25rem;
  white-space: nowrap;
}
.header-register span { flex-basis: 36px; width: 36px; height: 36px; }
.header-register:hover, .form-actions .button:hover { background: var(--red); }
.header-register:hover, .form-actions .button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(230,199,122,.25), 0 10px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3);
}
.header-register:focus-visible, .form-actions .button:focus-visible {
  outline: 3px solid #b8892a;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .header-register { gap: 7px; padding: 5px 6px 5px 16px; font-size: 1rem; }
  .header-register span { flex-basis: 30px; width: 30px; height: 30px; }
}
@media (max-width: 350px) {
  .header-register { padding-left: 12px; font-size: .9rem; }
}

@keyframes christmas-lights { from { opacity: .5; } to { opacity: 1; } }
@keyframes christmas-sparkle { from { opacity: .62; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .site-header::after, .site-footer::before,
  .registration-intro .eyebrow, .sponsors h2::before, .sponsors h2::after { animation: none; }
  .sponsors-list a, .header-register, .form-actions .button { transition: none; }
  .sponsors-list a:hover, .sponsors-list a:focus-visible,
  .header-register:hover, .form-actions .button:not(:disabled):hover { transform: none; }
}

/* Brighter Christmas lights, ornaments and snow, kept clear of the content. */
.site-header::after,
.site-footer::before {
  height: 13px;
  background-image:
    radial-gradient(ellipse 4px 6px at 10px 6px, #fff5b0 0 35%, #ffd43f 65%, transparent 75%),
    radial-gradient(ellipse 4px 6px at 40px 6px, #ffb4a8 0 35%, #ff433c 65%, transparent 75%),
    radial-gradient(ellipse 4px 6px at 70px 6px, #d3ffe0 0 35%, #55ed91 65%, transparent 75%),
    radial-gradient(ellipse 4px 6px at 100px 6px, #e0f7ff 0 35%, #72ceff 65%, transparent 75%);
  background-size: 120px 13px;
  background-position: 0 0;
  filter: drop-shadow(0 0 6px #ffe390);
  animation: festive-lights 2.4s ease-in-out infinite alternate;
}
.site-header::after { bottom: -6px; }

html[data-lights-mode='0'] .site-header::after,
html[data-lights-mode='0'] .site-footer::before {
  animation: festive-lights 2.4s ease-in-out infinite alternate;
}
html[data-lights-mode='1'] .site-header::after,
html[data-lights-mode='1'] .site-footer::before {
  animation: festive-lights-chase 2.4s steps(4, end) infinite;
}
html[data-lights-mode='2'] .site-header::after,
html[data-lights-mode='2'] .site-footer::before {
  animation: festive-lights-alternate 2.8s steps(1, end) infinite;
}

.poster-action {
  position: relative;
  align-items: center;
}

.registration-form { box-shadow: 0 0 0 3px rgba(248,214,132,.75), 0 20px 50px rgba(0,0,0,.3); }
.registration-intro .eyebrow { animation: christmas-sparkle 2s ease-in-out infinite alternate; }

.sponsors {
  background-image:
    radial-gradient(circle at 4% 16%, rgba(230,46,47,.24) 0 5px, transparent 6px),
    radial-gradient(circle at 95% 30%, rgba(227,176,67,.35) 0 7px, transparent 8px),
    radial-gradient(circle at 6% 82%, rgba(39,144,91,.22) 0 5px, transparent 6px),
    radial-gradient(circle at 94% 82%, rgba(230,46,47,.2) 0 5px, transparent 6px);
}
.sponsors h2::before, .sponsors h2::after { animation: festive-star 2.8s ease-in-out infinite alternate; }
.sponsors-list a:hover, .sponsors-list a:focus-visible { transform: none; }
.game-rules {
  background-image:
    radial-gradient(circle at 2% 4%, rgba(198,34,43,.18) 0 4px, transparent 5px),
    radial-gradient(circle at 98% 8%, rgba(227,176,67,.3) 0 6px, transparent 7px),
    radial-gradient(circle at 3% 95%, rgba(20,120,65,.16) 0 5px, transparent 6px);
}

@keyframes festive-lights {
  from { opacity: .7; filter: brightness(.85) drop-shadow(0 0 3px #ffe390); }
  to { opacity: 1; filter: brightness(1.45) drop-shadow(0 0 9px #ffdf78); }
}
@keyframes festive-lights-chase {
  from { background-position: 0 0; opacity: 1; filter: brightness(1.3) drop-shadow(0 0 8px #ffe390); }
  to { background-position: 120px 0; opacity: 1; filter: brightness(1.3) drop-shadow(0 0 8px #ffe390); }
}
@keyframes festive-lights-alternate {
  0%, 49.9% {
    opacity: 1;
    filter: drop-shadow(0 0 7px #ffe390);
    background-image:
      radial-gradient(ellipse 4px 6px at 10px 6px, #fff5b0 0 35%, #ffd43f 65%, transparent 75%),
      radial-gradient(ellipse 4px 6px at 40px 6px, #9c3732 0 65%, transparent 75%),
      radial-gradient(ellipse 4px 6px at 70px 6px, #d3ffe0 0 35%, #55ed91 65%, transparent 75%),
      radial-gradient(ellipse 4px 6px at 100px 6px, #4e839d 0 65%, transparent 75%);
  }
  50%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 7px #ffe390);
    background-image:
      radial-gradient(ellipse 4px 6px at 10px 6px, #9c823b 0 65%, transparent 75%),
      radial-gradient(ellipse 4px 6px at 40px 6px, #ffb4a8 0 35%, #ff433c 65%, transparent 75%),
      radial-gradient(ellipse 4px 6px at 70px 6px, #43845c 0 65%, transparent 75%),
      radial-gradient(ellipse 4px 6px at 100px 6px, #e0f7ff 0 35%, #72ceff 65%, transparent 75%);
  }
}
@keyframes festive-star { from { opacity: .7; transform: scale(.9) rotate(-12deg); } to { opacity: 1; transform: scale(1.2) rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .site-header::after, .site-footer::before,
  .registration-intro .eyebrow,
  .sponsors h2::before, .sponsors h2::after { animation: none; }
  html[data-lights-mode] .site-header::after,
  html[data-lights-mode] .site-footer::before { animation: none; opacity: 1; }
}

/* Black is removed by screen blending; the faint snow stays fixed while scrolling. */
.snow-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 1s ease;
}
.snow-video.is-playing { opacity: .14; }
@supports not (mix-blend-mode: screen) {
  .snow-video { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .snow-video { display: none; }
}

/* A festive backdrop for the rules, with the text kept on a light surface. */
.game-rules {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #103b20;
  background-image: none;
  border-bottom: 3px solid #d9bb70;
}
.game-rules::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(145deg, rgba(6, 43, 21, .91), rgba(16, 77, 35, .82)), url('../2026/background-complete.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleX(-1);
}
.rules-inner { position: relative; z-index: 1; }
.rules-inner h2 { color: #fffdf3; text-shadow: 0 3px 14px rgba(0, 0, 0, .24); }
.rules-content {
  color: var(--dark-green);
  background: #fffdf5;
  border: 2px solid #e4c880;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}
.rules-content details { border-bottom-color: #e4dcc4; }
.rules-content summary::after { background: var(--red); color: #fff; }
.rules-content details[open] > summary::after { background: var(--green); color: #fff; }
