:root {
  color-scheme: dark;
  --bg: #071631;
  --panel: #0e2242;
  --border: #29405e;
  --ink: #fff5df;
  --muted: #b6c7e0;
  --gold: #ffc655;
  --orange: #ff9d3e;
  --aqua: #94e8ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 90% 9%, #123560 0%, transparent 45%), var(--bg);
  font: 1rem/1.5 system-ui, sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
.entry-open { overflow: hidden; }
.invite-entry { width: min(480px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.5rem, 5vw, 3rem); text-align: center; color: var(--ink); border: 1px solid #ffc65570; border-radius: 26px; background: radial-gradient(ellipse at top, #254975, #0e2242 65%); box-shadow: 0 24px 100px #0008; }
.invite-entry::backdrop { background: #071631f5; }
.entry-orb { width: 96px; height: 96px; margin: 0 auto 1.5rem; display: grid; place-items: center; border: 2px solid #ffe098; border-radius: 50%; font-size: 1.2rem; letter-spacing: -.1em; color: #b93918; background: radial-gradient(circle at 32% 25%, #fff4b0, #ffb32d 55%, #e96e13); box-shadow: 0 0 55px #ffb32d55; }
.invite-entry h2 { font-size: clamp(2.8rem, 11vw, 4rem); }
.invite-entry > p:not(.eyebrow) { color: var(--muted); }
.invite-entry .button { width: 100%; justify-content: center; margin-top: .8rem; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 75px; border-bottom: 1px solid var(--border); }
.brand, .header-link { text-decoration: none; font-weight: 800; }
.brand { display: flex; align-items: center; gap: .45rem; letter-spacing: .09em; }
.brand-accent, .header-link span, .footer span span { color: var(--gold); }
.orb {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #752900;
  background: radial-gradient(circle at 34% 25%, #fff1a1, #ffad37 62%, #ef6b21);
}
.header-link { font-size: .84rem; padding: .5rem 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .25rem .9rem; }
.music-button {
  min-height: 36px;
  padding: .25rem .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  background: var(--panel);
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 2.5rem; padding-block: 2.5rem 2rem; }
.hero-copy { padding: .8rem 0 1rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero .eyebrow { padding: .4rem .75rem; border: 1px solid #6e562e; border-radius: 999px; background: #ffb5370d; }
h1, h2 { font-family: Impact, 'Arial Black', system-ui, sans-serif; text-transform: uppercase; }
h1 { font-size: clamp(5.2rem, 10vw, 9rem); line-height: .78; letter-spacing: -.035em; margin: 0 0 1.75rem; }
h1 em, h2 em { color: var(--gold); font-style: normal; }
h1 span { color: #ff8032; }
.hero-message { max-width: 33ch; color: var(--muted); font-size: 1.07rem; margin: 0 0 1.45rem; }
.hero-message strong { color: var(--ink); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: .86rem 1.15rem;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #241402;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #ffda87; }
.button:disabled { cursor: wait; opacity: .75; }
.hero-art {
  min-width: 0;
  margin: 0;
}
.montage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid #98dded;
  box-shadow: 0 18px 55px #0005;
}
.dragon-balls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 46px));
  justify-content: center;
  gap: clamp(4px, 1vw, 12px);
  max-width: 460px;
  margin: .65rem auto 0;
  padding: .45rem .6rem;
}
.dragon-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #ffb850;
  background: radial-gradient(circle at 30% 23%, #fff8b7, #ffbc42 45%, #ff8b24 70%, #e7500d);
  box-shadow: inset -2px -4px 7px #b93e1a65, 0 0 14px #ff9d3e4d;
  color: #8e1e13;
  font-size: clamp(.43rem, 1.3vw, .66rem);
  line-height: .92;
  white-space: nowrap;
}
.dragon-ball-last {
  border-color: #ffe098;
  box-shadow: inset -2px -4px 7px #b93e1a65, 0 0 18px #ffb54599;
}
.details { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.detail { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.4rem; }
.detail + .detail { border-left: 1px solid var(--border); }
.detail-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 10px; background: #243a54; color: var(--gold); }
.detail-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-label, .detail strong, .detail small { display: block; }
.detail-label { color: var(--gold); font-size: .64rem; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.detail strong { font-size: 1.06rem; }
.detail small { color: var(--muted); font-size: .85rem; }
.rsvp {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro form" "animation form";
  gap: 1.35rem 2.2rem;
  padding-block: 4rem;
  align-items: start;
  scroll-margin-top: 1.2rem;
}
.rsvp-copy { grid-area: intro; }
#rsvp-form { grid-area: form; }
.saiyan-card {
  grid-area: animation;
  width: min(100%, 300px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.saiyan-stage, .saiyan-powered {
  background-image: url("/assets/oliver-super-saiyajin-azul.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}
.saiyan-stage { position: relative; aspect-ratio: 1; background-position: left top; overflow: hidden; }
.saiyan-powered { position: absolute; inset: 0; background-position: right top; opacity: 0; }
.saiyan-charge, .saiyan-attack { position: absolute; inset: 0; opacity: 0; background-image: url('/assets/oliver-kamehameha.png'); background-size: 200% 100%; background-repeat: no-repeat; }
.saiyan-charge { background-position: left top; }
.saiyan-attack { background-position: right top; }
.saiyan-stage.is-powered.has-kamehameha .saiyan-charge { animation: kame-charge 8s ease-in-out both; }
.saiyan-stage.is-powered.has-kamehameha .saiyan-attack { animation: kame-release 8s ease-in-out both; }
@keyframes kame-charge {
  0%, 24% { opacity: 0; transform: scale(1); }
  34%, 51% { opacity: 1; }
  54% { opacity: 1; transform: scale(1.025); }
  64%, 100% { opacity: 0; transform: scale(1.025); }
}
@keyframes kame-release {
  0%, 52% { opacity: 0; transform: scale(1); }
  62% { opacity: 1; transform: scale(1.035); }
  78%, 100% { opacity: 1; transform: scale(1); }
}
.saiyan-stage.is-powered .saiyan-powered { animation: power-up 1.8s ease-in-out both; }
.saiyan-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 45px 12px #ffba2e;
  opacity: 0;
}
.saiyan-stage.is-powered::after { animation: power-glow 1.8s ease-in-out both; }
@keyframes power-up {
  0%, 22% { opacity: 0; }
  60%, 100% { opacity: 1; }
}
@keyframes power-glow {
  0%, 100% { opacity: 0; }
  45% { opacity: .65; }
}
.saiyan-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; padding: .6rem .7rem; }
.saiyan-caption strong { font-size: .79rem; }
h2 { font-size: clamp(2.35rem, 5vw, 4.15rem); line-height: .98; letter-spacing: .005em; margin: 0 0 1rem; }
.rsvp-copy > p:not(.eyebrow) { max-width: 34ch; color: var(--muted); }
.rsvp-copy .rsvp-deadline { padding: .85rem 1rem; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--panel); }
.rsvp-deadline strong { color: var(--gold); }
form { padding: 1.35rem; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 750; }
input { width: 100%; min-height: 45px; border: 1px solid #4b6385; border-radius: 8px; background: #071833; color: var(--ink); padding: .55rem .65rem; font-size: 1rem; font-weight: 400; }
input::placeholder { color: #9caecc; }
.form-note, .feedback { font-size: .84rem; }
.form-note { color: var(--muted); margin: 1rem 0; }
.feedback { color: var(--aqua); margin: 0; font-weight: 700; }
.feedback:not(:empty) { margin-top: .8rem; }
.feedback[data-error] { color: #ffc0ad; }
.footer { border-top: 1px solid var(--border); padding-block: 1.15rem; color: var(--muted); font-size: .82rem; }
.admin { padding-block: 3rem; }
.admin h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1; }
.admin a { color: var(--gold); }
.records { display: grid; gap: .7rem; list-style: none; padding: 0; }
.records li { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: .85rem 1rem; overflow-wrap: anywhere; }
.records p { margin: 0; }
.records small { color: var(--muted); }
@media (max-width: 740px) {
  .shell { width: min(520px, calc(100% - 2rem)); }
  .masthead { min-height: 57px; }
  .hero, .rsvp { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding-block: 1.1rem; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(4.3rem, 16vw, 6.6rem); margin-bottom: 1rem; }
  .hero-message { margin-bottom: 1rem; }
  .details { grid-template-columns: 1fr; }
  .detail { padding: .85rem 1rem; }
  .detail + .detail { border-left: 0; border-top: 1px solid var(--border); }
  .rsvp { padding-block: 2.5rem; }
  .rsvp { grid-template-areas: "intro" "form" "animation"; grid-template-rows: auto; }
}
@media (max-width: 370px) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .saiyan-stage.is-powered .saiyan-powered { animation: none; opacity: 1; }
  .saiyan-stage.is-powered::after { animation: none; }
  .saiyan-stage.is-powered.has-kamehameha .saiyan-charge { animation: none; opacity: 0; }
  .saiyan-stage.is-powered.has-kamehameha .saiyan-attack { animation: none; opacity: 1; }
}
