:root {
  --b: #2b4294;
  --g: #87bf58;
  --r: #db240b;
  --d: #0f1b4c;
  --p: #f5f7fa;
  --c: #c7ddff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #18203a;
  background: white;
}
header {
  height: 68px;
  padding: 0 max(24px, calc((100% - 1080px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1b4c;
  position: sticky;
  top: 0;
  z-index: 2;
}
header b {
  font-size: 21px;
}
header i,
em {
  color: var(--g);
  font-style: normal;
}
header a {
  color: var(--p);
  font-weight: bold;
  text-decoration: none;
}
.site-header .brand img {
  display: block;
  width: 112px;
  height: auto;
}
.hero {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #090d2b;
  padding: 80px max(24px, calc((100% - 1180px) / 2));
  color: white;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 42px;
}
.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 760px;
  height: 760px;
  right: -220px;
  top: -240px;
}
.hero::after {
  width: 500px;
  height: 500px;
  left: -220px;
  bottom: -260px;
  border-color: #e0342b45;
}
.hero-carousel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 390px;
  border: 1px solid #ffffff36;
  border-radius: 22px;
  background: #0d1435;
  box-shadow: 0 22px 60px #0006;
  overflow: hidden;
}
.hero-carousel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: transparent;
}
.carousel-track,
.carousel-slide {
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 5.5s ease;
  background: #090d2b;
}
.carousel-slide:nth-child(2) { background: #10163b; }
.carousel-slide:nth-child(3) { background: #111b43; }
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.carousel-slide img {
  width: min(82%, 620px);
  height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px #0008);
}
.carousel-slide p {
  margin: 0;
  color: #ffffffaa;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #090d2b88;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-control:hover { background: #db240bcc; }
.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }
.carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.carousel-dots button.is-active { background: #db240b; }
.hero-stars,
.hero-stars span {
  position: absolute;
  display: block;
}
.hero-stars {
  inset: 0;
  pointer-events: none;
}
.hero-stars span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
  animation: hero-twinkle 2.8s ease-in-out infinite;
}
.hero-stars span:nth-child(1) { left: 12%; top: 24%; }
.hero-stars span:nth-child(2) { left: 23%; top: 72%; animation-delay: .7s; }
.hero-stars span:nth-child(3) { left: 76%; top: 22%; animation-delay: 1.1s; }
.hero-stars span:nth-child(4) { left: 88%; top: 68%; animation-delay: 1.7s; }
.hero-stars span:nth-child(5) { left: 65%; top: 82%; animation-delay: .4s; }
.hero-stars span:nth-child(6) { left: 44%; top: 14%; animation-delay: 2s; }
.hero-copy {
  position: absolute;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 920px);
  text-align: left;
  
}
.hero-copy > p {
  color: #87bf58;
  font-size: 2.1em!important;
}
.event-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 34px;
}
.event-logos img {
  width: auto;
  max-width: 180px;
  height: 58px;
  object-fit: contain;
}
.event-logos img:nth-child(2) {
  max-width: 220px;
  height: 76px;
}
.hero h1 {
  max-width: 900px;
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: 1px;
}
.hero h1 em {
  color: #f04439;
}
.hero h2 {
  color: #d8defb;
  font-weight: normal;
}
.hero-copy .button { margin-top: 22px; }
.hero-orbit {
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 190px;
  height: 95px;
  border: 1px solid #ffffff4c;
  border-radius: 50%;
  transform: rotate(-24deg);
  animation: orbit-drift 8s ease-in-out infinite;
}
.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  inset: 17px -20px;
  border: 1px solid #e0342b66;
  border-radius: 50%;
  transform: rotate(54deg);
}
.hero-orbit::after {
  inset: 42px 75px;
  background: #e0342b;
  border: 0;
  box-shadow: 0 0 28px #e0342b;
}
.hero-orbit b,
.hero-orbit i,
.hero-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}
.hero-orbit b { left: 12px; top: 25px; }
.hero-orbit i { right: 12px; bottom: 18px; background: #87bf58; box-shadow: 0 0 10px #87bf58; }
.hero-orbit span { left: 50%; top: -4px; background: #e0342b; box-shadow: 0 0 10px #e0342b; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-twinkle { 50% { opacity: .25; transform: scale(.65); } }
@keyframes orbit-drift { 50% { transform: rotate(-20deg) translate(8px, -10px); } }
.hero p,
.register > div > p,
.adminmain > section > p {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--g);
}
h1 {
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  margin: 16px 0;
}
h2,
h3 {
  margin: 10px 0;
}
.button {
  border: 0;
  border-radius: 40px;
  background: var(--g);
  color: var(--d);
  font-weight: bold;
  padding: 15px 24px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  margin-top: 20px;
}
.register {
  background: var(--d);
  padding: 70px max(24px, calc((100% - 1080px) / 2));
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  color: #fff;
}
.register > div h2 {
  font-size: 42px;
}
.register form,
.adminmain section {
  background: #fff;
  color: var(--d);
  padding: 30px;
  border-radius: 20px;
}
.register label,
.admin label {
  display: block;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin: 12px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid #dce2f0;
  background: #f7f9fc;
}
.check {
  font-weight: normal !important;
  line-height: 1.5;
}
.check input {
  display: inline;
  width: auto;
}
.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--b);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #080e26aa;
}
.legal-modal[hidden] {
  display: none;
}
.legal-modal-content {
  position: relative;
  width: min(100%, 520px);
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  color: var(--d);
}
.participant-ticket {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: #f7f9fc;
  border-radius: 10px;
}
.participant-ticket img {
  width: 220px;
  height: 220px;
}
.participant-ticket button {
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  background: #eaf0ff;
  color: var(--b);
  font-weight: bold;
  cursor: pointer;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--d);
  font-size: 26px;
  cursor: pointer;
}
.member {
  display: grid;
  grid-template-columns: 1fr 100px 28px;
  gap: 10px;
  align-items: end;
}
.member button,
.add,
.card button,
header button {
  padding: 8px;
  border: 0;
  border-radius: 7px;
  color: var(--b);
  background: #eaf0ff;
  font-weight: bold;
  cursor: pointer;
}
.success {
  color: #17642f;
  background: #eaf7e8;
  padding: 10px;
  border-radius: 8px;
}
.error {
  color: #9f2626;
  background: #fff0f0;
  padding: 10px;
  border-radius: 8px;
}
footer {
  text-align: center;
  padding: 25px;
  background: #080e26;
  color: #fff;
}
.admin {
  background: var(--p);
}
.adminmain {
  max-width: 1080px;
  margin: auto;
  padding: 65px 24px;
}
.adminmain h1 {
  font-size: 42px;
}
.filters {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.filters input {
  margin: 0;
}
.filters select {
  width: 200px;
  margin: 0;
}
.card {
  background: white;
  border: 1px solid #e1e7f5;
  margin: 13px 0;
  padding: 20px;
  border-radius: 14px;
}
.card h2 {
  font-size: 18px;
}
.card p {
  font-size: 14px;
  line-height: 1.5;
}
.card span {
  font-size: 11px;
  padding: 5px;
  border-radius: 20px;
  background: #fff4d9;
  color: #875c00;
}
.card span.approved {
  background: #eaf7e8;
  color: #17642f;
}
.card span.rejected {
  background: #fff0f0;
  color: #9f2626;
}
.card span.registered {
  background: #eaf0ff;
  color: var(--b);
}
.card span.pre_registered {
  background: #fff4d9;
  color: #875c00;
}
.card span.kit_delivered {
  background: #eaf7e8;
  color: #17642f;
}
.scanner,
.randomizer {
  margin: 16px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e1e7f5;
  border-radius: 14px;
}
.scanner h2,
.randomizer h2 {
  margin-top: 0;
  font-size: 20px;
}
.scanner p,
.randomizer p {
  font-size: 14px;
}
.scanner input,
.randomizer select {
  display: inline-block;
  width: min(100%, 300px);
  margin: 8px 8px 8px 0;
}
.scanner button,
.randomizer button {
  padding: 10px 13px;
  border: 0;
  border-radius: 7px;
  color: var(--b);
  background: #eaf0ff;
  font-weight: bold;
  cursor: pointer;
}
.scanner .camera-button {
  display: block;
  margin: 12px 0;
  background: var(--b);
  color: #fff;
}
#reader {
  max-width: 320px;
  margin: 12px 0;
}
.participant-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.participant-qr {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
  border-bottom: 1px solid #dce2f0;
}
.admin-tabs button {
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #5b6475;
  font-weight: bold;
  cursor: pointer;
}
.admin-tabs button.active {
  border-bottom-color: var(--b);
  color: var(--b);
}
.participant-select {
  display: inline;
  margin: 0;
  font-size: 11px;
  font-weight: normal;
  color: var(--b);
}
.participant-select input {
  display: inline;
  width: auto;
  margin: 0 4px 0 0;
}
.manual-team-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
.manual-team-form input {
  max-width: 300px;
  margin: 0;
}
.manual-team-form button {
  padding: 10px 13px;
  border: 0;
  border-radius: 7px;
  color: var(--b);
  background: #eaf0ff;
  font-weight: bold;
  cursor: pointer;
}
details {
  margin: 15px 0;
  padding: 14px;
  background: #f5f7fa;
  border-radius: 10px;
}
summary {
  font-weight: bold;
  color: var(--b);
  cursor: pointer;
}
details form {
  max-width: 420px;
  padding-top: 8px;
}
@media (max-width: 700px) {
  .register {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .member {
    grid-template-columns: 1fr 70px 25px;
  }
  .filters {
    flex-direction: column;
  }
  .filters select {
    width: 100%;
  }
  .manual-team-form {
    align-items: stretch;
    flex-direction: column;
  }
  .manual-team-form input {
    max-width: none;
  }
  .hero {
    min-height: 620px;
    padding-top: 70px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .event-logos {
    gap: 12px;
    margin-bottom: 26px;
  }
  .event-logos img {
    max-width: 82px;
    height: 38px;
  }
  .event-logos img:nth-child(2) {
    max-width: 112px;
    height: 48px;
  }
  .hero-orbit {
    right: -35px;
    bottom: 4%;
    transform: scale(.72) rotate(-24deg);
  }
  .hero-carousel {
    grid-column: 1;
    grid-row: 1;
    height: 300px;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .carousel-slide img {
    width: 75vw;
    height: 190px;
  }
  .carousel-control { width: 34px; height: 34px; font-size: 24px; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
}
