:root {
  --court: #075536;
  --court-dark: #032d20;
  --deep: #021e16;
  --midnight: #011810;
  --lime: #d7f24a;
  --lime-soft: #efff9a;
  --coral: #ff765f;
  --gold: #f5bf49;
  --cream: #fff8e7;
  --mint: #d9f5dc;
  --muted: #a7cdb6;
  --ink: #123323;
  --max: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(215, 242, 74, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 35%, rgba(255, 118, 95, 0.12), transparent 28rem),
    #021e16;
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "DM Sans", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-frame {
  position: relative;
  width: min(100%, var(--max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.38);
}

.section {
  position: relative;
  padding: clamp(60px, 7vw, 108px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.7px;
}

.section h2 {
  margin: 0 0 30px;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -1.8px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--lime), #acd91e);
  color: #173318;
  box-shadow: 0 10px 25px rgba(215, 242, 74, 0.24);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button-primary span {
  font-size: 17px;
  line-height: 1;
}

.button-primary:hover {
  filter: saturate(1.2);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(215, 242, 74, 0.31);
}

.button-primary:focus-visible,
.copy-btn:focus-visible,
.audio-fab:focus-visible,
.schedule-card a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* COVER */
.cover-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(215, 242, 74, 0.26), transparent 26%),
    radial-gradient(circle at 15% 84%, rgba(255, 118, 95, 0.21), transparent 30%),
    linear-gradient(145deg, #0a623e 0%, #03291d 48%, #01150f 100%);
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.cover-screen.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.court-grid {
  position: absolute;
  inset: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 248, 231, 0.26);
  border-radius: clamp(20px, 3vw, 34px);
}

.court-grid::before,
.court-grid::after {
  position: absolute;
  content: "";
  background: rgba(255, 248, 231, 0.18);
}

.court-grid::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.court-grid::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.cover-orbit {
  position: absolute;
  border: 1px solid rgba(215, 242, 74, 0.22);
  border-radius: 50%;
}

.orbit-one {
  top: -200px;
  right: -170px;
  width: 440px;
  height: 440px;
}

.orbit-two {
  bottom: -145px;
  left: -145px;
  width: 300px;
  height: 300px;
  border-color: rgba(255, 118, 95, 0.25);
}

.cover-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  padding: 32px clamp(22px, 6vw, 52px);
  text-align: center;
}

.cover-visual {
  position: relative;
  width: clamp(170px, 20vw, 215px);
  height: clamp(190px, 23vw, 240px);
  margin: 10px auto 5px;
}

.cover-racket {
  position: absolute;
  top: -6px;
  left: 8px;
  width: 92%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.36));
}

.cover-ball,
.hit-ball,
.closing-ball {
  border: 2px solid rgba(6, 55, 30, 0.44);
  border-radius: 50%;
  background:
    linear-gradient(
      130deg,
      transparent 43%,
      rgba(6, 69, 38, 0.64) 44%,
      rgba(6, 69, 38, 0.64) 52%,
      transparent 53%
    ),
    var(--lime);
}

.cover-ball {
  position: absolute;
  top: 25px;
  right: 0;
  width: 37px;
  height: 37px;
  box-shadow: 0 0 26px rgba(215, 242, 74, 0.65);
  animation: float 2.7s ease-in-out infinite;
}

.cover-content h1 {
  margin-top: 3px;
  font-family: "Playfair Display", serif;
  font-size: clamp(45px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -2.5px;
}

.cover-content h1 span,
.cover-content h1 em {
  display: block;
}

.cover-content h1 em {
  margin: 3px 0;
  color: var(--coral);
  font-size: 0.48em;
  font-style: normal;
}

.cover-date {
  margin: 17px 0 28px;
  color: var(--lime-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
}

.guest-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 28px;
}

.guest-note span {
  color: var(--mint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.guest-note strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 27px);
}

.tap-hint {
  margin-top: 13px;
  color: var(--mint);
  font-size: 10px;
}

/* TRANSITION */
.padel-transition {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  width: min(100%, var(--max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(215, 242, 74, 0.24), transparent 25%),
    linear-gradient(135deg, #063b27, #011a11);
}

.padel-transition.active {
  visibility: visible;
  opacity: 1;
}

.padel-transition.done {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.transition-lines {
  position: absolute;
  inset: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
}

.transition-lines::before,
.transition-lines::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.17);
}

.transition-lines::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.transition-lines::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.swing-racket {
  position: absolute;
  top: 32px;
  left: -250px;
  width: clamp(210px, 24vw, 270px);
  opacity: 0;
  transform: rotate(-45deg);
}

.swing-racket svg {
  width: 100%;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.32));
}

.hit-ball {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 46px;
  height: 46px;
  opacity: 0;
  box-shadow: 0 0 32px rgba(215, 242, 74, 0.72);
}

.ball-trail {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 0;
  height: 4px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--lime), var(--coral));
  transform: rotate(-23deg);
}

.transition-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
}

.transition-copy p {
  margin-bottom: 13px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.transition-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
}

.transition-copy i {
  color: var(--coral);
  font-style: normal;
}

.padel-transition.active .swing-racket {
  animation: swing 1.05s cubic-bezier(0.2, 0.75, 0.4, 1) 0.1s forwards;
}

.padel-transition.active .hit-ball {
  animation: hit 1.6s cubic-bezier(0.18, 0.72, 0.28, 1) 0.72s forwards;
}

.padel-transition.active .ball-trail {
  animation: trail 0.8s ease-out 0.78s forwards;
}

.padel-transition.active .transition-copy {
  animation: appear 0.7s ease 1.82s forwards;
}

/* MAIN */
.main-content {
  opacity: 0;
  transition: opacity 1s ease;
}

.main-content.visible {
  opacity: 1;
}

/* HERO */
.hero-story {
  background:
    radial-gradient(circle at 87% 16%, rgba(215, 242, 74, 0.24), transparent 22%),
    linear-gradient(145deg, #0c6b44, #043021 72%);
}

.story-layout {
  position: relative;
  max-width: 800px;
  padding: clamp(22px, 4vw, 35px);
  overflow: hidden;
  border: 1px solid rgba(215, 242, 74, 0.45);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.18);
}

.story-layout p {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: clamp(17px, 2vw, 23px);
  font-style: italic;
  line-height: 1.62;
}

.story-layout span {
  display: block;
  margin-top: 16px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.story-ball {
  position: absolute;
  top: -32px;
  right: 10px;
  color: rgba(215, 242, 74, 0.18);
  font-size: 100px;
}

/* PLAYERS */
.players-section {
  background:
    radial-gradient(circle at 8% 86%, rgba(255, 118, 95, 0.16), transparent 24%),
    #042b1e;
}

.section-heading {
  max-width: 370px;
}

.players-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: start;
  gap: clamp(10px, 2vw, 24px);
  max-width: 900px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--lime);
  border-radius: 100px 100px 18px 18px;
  background: #0e5537;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.player-card:nth-child(3) .photo-frame {
  border-color: var(--coral);
}

.photo-frame b {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--court-dark);
  font-size: 10px;
}

.player-card:nth-child(3) .photo-frame b {
  background: var(--coral);
  color: #fff8e7;
}

.player-side {
  margin: 14px 0 6px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.player-card:nth-child(3) .player-side {
  color: var(--coral);
}

.player-card h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.12;
}

.parents {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.52;
}

.rally-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-top: clamp(90px, 15vw, 150px);
}

.rally-mark span {
  width: 1px;
  height: 30px;
  background: rgba(215, 242, 74, 0.6);
}

.rally-mark b {
  color: var(--coral);
  font-family: "Playfair Display", serif;
  font-size: 25px;
}

/* SCHEDULE */
.schedule-section {
  background:
    radial-gradient(circle at 85% 90%, rgba(215, 242, 74, 0.16), transparent 25%),
    #075536;
}

.schedule-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.schedule-card {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 16px;
  padding: clamp(18px, 3vw, 27px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 4px solid var(--lime);
  border-radius: 17px;
  background: rgba(1, 27, 18, 0.42);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.schedule-card:nth-child(2) {
  border-left-color: var(--coral);
}

.match-number {
  color: var(--lime);
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 34px);
}

.schedule-card:nth-child(2) .match-number {
  color: var(--coral);
}

.card-label {
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.schedule-card:nth-child(2) .card-label {
  color: var(--coral);
}

.schedule-card h3 {
  margin-bottom: 11px;
  font-size: 13px;
  letter-spacing: 0.7px;
}

.schedule-card div p:not(.card-label) {
  margin-bottom: 4px;
  font-size: 12px;
}

.venue {
  margin-top: 11px !important;
  color: var(--cream);
  font-weight: 800;
}

.address {
  color: var(--mint);
  line-height: 1.45;
}

.schedule-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.schedule-card:nth-child(2) a {
  color: var(--coral);
}

.schedule-card a span {
  margin-left: 5px;
}

.schedule-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 16px;
}

.schedule-card .card-actions a {
  margin-top: 0;
}

.countdown-wrap {
  max-width: 900px;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.countdown-wrap > p {
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(7px, 1vw, 14px);
}

.countdown-grid div {
  padding: 12px 4px;
  border: 1px solid rgba(215, 242, 74, 0.48);
  border-radius: 13px;
  background: rgba(1, 27, 18, 0.34);
}

.countdown-grid strong {
  display: block;
  color: var(--lime);
  font-size: clamp(20px, 2vw, 28px);
}

.countdown-grid small {
  color: var(--mint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* FORMS */
.rsvp-section {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 118, 95, 0.24), transparent 24%),
    linear-gradient(150deg, #fff8e7, #e9ffd4);
}

.rsvp-section .eyebrow {
  color: #b83f2d;
}

.rsvp-section h2 {
  color: #06472e;
}

.rsvp-intro p:last-child {
  max-width: 600px;
  margin-bottom: 26px;
  color: #456c57;
  font-size: 13px;
  line-height: 1.65;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 800px;
}

.form-card label {
  margin-top: 8px;
  color: #33634c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid #b9d7be;
  border-radius: 10px;
  outline: 0;
  padding: 13px;
  background: rgba(255, 255, 255, 0.96);
  color: #143c29;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--court);
  box-shadow: 0 0 0 4px rgba(7, 85, 54, 0.12);
}

.form-card textarea {
  min-height: 112px;
  resize: vertical;
}

.response-row {
  display: flex;
  gap: 9px;
  margin: 3px 0 10px;
}

.response-option {
  position: relative;
  flex: 1;
  margin-top: 0 !important;
  border: 1px solid #b9d7be;
  border-radius: 10px;
  padding: 11px 8px;
  color: #456c57 !important;
  font-size: 10px !important;
  text-align: center;
  transition: all 0.2s ease;
}

.response-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.response-option:has(input:checked) {
  border-color: var(--coral);
  background: #fff0da;
  color: #af3e2e !important;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(255, 118, 95, 0.15);
}

.form-status {
  min-height: 19px;
  margin-top: 5px;
  text-align: center;
  font-size: 11px;
}

/* GIFT */
.gift-section {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 118, 95, 0.17), transparent 25%),
    #042b1e;
}

.gift-copy {
  max-width: 650px;
  margin: -10px 0 24px;
  color: var(--mint);
  font-size: 13px;
  line-height: 1.68;
}

.gift-list {
  display: grid;
  gap: 12px;
  max-width: 850px;
}

.gift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.19);
}

.gift-bank {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.gift-number {
  margin: 5px 0;
  color: var(--cream);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 800;
  word-break: break-word;
}

.gift-owner {
  color: var(--muted);
  font-size: 10px;
}

.copy-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--coral);
  color: #fff8e7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.copy-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* GALLERY */
.gallery-section {
  background:
    radial-gradient(circle at 90% 18%, rgba(215, 242, 74, 0.18), transparent 24%),
    #0c6b44;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  grid-auto-rows: clamp(94px, 12vw, 150px);
  gap: 9px;
  max-width: 980px;
  margin-bottom: 22px;
}

.gallery-grid img {
  min-width: 0;
  border: 1px solid rgba(215, 242, 74, 0.55);
  border-radius: 12px;
  background: #063b27;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-grid img:hover {
  filter: saturate(1.1);
  transform: scale(1.02);
}

.gallery-grid img:first-child {
  grid-row: span 2;
}

.gallery-grid img:nth-child(4) {
  grid-column: span 2;
}

.video-wrap {
  width: 100%;
  max-width: 980px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(215, 242, 74, 0.5);
  border-radius: 16px;
  background: #011a11;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* GUESTBOOK */
.guestbook-section {
  background:
    radial-gradient(circle at 8% 78%, rgba(255, 118, 95, 0.18), transparent 25%),
    #03261a;
}

.guestbook-section .form-card label {
  color: var(--lime-soft);
}

.guestbook-section .form-card input,
.guestbook-section .form-card textarea {
  border-color: rgba(215, 242, 74, 0.42);
  background: rgba(255, 255, 255, 0.96);
}

.guestbook-section .form-status {
  color: var(--lime-soft);
}

.guest-feed {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 800px;
  max-height: 350px;
  margin-top: 28px;
  overflow: auto;
  padding-right: 4px;
}

.feed-item {
  padding: 14px;
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.07);
}

.feed-name {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
}

.feed-message {
  margin-top: 6px;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.feed-time {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.feed-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* NOTES */
.notes-section {
  background:
    radial-gradient(circle at 87% 12%, rgba(215, 242, 74, 0.16), transparent 23%),
    #075536;
}

.notes-grid {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.note-card {
  padding: clamp(18px, 3vw, 25px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(1, 27, 18, 0.28);
}

.note-card p:not(.card-label) {
  color: var(--mint);
  font-size: 12px;
  line-height: 1.64;
}

.swatches {
  display: flex;
  gap: 9px;
  margin-top: 15px;
}

.swatches i {
  width: 29px;
  height: 29px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--court);
}

.swatches i:nth-child(2) {
  background: var(--lime);
}

.swatches i:nth-child(3) {
  background: var(--cream);
}

.swatches i:nth-child(4) {
  background: var(--coral);
}

.timeline {
  display: grid;
  gap: 15px;
}

.timeline-item {
  position: relative;
  padding-left: 15px;
  border-left: 1px solid var(--lime);
}

.timeline-item::before {
  position: absolute;
  top: 1px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.timeline-year {
  color: var(--lime) !important;
  font-size: 10px !important;
  font-weight: 800;
}

.timeline-text {
  margin-top: 4px;
}

/* CLOSING */
.closing-section {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(215, 242, 74, 0.28), transparent 44%),
    linear-gradient(145deg, #063b27, #011a11);
}

.closing-section h2,
.closing-section > p,
.closing-section strong {
  position: relative;
}

.closing-section > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--mint);
  font-size: 13px;
  line-height: 1.72;
}

.closing-section strong {
  display: block;
  margin-top: 26px;
  color: var(--coral);
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 38px);
}

.closing-lines {
  position: absolute;
  inset: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
}

.closing-ball {
  position: relative;
  width: 45px;
  height: 45px;
  margin-top: 24px;
  opacity: 0.86;
  box-shadow: 0 0 23px rgba(215, 242, 74, 0.48);
}

/* AUDIO */
.audio-fab {
  position: fixed;
  z-index: 500;
  right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--coral);
  color: #fff8e7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s ease;
}

.audio-fab:hover {
  transform: translateY(-2px);
}

.audio-fab svg {
  width: 21px;
  height: 21px;
}

/* TABLET */
@media (min-width: 700px) {
  .section {
    padding-right: clamp(42px, 7vw, 88px);
    padding-left: clamp(42px, 7vw, 88px);
  }

  .hero-story .story-layout {
    max-width: 760px;
  }

  .players-layout {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  }

  .schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-card:last-child {
    grid-column: 1 / -1;
  }

  .rsvp-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
    align-items: start;
    gap: clamp(32px, 6vw, 80px);
  }

  .rsvp-intro p:last-child {
    margin-bottom: 0;
  }
}

/* DESKTOP */
@media (min-width: 980px) {
  .main-content.visible .section {
    padding-right: 9%;
    padding-left: 9%;
  }

  .hero-story {
    min-height: 530px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .players-section .section-heading {
    margin-bottom: 40px;
  }

  .players-layout {
    max-width: 780px;
  }

  .photo-frame {
    border-radius: 150px 150px 25px 25px;
  }

  .schedule-section > h2,
  .schedule-section > .eyebrow,
  .gift-section > h2,
  .gift-section > .eyebrow,
  .gallery-section > h2,
  .gallery-section > .eyebrow,
  .guestbook-section > h2,
  .guestbook-section > .eyebrow,
  .notes-section > h2,
  .notes-section > .eyebrow {
    max-width: 900px;
  }

  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .note-card:last-child {
    grid-column: auto;
  }

  .closing-section {
    min-height: 620px;
  }
}

/* SMALL PHONES */
@media (max-width: 390px) {
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cover-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cover-content h1 {
    font-size: 42px;
  }

  .players-layout {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 7px;
  }

  .rally-mark {
    padding-top: 76px;
  }

  .rally-mark span {
    height: 20px;
  }

  .player-card h3 {
    font-size: 18px;
  }

  .parents {
    font-size: 10px;
  }

  .schedule-card {
    grid-template-columns: 35px 1fr;
    gap: 11px;
    padding: 16px 13px;
  }

  .response-row {
    flex-direction: column;
  }

  .gift-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .gallery-grid {
    grid-auto-rows: 82px;
    gap: 6px;
  }

  .audio-fab {
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ANIMATIONS */
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(14deg);
  }
}

@keyframes swing {
  0% {
    left: -245px;
    opacity: 0;
    transform: rotate(-50deg) scale(0.75);
  }

  28% {
    opacity: 1;
  }

  68% {
    left: calc(50% - 153px);
    opacity: 1;
    transform: rotate(13deg) scale(1.1);
  }

  100% {
    left: calc(50% - 113px);
    opacity: 0;
    transform: rotate(25deg) scale(1.2);
  }
}

@keyframes hit {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }

  100% {
    opacity: 0;
    transform: translate(460px, -250px) scale(0.38);
  }
}

@keyframes trail {
  25% {
    opacity: 0.85;
  }

  100% {
    width: min(42vw, 360px);
    opacity: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}
