:root {
  --navy: #071226;
  --navy-2: #10244a;
  --gold: #d4b05a;
  --gold-soft: #f3e2a8;
  --poke-yellow: #ffcb05;
  --poke-blue: #2a75bb;
  --poke-red: #ee1515;
  --ink: #1b2433;
  --muted: #5b6576;
  --card: #fffdf8;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  min-height: 100dvh;
}

.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.pattern {
  position: absolute;
  inset: 0;
  background-color: #0b1d42;
  background-image:
    url("pattern-tile-lg.jpg"),
    radial-gradient(circle at 20% 20%, rgba(42,117,187,.28), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(238,21,21,.12), transparent 30%);
  background-size: 160px auto, 420px 420px, 520px 520px;
  background-repeat: repeat, no-repeat, no-repeat;
  opacity: .42;
}
.wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(7,18,38,.05), rgba(7,18,38,.62) 72%);
}

.poke {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  user-select: none;
}
.mew { top: 1.5vh; left: 50%; width: min(26vw, 210px); transform: translateX(-50%); animation: float 5.5s ease-in-out infinite; }
.mewtwo { left: 0; bottom: 14vh; width: min(34vw, 300px); }
.gengar { right: 0; top: 12vh; width: min(34vw, 290px); }
.snorlax { right: 3vw; bottom: 0; width: min(40vw, 340px); }

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.card {
  width: min(560px, 94vw);
  background: var(--card);
  border: 3px solid var(--gold);
  border-radius: 36px 36px 28px 28px;
  box-shadow: var(--shadow), inset 0 0 0 6px #fff;
  padding: 2.1rem 1.5rem 1.6rem;
  text-align: center;
  position: relative;
}

.pokeball-mark {
  width: 58px;
  height: 58px;
  margin: -48px auto 8px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: grid;
  place-items: center;
}
.pokeball-mark img { width: 38px; height: 38px; }

.kicker {
  margin: .2rem 0 0;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--poke-blue);
  font-weight: 800;
}

.name {
  margin: .15rem 0 0;
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(3.4rem, 12vw, 5.4rem);
  letter-spacing: .04em;
  color: var(--poke-yellow);
  -webkit-text-stroke: 4px var(--poke-blue);
  paint-order: stroke fill;
  line-height: .9;
}
.name.small { font-size: clamp(2.4rem, 9vw, 3.6rem); -webkit-text-stroke: 3px var(--poke-blue); }

.turning {
  margin: .35rem 0 0;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 800;
  color: var(--ink);
}

.invite {
  margin: .85rem auto 0;
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.45;
}

.details {
  list-style: none;
  margin: 1.2rem 0 1.3rem;
  padding: 0;
  display: grid;
  gap: .75rem;
  text-align: left;
}
.details li {
  background: #f6f1e4;
  border-radius: 14px;
  padding: .7rem .85rem;
}
.details span {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--poke-blue);
  font-weight: 800;
}
.details strong { display: block; margin-top: .15rem; }
.details em { display: block; font-style: normal; color: var(--muted); font-size: .92rem; }
.details a { color: var(--poke-red); }

.pk-btn {
  appearance: none;
  border: 0;
  background: var(--poke-red);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .95rem 1.4rem;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 0 #9d0e0e;
  text-decoration: none;
  display: inline-block;
}
.pk-btn:hover { transform: translateY(-1px); }
.pk-btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #9d0e0e; }
.pk-btn.wide { width: 100%; }
.text-link { color: var(--poke-blue); font-weight: 800; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 22, .78);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 5;
}
.modal.hidden { display: none; }
.modal-inner {
  width: min(560px, 96vw);
  max-height: 92dvh;
  overflow: auto;
  background: var(--card);
  border: 3px solid var(--gold);
  border-radius: 22px;
  padding: 1.2rem 1.1rem 1.3rem;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-inner h2 {
  margin: .15rem 0 1rem;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 2.2rem;
  letter-spacing: .06em;
  color: var(--poke-yellow);
  -webkit-text-stroke: 3px var(--poke-blue);
  paint-order: stroke fill;
}
.close {
  position: absolute;
  right: .8rem;
  top: .45rem;
  background: transparent;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  color: var(--ink);
}

.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .35rem; text-align: left; font-weight: 700; }
.form input[type="text"],
.form input[type="email"],
.form select {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #d7c9a6;
  border-radius: 12px;
  padding: .85rem 1rem;
  font: inherit;
  background: #fff;
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
}
fieldset.attendance {
  border: 1.5px solid #d7c9a6;
  border-radius: 12px;
  padding: .7rem .85rem;
  text-align: left;
}
legend { font-weight: 800; }
label.radio { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
label.radio + label.radio { margin-top: .4rem; }
.form input[type="radio"],
.form input[type="checkbox"] { accent-color: var(--poke-red); width: auto; }
.hp { display: none !important; }

.waiver {
  background: #fff4cc;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: .8rem;
  text-align: left;
}
.waiver.hidden { display: none; }
.waiver p { margin: 0 0 .5rem; }
.waiver-link { color: var(--poke-red); font-weight: 800; display: inline-block; margin-bottom: .55rem; }
.check { display: flex !important; align-items: flex-start; gap: .55rem; grid-template-columns: unset; }

.container { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; position: relative; z-index: 2; }
.login {
  max-width: 380px;
  margin: 8rem auto;
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  border: 3px solid var(--gold);
  position: relative;
  z-index: 2;
}
.login input { width: 100%; padding: .65rem; border-radius: 8px; border: 1px solid #d7c9a6; }
.error { color: #b42318; margin: .5rem 0; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1rem; }
.card-admin, .admin-card { background: #fffdf8; border: 1px solid #d7c9a6; border-radius: 16px; padding: 1rem; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { border-bottom: 1px solid #eadfb8; padding: .5rem; text-align: left; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
  .mewtwo { width: min(34vw, 160px); bottom: 8vh; }
  .gengar { width: min(34vw, 150px); top: 8vh; }
  .snorlax { width: min(42vw, 180px); right: 2vw; }
  .mew { width: min(28vw, 120px); }
}

@media (max-width: 520px) {
  .card { padding: 1.6rem 1rem 1.2rem; }
  .mewtwo, .gengar { opacity: .88; }
}
