:root {
  --night: #061421;
  --night-soft: #0b2435;
  --ink: #f8f4ed;
  --muted: rgba(248, 244, 237, 0.72);
  --faint: rgba(248, 244, 237, 0.46);
  --line: rgba(255, 255, 255, 0.15);
  --blue: #66c7df;
  --blue-soft: #bceef6;
  --rose: #c7d6df;
  --rose-light: #f1f7fa;
  --rose-deep: #7893a4;
  --glass: rgba(8, 29, 43, 0.68);
  --glass-deep: rgba(5, 19, 30, 0.86);
  --shadow: 0 24px 70px rgba(0, 5, 10, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.experience {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--night);
}

.world,
.world-image,
.world-vignette,
.star-field,
.water-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world {
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(61, 166, 202, 0.24), transparent 38%),
    linear-gradient(180deg, #091a2a 0%, #0d3850 47%, #071722 100%);
}

.world-image {
  inset: -3%;
  background-image: url("assets/ahasa-celestial-platinum-bg-v22.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.68);
  transform: scale(1.06);
  animation: world-breathe 16s ease-in-out infinite alternate;
}

.world-vignette {
  background:
    linear-gradient(180deg, rgba(3, 11, 19, 0.55) 0%, transparent 30%, transparent 62%, rgba(3, 11, 19, 0.58) 100%),
    radial-gradient(ellipse at center, transparent 34%, rgba(2, 10, 17, 0.58) 100%);
}

.world::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.star {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: var(--opacity);
  background: #fff;
  box-shadow: 0 0 8px rgba(174, 231, 245, 0.85);
  animation: twinkle var(--duration) ease-in-out var(--delay) infinite alternate;
}

.water-light {
  top: 61%;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(86, 207, 233, 0.18), transparent 47%),
    repeating-linear-gradient(174deg, transparent 0 24px, rgba(189, 236, 244, 0.07) 25px, transparent 27px);
  transform: translate3d(0, 1%, 0);
  animation: water-shift 7s ease-in-out infinite alternate;
  mask-image: linear-gradient(transparent, #000 15%, #000);
}

main,
.screen {
  position: absolute;
  inset: 0;
}

.screen {
  visibility: hidden;
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: scale(1.018);
  transition:
    opacity 0.7s ease,
    transform 0.9s var(--ease),
    visibility 0s linear 0.9s;
}

.screen.is-active {
  visibility: visible;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

.screen-inner {
  width: min(100%, 520px);
  margin: 0 auto;
  padding-right: max(24px, env(safe-area-inset-right));
  padding-left: max(24px, env(safe-area-inset-left));
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.45;
  text-transform: uppercase;
}

.invitation-id,
.personal-id {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-action,
.secondary-action,
.text-action,
.sound-control,
.response-option {
  border: 0;
  cursor: pointer;
}

.primary-action {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(100%, 284px);
  padding: 16px 24px;
  overflow: hidden;
  border: 1px solid rgba(250, 216, 199, 0.63);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111, 150, 168, 0.94), rgba(202, 224, 232, 0.94));
  box-shadow:
    0 12px 34px rgba(17, 61, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fffaf6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-action::before {
  position: absolute;
  inset: -20% auto -20% -45%;
  width: 34%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  animation: button-sheen 4.4s ease-in-out infinite;
}

.primary-action > * {
  position: relative;
  z-index: 1;
}

.primary-action svg,
.secondary-action svg,
.response-option svg,
.field-shell svg,
.sound-control svg,
.success-check svg,
.custom-check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action > svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  outline: none;
  box-shadow:
    0 15px 42px rgba(25, 79, 101, 0.38),
    0 0 0 4px rgba(204, 232, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.primary-action:hover > svg {
  transform: translateX(3px);
}

.primary-action:active {
  transform: translateY(0) scale(0.985);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sound-control {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 20;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 21, 32, 0.58);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.sound-control[hidden] {
  display: none;
}

.sound-control svg {
  width: 18px;
  height: 18px;
}

.sound-control .sound-off,
.sound-control.is-muted .sound-on {
  display: none;
}

.sound-control.is-muted .sound-off {
  display: block;
}

.sound-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Signal screen */
.signal-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: max(30px, env(safe-area-inset-top));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

.signal-secure {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(18px, 4vh, 38px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe3c5;
  box-shadow: 0 0 0 0 rgba(143, 227, 197, 0.5);
  animation: live-pulse 2s ease-out infinite;
}

.signal-portal {
  position: relative;
  width: clamp(176px, 47vw, 238px);
  aspect-ratio: 1;
  margin-bottom: clamp(20px, 4vh, 34px);
}

.signal-portal::before,
.signal-portal::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.signal-portal::before {
  inset: 12%;
  background: radial-gradient(circle, rgba(211, 244, 250, 0.18), rgba(72, 178, 205, 0.08) 49%, transparent 71%);
  box-shadow: 0 0 60px rgba(90, 199, 224, 0.17);
  animation: portal-bloom 3s ease-in-out infinite alternate;
}

.signal-portal::after {
  inset: 0;
  border: 1px solid rgba(135, 222, 241, 0.11);
  box-shadow: inset 0 0 30px rgba(120, 221, 242, 0.08);
}

.signal-orbit,
.signal-sweep,
.signal-core {
  position: absolute;
  border-radius: 50%;
}

.signal-orbit {
  border: 1px solid rgba(135, 224, 241, 0.42);
  border-right-color: rgba(226, 243, 249, 0.78);
  border-bottom-color: transparent;
}

.orbit-one {
  inset: 2%;
  animation: orbit-spin 11s linear infinite;
}

.orbit-two {
  inset: 12%;
  border-style: dashed;
  opacity: 0.65;
  animation: orbit-spin 8s linear infinite reverse;
}

.orbit-three {
  inset: 22%;
  border-color: rgba(244, 211, 196, 0.58);
  border-left-color: transparent;
  animation: orbit-spin 6s linear infinite;
}

.signal-sweep {
  inset: 6%;
  overflow: hidden;
  background: conic-gradient(from 40deg, transparent 0 76%, rgba(114, 218, 239, 0.3) 92%, transparent 100%);
  animation: orbit-spin 3.8s linear infinite;
  mask-image: radial-gradient(transparent 0 60%, #000 61%);
}

.signal-core {
  inset: 29%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 45% 35%, rgba(35, 91, 112, 0.78), rgba(5, 21, 32, 0.88));
  box-shadow:
    0 0 26px rgba(111, 216, 238, 0.25),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
  animation: core-pulse 2.8s ease-in-out infinite alternate;
}

.signal-core img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.signal-copy h1 {
  margin: 9px 0 10px;
  font-size: clamp(28px, 8vw, 43px);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.08;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.35);
}

.signal-copy .invitation-id {
  margin-bottom: clamp(22px, 4vh, 34px);
}

.signal-action {
  width: min(100%, 306px);
}

.music-ready {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.equaliser {
  display: flex;
  height: 13px;
  align-items: center;
  gap: 2px;
}

.equaliser i {
  width: 2px;
  height: 35%;
  border-radius: 2px;
  background: var(--blue-soft);
  animation: equalise 0.8s ease-in-out infinite alternate;
}

.equaliser i:nth-child(2) { animation-delay: -0.25s; }
.equaliser i:nth-child(3) { animation-delay: -0.5s; }
.equaliser i:nth-child(4) { animation-delay: -0.15s; }

/* Brand reveal */
.screen-reveal {
  display: grid;
  place-items: center;
}

.reveal-shell {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease 0.25s, transform 1s var(--ease) 0.2s;
}

.screen-reveal.is-revealed .reveal-shell {
  opacity: 1;
  transform: translateY(0);
}

.reveal-kicker {
  margin-bottom: clamp(17px, 3.5vh, 28px);
}

.reveal-intro {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.reveal-shell > h1 {
  margin: 0;
  font-size: clamp(21px, 6vw, 31px);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.brand-portal {
  position: relative;
  display: grid;
  width: clamp(205px, 58vw, 286px);
  aspect-ratio: 1;
  place-items: center;
  margin: clamp(4px, 1.8vh, 18px) auto 0;
}

.brand-portal::before {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 226, 241, 0.2), rgba(80, 170, 198, 0.08) 44%, transparent 70%);
  box-shadow: 0 0 75px rgba(101, 205, 227, 0.18);
  content: "";
  animation: portal-bloom 3s ease-in-out infinite alternate;
}

.brand-ring,
.brand-flare {
  position: absolute;
  border-radius: 50%;
}

.brand-ring {
  border: 1px solid rgba(150, 225, 240, 0.32);
}

.brand-portal .ring-one {
  inset: 4%;
  border-right-color: var(--rose-light);
  animation: orbit-spin 14s linear infinite;
}

.brand-portal .ring-two {
  inset: 15%;
  border-style: dashed;
  animation: orbit-spin 9s linear infinite reverse;
}

.brand-flare {
  inset: 0;
  background: conic-gradient(from 180deg, transparent 0 82%, rgba(243, 209, 193, 0.22) 92%, transparent 100%);
  animation: orbit-spin 5s linear infinite;
  mask-image: radial-gradient(transparent 0 67%, #000 68%);
}

.brand-portal img {
  position: relative;
  z-index: 1;
  width: 69%;
  height: 69%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.32));
  transform: scale(2.4);
}

.screen-reveal.is-revealed .brand-portal img {
  animation: logo-zoom-out 1.8s var(--ease) 0.12s forwards;
}

.brand-promise {
  margin: -2px 0 clamp(18px, 3.4vh, 28px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-promise span {
  color: var(--rose-light);
  padding: 0 4px;
}

/* Invitation */
.invite-scroll,
.success-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.invite-inner {
  padding-top: max(78px, calc(env(safe-area-inset-top) + 66px));
  padding-bottom: max(42px, calc(env(safe-area-inset-bottom) + 30px));
}

.personal-header {
  margin-bottom: 24px;
}

.guest-name,
.success-inner h1 {
  margin: 7px auto 9px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 11vw, 62px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.guest-name span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.invite-message {
  max-width: 440px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: balance;
}

.event-card {
  padding: 25px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(19, 58, 77, 0.72), rgba(5, 21, 32, 0.84)),
    rgba(5, 21, 32, 0.76);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.event-card h2 {
  margin: 3px 0 19px;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.event-details {
  display: grid;
  gap: 0;
  text-align: left;
}

.event-row {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 60px;
  padding: 9px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-row svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--rose-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-row div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.event-row span,
.field-label {
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.event-row strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.response-form {
  margin-top: 30px;
}

.response-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.response-form legend {
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.response-options {
  display: grid;
  gap: 11px;
}

.response-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 13px;
  width: 100%;
  min-height: 72px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(5, 22, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.response-option:hover,
.response-option:focus-visible {
  outline: none;
  border-color: rgba(216, 238, 246, 0.58);
}

.response-option.is-selected {
  border-color: rgba(251, 218, 202, 0.78);
  background: linear-gradient(120deg, rgba(72, 119, 140, 0.92), rgba(166, 203, 217, 0.83));
  box-shadow: 0 10px 32px rgba(7, 44, 61, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.option-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--rose-light);
}

.is-selected .option-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.option-icon svg,
.option-arrow {
  width: 19px;
  height: 19px;
}

.option-arrow {
  color: rgba(255, 255, 255, 0.48);
}

.response-option > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.response-option strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.response-option small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.is-selected small {
  color: rgba(255, 255, 255, 0.72);
}

.response-expander {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.38s ease;
}

.response-expander.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.response-expander-inner {
  min-height: 0;
  overflow: hidden;
  text-align: left;
}

.field-label {
  display: flex;
  justify-content: space-between;
  margin: 21px 3px 8px;
  line-height: 1.3;
}

.field-label span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.field-shell {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  min-height: 56px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(4, 18, 28, 0.78);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-shell:focus-within {
  border-color: rgba(217, 239, 247, 0.68);
  box-shadow: 0 0 0 4px rgba(178, 216, 229, 0.1);
}

.field-shell svg {
  width: 21px;
  height: 21px;
  color: var(--rose-light);
}

.field-shell input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.field-shell input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.field-note {
  margin: 6px 3px 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
}

.consent-row {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 11px;
  align-items: start;
  margin: 18px 3px 0;
  color: rgba(255, 255, 255, 0.67);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
}

.consent-row[hidden] {
  display: none;
}

.consent-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(4, 18, 28, 0.78);
}

.custom-check svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  color: #fff;
  transition: opacity 0.2s ease;
}

.consent-row input:checked + .custom-check {
  border-color: var(--rose-light);
  background: var(--rose-deep);
}

.consent-row input:checked + .custom-check svg {
  opacity: 1;
}

.consent-row input:focus-visible + .custom-check {
  outline: 3px solid rgba(178, 216, 229, 0.22);
}

.form-error {
  min-height: 21px;
  margin: 13px 3px 3px;
  color: #ffd3c9;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.submit-action {
  width: 100%;
}

.personal-id {
  margin-top: 27px;
  text-align: center;
}

/* Response confirmation */
.success-inner {
  min-height: 100%;
  padding-top: max(82px, calc(env(safe-area-inset-top) + 70px));
  padding-bottom: max(42px, calc(env(safe-area-inset-bottom) + 30px));
}

.success-portal {
  position: relative;
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto 18px;
}

.success-ring {
  position: absolute;
  border: 1px solid rgba(159, 227, 241, 0.35);
  border-radius: 50%;
}

.success-portal .ring-one {
  inset: 0;
  border-right-color: var(--rose-light);
  animation: orbit-spin 9s linear infinite;
}

.success-portal .ring-two {
  inset: 14%;
  border-style: dashed;
  animation: orbit-spin 7s linear infinite reverse;
}

.success-check {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(105, 151, 169, 0.95), rgba(206, 229, 237, 0.95));
  box-shadow: 0 0 38px rgba(156, 208, 225, 0.28);
}

.success-check svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.1;
}

.success-inner h1 {
  margin-top: 9px;
}

.success-name {
  margin: 0;
  color: var(--rose-light);
  font-size: clamp(19px, 5vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.success-message {
  max-width: 430px;
  margin: 14px auto 25px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: balance;
}

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.secondary-action {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(217, 238, 245, 0.46);
  border-radius: 16px;
  background: rgba(5, 22, 34, 0.75);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  outline: none;
  border-color: var(--rose-light);
  background: rgba(113, 64, 54, 0.68);
  transform: translateY(-1px);
}

.secondary-action svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--rose-light);
}

.text-action {
  margin: 24px 0 0;
  padding: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.text-action:hover,
.text-action:focus-visible {
  outline: none;
  color: #fff;
  border-color: var(--rose-light);
}

.screen-success.is-celebrating::before,
.screen-success.is-celebrating::after {
  position: absolute;
  inset: 10% 8% auto;
  height: 38%;
  content: "";
  opacity: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(217,239,247,.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(151,226,241,.8) 0 1px, transparent 2px);
  background-position: 11% 20%, 72% 8%, 91% 56%;
  background-size: 83px 91px, 117px 129px, 151px 143px;
  animation: constellation-burst 2.5s ease-out 0.2s forwards;
}

.screen-success.is-celebrating::after {
  inset: 5% 18% auto;
  transform: rotate(13deg);
  animation-delay: 0.45s;
}

@media (max-height: 720px) {
  .signal-secure { margin-bottom: 12px; }
  .signal-portal { width: 154px; margin-bottom: 13px; }
  .signal-copy h1 { font-size: 27px; }
  .signal-copy .invitation-id { margin-bottom: 16px; }
  .music-ready { margin-top: 9px; }
  .reveal-kicker { margin-bottom: 11px; }
  .brand-portal { width: 188px; margin-top: 0; }
  .brand-promise { margin-bottom: 15px; }
}

@media (min-width: 680px) {
  .screen-inner { width: min(100%, 590px); }
  .invite-inner { width: min(100%, 560px); }
  .event-card { padding-right: 27px; padding-left: 27px; }
  .success-inner { width: min(100%, 540px); }
}

@media (orientation: landscape) and (max-height: 590px) {
  .signal-inner,
  .reveal-shell {
    width: min(94%, 760px);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    column-gap: 28px;
  }

  .signal-secure,
  .reveal-kicker {
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 2px;
  }

  .signal-portal,
  .brand-portal {
    grid-row: 2 / span 3;
    grid-column: 1;
    align-self: center;
    width: min(35vh, 205px);
    margin: 0;
  }

  .signal-copy,
  .reveal-intro,
  .reveal-shell > h1,
  .brand-promise,
  .reveal-shell > .primary-action {
    grid-column: 2;
  }

  .signal-action,
  .music-ready {
    grid-column: 2;
    justify-self: center;
  }

  .signal-copy .invitation-id { margin-bottom: 8px; }
  .reveal-intro { align-self: end; }
  .brand-promise { margin: 4px 0 12px; }
}

@media (max-width: 390px) {
  .screen-inner {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .sound-label { display: none; }
  .sound-control { width: 42px; justify-content: center; padding: 9px; }
  .response-option { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 10px; padding-right: 12px; padding-left: 12px; }
  .option-icon { width: 38px; height: 38px; }
  .event-card { padding-right: 16px; padding-left: 16px; }
  .success-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .screen {
    transition-duration: 0.25s;
  }

  .world-image,
  .cloud-drift,
  .water-light,
  .water-ripple,
  .bird-flock {
    animation-duration: 32s !important;
  }

  .signal-orbit,
  .brand-ring,
  .brand-flare,
  .success-ring {
    animation-duration: 24s !important;
  }
}

@keyframes world-breathe {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(0, -0.8%, 0); }
}

@keyframes water-shift {
  from { transform: translate3d(-1%, 1%, 0) scaleX(1.02); }
  to { transform: translate3d(1%, -1%, 0) scaleX(0.98); }
}

@keyframes twinkle {
  from { opacity: calc(var(--opacity) * 0.3); transform: scale(0.72); }
  to { opacity: var(--opacity); transform: scale(1.18); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes portal-bloom {
  from { opacity: 0.55; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes core-pulse {
  from { transform: scale(0.96); box-shadow: 0 0 20px rgba(111, 216, 238, 0.16); }
  to { transform: scale(1.04); box-shadow: 0 0 38px rgba(111, 216, 238, 0.34); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 227, 197, 0.52); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(143, 227, 197, 0); }
}

@keyframes equalise {
  from { height: 26%; }
  to { height: 100%; }
}

@keyframes logo-zoom-out {
  0% { opacity: 0; transform: scale(2.4); filter: blur(8px) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3)); }
  40% { opacity: 1; }
  72% { transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.32)); }
}

@keyframes button-sheen {
  0%, 58% { left: -45%; opacity: 0; }
  66% { opacity: 0.8; }
  84%, 100% { left: 125%; opacity: 0; }
}

@keyframes constellation-burst {
  0% { opacity: 0; transform: scale(0.82); }
  35% { opacity: 1; }
  100% { opacity: 0.48; transform: scale(1.1); }
}

/* Mobile-first cinematic refinement */
.world-image,
.cloud-drift,
.world-vignette,
.star-field,
.tower-lights,
.bird-flock,
.water-light,
.water-ripple {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.world-image {
  inset: -4%;
  filter: saturate(0.96) contrast(1.08) brightness(0.7);
  transform: translate3d(0, 0, 0) scale(1.07);
  animation: sky-breathe 18s ease-in-out infinite alternate;
}

.cloud-drift {
  inset: 8% -17% auto;
  z-index: 1;
  height: 48%;
  opacity: 0.24;
  background-image: url("assets/ahasa-cloud-layer.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  filter: brightness(0.96) contrast(1.04);
  transform: translate3d(-1.8%, 0, 0) scale(1.03);
  animation: cloud-travel 22s ease-in-out infinite alternate;
}

.world-vignette {
  z-index: 2;
  will-change: auto;
  background:
    linear-gradient(180deg, rgba(2, 10, 18, 0.42) 0%, transparent 24%, transparent 64%, rgba(2, 11, 18, 0.48) 100%),
    radial-gradient(ellipse at 50% 42%, transparent 37%, rgba(2, 9, 16, 0.45) 100%);
}

.star-field {
  z-index: 3;
  will-change: auto;
}

.star {
  transform: translate3d(0, 0, 0);
  animation: star-glint var(--duration) ease-in-out var(--delay) infinite;
}

.tower-lights {
  z-index: 4;
  top: 57%;
  bottom: 16%;
  will-change: auto;
}

.tower-light {
  position: absolute;
  width: var(--light-size);
  height: var(--light-size);
  border-radius: 50%;
  opacity: 0.12;
  background: rgba(211, 240, 249, 0.96);
  box-shadow:
    0 0 4px rgba(203, 235, 246, 0.9),
    0 0 10px rgba(110, 198, 225, 0.68);
  animation: tower-light var(--light-speed) ease-in-out var(--light-delay) infinite;
}

.bird-flock {
  inset: auto auto 62% -68%;
  z-index: 4;
  display: block;
  width: min(56vw, 360px);
  height: auto;
  opacity: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(133, 214, 235, 0.18));
  transform: translate3d(0, 0, 0) scale(0.78);
  animation: flock-flight 24s linear 4s infinite;
}

.water-light {
  z-index: 4;
  top: 69%;
  opacity: 0.47;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(134, 224, 243, 0.18), transparent 47%),
    repeating-linear-gradient(176deg, transparent 0 19px, rgba(203, 239, 247, 0.09) 20px, transparent 22px);
  -webkit-mask-image: linear-gradient(transparent, #000 13%, #000);
  mask-image: linear-gradient(transparent, #000 13%, #000);
  transform: translate3d(0, 0, 0) scaleX(1.04);
  animation: water-breathe 5.5s ease-in-out infinite alternate;
}

.water-ripple {
  z-index: 5;
  top: 73%;
  opacity: 0.22;
  background-image:
    repeating-radial-gradient(ellipse at 50% 0%, transparent 0 17px, rgba(185, 231, 241, 0.18) 18px, transparent 20px);
  background-size: 118% 72px;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, transparent 96%);
  mask-image: linear-gradient(transparent, #000 20%, transparent 96%);
  transform: translate3d(0, 0, 0);
  animation: ripple-shift 4.8s linear infinite;
}

.screen {
  transform: translate3d(0, 14px, 0) scale(1.012);
  transition:
    opacity 0.6s ease,
    transform 0.9s var(--ease),
    visibility 0s linear 0.9s;
}

.screen.is-active {
  transform: translate3d(0, 0, 0) scale(1);
}

.screen-inner {
  width: min(100%, 520px);
  padding-right: max(24px, env(safe-area-inset-right));
  padding-left: max(24px, env(safe-area-inset-left));
}

.eyebrow {
  color: rgba(205, 237, 246, 0.94);
}

.primary-action {
  min-height: 56px;
  border: 1px solid rgba(232, 244, 249, 0.72);
  background:
    linear-gradient(135deg, rgba(235, 246, 250, 0.05), rgba(196, 220, 231, 0.16)),
    rgba(8, 30, 44, 0.2);
  box-shadow:
    0 14px 36px rgba(0, 8, 16, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(114, 157, 179, 0.28),
    0 0 22px rgba(166, 214, 230, 0.08);
  color: #f4fbfd;
  -webkit-backdrop-filter: blur(13px) saturate(1.2);
  backdrop-filter: blur(13px) saturate(1.2);
}

.primary-action::before {
  background: linear-gradient(90deg, transparent, rgba(246, 252, 255, 0.65), transparent);
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    linear-gradient(135deg, rgba(236, 248, 252, 0.1), rgba(188, 219, 232, 0.23)),
    rgba(8, 30, 44, 0.28);
  box-shadow:
    0 16px 42px rgba(0, 8, 16, 0.32),
    0 0 0 4px rgba(202, 232, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.sound-control {
  color: rgba(235, 247, 251, 0.92);
  border-color: rgba(220, 238, 245, 0.26);
  background: rgba(5, 22, 35, 0.36);
}

.signal-inner,
.reveal-shell {
  position: relative;
}

.signal-inner {
  justify-content: flex-start;
  padding-top: max(46px, calc(env(safe-area-inset-top) + 34px));
  padding-bottom: max(74px, calc(env(safe-area-inset-bottom) + 64px));
}

.signal-portal {
  width: clamp(170px, 46vw, 228px);
  flex: 0 0 auto;
  margin: clamp(4px, 2.2vh, 20px) auto clamp(18px, 3vh, 28px);
}

.signal-portal::before {
  background: radial-gradient(circle, rgba(191, 234, 244, 0.2), rgba(63, 153, 184, 0.08) 48%, transparent 72%);
}

.signal-orbit {
  border-color: rgba(189, 230, 240, 0.48);
  border-right-color: rgba(246, 251, 253, 0.86);
  border-bottom-color: transparent;
}

.orbit-three {
  border-color: rgba(224, 240, 246, 0.68);
  border-left-color: transparent;
}

.signal-core {
  inset: 23%;
  border-color: rgba(226, 243, 249, 0.3);
  background: radial-gradient(circle at 45% 35%, rgba(34, 88, 109, 0.78), rgba(4, 19, 31, 0.88));
}

.signal-core img {
  width: 88%;
  height: 88%;
  filter: none;
  transform: translate3d(0, 0, 0);
}

.signal-copy {
  width: 100%;
}

.signal-copy h1 {
  margin: 8px 0 clamp(18px, 3vh, 28px);
  font-size: clamp(27px, 7.4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.09;
}

.signal-action {
  width: min(100%, 314px);
}

.music-cue {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: rgba(217, 239, 246, 0.68);
}

.music-cue > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-wave {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.music-wave i {
  width: 2px;
  height: 35%;
  border-radius: 2px;
  background: currentColor;
  animation: equalise 0.85s ease-in-out infinite alternate;
}

.music-wave i:nth-child(2) { animation-delay: -0.3s; }
.music-wave i:nth-child(3) { animation-delay: -0.55s; }

.screen-id {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  left: max(24px, env(safe-area-inset-left));
  margin: 0;
  text-align: center;
}

.screen-signal.is-active .signal-portal,
.screen-signal.is-active .signal-copy,
.screen-signal.is-active .signal-action,
.screen-signal.is-active .music-cue,
.screen-signal.is-active .screen-id {
  animation: content-rise 0.85s var(--ease) both;
}

.screen-signal.is-active .signal-portal {
  animation-name: portal-arrive;
  animation-duration: 1.1s;
}

.screen-signal.is-active .signal-copy { animation-delay: 0.13s; }
.screen-signal.is-active .signal-action { animation-delay: 0.23s; }
.screen-signal.is-active .music-cue { animation-delay: 0.31s; }
.screen-signal.is-active .screen-id { animation-delay: 0.38s; }

.reveal-shell {
  justify-content: flex-start;
  padding-top: max(56px, calc(env(safe-area-inset-top) + 44px));
  padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
}

.reveal-kicker {
  margin-bottom: 12px;
}

.reveal-intro {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.reveal-shell > h1 {
  font-size: clamp(21px, 5.8vw, 30px);
  line-height: 1.18;
}

.brand-portal {
  width: clamp(204px, 56vw, 276px);
  flex: 0 0 auto;
  margin: clamp(7px, 1.7vh, 15px) auto 0;
}

.brand-portal img {
  width: 82%;
  height: 82%;
  image-rendering: auto;
  filter: none;
  -webkit-transform: translate3d(0, 0, 0) scale(1.58);
  transform: translate3d(0, 0, 0) scale(1.58);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.screen-reveal.is-revealed .brand-portal img {
  animation: logo-sharp-zoom 1.7s var(--ease) 0.12s forwards;
}

.brand-promise {
  margin: -3px 0 clamp(14px, 2.5vh, 22px);
  color: rgba(228, 242, 247, 0.76);
}

.brand-promise span {
  color: rgba(241, 249, 252, 0.94);
}

.reveal-shell > .primary-action {
  width: min(100%, 314px);
}

.screen-reveal.is-revealed .reveal-kicker,
.screen-reveal.is-revealed .reveal-intro,
.screen-reveal.is-revealed h1,
.screen-reveal.is-revealed .brand-promise,
.screen-reveal.is-revealed .primary-action,
.screen-reveal.is-revealed .reveal-id {
  animation: content-rise 0.85s var(--ease) both;
}

.screen-reveal.is-revealed .reveal-intro { animation-delay: 0.08s; }
.screen-reveal.is-revealed h1 { animation-delay: 0.14s; }
.screen-reveal.is-revealed .brand-promise { animation-delay: 0.42s; }
.screen-reveal.is-revealed .primary-action { animation-delay: 0.5s; }
.screen-reveal.is-revealed .reveal-id { animation-delay: 0.56s; }

.invite-inner {
  width: min(100%, 540px);
  padding-top: max(54px, calc(env(safe-area-inset-top) + 42px));
  padding-bottom: max(46px, calc(env(safe-area-inset-bottom) + 34px));
}

.personal-header {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.screen-invite.is-active .personal-header {
  animation: content-rise 0.85s var(--ease) both;
}

.guest-name {
  max-width: 470px;
  margin: 8px auto 11px;
  font-size: clamp(38px, 10.5vw, 55px);
  line-height: 1;
}

.invite-message {
  max-width: 390px;
  margin-top: 14px;
  color: rgba(239, 247, 250, 0.81);
  font-size: 16px;
  line-height: 1.62;
}

.event-card,
.response-option,
.field-shell,
.secondary-action {
  border-color: rgba(214, 235, 243, 0.28);
  background:
    linear-gradient(145deg, rgba(187, 222, 234, 0.08), rgba(5, 25, 39, 0.23)),
    rgba(4, 19, 31, 0.25);
  box-shadow:
    0 22px 55px rgba(0, 6, 12, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(127, 172, 190, 0.1);
  -webkit-backdrop-filter: blur(15px) saturate(1.18);
  backdrop-filter: blur(15px) saturate(1.18);
}

.event-card {
  padding: 24px 22px 20px;
}

.screen-invite.is-active .event-card {
  animation: glass-arrive 0.95s var(--ease) 0.16s both;
}

.screen-invite.is-active .event-row {
  animation: content-rise 0.68s var(--ease) both;
}

.screen-invite.is-active .event-row:nth-child(1) { animation-delay: 0.28s; }
.screen-invite.is-active .event-row:nth-child(2) { animation-delay: 0.36s; }
.screen-invite.is-active .event-row:nth-child(3) { animation-delay: 0.44s; }
.screen-invite.is-active .event-row:nth-child(4) { animation-delay: 0.52s; }

.event-card h2 {
  margin: 5px 0 17px;
  color: rgba(247, 251, 253, 0.97);
  font-size: clamp(28px, 8vw, 38px);
  letter-spacing: 0.14em;
}

.event-row svg,
.option-icon,
.field-shell svg,
.secondary-action svg {
  color: rgba(226, 241, 247, 0.91);
  stroke: currentColor;
}

.event-row span,
.field-label {
  color: rgba(204, 235, 244, 0.94);
}

.response-form {
  margin-top: 27px;
}

.screen-invite.is-active .response-form {
  animation: content-rise 0.85s var(--ease) 0.28s both;
}

.screen-invite.is-active .response-option {
  animation: content-rise 0.65s var(--ease) both;
}

.screen-invite.is-active .response-option:nth-child(1) { animation-delay: 0.4s; }
.screen-invite.is-active .response-option:nth-child(2) { animation-delay: 0.48s; }
.screen-invite.is-active .response-option:nth-child(3) { animation-delay: 0.56s; }

.response-option.is-selected {
  border-color: rgba(231, 245, 250, 0.78);
  background:
    linear-gradient(120deg, rgba(95, 139, 159, 0.43), rgba(186, 215, 226, 0.2)),
    rgba(7, 31, 47, 0.48);
  box-shadow:
    0 12px 34px rgba(0, 9, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 24px rgba(151, 213, 231, 0.11);
}

.option-icon {
  border-color: rgba(220, 239, 246, 0.3);
  background: rgba(211, 235, 243, 0.06);
}

.submit-action {
  background:
    linear-gradient(135deg, rgba(235, 246, 250, 0.07), rgba(170, 205, 219, 0.2)),
    rgba(7, 29, 44, 0.32);
}

.success-inner {
  width: min(100%, 520px);
  padding-top: max(54px, calc(env(safe-area-inset-top) + 42px));
  padding-bottom: max(46px, calc(env(safe-area-inset-bottom) + 34px));
}

.success-portal {
  width: clamp(108px, 29vw, 142px);
  margin-bottom: 12px;
}

.success-check {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(239, 248, 251, 0.55);
  background:
    linear-gradient(145deg, rgba(235, 246, 250, 0.15), rgba(135, 176, 193, 0.24)),
    rgba(5, 24, 38, 0.42);
  box-shadow:
    0 0 35px rgba(164, 216, 231, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: rgba(247, 252, 253, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.success-inner h1 {
  margin: 5px auto 6px;
  font-size: clamp(41px, 11.5vw, 57px);
}

.success-name {
  color: rgba(228, 242, 247, 0.96);
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.32;
}

.success-message {
  max-width: 390px;
  margin: 13px auto 21px;
  color: rgba(238, 247, 250, 0.78);
  font-size: 16px;
  line-height: 1.62;
}

.success-actions {
  gap: 10px;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(239, 249, 252, 0.82);
  background:
    linear-gradient(135deg, rgba(219, 239, 246, 0.11), rgba(139, 183, 201, 0.18)),
    rgba(5, 24, 38, 0.38);
}

.screen-success.is-active .success-portal {
  animation: portal-arrive 1s var(--ease) both;
}

.screen-success.is-active #successHeading,
.screen-success.is-active .success-name,
.screen-success.is-active .success-message,
.screen-success.is-active .success-actions,
.screen-success.is-active .text-action,
.screen-success.is-active .personal-id {
  animation: content-rise 0.82s var(--ease) both;
}

.screen-success.is-active #successHeading { animation-delay: 0.14s; }
.screen-success.is-active .success-name { animation-delay: 0.2s; }
.screen-success.is-active .success-message { animation-delay: 0.26s; }
.screen-success.is-active .success-actions { animation-delay: 0.34s; }
.screen-success.is-active .text-action { animation-delay: 0.4s; }
.screen-success.is-active .personal-id { animation-delay: 0.46s; }

@media (max-width: 600px) {
  .screen-inner {
    padding-right: max(22px, env(safe-area-inset-right));
    padding-left: max(22px, env(safe-area-inset-left));
  }

  .sound-control {
    top: max(15px, env(safe-area-inset-top));
    right: max(15px, env(safe-area-inset-right));
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 9px;
  }

  .sound-label {
    display: none;
  }

  .signal-inner {
    padding-top: max(34px, calc(env(safe-area-inset-top) + 26px));
  }

  .signal-portal {
    width: clamp(156px, 43vw, 188px);
    margin-top: clamp(64px, 11vh, 96px);
    margin-bottom: clamp(14px, 2.4vh, 22px);
  }

  .signal-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .signal-copy h1 {
    margin-bottom: clamp(15px, 2.5vh, 22px);
    font-size: clamp(26px, 7.6vw, 32px);
  }

  .screen-id {
    right: 22px;
    bottom: max(13px, calc(env(safe-area-inset-bottom) + 8px));
    left: 22px;
  }

  .reveal-shell {
    padding-top: max(43px, calc(env(safe-area-inset-top) + 35px));
  }

  .reveal-kicker {
    max-width: 340px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .reveal-intro {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .reveal-shell > h1 {
    font-size: clamp(20px, 5.6vw, 24px);
    letter-spacing: 0.07em;
  }

  .brand-portal {
    width: clamp(190px, 53vw, 222px);
  }

  .brand-promise {
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  .invite-inner {
    padding-top: max(48px, calc(env(safe-area-inset-top) + 38px));
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom) + 88px));
  }

  .guest-name {
    max-width: 350px;
    font-size: clamp(37px, 10.2vw, 45px);
    line-height: 1.02;
  }

  .invite-message {
    max-width: 345px;
    font-size: 15px;
    line-height: 1.58;
  }

  .event-card {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .event-row {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 12px;
  }

  .event-row strong {
    font-size: 13px;
    line-height: 1.4;
  }

  .success-inner {
    padding-top: max(45px, calc(env(safe-area-inset-top) + 36px));
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom) + 88px));
  }

  .success-message {
    font-size: 15px;
    line-height: 1.58;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }

  .bird-flock {
    width: 52vw;
  }
}

@media (min-width: 601px) and (min-height: 721px) {
  .signal-inner,
  .reveal-shell {
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 82px;
  }

  .signal-portal {
    margin-top: 0;
  }

  .brand-portal {
    margin-top: 13px;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .event-card,
  .response-option,
  .field-shell,
  .secondary-action,
  .primary-action {
    background: rgba(5, 25, 39, 0.82);
  }
}

@media (max-height: 720px) {
  .signal-inner {
    padding-top: max(28px, calc(env(safe-area-inset-top) + 20px));
  }

  .signal-portal {
    width: clamp(142px, 39vw, 168px);
    margin-top: clamp(66px, 11vh, 82px);
    margin-bottom: 10px;
  }

  .signal-copy h1 {
    margin-top: 5px;
    margin-bottom: 13px;
    font-size: 25px;
  }

  .music-cue {
    margin-top: 5px;
  }

  .reveal-shell {
    padding-top: max(36px, calc(env(safe-area-inset-top) + 29px));
  }

  .reveal-kicker {
    margin-bottom: 7px;
  }

  .brand-portal {
    width: clamp(174px, 48vw, 198px);
    margin-top: 2px;
  }

  .brand-promise {
    margin-bottom: 11px;
  }

  .invite-inner,
  .success-inner {
    padding-top: max(41px, calc(env(safe-area-inset-top) + 33px));
  }
}

@keyframes sky-breathe {
  0% { transform: translate3d(-0.4%, 0.2%, 0) scale(1.07); }
  50% { transform: translate3d(0.3%, -0.8%, 0) scale(1.095); }
  100% { transform: translate3d(0.7%, -0.2%, 0) scale(1.08); }
}

@keyframes cloud-travel {
  from { opacity: 0.14; transform: translate3d(-2.1%, 0, 0) scale(1.06); }
  to { opacity: 0.28; transform: translate3d(2.1%, -0.5%, 0) scale(1.095); }
}

@keyframes star-glint {
  0%, 100% { opacity: 0.16; transform: translate3d(0, 0, 0) scale(0.68); }
  45% { opacity: var(--opacity); transform: translate3d(0, 0, 0) scale(1.55); }
  60% { opacity: 0.34; transform: translate3d(0, 0, 0) scale(0.92); }
}

@keyframes tower-light {
  0%, 64%, 100% { opacity: 0.08; transform: scale(0.75); }
  72%, 88% { opacity: 0.95; transform: scale(1.2); }
}

@keyframes flock-flight {
  0%, 6% { left: -68%; opacity: 0; transform: translate3d(0, 14px, 0) scale(0.72); }
  15% { opacity: 0.42; }
  52% { opacity: 0.35; transform: translate3d(112vw, -34px, 0) scale(0.86); }
  88% { opacity: 0.28; }
  100% { left: -68%; opacity: 0; transform: translate3d(190vw, -63px, 0) scale(0.68); }
}

@keyframes water-breathe {
  from { transform: translate3d(-1.3%, 0.8%, 0) scaleX(1.05) skewX(-0.4deg); }
  to { transform: translate3d(1.3%, -0.6%, 0) scaleX(0.97) skewX(0.4deg); }
}

@keyframes ripple-shift {
  from { background-position: 0 0; transform: translate3d(-1%, 0, 0) scaleX(1.03); }
  to { background-position: 68px 46px; transform: translate3d(1%, -3px, 0) scaleX(0.98); }
}

@keyframes logo-sharp-zoom {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1.58); }
  38% { opacity: 1; }
  72% { transform: translate3d(0, 0, 0) scale(0.96); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes content-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes glass-arrive {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes portal-arrive {
  0% { opacity: 0; transform: scale(0.7) rotate(-12deg); }
  65% { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* v21: final NFC invitation composition */
.shooting-star-real {
  position: absolute;
  top: 5%;
  left: -64vw;
  z-index: 6;
  display: block;
  width: clamp(220px, 58vw, 360px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter:
    drop-shadow(0 0 5px rgba(235, 250, 255, 0.78))
    drop-shadow(0 0 13px rgba(99, 182, 233, 0.42));
  transform: translate3d(0, -8vh, 0) scale(0.72);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: meteor-flight 8.8s cubic-bezier(0.3, 0.02, 0.55, 1) 1.8s infinite;
}

.signal-inner {
  justify-content: flex-start;
  padding-top: max(34px, calc(env(safe-area-inset-top) + 24px));
  padding-bottom: max(76px, calc(env(safe-area-inset-bottom) + 66px));
}

.signal-portal {
  width: clamp(164px, 44vw, 216px);
  margin: clamp(68px, 11vh, 104px) auto 0;
}

.signal-entry {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-bottom: clamp(22px, 3.5vh, 36px);
}

.signal-copy {
  margin: 0 0 13px;
}

.signal-copy .eyebrow {
  color: rgba(214, 240, 248, 0.96);
  font-size: clamp(11px, 3vw, 12px);
  letter-spacing: 0.17em;
  text-shadow: 0 0 16px rgba(160, 222, 240, 0.22);
}

.signal-action,
.reveal-entry .primary-action {
  width: min(100%, 314px);
  border-color: rgba(227, 242, 248, 0.78);
  background:
    linear-gradient(135deg, rgba(246, 252, 255, 0.055), rgba(174, 205, 220, 0.15)),
    rgba(5, 24, 39, 0.18);
  box-shadow:
    0 15px 38px rgba(0, 8, 17, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.37),
    inset 0 -1px 0 rgba(112, 158, 181, 0.27),
    0 0 24px rgba(169, 220, 236, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.22);
  backdrop-filter: blur(14px) saturate(1.22);
}

.music-cue {
  display: grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  margin-top: 9px;
  border: 1px solid rgba(218, 238, 246, 0.2);
  border-radius: 50%;
  background: rgba(5, 23, 37, 0.24);
  color: rgba(226, 242, 248, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.music-cue > svg {
  width: 19px;
  height: 19px;
}

.reveal-shell {
  justify-content: flex-start;
  padding-top: max(20px, calc(env(safe-area-inset-top) + 13px));
  padding-bottom: max(76px, calc(env(safe-area-inset-bottom) + 66px));
}

.experience[data-screen="reveal"] .sound-control {
  top: max(91px, calc(env(safe-area-inset-top) + 82px));
}

.reveal-kicker {
  max-width: 330px;
  margin: 0 auto 7px;
  font-size: clamp(11px, 3vw, 12px);
  letter-spacing: 0.16em;
  line-height: 1.45;
}

.reveal-intro {
  max-width: 330px;
  margin: 0 auto 3px;
  color: rgba(232, 243, 247, 0.82);
  font-size: clamp(11px, 3.1vw, 13px);
  letter-spacing: 0.14em;
  line-height: 1.45;
}

.reveal-shell > h1 {
  max-width: 350px;
  font-size: clamp(20px, 5.6vw, 29px);
  letter-spacing: 0.075em;
}

.reveal-shell > h1 span {
  display: inline-block;
  color: #eaf4f8;
  text-shadow: 0 0 18px rgba(176, 221, 235, 0.2);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .reveal-shell > h1 span {
    background: linear-gradient(105deg, #8ea7b5 0%, #f9fdff 24%, #b9d0da 44%, #ffffff 58%, #8ba5b3 78%, #edf7fa 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: silver-title-sheen 4.6s linear infinite;
  }
}

.brand-portal {
  width: clamp(190px, 52vw, 266px);
  margin: clamp(3px, 0.8vh, 7px) auto 0;
}

.brand-portal img {
  width: 82%;
  height: 82%;
  image-rendering: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.23));
  -webkit-transform: none;
  transform: none;
  will-change: transform, opacity;
}

.screen-reveal.is-revealed .brand-portal img {
  animation: logo-reveal-crisp 1.65s var(--ease) 0.08s both;
}

.reveal-entry {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-bottom: clamp(10px, 2.2vh, 20px);
}

.brand-promise {
  margin: 0 0 12px;
  color: rgba(230, 243, 248, 0.82);
  font-size: clamp(10px, 2.9vw, 12px);
  letter-spacing: 0.16em;
  text-shadow: 0 0 16px rgba(146, 211, 233, 0.16);
}

.brand-promise span {
  color: rgba(249, 253, 255, 0.96);
}

.guest-name {
  max-width: 480px;
  margin: 8px auto 13px;
  font-size: clamp(39px, 10.7vw, 57px);
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 0.98;
}

.guest-name span {
  color: #edf7fa;
  filter: drop-shadow(0 8px 16px rgba(0, 4, 10, 0.36));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .guest-name span {
    background: linear-gradient(108deg, #9eb7c4 0%, #ffffff 27%, #c5dae3 47%, #ffffff 60%, #8daab9 82%, #eef8fb 100%);
    background-size: 230% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: guest-name-sheen 5.2s linear infinite;
  }
}

.invite-message {
  max-width: 405px;
  color: rgba(237, 247, 250, 0.86);
  text-align: center;
}

.event-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(162, 212, 232, 0.32);
  background:
    linear-gradient(145deg, rgba(96, 179, 217, 0.11), rgba(4, 30, 50, 0.2)),
    rgba(3, 19, 33, 0.13);
  box-shadow:
    0 22px 54px rgba(0, 6, 14, 0.22),
    inset 0 1px 0 rgba(236, 249, 253, 0.17),
    inset 0 -1px 0 rgba(94, 163, 193, 0.13);
  -webkit-backdrop-filter: blur(17px) saturate(1.28);
  backdrop-filter: blur(17px) saturate(1.28);
}

.event-card::before {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -52%;
  z-index: 0;
  width: 34%;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(228, 247, 253, 0.12), transparent);
  transform: skewX(-14deg);
  animation: glass-light-pass 6.8s ease-in-out 1.4s infinite;
}

.event-card > * {
  position: relative;
  z-index: 1;
}

.event-wordmark {
  display: block;
  width: min(76%, 290px);
  height: auto;
  margin: 8px auto 18px;
  object-fit: contain;
  filter:
    drop-shadow(0 7px 13px rgba(0, 4, 12, 0.34))
    drop-shadow(0 0 10px rgba(125, 190, 235, 0.12));
  animation: wordmark-breathe 4.2s ease-in-out infinite alternate;
}

.event-row {
  border-top-color: rgba(155, 207, 228, 0.18);
}

.response-option[data-status="Attending"].is-selected {
  border-color: rgba(103, 236, 180, 0.78);
  background:
    linear-gradient(120deg, rgba(26, 147, 99, 0.42), rgba(77, 205, 153, 0.18)),
    rgba(4, 43, 35, 0.42);
  box-shadow: 0 12px 34px rgba(0, 24, 17, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 22px rgba(74, 219, 158, 0.12);
}

.response-option[data-status="Not attending"].is-selected {
  border-color: rgba(255, 128, 145, 0.8);
  background:
    linear-gradient(120deg, rgba(177, 47, 68, 0.43), rgba(230, 92, 111, 0.18)),
    rgba(55, 8, 20, 0.44);
  box-shadow: 0 12px 34px rgba(31, 0, 8, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.19), 0 0 22px rgba(239, 93, 116, 0.11);
}

.response-option[data-status="Confirm later"].is-selected {
  border-color: rgba(109, 181, 255, 0.82);
  background:
    linear-gradient(120deg, rgba(34, 102, 193, 0.47), rgba(86, 164, 243, 0.19)),
    rgba(4, 26, 64, 0.45);
  box-shadow: 0 12px 34px rgba(0, 12, 37, 0.29), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 22px rgba(83, 161, 243, 0.13);
}

.response-option[data-status="Attending"].is-selected .option-icon {
  border-color: rgba(133, 246, 199, 0.78);
  background: rgba(38, 173, 117, 0.38);
}

.response-option[data-status="Not attending"].is-selected .option-icon {
  border-color: rgba(255, 159, 171, 0.8);
  background: rgba(185, 48, 68, 0.38);
}

.response-option[data-status="Confirm later"].is-selected .option-icon {
  border-color: rgba(139, 198, 255, 0.8);
  background: rgba(42, 111, 198, 0.4);
}

.submit-action[aria-busy="true"] {
  border-color: rgba(225, 244, 250, 0.92);
  box-shadow:
    0 15px 38px rgba(0, 8, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 26px rgba(164, 222, 239, 0.18);
}

.success-inner {
  padding-top: max(58px, calc(env(safe-area-inset-top) + 46px));
  padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 62px));
}

.success-actions {
  margin-top: 6px;
}

@media (max-width: 600px) {
  .signal-portal {
    width: clamp(154px, 42vw, 184px);
    margin-top: clamp(64px, 10.5vh, 94px);
  }

  .signal-entry {
    padding-bottom: clamp(20px, 3vh, 30px);
  }

  .reveal-shell {
    padding-top: max(18px, calc(env(safe-area-inset-top) + 11px));
  }

  .reveal-kicker,
  .reveal-intro {
    max-width: 305px;
  }

  .brand-portal {
    width: clamp(184px, 50vw, 214px);
  }

  .reveal-entry {
    padding-bottom: clamp(8px, 1.7vh, 15px);
  }

  .invite-inner {
    padding-top: max(45px, calc(env(safe-area-inset-top) + 35px));
  }

  .guest-name {
    max-width: 355px;
    font-size: clamp(37px, 10vw, 45px);
  }

  .event-wordmark {
    width: min(78%, 252px);
    margin-bottom: 17px;
  }
}

@media (max-height: 720px) {
  .signal-portal {
    width: clamp(146px, 39vw, 170px);
    margin-top: clamp(56px, 9vh, 72px);
  }

  .signal-entry {
    padding-bottom: 8px;
  }

  .reveal-shell {
    padding-top: max(14px, calc(env(safe-area-inset-top) + 8px));
  }

  .experience[data-screen="reveal"] .sound-control {
    top: max(82px, calc(env(safe-area-inset-top) + 73px));
  }

  .reveal-kicker {
    margin-bottom: 4px;
  }

  .brand-portal {
    width: clamp(166px, 45vw, 190px);
  }

  .brand-promise {
    margin-bottom: 9px;
  }

  .reveal-entry {
    padding-bottom: 2px;
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .signal-inner {
    display: grid;
    width: min(94%, 760px);
    grid-template-columns: minmax(150px, 0.82fr) minmax(260px, 1.18fr);
    grid-template-rows: 1fr;
    column-gap: 30px;
    align-content: center;
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .signal-portal {
    grid-row: 1;
    grid-column: 1;
    width: min(45vh, 210px);
    align-self: center;
    margin: 0;
  }

  .signal-entry {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin: 0;
    padding-bottom: 13px;
  }

  .reveal-shell {
    display: grid;
    width: min(94%, 760px);
    grid-template-columns: minmax(150px, 0.82fr) minmax(260px, 1.18fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 30px;
    align-content: center;
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .brand-portal {
    grid-row: 1 / 5;
    grid-column: 1;
    width: min(45vh, 210px);
    align-self: center;
    margin: 0;
  }

  .reveal-kicker,
  .reveal-intro,
  .reveal-shell > h1 {
    grid-column: 2;
  }

  .reveal-kicker {
    grid-row: 1;
    align-self: start;
  }

  .reveal-intro {
    grid-row: 2;
    align-self: center;
  }

  .reveal-shell > h1 {
    grid-row: 3;
    align-self: center;
  }

  .reveal-entry {
    grid-row: 4;
    grid-column: 2;
    align-self: end;
    margin: 0;
    padding-bottom: 13px;
  }

  .experience[data-screen="reveal"] .sound-control {
    top: max(14px, env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star-real {
    animation-duration: 16s;
  }

  .reveal-shell > h1 span,
  .guest-name span,
  .event-wordmark,
  .event-card::before {
    animation-duration: 12s;
  }
}

@keyframes meteor-flight {
  0%, 64% {
    opacity: 0;
    transform: translate3d(0, -8vh, 0) scale(0.72);
  }
  67% {
    opacity: 0;
  }
  70% {
    opacity: 0.94;
  }
  82% {
    opacity: 0.8;
    transform: translate3d(154vw, 33vh, 0) scale(1.02);
  }
  86%, 100% {
    opacity: 0;
    transform: translate3d(178vw, 39vh, 0) scale(1.07);
  }
}

@keyframes silver-title-sheen {
  from { background-position: 220% 50%; }
  to { background-position: -20% 50%; }
}

@keyframes guest-name-sheen {
  from { background-position: 215% 50%; }
  to { background-position: -15% 50%; }
}

@keyframes logo-reveal-crisp {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1.5); }
  55% { opacity: 1; transform: translate3d(0, 0, 0) scale(0.96); }
  82% { transform: translate3d(0, 0, 0) scale(1.02); }
  99% { transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1; transform: none; }
}

@keyframes glass-light-pass {
  0%, 64% { left: -52%; opacity: 0; }
  70% { opacity: 0.62; }
  88%, 100% { left: 126%; opacity: 0; }
}

@keyframes wordmark-breathe {
  from { transform: translate3d(0, 0, 0) scale(0.99); }
  to { transform: translate3d(0, -1px, 0) scale(1.015); }
}

/* v22: celestial platinum redesign */
.world {
  background: #020b1d;
}

.world-image {
  inset: -3%;
  background-image: url("assets/ahasa-celestial-platinum-bg-v22.webp");
  background-position: center center;
  background-size: cover;
  filter: saturate(1.04) contrast(1.07) brightness(0.7);
  transform: translate3d(0, 0, 0) scale(1.045);
  animation: celestial-background-drift 21s ease-in-out infinite alternate;
}

.celestial-aurora,
.platinum-rays {
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.celestial-aurora {
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 8% 20%, rgba(71, 159, 238, 0.2), transparent 38%),
    radial-gradient(ellipse at 92% 30%, rgba(173, 226, 255, 0.14), transparent 35%),
    linear-gradient(118deg, transparent 15%, rgba(68, 150, 226, 0.08) 36%, transparent 57%),
    linear-gradient(62deg, transparent 43%, rgba(217, 244, 255, 0.07) 52%, transparent 63%);
  animation: celestial-aurora-float 17s ease-in-out infinite alternate;
}

.platinum-rays {
  inset: -18% -35%;
  opacity: 0.25;
  background:
    linear-gradient(104deg, transparent 31%, rgba(218, 244, 255, 0.1) 39%, transparent 47%),
    linear-gradient(76deg, transparent 53%, rgba(104, 186, 242, 0.08) 61%, transparent 69%);
  transform: translate3d(-8%, 0, 0);
  animation: platinum-ray-sweep 13s ease-in-out infinite;
}

.cloud-drift {
  inset: 5% -21% auto;
  height: 54%;
  opacity: 0.13;
  background-size: 118% auto;
  filter: brightness(1.08) contrast(1.03) saturate(0.8);
  mix-blend-mode: screen;
  animation: cloud-travel 26s ease-in-out infinite alternate;
}

.world-vignette {
  background:
    linear-gradient(180deg, rgba(1, 7, 18, 0.26) 0%, transparent 25%, transparent 67%, rgba(1, 8, 20, 0.34) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(1, 7, 19, 0.34) 100%);
}

.star-field {
  opacity: 0.92;
}

.star-prism {
  border-radius: 20%;
  background: #f7fdff;
  box-shadow:
    0 0 5px rgba(240, 251, 255, 0.94),
    0 0 15px rgba(105, 192, 246, 0.72),
    0 0 28px rgba(69, 133, 225, 0.32);
  animation-name: prism-glint;
}

.tower-lights {
  top: 67%;
  bottom: 12%;
  opacity: 0.9;
}

.water-light {
  top: 76%;
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 50% 11%, rgba(166, 228, 255, 0.17), transparent 52%),
    repeating-linear-gradient(177deg, transparent 0 18px, rgba(211, 241, 255, 0.08) 19px, transparent 21px);
  animation-duration: 6.4s;
}

.water-ripple {
  top: 79%;
  opacity: 0.16;
  background-size: 124% 78px;
  animation-duration: 5.8s;
}

.shooting-star-real {
  top: 7%;
  opacity: 0;
  filter:
    drop-shadow(0 0 6px rgba(244, 253, 255, 0.82))
    drop-shadow(0 0 18px rgba(79, 160, 234, 0.5));
}

.screen-inner {
  width: min(100%, 540px);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.signal-inner,
.reveal-shell {
  align-items: center;
}

.signal-inner {
  padding-top: max(32px, calc(env(safe-area-inset-top) + 22px));
  padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
}

.signal-portal {
  width: clamp(228px, 58vw, 300px);
  margin: clamp(64px, 10vh, 98px) auto 0;
  place-self: center;
}

.signal-portal::before {
  inset: 7%;
  background:
    radial-gradient(circle, rgba(206, 242, 255, 0.15), rgba(64, 156, 211, 0.055) 49%, transparent 73%);
  box-shadow:
    0 0 74px rgba(92, 186, 238, 0.17),
    inset 0 0 38px rgba(235, 250, 255, 0.05);
}

.signal-portal::after {
  border-color: rgba(205, 237, 250, 0.18);
  box-shadow:
    inset 0 0 36px rgba(127, 207, 242, 0.09),
    0 0 28px rgba(127, 207, 242, 0.06);
}

.signal-core {
  inset: 20%;
  border-color: rgba(226, 246, 253, 0.34);
  background:
    radial-gradient(circle at 40% 31%, rgba(57, 125, 173, 0.24), rgba(3, 15, 35, 0.2)),
    rgba(2, 13, 31, 0.18);
  box-shadow:
    0 0 34px rgba(104, 202, 245, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 26px rgba(109, 193, 233, 0.08);
  -webkit-backdrop-filter: blur(13px) saturate(1.25);
  backdrop-filter: blur(13px) saturate(1.25);
}

.signal-core img {
  width: 94%;
  height: 94%;
  object-position: center;
  filter:
    drop-shadow(0 8px 16px rgba(0, 5, 18, 0.36))
    drop-shadow(0 0 10px rgba(97, 174, 239, 0.13));
}

.signal-entry {
  width: min(100%, 420px);
  margin-top: auto;
}

.signal-copy,
.reveal-kicker,
.reveal-intro,
.reveal-shell > h1,
.brand-promise,
.invite-message {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  text-wrap: balance;
}

.signal-action,
.reveal-entry .primary-action {
  width: min(100%, 340px);
}

.reveal-shell {
  padding-top: max(21px, calc(env(safe-area-inset-top) + 13px));
  padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
}

.brand-portal {
  width: clamp(242px, 64vw, 320px);
  margin: clamp(8px, 1.4vh, 15px) auto 0;
  place-self: center;
}

.brand-portal::before {
  inset: 5%;
  background:
    radial-gradient(circle, rgba(167, 224, 255, 0.13), rgba(57, 131, 195, 0.045) 50%, transparent 72%);
  box-shadow:
    0 0 82px rgba(102, 180, 238, 0.16),
    inset 0 0 40px rgba(227, 247, 255, 0.04);
}

.brand-flare {
  background: conic-gradient(from 180deg, transparent 0 82%, rgba(207, 239, 255, 0.2) 92%, transparent 100%);
}

.brand-portal img {
  width: 86%;
  height: 86%;
  margin: auto;
  object-position: center;
  filter:
    drop-shadow(0 13px 21px rgba(0, 4, 16, 0.34))
    drop-shadow(0 0 12px rgba(73, 149, 229, 0.13));
}

.reveal-entry {
  width: min(100%, 420px);
}

.personal-header {
  width: 100%;
  text-align: center;
}

#timeGreeting {
  display: inline-block;
  margin: 0 auto 2px;
  color: #edf8ff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 6.5vw, 32px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-shadow:
    0 0 18px rgba(170, 222, 255, 0.28),
    0 8px 20px rgba(0, 4, 14, 0.32);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #timeGreeting {
    background: linear-gradient(105deg, #8aa4b8 0%, #ffffff 28%, #bdd8e8 49%, #ffffff 64%, #86a6bd 84%, #eefaff 100%);
    background-size: 230% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: greeting-sheen 5.8s linear infinite;
  }
}

.guest-name,
.event-wordmark,
.success-portal {
  margin-right: auto;
  margin-left: auto;
}

.success-portal {
  width: clamp(154px, 38vw, 194px);
  place-self: center;
}

.event-card,
.response-option,
.field-shell,
.secondary-action,
.primary-action,
.music-cue,
.success-check {
  border-color: rgba(215, 240, 252, 0.34);
  background:
    linear-gradient(145deg, rgba(214, 241, 255, 0.07), rgba(29, 100, 156, 0.055)),
    rgba(2, 14, 34, 0.12);
  box-shadow:
    0 18px 48px rgba(0, 5, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(98, 176, 223, 0.11);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
}

.event-card {
  background:
    linear-gradient(145deg, rgba(117, 197, 240, 0.075), rgba(4, 34, 75, 0.045)),
    rgba(2, 13, 32, 0.1);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(238, 250, 255, 0.84);
  background:
    linear-gradient(135deg, rgba(225, 246, 255, 0.1), rgba(77, 155, 211, 0.075)),
    rgba(2, 18, 42, 0.18);
  box-shadow:
    0 18px 48px rgba(0, 5, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 25px rgba(113, 197, 238, 0.1);
  transform: none;
}

.event-row {
  border-top-color: rgba(198, 231, 246, 0.16);
}

.response-options {
  position: relative;
  gap: 12px;
  overflow-anchor: none;
}

.response-option,
.screen-invite.is-active .response-option,
.response-option.is-selected,
.response-option[data-status].is-selected {
  min-height: 74px;
  animation: none !important;
  transform: none !important;
}

.response-option {
  touch-action: manipulation;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.response-option:hover,
.response-option:focus-visible,
.response-option:active {
  transform: none;
}

.response-option[data-status="Attending"].is-selected {
  border-color: rgba(112, 241, 185, 0.72);
  background:
    linear-gradient(120deg, rgba(27, 166, 109, 0.22), rgba(89, 222, 169, 0.07)),
    rgba(2, 25, 26, 0.16);
  box-shadow:
    0 13px 36px rgba(0, 24, 17, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(74, 219, 158, 0.1);
}

.response-option[data-status="Not attending"].is-selected {
  border-color: rgba(255, 137, 153, 0.74);
  background:
    linear-gradient(120deg, rgba(188, 48, 71, 0.22), rgba(236, 104, 121, 0.07)),
    rgba(38, 3, 15, 0.16);
  box-shadow:
    0 13px 36px rgba(35, 0, 9, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    0 0 22px rgba(239, 93, 116, 0.09);
}

.response-option[data-status="Confirm later"].is-selected {
  border-color: rgba(119, 190, 255, 0.76);
  background:
    linear-gradient(120deg, rgba(38, 113, 211, 0.23), rgba(93, 174, 249, 0.07)),
    rgba(2, 18, 48, 0.16);
  box-shadow:
    0 13px 36px rgba(0, 12, 38, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(83, 161, 243, 0.1);
}

.response-expander {
  overflow-anchor: none;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .event-card,
  .response-option,
  .field-shell,
  .secondary-action,
  .primary-action,
  .music-cue,
  .success-check {
    background: rgba(3, 20, 45, 0.64);
  }
}

@media (orientation: landscape) {
  .world-image {
    background-image: url("assets/ahasa-celestial-platinum-wide-v22.webp");
    background-position: center center;
  }

  .tower-lights {
    top: 61%;
    bottom: 13%;
  }

  .water-light {
    top: 73%;
  }

  .water-ripple {
    top: 77%;
  }
}

@media (max-width: 600px) {
  .screen-inner {
    width: min(100%, 500px);
    padding-right: max(22px, env(safe-area-inset-right));
    padding-left: max(22px, env(safe-area-inset-left));
  }

  .signal-portal {
    width: clamp(224px, 61vw, 264px);
    margin-top: clamp(58px, 8.5vh, 84px);
  }

  .brand-portal {
    width: clamp(232px, 64vw, 278px);
  }

  .signal-core img,
  .brand-portal img {
    object-position: center;
  }

  #timeGreeting {
    font-size: clamp(25px, 7vw, 30px);
  }

  .invite-inner {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 62px));
  }

  .event-card,
  .response-option,
  .field-shell,
  .secondary-action {
    -webkit-backdrop-filter: blur(18px) saturate(1.32);
    backdrop-filter: blur(18px) saturate(1.32);
  }
}

@media (max-height: 720px) {
  .signal-portal {
    width: clamp(200px, 56vw, 236px);
    margin-top: clamp(48px, 7vh, 65px);
  }

  .signal-entry {
    padding-bottom: 3px;
  }

  .brand-portal {
    width: clamp(208px, 58vw, 238px);
  }

  #timeGreeting {
    font-size: clamp(23px, 6.3vw, 28px);
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .signal-portal,
  .brand-portal {
    width: min(57vh, 255px);
    place-self: center;
  }

  .success-portal {
    width: min(40vh, 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-image,
  .celestial-aurora,
  .platinum-rays,
  .star-prism {
    animation-duration: 30s !important;
  }
}

@keyframes celestial-background-drift {
  0% { transform: translate3d(-0.25%, 0.15%, 0) scale(1.045); }
  50% { transform: translate3d(0.35%, -0.45%, 0) scale(1.065); }
  100% { transform: translate3d(0.15%, -0.15%, 0) scale(1.052); }
}

@keyframes celestial-aurora-float {
  from { opacity: 0.22; transform: translate3d(-1.5%, 0.5%, 0) scale(1.02); }
  to { opacity: 0.42; transform: translate3d(1.8%, -1.2%, 0) scale(1.07); }
}

@keyframes platinum-ray-sweep {
  0%, 15% { opacity: 0.1; transform: translate3d(-9%, 0, 0); }
  50% { opacity: 0.32; }
  85%, 100% { opacity: 0.1; transform: translate3d(9%, -1%, 0); }
}

@keyframes prism-glint {
  0%, 100% { opacity: 0.16; transform: scale(0.65) rotate(0deg); }
  46% { opacity: var(--opacity); transform: scale(1.7) rotate(45deg); }
  62% { opacity: 0.28; transform: scale(0.9) rotate(90deg); }
}

@keyframes greeting-sheen {
  from { background-position: 210% 50%; }
  to { background-position: -10% 50%; }
}

/* v23: skyline, spacing and platinum-glass refinement */
.lotus-tower-glow {
  --tower-x: 0%;
  position: absolute;
  right: 15%;
  bottom: 11.8%;
  z-index: 5;
  display: block;
  width: clamp(25px, 7.2vw, 42px);
  height: auto;
  opacity: 0.94;
  pointer-events: none;
  transform: translate3d(var(--tower-x), 0, 0) scale(1.02);
  transform-origin: 50% 100%;
  will-change: filter, opacity, transform;
  animation: lotus-spectrum 7.6s ease-in-out infinite;
}

.brand-promise {
  display: none;
}

.brand-portal {
  margin-top: clamp(16px, 2.6vh, 24px);
  transform: translate3d(0, 6px, 0);
}

.reveal-entry {
  margin-top: clamp(28px, 4.2vh, 44px);
  padding-bottom: 0;
}

.invite-scroll {
  overflow-anchor: none;
}

.invite-inner {
  padding-top: max(14px, calc(env(safe-area-inset-top) + 8px));
}

.personal-header {
  margin-bottom: 14px;
}

#timeGreeting {
  margin-bottom: 3px;
  font-size: clamp(27px, 7.4vw, 32px);
}

.guest-name {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: clamp(36px, 9.8vw, 46px);
  line-height: 0.96;
}

.invite-message {
  max-width: 390px;
  margin-top: 10px;
  font-size: clamp(14px, 3.9vw, 16px);
  line-height: 1.46;
}

.event-card,
.response-option:not(.is-selected),
.field-shell,
.secondary-action,
.primary-action,
.music-cue,
.success-check {
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(213, 242, 255, 0.045), rgba(32, 102, 158, 0.035)) padding-box,
    linear-gradient(112deg, rgba(250, 254, 255, 0.88), rgba(131, 187, 218, 0.2) 32%, rgba(241, 251, 255, 0.76) 57%, rgba(94, 151, 193, 0.17)) border-box;
  box-shadow:
    0 17px 44px rgba(0, 5, 18, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(155, 214, 242, 0.045);
  -webkit-backdrop-filter: blur(11px) saturate(1.25);
  backdrop-filter: blur(11px) saturate(1.25);
}

.event-card {
  padding: 15px 16px 12px;
  border-radius: 22px;
}

.event-card > .eyebrow {
  font-size: 11px;
  letter-spacing: 0.17em;
}

.event-wordmark {
  width: min(68%, 230px);
  margin: 3px auto 8px;
}

.event-row {
  min-height: 47px;
  padding: 5px 2px;
  border-top-color: rgba(208, 238, 251, 0.13);
}

.event-row span {
  font-size: 11px;
}

.event-row strong {
  font-size: 13px;
  line-height: 1.34;
}

.response-form {
  margin-top: 14px;
  overflow-anchor: none;
}

.response-form legend {
  margin-bottom: 12px;
  font-size: 17px;
}

.response-expander,
.response-options {
  overflow-anchor: none;
}

.response-option[data-status="Attending"].is-selected {
  border: 1px solid transparent;
  background:
    linear-gradient(120deg, rgba(22, 152, 96, 0.2), rgba(56, 201, 145, 0.055)) padding-box,
    linear-gradient(112deg, rgba(174, 255, 216, 0.95), rgba(69, 206, 148, 0.34) 43%, rgba(218, 255, 239, 0.78)) border-box;
}

.response-option[data-status="Not attending"].is-selected {
  border: 1px solid transparent;
  background:
    linear-gradient(120deg, rgba(180, 37, 64, 0.2), rgba(229, 81, 105, 0.055)) padding-box,
    linear-gradient(112deg, rgba(255, 190, 200, 0.95), rgba(235, 89, 111, 0.36) 43%, rgba(255, 223, 228, 0.8)) border-box;
}

.response-option[data-status="Confirm later"].is-selected {
  border: 1px solid transparent;
  background:
    linear-gradient(120deg, rgba(31, 101, 201, 0.21), rgba(74, 158, 242, 0.055)) padding-box,
    linear-gradient(112deg, rgba(188, 222, 255, 0.95), rgba(84, 160, 238, 0.37) 43%, rgba(225, 240, 255, 0.82)) border-box;
}

.success-inner {
  padding-top: max(26px, calc(env(safe-area-inset-top) + 18px));
}

.success-portal {
  isolation: isolate;
  width: clamp(150px, 40vw, 190px);
  margin-bottom: 12px;
  overflow: visible;
}

.success-portal::before,
.success-portal::after {
  position: absolute;
  inset: -38%;
  z-index: 0;
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 2%, rgba(255, 255, 255, 0.98) 0 1.4px, transparent 2.6px),
    radial-gradient(circle at 73% 9%, rgba(154, 216, 255, 0.95) 0 1.3px, transparent 2.5px),
    radial-gradient(circle at 91% 28%, rgba(202, 172, 255, 0.9) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 98% 54%, rgba(255, 255, 255, 0.92) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 82% 82%, rgba(125, 201, 255, 0.94) 0 1.6px, transparent 2.8px),
    radial-gradient(circle at 55% 98%, rgba(230, 243, 255, 0.94) 0 1.3px, transparent 2.5px),
    radial-gradient(circle at 25% 91%, rgba(185, 155, 255, 0.92) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 5% 67%, rgba(255, 255, 255, 0.98) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 8% 31%, rgba(124, 203, 255, 0.95) 0 1.6px, transparent 2.9px),
    radial-gradient(circle at 29% 10%, rgba(229, 241, 255, 0.96) 0 1.2px, transparent 2.4px);
  filter: drop-shadow(0 0 7px rgba(124, 198, 255, 0.9));
  transform: scale(0.42) rotate(-8deg);
  animation: success-fireworks 3s ease-out 0.15s infinite;
}

.success-portal::after {
  inset: -28%;
  animation-delay: 1.55s;
  animation-duration: 3.2s;
  transform: scale(0.36) rotate(23deg);
}

.success-ring,
.success-check {
  z-index: 2;
}

.success-check {
  animation: success-core-light 2.5s ease-in-out infinite;
}

.success-inner h1 {
  margin-top: 1px;
}

.success-actions {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-right: auto;
  margin-left: auto;
}

.secondary-action {
  min-height: 48px;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 14px;
  font-size: 10px;
  letter-spacing: 0.055em;
}

.secondary-action svg {
  width: 18px;
  height: 18px;
}

@media (orientation: landscape) {
  .lotus-tower-glow {
    --tower-x: -50%;
    right: auto;
    bottom: 18.2%;
    left: 68.6%;
    width: clamp(22px, 3.2vw, 39px);
    transform: translate3d(var(--tower-x), 0, 0) scale(1.02);
  }
}

@media (max-width: 600px) {
  .invite-inner {
    padding-top: max(12px, calc(env(safe-area-inset-top) + 6px));
  }

  .event-card,
  .response-option,
  .field-shell,
  .secondary-action {
    -webkit-backdrop-filter: blur(10px) saturate(1.24);
    backdrop-filter: blur(10px) saturate(1.24);
  }

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

@media (max-height: 720px) {
  .brand-portal {
    width: clamp(205px, 58vw, 238px);
    margin-top: clamp(12px, 2vh, 18px);
  }

  .reveal-entry {
    margin-top: clamp(21px, 3.2vh, 29px);
  }

  .success-inner {
    padding-top: max(18px, calc(env(safe-area-inset-top) + 12px));
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .brand-portal {
    width: min(55vh, 242px);
    margin: 0;
    transform: translate3d(0, 5px, 0);
  }

  .reveal-entry {
    align-self: center;
    margin: 18px 0 0;
    padding-bottom: 10px;
  }

  .invite-inner {
    padding-top: max(12px, calc(env(safe-area-inset-top) + 6px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lotus-tower-glow,
  .success-portal::before,
  .success-portal::after,
  .success-check {
    animation-duration: 12s !important;
  }
}

@keyframes lotus-spectrum {
  0%, 100% {
    opacity: 0.9;
    filter: hue-rotate(92deg) saturate(1.7) brightness(1.16) drop-shadow(0 0 5px rgba(255, 79, 222, 0.82)) drop-shadow(0 0 14px rgba(214, 67, 255, 0.48));
    transform: translate3d(var(--tower-x), 0, 0) scale(1.01);
  }
  48% {
    opacity: 1;
    filter: hue-rotate(55deg) saturate(1.75) brightness(1.2) drop-shadow(0 0 6px rgba(188, 108, 255, 0.88)) drop-shadow(0 0 17px rgba(113, 91, 255, 0.54));
    transform: translate3d(var(--tower-x), -1px, 0) scale(1.055);
  }
}

@keyframes success-fireworks {
  0%, 8% { opacity: 0; transform: scale(0.34) rotate(-10deg); }
  28% { opacity: 1; }
  65% { opacity: 0.72; transform: scale(1.08) rotate(5deg); }
  100% { opacity: 0; transform: scale(1.28) rotate(12deg); }
}

@keyframes success-core-light {
  0%, 100% {
    box-shadow: 0 0 26px rgba(147, 213, 249, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 42px rgba(176, 223, 255, 0.46), 0 0 72px rgba(122, 103, 255, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.18);
  }
}

/* v24: clear glass, single-tower petal light and thumb entry */
.lotus-tower-glow,
.music-cue,
.success-check {
  display: none !important;
}

.lotus-petal-glow {
  position: absolute;
  top: 75.65%;
  left: 79.55%;
  z-index: 5;
  width: clamp(16px, 4.2vw, 26px);
  height: clamp(8px, 2.15vw, 14px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 246, 255, 0.98) 0 12%, rgba(255, 80, 215, 0.78) 32%, rgba(174, 78, 255, 0.42) 53%, transparent 76%);
  filter: blur(0.65px) drop-shadow(0 0 5px rgba(255, 75, 215, 0.82)) drop-shadow(0 0 13px rgba(164, 77, 255, 0.52));
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  will-change: filter, opacity, transform;
  animation: lotus-petal-shift 6.8s ease-in-out infinite;
}

.event-card,
.response-option:not(.is-selected),
.field-shell,
.secondary-action,
.primary-action,
.sound-control,
.custom-check {
  border: 0.75px solid rgba(231, 245, 252, 0.64);
  background: rgba(3, 17, 36, 0.105);
  box-shadow:
    0 15px 40px rgba(0, 5, 18, 0.15),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.1),
    0 0 8px rgba(190, 229, 247, 0.045);
  -webkit-backdrop-filter: blur(11px) saturate(1.15);
  backdrop-filter: blur(11px) saturate(1.15);
}

.event-card {
  background: rgba(3, 17, 36, 0.09);
}

.event-card::before {
  background: linear-gradient(90deg, transparent, rgba(242, 251, 255, 0.05), transparent);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(247, 253, 255, 0.86);
  background: rgba(7, 28, 50, 0.14);
  box-shadow:
    0 17px 44px rgba(0, 5, 18, 0.17),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.15),
    0 0 12px rgba(200, 236, 252, 0.09);
}

.response-option[data-status="Attending"].is-selected {
  border: 0.75px solid rgba(112, 241, 185, 0.8);
  background: rgba(8, 50, 39, 0.12);
  box-shadow: 0 13px 36px rgba(0, 24, 17, 0.14), inset 0 0.65px 0 rgba(235, 255, 247, 0.12), 0 0 12px rgba(74, 219, 158, 0.1);
}

.response-option[data-status="Not attending"].is-selected {
  border: 0.75px solid rgba(255, 137, 153, 0.82);
  background: rgba(58, 7, 20, 0.12);
  box-shadow: 0 13px 36px rgba(35, 0, 9, 0.14), inset 0 0.65px 0 rgba(255, 240, 243, 0.12), 0 0 12px rgba(239, 93, 116, 0.09);
}

.response-option[data-status="Confirm later"].is-selected {
  border: 0.75px solid rgba(119, 190, 255, 0.84);
  background: rgba(5, 29, 68, 0.12);
  box-shadow: 0 13px 36px rgba(0, 12, 38, 0.14), inset 0 0.65px 0 rgba(239, 248, 255, 0.12), 0 0 12px rgba(83, 161, 243, 0.1);
}

.signal-inner {
  justify-content: center;
  padding-top: max(30px, calc(env(safe-area-inset-top) + 22px));
  padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
}

.signal-portal.signal-touch {
  display: grid;
  width: clamp(220px, 58vw, 292px);
  flex: 0 0 auto;
  place-items: center;
  margin: 0 auto clamp(24px, 3.8vh, 34px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.signal-portal.signal-touch:focus-visible {
  outline: 1px solid rgba(232, 248, 255, 0.84);
  outline-offset: 8px;
}

.signal-portal.signal-touch:disabled {
  opacity: 1;
}

.signal-entry {
  width: 100%;
  margin: 0;
  padding: 0;
}

.signal-copy {
  margin: 0;
}

.signal-verified > span,
.signal-verified > strong {
  display: block;
}

.signal-copy .signal-verified {
  margin: 0;
  line-height: 1.2;
}

.signal-verified > span {
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.signal-verified > strong {
  margin-top: 7px;
  color: #eefaff;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow: 0 0 8px rgba(229, 248, 255, 0.45), 0 0 20px rgba(116, 199, 244, 0.26);
}

.thumbprint {
  position: relative;
  z-index: 2;
  width: 67%;
  height: 67%;
  overflow: visible;
  fill: none;
  stroke: rgba(225, 247, 255, 0.9);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(200, 240, 255, 0.72)) drop-shadow(0 0 12px rgba(74, 174, 235, 0.36));
}

.thumbprint path {
  stroke-dasharray: 92;
  stroke-dashoffset: 92;
  animation: thumb-draw 3.1s ease-in-out infinite;
}

.thumbprint path:nth-child(2) { animation-delay: 0.08s; }
.thumbprint path:nth-child(3) { animation-delay: 0.16s; }
.thumbprint path:nth-child(4) { animation-delay: 0.24s; }
.thumbprint path:nth-child(5) { animation-delay: 0.32s; }
.thumbprint path:nth-child(6) { animation-delay: 0.4s; }
.thumbprint path:nth-child(7) { animation-delay: 0.48s; }

.thumb-scan {
  position: absolute;
  top: 23%;
  right: 18%;
  left: 18%;
  z-index: 3;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(228, 250, 255, 0.98), transparent);
  box-shadow: 0 0 6px rgba(213, 244, 255, 0.9), 0 0 15px rgba(70, 182, 242, 0.68);
  opacity: 0;
  animation: thumb-scan 2.45s ease-in-out infinite;
}

.reveal-entry {
  margin-top: clamp(38px, 5.3vh, 52px);
}

.reveal-entry .primary-action {
  width: min(100%, 296px);
  min-height: 49px;
  padding: 12px 18px;
  font-size: 10.5px;
  letter-spacing: 0.105em;
}

.success-ring,
.success-logo {
  z-index: 2;
}

.success-logo {
  position: relative;
  display: grid;
  width: 48%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  animation: success-logo-glow 2.6s ease-in-out infinite;
}

.success-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(0, 5, 18, 0.4)) drop-shadow(0 0 10px rgba(111, 192, 245, 0.3));
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .event-card,
  .response-option:not(.is-selected),
  .field-shell,
  .secondary-action,
  .primary-action,
  .sound-control,
  .custom-check {
    background: rgba(3, 17, 36, 0.38);
  }
}

@media (orientation: landscape) {
  .lotus-petal-glow {
    top: 66.8%;
    left: 68.6%;
    width: clamp(14px, 2.1vw, 24px);
    height: clamp(7px, 1.05vw, 12px);
  }
}

@media (max-height: 720px) {
  .signal-portal.signal-touch {
    width: clamp(202px, 56vw, 238px);
    margin-bottom: 20px;
  }

  .reveal-entry {
    margin-top: clamp(29px, 4.4vh, 38px);
  }

  .reveal-entry .primary-action {
    width: min(100%, 282px);
    min-height: 47px;
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .signal-inner {
    display: flex;
    width: min(100%, 520px);
    flex-direction: column;
    justify-content: center;
  }

  .signal-portal.signal-touch {
    width: min(52vh, 230px);
    margin: 0 auto 13px;
  }

  .signal-entry {
    align-self: center;
    margin: 0;
    padding: 0;
  }

  .reveal-entry {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lotus-petal-glow,
  .thumbprint path,
  .thumb-scan,
  .success-logo {
    animation-duration: 12s !important;
  }
}

@keyframes lotus-petal-shift {
  0%, 100% {
    opacity: 0.82;
    background: radial-gradient(ellipse at center, rgba(255, 246, 255, 0.98) 0 12%, rgba(255, 80, 215, 0.78) 32%, rgba(174, 78, 255, 0.42) 53%, transparent 76%);
    filter: blur(0.65px) drop-shadow(0 0 5px rgba(255, 75, 215, 0.82)) drop-shadow(0 0 13px rgba(164, 77, 255, 0.52));
    transform: translate3d(-50%, -50%, 0) scale(0.96);
  }
  48% {
    opacity: 1;
    background: radial-gradient(ellipse at center, rgba(255, 252, 255, 1) 0 12%, rgba(191, 104, 255, 0.85) 32%, rgba(112, 95, 255, 0.45) 53%, transparent 76%);
    filter: blur(0.65px) drop-shadow(0 0 6px rgba(203, 116, 255, 0.88)) drop-shadow(0 0 15px rgba(113, 91, 255, 0.56));
    transform: translate3d(-50%, -50%, 0) scale(1.08);
  }
}

@keyframes thumb-draw {
  0%, 12% { stroke-dashoffset: 92; opacity: 0.24; }
  42%, 77% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -92; opacity: 0.22; }
}

@keyframes thumb-scan {
  0%, 10% { top: 23%; opacity: 0; }
  22% { opacity: 0.95; }
  74% { top: 76%; opacity: 0.95; }
  88%, 100% { top: 76%; opacity: 0; }
}

@keyframes success-logo-glow {
  0%, 100% { filter: brightness(1); transform: scale(0.98); }
  50% { filter: brightness(1.2); transform: scale(1.035); }
}

/* v25: printed-invitation ring, verified sequence and aligned Lotus crown light */
.signal-entry {
  width: 100%;
  flex: 0 0 auto;
  margin: 0 auto clamp(21px, 3.2vh, 30px);
  padding: 0;
}

.signal-portal.signal-touch {
  margin: 0 auto;
  overflow: visible;
}

.signal-metal-ring {
  --metal-width: clamp(7px, 1.8vw, 10px);
  position: absolute;
  inset: -3.4%;
  z-index: 4;
  border: var(--metal-width) solid rgba(205, 212, 218, 0.94);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(77, 91, 104, 0.72),
    0 0 14px rgba(222, 240, 250, 0.2);
  opacity: 0.96;
  pointer-events: none;
  transform: rotate(0deg);
  will-change: filter, opacity, transform;
  animation: silver-ring-lustre 2.8s ease-in-out infinite;
}

@supports ((-webkit-mask: linear-gradient(#000 0 0)) or (mask: linear-gradient(#000 0 0))) {
  .signal-metal-ring {
    padding: var(--metal-width);
    border: 0;
    background: conic-gradient(
      from 0deg,
      #626b73 0deg,
      #f8fbfd 24deg,
      #a3abb1 58deg,
      #ffffff 91deg,
      #737d85 137deg,
      #dfe5e9 190deg,
      #879198 232deg,
      #ffffff 276deg,
      #9ca5ab 319deg,
      #626b73 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: silver-ring-turn 7.4s linear infinite, silver-ring-lustre 2.8s ease-in-out infinite;
  }
}

.signal-orbit,
.signal-sweep {
  z-index: 2;
}

.signal-core {
  z-index: 3;
}

.signal-copy .signal-verified {
  min-height: 46px;
  line-height: 1.15;
}

.signal-type-line {
  position: relative;
  display: inline-block !important;
  color: rgba(230, 246, 253, 0.96);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-shadow: 0 0 13px rgba(171, 222, 248, 0.24);
}

.signal-type-line::after {
  position: absolute;
  top: -0.04em;
  bottom: 0.04em;
  left: 0;
  width: 1px;
  background: rgba(222, 247, 255, 0.95);
  box-shadow: 0 0 7px rgba(146, 221, 255, 0.82);
  content: "";
  opacity: 0;
  animation: signal-caret-travel 1.42s steps(10, end) 0.38s both;
}

.signal-type-text {
  display: inline-block;
  white-space: nowrap;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  animation: signal-type-reveal 1.42s steps(10, end) 0.38s both;
}

.signal-verified > .signal-verified-status {
  margin-top: 8px;
  color: #83ffc0;
  font-size: clamp(15px, 4.25vw, 19px);
  letter-spacing: 0.25em;
  opacity: 0;
  text-shadow:
    0 0 7px rgba(119, 255, 185, 0.92),
    0 0 20px rgba(53, 232, 142, 0.5),
    0 0 34px rgba(35, 182, 116, 0.26);
  animation: verified-green-blink 1.35s ease-in-out 1.88s infinite;
}

.thumbprint {
  width: 64%;
  height: 64%;
  transform: translate3d(0, -7%, 0);
}

.thumb-label {
  position: absolute;
  bottom: 10.5%;
  left: 50%;
  z-index: 4;
  padding-left: 0.24em;
  color: rgba(225, 247, 255, 0.9);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(7px, 2vw, 9px);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  text-shadow: 0 0 7px rgba(155, 224, 255, 0.66);
  transform: translate3d(-50%, 0, 0);
  animation: touch-label-pulse 2.2s ease-in-out infinite;
}

.lotus-overlay-track {
  position: absolute;
  inset: -3%;
  z-index: 5;
  pointer-events: none;
  transform: translate3d(-0.25%, 0.15%, 0) scale(1.045);
  transform-origin: center;
  will-change: transform;
  animation: celestial-background-drift 21s ease-in-out infinite alternate;
}

.lotus-petal-glow {
  top: 74.16%;
  left: calc(50% + 17.63vh);
  width: clamp(18px, 3.18vh, 30px);
  height: clamp(12px, 2.5vh, 22px);
  border-radius: 48% 48% 44% 44% / 58% 58% 42% 42%;
  background:
    radial-gradient(ellipse at 24% 62%, rgba(255, 83, 218, 0.82) 0 13%, rgba(255, 83, 218, 0.34) 34%, transparent 62%),
    radial-gradient(ellipse at 50% 42%, rgba(247, 226, 255, 0.94) 0 11%, rgba(182, 79, 255, 0.62) 34%, transparent 64%),
    radial-gradient(ellipse at 76% 62%, rgba(204, 92, 255, 0.82) 0 13%, rgba(160, 72, 255, 0.34) 34%, transparent 62%);
  filter: blur(0.2px) drop-shadow(0 0 3px rgba(255, 86, 218, 0.76)) drop-shadow(0 0 8px rgba(164, 77, 255, 0.4));
  opacity: 0.78;
  animation: lotus-petals-live 6.4s ease-in-out infinite;
}

@media (orientation: portrait) and (min-aspect-ratio: 941/1672) {
  .lotus-petal-glow {
    top: calc(50% + 45.5vw);
    left: 79.57%;
    width: clamp(18px, 5.65vw, 30px);
    height: clamp(12px, 4.2vw, 22px);
  }
}

@media (orientation: landscape) {
  .lotus-petal-glow {
    top: 68.23%;
    left: calc(50% + 35.38vh);
    width: clamp(17px, 5.65vh, 29px);
    height: clamp(11px, 4.2vh, 21px);
  }

  .signal-entry {
    margin-bottom: 13px;
  }
}

@media (orientation: landscape) and (min-aspect-ratio: 1672/941) {
  .lotus-petal-glow {
    top: calc(50% + 10.87vw);
    left: 68.78%;
    width: clamp(17px, 3.18vw, 29px);
    height: clamp(11px, 2.45vw, 21px);
  }
}

@media (max-height: 720px) and (orientation: portrait) {
  .signal-entry {
    margin-bottom: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lotus-overlay-track {
    animation-duration: 30s !important;
  }

  .signal-metal-ring {
    animation-duration: 22s !important;
  }

  .signal-type-text {
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
    animation: none !important;
  }

  .signal-type-line::after {
    display: none;
  }

  .signal-verified > .signal-verified-status {
    opacity: 1;
    animation: none !important;
  }
}

@keyframes silver-ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes silver-ring-lustre {
  0%, 100% {
    filter: brightness(0.94) drop-shadow(0 0 4px rgba(224, 241, 250, 0.14));
    opacity: 0.9;
  }
  50% {
    filter: brightness(1.24) drop-shadow(0 0 10px rgba(236, 249, 255, 0.36));
    opacity: 1;
  }
}

@keyframes signal-type-reveal {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }
}

@keyframes signal-caret-travel {
  0% { left: 0; opacity: 1; }
  88% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes verified-green-blink {
  0%, 100% {
    opacity: 1;
    filter: brightness(1.18);
  }
  48% {
    opacity: 0.24;
    filter: brightness(0.78);
  }
}

@keyframes touch-label-pulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}

@keyframes lotus-petals-live {
  0%, 100% {
    opacity: 0.72;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(255, 83, 218, 0.82) 0 13%, rgba(255, 83, 218, 0.34) 34%, transparent 62%),
      radial-gradient(ellipse at 50% 42%, rgba(247, 226, 255, 0.94) 0 11%, rgba(182, 79, 255, 0.62) 34%, transparent 64%),
      radial-gradient(ellipse at 76% 62%, rgba(204, 92, 255, 0.82) 0 13%, rgba(160, 72, 255, 0.34) 34%, transparent 62%);
    filter: blur(0.2px) drop-shadow(0 0 3px rgba(255, 86, 218, 0.76)) drop-shadow(0 0 7px rgba(164, 77, 255, 0.38));
    transform: translate3d(-50%, -50%, 0) scale(0.98);
  }
  50% {
    opacity: 0.94;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(198, 112, 255, 0.86) 0 13%, rgba(150, 83, 255, 0.36) 34%, transparent 62%),
      radial-gradient(ellipse at 50% 42%, rgba(255, 239, 255, 0.98) 0 11%, rgba(255, 74, 219, 0.66) 34%, transparent 64%),
      radial-gradient(ellipse at 76% 62%, rgba(255, 91, 220, 0.86) 0 13%, rgba(218, 75, 255, 0.36) 34%, transparent 62%);
    filter: blur(0.2px) drop-shadow(0 0 4px rgba(199, 112, 255, 0.82)) drop-shadow(0 0 9px rgba(255, 72, 215, 0.42));
    transform: translate3d(-50%, -50%, 0) scale(1.035);
  }
}

/* v26: reveal ring, Ratnadipa skyline and precision tower lighting */
.itc-skyline-building {
  --itc-anchor-x: -50%;
  position: absolute;
  top: 81.7%;
  left: calc(50% + 6.56vh);
  z-index: 4;
  display: block;
  width: clamp(36px, 5.67vh, 76px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  transform: translate3d(var(--itc-anchor-x), -100%, 0) scale(1);
  transform-origin: 50% 100%;
  filter:
    saturate(0.78)
    brightness(0.86)
    contrast(1.08)
    drop-shadow(0 0 3px rgba(255, 222, 171, 0.34))
    drop-shadow(0 5px 7px rgba(0, 5, 17, 0.48));
  will-change: filter, opacity, transform;
  animation: ratnadipa-spiral-live 4.8s ease-in-out infinite;
}

.lotus-petal-glow {
  z-index: 6;
  width: clamp(9px, 1.55vh, 15px);
  height: clamp(6px, 1.08vh, 10px);
  filter: blur(0.12px) drop-shadow(0 0 2px rgba(255, 86, 218, 0.72)) drop-shadow(0 0 4px rgba(164, 77, 255, 0.34));
  opacity: 0.82;
  animation-name: lotus-petals-precise-v26;
}

.reveal-shell {
  position: relative;
  justify-content: flex-start;
  padding-top: max(25px, calc(env(safe-area-inset-top) + 17px));
}

.reveal-intro {
  max-width: 350px;
  margin: 0 auto 4px;
  color: rgba(236, 247, 251, 0.88);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.15em;
}

.reveal-shell > h1 {
  max-width: 410px;
  margin: 0 auto;
  font-size: clamp(25px, 6.9vw, 37px);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.08;
}

.reveal-shell > h1 span {
  font-weight: 700;
  text-shadow:
    0 0 12px rgba(233, 249, 255, 0.28),
    0 7px 22px rgba(0, 5, 18, 0.34);
}

.brand-portal {
  isolation: isolate;
  width: clamp(230px, 62vw, 310px);
  margin: clamp(10px, 1.6vh, 17px) auto 0;
  overflow: visible;
  transform: none;
}

.brand-portal .brand-metal-ring {
  --metal-width: clamp(7px, 1.8vw, 10px);
  inset: -3.4%;
  z-index: 5;
}

.brand-portal .brand-ring,
.brand-portal .brand-flare {
  z-index: 2;
}

.brand-portal::before {
  z-index: 1;
}

.brand-portal img {
  z-index: 3;
  width: 74%;
  height: 74%;
  margin: auto;
  object-position: center;
  transform: translate3d(0, 0, 0) scale(2.15);
  filter:
    drop-shadow(0 11px 19px rgba(0, 3, 15, 0.36))
    drop-shadow(0 0 10px rgba(91, 166, 235, 0.19));
}

.screen-reveal.is-revealed .brand-portal img {
  animation: brand-logo-zoom-v26 1.9s var(--ease) 0.08s both;
}

.reveal-entry {
  width: 100%;
  margin-top: clamp(22px, 3.2vh, 33px);
  padding-bottom: 0;
}

.reveal-entry .primary-action {
  width: min(76vw, 246px);
  min-width: 0;
  min-height: 44px;
  padding: 10px 20px;
  border: 0.75px solid rgba(237, 248, 253, 0.76);
  background:
    linear-gradient(120deg, rgba(244, 252, 255, 0.045), rgba(122, 171, 199, 0.11)),
    rgba(3, 17, 36, 0.11);
  box-shadow:
    0 12px 30px rgba(0, 5, 18, 0.24),
    inset 0 0.7px 0 rgba(255, 255, 255, 0.28),
    0 0 13px rgba(187, 227, 247, 0.09);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  -webkit-backdrop-filter: blur(13px) saturate(1.18);
  backdrop-filter: blur(13px) saturate(1.18);
}

.reveal-kicker-bottom {
  position: absolute;
  top: 67.5%;
  right: max(24px, env(safe-area-inset-right));
  left: max(24px, env(safe-area-inset-left));
  z-index: 4;
  max-width: 360px;
  margin: 0 auto;
  color: rgba(220, 241, 250, 0.9);
  font-size: clamp(10px, 2.8vw, 12px);
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-shadow:
    0 0 10px rgba(183, 228, 247, 0.25),
    0 5px 16px rgba(0, 5, 18, 0.42);
}

@media (orientation: portrait) and (min-aspect-ratio: 941/1672) {
  .itc-skyline-building {
    top: calc(50% + 59.7vw);
    left: 61%;
    width: clamp(36px, 9vw, 76px);
  }

  .lotus-petal-glow {
    width: clamp(9px, 2.75vw, 15px);
    height: clamp(6px, 1.85vw, 10px);
  }
}

@media (orientation: landscape) {
  .itc-skyline-building {
    top: 80.9%;
    left: calc(50% + 21.67vh);
    width: clamp(38px, 12.24vh, 82px);
  }

  .lotus-petal-glow {
    width: clamp(9px, 2.75vh, 15px);
    height: clamp(6px, 1.85vh, 10px);
  }

  .reveal-kicker-bottom {
    top: 49%;
    right: 4%;
    left: auto;
    width: min(42%, 360px);
    margin: 0;
  }
}

@media (orientation: landscape) and (min-aspect-ratio: 1672/941) {
  .itc-skyline-building {
    top: calc(50% + 18.43vw);
    left: 61.5%;
    width: clamp(38px, 6.5vw, 82px);
  }
}

@media (max-height: 720px) and (orientation: portrait) {
  .reveal-shell {
    padding-top: max(18px, calc(env(safe-area-inset-top) + 10px));
  }

  .brand-portal {
    width: clamp(198px, 55vw, 238px);
    margin-top: 7px;
  }

  .reveal-entry {
    margin-top: 19px;
  }

  .reveal-entry .primary-action {
    width: min(72vw, 232px);
    min-height: 42px;
  }

  .reveal-kicker-bottom {
    top: 66.8%;
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .reveal-shell {
    position: relative;
    grid-template-rows: auto auto 1fr;
  }

  .brand-portal {
    grid-row: 1 / 4;
    width: min(54vh, 232px);
    transform: none;
  }

  .reveal-intro {
    grid-row: 1;
  }

  .reveal-shell > h1 {
    grid-row: 2;
  }

  .reveal-entry {
    grid-row: 3;
    margin-top: 16px;
    padding-bottom: 12px;
  }

  .reveal-kicker-bottom {
    top: auto;
    right: 3%;
    bottom: 13%;
    left: auto;
    width: 39%;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .itc-skyline-building,
  .lotus-petal-glow,
  .brand-portal .brand-metal-ring,
  .screen-reveal.is-revealed .brand-portal img {
    animation-duration: 12s !important;
  }
}

@keyframes brand-logo-zoom-v26 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(2.15);
    filter: blur(5px) drop-shadow(0 14px 24px rgba(0, 3, 15, 0.34));
  }
  58% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.92);
    filter: blur(0) drop-shadow(0 11px 19px rgba(0, 3, 15, 0.36));
  }
  78% {
    transform: translate3d(0, 0, 0) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) drop-shadow(0 11px 19px rgba(0, 3, 15, 0.36)) drop-shadow(0 0 10px rgba(91, 166, 235, 0.19));
  }
}

@keyframes ratnadipa-spiral-live {
  0%, 100% {
    opacity: 0.84;
    transform: translate3d(var(--itc-anchor-x), -100%, 0) scale(0.995);
    filter: saturate(0.74) brightness(0.8) contrast(1.08) drop-shadow(0 0 2px rgba(255, 222, 171, 0.26)) drop-shadow(0 5px 7px rgba(0, 5, 17, 0.48));
  }
  48% {
    opacity: 0.98;
    transform: translate3d(var(--itc-anchor-x), -100%, 0) scale(1.012);
    filter: saturate(0.9) brightness(1.04) contrast(1.12) drop-shadow(0 0 6px rgba(255, 226, 180, 0.58)) drop-shadow(0 5px 8px rgba(0, 5, 17, 0.52));
  }
}

@keyframes lotus-petals-precise-v26 {
  0%, 100% {
    opacity: 0.76;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(255, 83, 218, 0.92) 0 15%, rgba(255, 83, 218, 0.34) 40%, transparent 68%),
      radial-gradient(ellipse at 50% 40%, rgba(252, 235, 255, 0.98) 0 13%, rgba(182, 79, 255, 0.64) 39%, transparent 69%),
      radial-gradient(ellipse at 76% 62%, rgba(204, 92, 255, 0.92) 0 15%, rgba(160, 72, 255, 0.34) 40%, transparent 68%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(255, 86, 218, 0.72)) drop-shadow(0 0 4px rgba(164, 77, 255, 0.34));
    transform: translate3d(-50%, -50%, 0) scale(0.94);
  }
  50% {
    opacity: 0.98;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(198, 112, 255, 0.95) 0 15%, rgba(150, 83, 255, 0.38) 40%, transparent 68%),
      radial-gradient(ellipse at 50% 40%, rgba(255, 241, 255, 1) 0 13%, rgba(255, 74, 219, 0.7) 39%, transparent 69%),
      radial-gradient(ellipse at 76% 62%, rgba(255, 91, 220, 0.95) 0 15%, rgba(218, 75, 255, 0.38) 40%, transparent 68%);
    filter: blur(0.12px) drop-shadow(0 0 2.5px rgba(199, 112, 255, 0.78)) drop-shadow(0 0 4.5px rgba(255, 72, 215, 0.38));
    transform: translate3d(-50%, -50%, 0) scale(1.025);
  }
}

/* v27: stable logo reveal, faster platinum glints and reflected skyline */
.star {
  will-change: opacity, transform;
}

.star-medium {
  background: rgba(240, 252, 255, 0.98);
  box-shadow:
    0 0 5px rgba(237, 250, 255, 0.94),
    0 0 13px rgba(114, 198, 246, 0.7),
    0 0 24px rgba(74, 133, 226, 0.34);
}

.star-beacon {
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 17px rgba(174, 229, 255, 0.92),
    0 0 34px rgba(76, 151, 240, 0.62);
  animation-name: star-beacon-flare;
}

.star-beacon::before,
.star-beacon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.94), transparent);
  transform: translate3d(-50%, -50%, 0);
}

.star-beacon::before {
  width: 1px;
  height: 520%;
}

.star-beacon::after {
  width: 520%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 248, 255, 0.9), transparent);
}

.itc-skyline-reflection {
  --itc-anchor-x: -50%;
  position: absolute;
  top: 81.7%;
  left: calc(50% + 6.56vh);
  z-index: 3;
  display: block;
  width: clamp(36px, 5.67vh, 76px);
  height: auto;
  opacity: 0.2;
  pointer-events: none;
  transform: translate3d(var(--itc-anchor-x), 0, 0) scaleY(-1);
  transform-origin: 50% 50%;
  filter: blur(0.65px) saturate(0.72) brightness(0.9);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.14) 34%, rgba(0, 0, 0, 0.78) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.14) 34%, rgba(0, 0, 0, 0.78) 100%);
  will-change: filter, opacity, transform;
  animation: ratnadipa-water-reflection-v27 3.4s ease-in-out infinite;
}

.reveal-shell > h1 span {
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.45),
    0 0 23px rgba(172, 225, 250, 0.35),
    0 8px 23px rgba(0, 5, 18, 0.36);
}

.reveal-shell > h1 .grand-title-main,
.reveal-shell > h1 .grand-title-of {
  display: block;
}

.reveal-shell > h1 .grand-title-main {
  white-space: nowrap;
}

.reveal-shell > h1 .grand-title-of {
  margin-top: 0.03em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .reveal-shell > h1 span {
    background: linear-gradient(100deg, #718898 0%, #dcebf2 21%, #ffffff 28%, #91a9b8 37%, #ffffff 48%, #b9d0dd 61%, #ffffff 69%, #7a929f 82%, #eef9fd 100%);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: grand-title-shine-v27 2.45s linear infinite;
  }
}

.brand-portal {
  margin-top: clamp(27px, 4vh, 39px);
}

.brand-portal img {
  width: 74%;
  height: 74%;
  background: transparent !important;
  filter: none !important;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.16);
  transform-origin: 50% 50%;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  will-change: opacity, transform;
}

.screen-reveal.is-revealed .brand-portal img {
  animation: brand-logo-grow-v27 1.7s var(--ease) 0.1s both;
}

.reveal-entry .primary-action {
  isolation: isolate;
}

@supports ((-webkit-mask: linear-gradient(#000 0 0)) or (mask: linear-gradient(#000 0 0))) {
  .reveal-entry .primary-action::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 1.35px;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    background: conic-gradient(from 0deg, transparent 0 80%, rgba(198, 235, 252, 0.16) 83%, rgba(241, 252, 255, 0.84) 86%, #ffffff 87.5%, rgba(172, 222, 248, 0.8) 89%, transparent 93% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transform-origin: center;
    animation: invitation-border-star-v27 1.3s linear infinite;
  }
}

.lotus-petal-glow {
  animation: lotus-crown-colours-v27 8s linear infinite;
}

@media (orientation: portrait) and (min-aspect-ratio: 941/1672) {
  .itc-skyline-reflection {
    top: calc(50% + 59.7vw);
    left: 61%;
    width: clamp(36px, 9vw, 76px);
  }
}

@media (orientation: landscape) {
  .itc-skyline-reflection {
    top: 80.9%;
    left: calc(50% + 21.67vh);
    width: clamp(38px, 12.24vh, 82px);
  }
}

@media (orientation: landscape) and (min-aspect-ratio: 1672/941) {
  .itc-skyline-reflection {
    top: calc(50% + 18.43vw);
    left: 61.5%;
    width: clamp(38px, 6.5vw, 82px);
  }
}

@media (max-height: 720px) and (orientation: portrait) {
  .brand-portal {
    margin-top: 20px;
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .brand-portal {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .star-beacon,
  .itc-skyline-reflection,
  .reveal-shell > h1 span,
  .reveal-entry .primary-action::after,
  .lotus-petal-glow,
  .screen-reveal.is-revealed .brand-portal img {
    animation-duration: 12s !important;
  }
}

@keyframes brand-logo-grow-v27 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.16);
  }
  35% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.58);
  }
  76% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes grand-title-shine-v27 {
  0% {
    background-position: 225% 50%;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35), 0 0 18px rgba(172, 225, 250, 0.22), 0 8px 23px rgba(0, 5, 18, 0.36);
  }
  45% {
    text-shadow: 0 0 13px rgba(255, 255, 255, 0.68), 0 0 29px rgba(173, 227, 252, 0.48), 0 8px 23px rgba(0, 5, 18, 0.36);
  }
  100% {
    background-position: -125% 50%;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35), 0 0 18px rgba(172, 225, 250, 0.22), 0 8px 23px rgba(0, 5, 18, 0.36);
  }
}

@keyframes invitation-border-star-v27 {
  to { transform: rotate(360deg); }
}

@keyframes star-beacon-flare {
  0%, 100% { opacity: 0.2; transform: translate3d(0, 0, 0) scale(0.62) rotate(0deg); }
  48% { opacity: var(--opacity); transform: translate3d(0, 0, 0) scale(1.22) rotate(45deg); }
  64% { opacity: 0.46; transform: translate3d(0, 0, 0) scale(0.88) rotate(90deg); }
}

@keyframes ratnadipa-water-reflection-v27 {
  0%, 100% {
    opacity: 0.16;
    transform: translate3d(var(--itc-anchor-x), 1px, 0) scaleY(-1) scaleX(0.96) skewX(-0.7deg);
    filter: blur(0.8px) saturate(0.68) brightness(0.8);
  }
  50% {
    opacity: 0.27;
    transform: translate3d(var(--itc-anchor-x), 3px, 0) scaleY(-1) scaleX(1.06) skewX(0.85deg);
    filter: blur(0.55px) saturate(0.82) brightness(1.05);
  }
}

@keyframes lotus-crown-colours-v27 {
  0%, 23% {
    opacity: 0.9;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(255, 82, 218, 0.98) 0 16%, rgba(255, 82, 218, 0.38) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(255, 238, 255, 1) 0 14%, rgba(247, 76, 205, 0.7) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(237, 93, 255, 0.96) 0 16%, rgba(207, 71, 255, 0.38) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(255, 83, 218, 0.82)) drop-shadow(0 0 4px rgba(191, 74, 255, 0.42));
    transform: translate3d(-50%, -50%, 0) scale(0.97);
  }
  25%, 48% {
    opacity: 0.94;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(192, 112, 255, 0.98) 0 16%, rgba(146, 76, 255, 0.4) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(248, 235, 255, 1) 0 14%, rgba(173, 80, 255, 0.72) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(219, 103, 255, 0.98) 0 16%, rgba(166, 76, 255, 0.4) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(190, 108, 255, 0.84)) drop-shadow(0 0 4px rgba(137, 78, 255, 0.44));
    transform: translate3d(-50%, -50%, 0) scale(1.015);
  }
  50%, 73% {
    opacity: 0.96;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(77, 191, 255, 0.98) 0 16%, rgba(58, 142, 255, 0.4) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(231, 250, 255, 1) 0 14%, rgba(62, 167, 255, 0.75) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(75, 139, 255, 0.98) 0 16%, rgba(67, 99, 255, 0.4) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(83, 194, 255, 0.88)) drop-shadow(0 0 4px rgba(70, 119, 255, 0.46));
    transform: translate3d(-50%, -50%, 0) scale(0.99);
  }
  75%, 98% {
    opacity: 0.95;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(82, 255, 185, 0.98) 0 16%, rgba(55, 217, 152, 0.4) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(235, 255, 247, 1) 0 14%, rgba(70, 239, 168, 0.76) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(79, 224, 204, 0.98) 0 16%, rgba(46, 184, 171, 0.4) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(85, 255, 188, 0.88)) drop-shadow(0 0 4px rgba(44, 213, 173, 0.46));
    transform: translate3d(-50%, -50%, 0) scale(1.02);
  }
  100% {
    opacity: 0.9;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(255, 82, 218, 0.98) 0 16%, rgba(255, 82, 218, 0.38) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(255, 238, 255, 1) 0 14%, rgba(247, 76, 205, 0.7) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(237, 93, 255, 0.96) 0 16%, rgba(207, 71, 255, 0.38) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(255, 83, 218, 0.82)) drop-shadow(0 0 4px rgba(191, 74, 255, 0.42));
    transform: translate3d(-50%, -50%, 0) scale(0.97);
  }
}

/* v28: shared portal anchor, blue-foil guest name and refined confirmation */
.guest-name {
  width: 100%;
  max-width: 100%;
  margin: 6px auto 10px;
  overflow: visible;
  white-space: nowrap;
  line-height: 1.08;
  text-wrap: nowrap;
}

.guest-name span {
  display: inline-block;
  overflow: visible;
  max-width: none;
  white-space: nowrap;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
  font-family: "Parisienne", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(37px, 10.8vw, 52px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.08;
  color: #cdeeff;
  filter: drop-shadow(0 2px 1px rgba(0, 5, 20, 0.72)) drop-shadow(0 0 10px rgba(73, 162, 255, 0.42));
  transform: scaleX(var(--guest-name-scale, 1));
  transform-origin: 50% 50%;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.68),
    0 0 12px rgba(102, 188, 255, 0.36),
    0 7px 20px rgba(0, 5, 20, 0.44);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .guest-name span {
    background: linear-gradient(104deg, #4d9eff 0%, #b8e5ff 16%, #ffffff 25%, #62b3ff 37%, #dff5ff 51%, #3389ee 64%, #f6fdff 76%, #79c5ff 90%, #d8f2ff 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.2px rgba(221, 245, 255, 0.42);
    animation: guest-blue-foil-v28 3.35s linear infinite;
  }
}

#timeGreeting {
  display: inline-block;
  margin: 0 auto 3px;
  background: none !important;
  color: rgba(232, 247, 255, 0.94) !important;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(14px, 4vw, 18px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.3;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 12px rgba(171, 222, 248, 0.28), 0 6px 17px rgba(0, 5, 20, 0.4);
  animation: none !important;
}

.submit-action {
  border-color: rgba(242, 249, 252, 0.78);
  background:
    radial-gradient(ellipse at 50% 130%, rgba(255, 174, 83, 0.15), transparent 67%),
    linear-gradient(120deg, rgba(255, 239, 214, 0.035), rgba(255, 181, 91, 0.075)),
    rgba(3, 17, 36, 0.105);
  box-shadow:
    0 15px 40px rgba(0, 5, 18, 0.16),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.18),
    0 0 15px rgba(255, 184, 96, 0.2),
    0 0 34px rgba(255, 145, 55, 0.08);
  animation: submit-warm-glow-v28 2.25s ease-in-out infinite;
}

.submit-action::before {
  background: linear-gradient(90deg, transparent, rgba(255, 232, 193, 0.82), transparent);
  animation-duration: 2.85s;
}

.submit-action[aria-busy="true"] {
  border-color: rgba(255, 239, 213, 0.96);
  box-shadow:
    0 15px 40px rgba(0, 5, 18, 0.18),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.24),
    0 0 22px rgba(255, 189, 105, 0.35),
    0 0 42px rgba(255, 137, 47, 0.14);
}

.success-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
}

.success-portal {
  isolation: isolate;
  overflow: visible;
}

.success-portal .success-metal-ring {
  --metal-width: clamp(6px, 1.45vw, 8px);
  inset: -4.2%;
  z-index: 5;
}

.success-inner > .personal-id {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  color: rgba(210, 225, 235, 0.58);
  text-shadow: 0 2px 10px rgba(0, 4, 16, 0.72);
}

.success-actions[hidden] {
  display: none;
}

@media (orientation: portrait) {
  .signal-inner,
  .reveal-shell {
    --shared-portal-size: clamp(190px, min(58vw, 31dvh), 292px);
    --shared-portal-y: 46%;
    position: relative;
  }

  .reveal-shell,
  .screen-reveal.is-revealed .reveal-shell {
    transform: none;
  }

  .signal-portal.signal-touch,
  .brand-portal {
    position: absolute;
    top: var(--shared-portal-y);
    left: 50%;
    width: var(--shared-portal-size);
    margin: 0;
    transform: translate3d(-50%, -50%, 0);
  }

  .screen-signal.is-active .signal-portal.signal-touch {
    animation-name: portal-arrive-anchored-v28;
  }

  .signal-entry {
    position: absolute;
    top: 18.5%;
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
    padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  }

  .reveal-entry {
    position: absolute;
    top: 63%;
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
    padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  }

  .reveal-kicker-bottom {
    top: 72%;
  }
}

@media (max-height: 720px) and (orientation: portrait) {
  .signal-inner,
  .reveal-shell {
    --shared-portal-size: clamp(184px, min(56vw, 30dvh), 238px);
    --shared-portal-y: 46%;
  }

  .signal-entry {
    top: 16.5%;
  }

  .reveal-entry {
    top: 63.5%;
  }

  .reveal-kicker-bottom {
    top: 70.5%;
  }
}

@media (orientation: landscape) and (max-height: 590px) {
  .signal-inner,
  .reveal-shell {
    position: relative;
    display: block;
    width: min(94%, 760px);
  }

  .reveal-shell,
  .screen-reveal.is-revealed .reveal-shell {
    transform: none;
  }

  .signal-portal.signal-touch,
  .brand-portal {
    position: absolute;
    top: 50%;
    left: 25%;
    width: min(52vh, 230px);
    margin: 0;
    transform: translate3d(-50%, -50%, 0);
  }

  .screen-signal.is-active .signal-portal.signal-touch {
    animation-name: portal-arrive-anchored-v28;
  }

  .signal-entry {
    position: absolute;
    top: 43%;
    right: 3%;
    left: 50%;
    width: auto;
    margin: 0;
  }

  .reveal-intro,
  .reveal-shell > h1,
  .reveal-entry {
    position: absolute;
    right: 3%;
    left: 50%;
    width: auto;
    margin-right: 0;
    margin-left: 0;
  }

  .reveal-intro { top: 21%; }
  .reveal-shell > h1 { top: 29%; }

  .reveal-entry {
    top: 57%;
    margin: 0;
    padding: 0;
  }

  .reveal-kicker-bottom {
    top: auto;
    right: 3%;
    bottom: 12%;
    left: 50%;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-name span,
  .submit-action,
  .success-portal .success-metal-ring {
    animation-duration: 12s !important;
  }
}

@keyframes portal-arrive-anchored-v28 {
  0% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.7) rotate(-12deg); }
  65% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(0); }
}

@keyframes guest-blue-foil-v28 {
  from { background-position: 210% 50%; }
  to { background-position: -35% 50%; }
}

@keyframes submit-warm-glow-v28 {
  0%, 100% {
    filter: brightness(0.98);
    box-shadow: 0 15px 40px rgba(0, 5, 18, 0.16), inset 0 0.65px 0 rgba(255, 255, 255, 0.18), 0 0 13px rgba(255, 184, 96, 0.16), 0 0 30px rgba(255, 145, 55, 0.06);
  }
  50% {
    filter: brightness(1.08);
    box-shadow: 0 15px 40px rgba(0, 5, 18, 0.18), inset 0 0.65px 0 rgba(255, 255, 255, 0.25), 0 0 22px rgba(255, 195, 119, 0.34), 0 0 44px rgba(255, 145, 55, 0.12);
  }
}

@media (orientation: landscape) and (min-height: 591px) {
  .signal-inner,
  .reveal-shell {
    --shared-portal-size: clamp(220px, 31dvh, 292px);
    --shared-portal-y: 46%;
    position: relative;
  }

  .reveal-shell,
  .screen-reveal.is-revealed .reveal-shell {
    transform: none;
  }

  .signal-portal.signal-touch,
  .brand-portal {
    position: absolute;
    top: var(--shared-portal-y);
    left: 50%;
    width: var(--shared-portal-size);
    margin: 0;
    transform: translate3d(-50%, -50%, 0);
  }

  .screen-signal.is-active .signal-portal.signal-touch {
    animation-name: portal-arrive-anchored-v28;
  }

  .signal-entry {
    position: absolute;
    top: 18.5%;
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
  }

  .reveal-entry {
    position: absolute;
    top: 64%;
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .reveal-kicker-bottom {
    top: 72.5%;
    right: 0;
    left: 0;
    width: auto;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* v32: balanced reveal-screen rhythm without moving the shared portal anchor */
@media (orientation: portrait) {
  .reveal-shell {
    padding-top: max(9.2dvh, calc(env(safe-area-inset-top) + 18px));
  }

  .experience[data-screen="reveal"] .sound-control {
    top: max(12px, calc(env(safe-area-inset-top) + 8px));
    right: max(14px, env(safe-area-inset-right));
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 9px;
  }

  .experience[data-screen="reveal"] .sound-control .sound-label {
    display: none;
  }

  .reveal-entry {
    top: 64%;
  }

  .reveal-kicker-bottom {
    top: 72.6%;
    white-space: nowrap;
    font-size: clamp(8px, 2.55vw, 12px);
    letter-spacing: clamp(0.11em, 0.55vw, 0.16em);
  }
}

@media (max-height: 720px) and (orientation: portrait) {
  .reveal-entry {
    top: 64.1%;
  }

  .reveal-kicker-bottom {
    top: 71.5%;
  }
}

/* v33: Ahasa Live Connect Home Screen installation */
.live-connect-install {
  width: 100%;
  max-width: 460px;
  margin: 14px auto 0;
}

.install-action {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px 10px 10px;
  overflow: hidden;
  border: 0.75px solid rgba(235, 247, 252, 0.72);
  border-radius: 18px;
  background:
    radial-gradient(circle at 9% 50%, rgba(62, 132, 221, 0.16), transparent 34%),
    linear-gradient(115deg, rgba(240, 250, 255, 0.055), rgba(78, 129, 177, 0.1)),
    rgba(3, 16, 34, 0.16);
  box-shadow:
    0 14px 34px rgba(0, 5, 18, 0.2),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.22),
    0 0 15px rgba(167, 219, 247, 0.08);
  color: rgba(246, 251, 255, 0.96);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.install-action::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.13) 46%, transparent 67%);
  background-size: 240% 100%;
  animation: live-connect-card-sheen 3.2s linear infinite;
}

.install-action:hover,
.install-action:focus-visible {
  outline: none;
  border-color: rgba(250, 253, 255, 0.94);
  box-shadow:
    0 17px 40px rgba(0, 5, 18, 0.24),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.3),
    0 0 22px rgba(159, 216, 247, 0.16);
  transform: translateY(-1px);
}

.install-action:active {
  transform: scale(0.99);
}

.install-action.is-installed {
  border-color: rgba(111, 239, 181, 0.72);
  box-shadow:
    0 14px 34px rgba(0, 5, 18, 0.2),
    inset 0 0.65px 0 rgba(255, 255, 255, 0.22),
    0 0 19px rgba(77, 224, 158, 0.13);
  cursor: default;
}

.install-action:disabled {
  opacity: 1;
}

.install-app-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 0.7px solid rgba(237, 248, 253, 0.68);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 38%, rgba(36, 108, 202, 0.5), transparent 48%),
    linear-gradient(145deg, rgba(7, 33, 67, 0.98), rgba(1, 9, 24, 0.98));
  box-shadow:
    inset 0 0.8px 0 rgba(255, 255, 255, 0.28),
    0 6px 18px rgba(0, 5, 19, 0.35),
    0 0 12px rgba(89, 163, 236, 0.14);
}

.install-app-icon img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 2, 12, 0.44));
}

.install-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.install-eyebrow {
  color: rgba(167, 217, 244, 0.82);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
}

.install-copy strong {
  font-size: clamp(12px, 3.3vw, 14px);
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.25;
}

.install-copy small {
  max-width: 320px;
  color: rgba(225, 239, 247, 0.68);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.install-symbol {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: rgba(236, 248, 253, 0.94);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(149, 216, 249, 0.35));
}

.install-action.is-installed .install-symbol {
  stroke: #80f1b9;
}

.install-guide {
  position: relative;
  margin-top: 8px;
  padding: 13px 38px 13px 14px;
  border: 0.65px solid rgba(224, 242, 250, 0.48);
  border-radius: 14px;
  background: rgba(3, 16, 33, 0.56);
  color: rgba(239, 248, 252, 0.9);
  text-align: left;
  box-shadow: inset 0 0.6px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
}

.install-guide[hidden] {
  display: none;
}

.install-guide strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(194, 228, 246, 0.94);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.install-guide p {
  margin: 0;
  color: rgba(235, 245, 249, 0.77);
  font-size: 12px;
  line-height: 1.5;
}

.install-guide-close {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0.6px solid rgba(230, 244, 250, 0.32);
  border-radius: 50%;
  background: rgba(4, 19, 38, 0.46);
  color: rgba(245, 251, 253, 0.84);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.screen-success.is-active .live-connect-install {
  animation: content-rise 0.82s var(--ease) 0.4s both;
}

.screen-success.is-active .text-action {
  animation-delay: 0.48s;
}

.screen-success.is-active .personal-id {
  animation-delay: 0.54s;
}

@media (max-width: 380px) {
  .install-action {
    grid-template-columns: 48px minmax(0, 1fr) 19px;
    gap: 9px;
    padding-right: 10px;
  }

  .install-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .install-copy strong {
    font-size: 11.5px;
    letter-spacing: 0.045em;
  }

  .install-copy small {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .install-action::before {
    animation-duration: 12s;
  }
}

@keyframes live-connect-card-sheen {
  from { background-position: 220% 0; }
  to { background-position: -120% 0; }
}

/* v34: lower reveal actions to the skyline marker without moving the shared portal */
@media (orientation: portrait) {
  .reveal-shell {
    --reveal-lower-shift: clamp(11px, 2.2dvh, 16px);
  }

  .reveal-entry {
    top: calc(64% + var(--reveal-lower-shift));
  }

  .reveal-kicker-bottom {
    top: calc(72.6% + var(--reveal-lower-shift));
  }
}

@media (max-height: 720px) and (orientation: portrait) {
  .reveal-entry {
    top: calc(64.1% + var(--reveal-lower-shift));
  }

  .reveal-kicker-bottom {
    top: calc(71.5% + var(--reveal-lower-shift));
  }
}

.install-action {
  grid-template-columns: 72px minmax(0, 1fr) 22px;
  gap: 10px;
}

.install-app-icon {
  width: 72px;
  height: 52px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.install-app-icon img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 3px 6px rgba(0, 2, 12, 0.56))
    drop-shadow(0 0 8px rgba(52, 145, 239, 0.16));
}

@media (max-width: 380px) {
  .install-action {
    grid-template-columns: 62px minmax(0, 1fr) 19px;
    gap: 8px;
  }

  .install-app-icon {
    width: 62px;
    height: 46px;
    border-radius: 0;
  }
}

/* v35: one-second Ahasa blue-foil blink for the two primary action labels */
.reveal-entry .primary-action > span,
.submit-action > span {
  display: inline-block;
  color: #69baff;
  text-shadow:
    0 0 5px rgba(73, 157, 255, 0.52),
    0 0 13px rgba(22, 102, 239, 0.32),
    0 2px 7px rgba(0, 4, 19, 0.58);
  animation: action-blue-foil-blink-v35 1s ease-in-out infinite;
  will-change: opacity, filter, background-position;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .reveal-entry .primary-action > span,
  .submit-action > span {
    background: linear-gradient(
      104deg,
      #123fc5 0%,
      #2c7df2 17%,
      #8ed9ff 31%,
      #f4fcff 42%,
      #3b91f7 55%,
      #0b3fbf 70%,
      #9ae0ff 84%,
      #225fdc 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.18px rgba(207, 238, 255, 0.48);
  }
}

@keyframes action-blue-foil-blink-v35 {
  0%, 38%, 100% {
    opacity: 1;
    background-position: 0% 50%;
    filter: brightness(1.16) saturate(1.12);
  }

  48%, 58% {
    opacity: 0.24;
    background-position: 100% 50%;
    filter: brightness(0.72) saturate(0.9);
  }

  72% {
    opacity: 1;
    background-position: 56% 50%;
    filter: brightness(1.38) saturate(1.18);
  }
}

/* v37: guided Home Screen installation and launch-night Text to Win preview */
.install-action {
  min-height: 176px;
  align-items: start;
  padding: 15px 14px 15px 12px;
}

.install-app-icon {
  margin-top: 3px;
}

.install-copy {
  gap: 6px;
}

#installAppStatus {
  color: rgba(231, 243, 249, 0.8);
  font-size: 11.5px;
  line-height: 1.5;
}

.install-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 2px;
  padding: 6px 10px;
  border: 0.65px solid rgba(211, 237, 251, 0.65);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(38, 104, 206, 0.24), rgba(121, 201, 247, 0.08));
  color: rgba(229, 247, 255, 0.96);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-shadow: 0 0 9px rgba(76, 159, 255, 0.32);
}

.install-details {
  display: grid;
  gap: 5px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 0.55px solid rgba(224, 241, 249, 0.18);
}

.install-details[hidden] {
  display: none;
}

.install-details small {
  color: rgba(220, 236, 245, 0.68);
  font-size: 10.5px;
  line-height: 1.45;
}

.install-symbol {
  margin-top: 6px;
}

.install-phone-plus {
  width: 24px;
  height: 24px;
}

.install-action.is-installed {
  min-height: 104px;
  align-items: center;
}

.install-guide {
  padding: 18px 40px 17px 16px;
  border-color: rgba(222, 242, 252, 0.58);
  background:
    linear-gradient(135deg, rgba(79, 143, 210, 0.09), transparent 54%),
    rgba(2, 14, 31, 0.72);
}

.install-platform-guide[hidden] {
  display: none;
}

.install-guide .install-guide-title {
  margin-bottom: 12px;
  color: rgba(218, 243, 255, 0.98);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.install-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 9px;
  align-items: center;
  opacity: 0;
  transform: translateY(7px);
  animation: install-step-arrive-v37 0.45s var(--ease) forwards;
}

.install-steps li:nth-child(2) { animation-delay: 0.1s; }
.install-steps li:nth-child(3) { animation-delay: 0.2s; }

.install-steps li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0.65px solid rgba(215, 241, 253, 0.58);
  border-radius: 50%;
  background: rgba(42, 102, 173, 0.16);
  color: rgba(235, 249, 255, 0.96);
  font-size: 10px;
  font-weight: 700;
}

.install-steps p {
  font-size: 12px;
  line-height: 1.45;
}

.install-browser-note {
  margin-top: 12px !important;
  padding: 9px 10px;
  border-left: 2px solid rgba(106, 190, 255, 0.74);
  border-radius: 0 8px 8px 0;
  background: rgba(29, 86, 149, 0.13);
  color: rgba(213, 236, 248, 0.78) !important;
  font-size: 11px !important;
}

.text-win-launch {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 460px;
  gap: 3px;
  margin: 10px auto 0;
  padding: 13px 16px;
  overflow: hidden;
  border: 0.75px solid rgba(159, 212, 255, 0.72);
  border-radius: 17px;
  background:
    radial-gradient(circle at 18% 50%, rgba(28, 105, 226, 0.26), transparent 38%),
    rgba(3, 17, 38, 0.26);
  color: rgba(241, 250, 255, 0.96);
  text-align: left;
  box-shadow: inset 0 0.6px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(45, 130, 239, 0.1);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
}

.text-win-launch[hidden] {
  display: none;
}

.text-win-launch span {
  color: rgba(147, 207, 255, 0.85);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.text-win-launch strong {
  font-size: 15px;
  letter-spacing: 0.12em;
}

.text-win-launch small {
  color: rgba(220, 237, 247, 0.7);
  font-size: 10.5px;
  line-height: 1.4;
}

.text-win-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.text-win-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  padding-top: max(28px, calc(env(safe-area-inset-top) + 18px));
  padding-bottom: max(70px, calc(env(safe-area-inset-bottom) + 52px));
}

.text-win-back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  padding: 7px 10px 7px 7px;
  border: 0.6px solid rgba(218, 240, 251, 0.36);
  border-radius: 999px;
  background: rgba(3, 16, 34, 0.24);
  color: rgba(229, 244, 252, 0.82);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.text-win-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-win-logo {
  width: min(68vw, 270px);
  height: auto;
  margin: 16px auto 7px;
  filter: drop-shadow(0 7px 13px rgba(0, 3, 17, 0.45)) drop-shadow(0 0 11px rgba(47, 137, 232, 0.13));
}

.text-win-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 0.65px solid rgba(255, 205, 114, 0.62);
  border-radius: 999px;
  background: rgba(109, 66, 13, 0.23);
  color: rgba(255, 224, 166, 0.96);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.text-win-preview-badge[hidden] {
  display: none;
}

.text-win-eyebrow {
  margin: 17px 0 4px;
  color: rgba(173, 219, 247, 0.9);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.text-win-inner h1 {
  margin: 0;
  background: linear-gradient(102deg, #347bdd, #bdeaff 23%, #ffffff 38%, #408eea 58%, #d8f3ff 76%, #215fce);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: #83c7ff;
  font-size: clamp(34px, 10.5vw, 54px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(70, 153, 255, 0.18);
  animation: text-win-foil-v37 3.1s linear infinite;
}

.text-win-intro {
  max-width: 380px;
  margin: 8px auto 17px;
  color: rgba(224, 239, 247, 0.76);
  font-size: 12.5px;
  line-height: 1.55;
}

.text-win-prize,
.text-win-identity,
.text-win-availability,
.text-win-form,
.text-win-confirmation {
  width: 100%;
  max-width: 440px;
  border: 0.7px solid rgba(220, 241, 251, 0.52);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(213, 241, 255, 0.055), rgba(37, 99, 162, 0.045)),
    rgba(2, 14, 31, 0.25);
  box-shadow: inset 0 0.7px 0 rgba(255, 255, 255, 0.16), 0 16px 36px rgba(0, 5, 19, 0.17);
  -webkit-backdrop-filter: blur(17px) saturate(1.2);
  backdrop-filter: blur(17px) saturate(1.2);
}

.text-win-prize {
  display: grid;
  gap: 6px;
  padding: 17px 18px;
  text-align: center;
}

.text-win-prize span,
.text-win-identity > span {
  color: rgba(157, 211, 246, 0.82);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.text-win-prize strong {
  color: rgba(244, 251, 255, 0.97);
  font-size: clamp(15px, 4.3vw, 19px);
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-shadow: 0 0 12px rgba(83, 167, 255, 0.22);
}

.text-win-prize small {
  color: rgba(218, 235, 244, 0.62);
  font-size: 10.5px;
  line-height: 1.45;
}

.text-win-identity {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 14px 16px;
  text-align: left;
}

.text-win-identity strong {
  overflow: hidden;
  color: rgba(243, 250, 255, 0.96);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 6vw, 30px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-win-identity small {
  color: rgba(204, 224, 236, 0.6);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.competition-status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 23px;
  align-items: center;
  margin-top: 5px;
  padding: 4px 8px;
  border: 0.55px solid rgba(161, 202, 229, 0.42);
  border-radius: 999px;
  color: rgba(184, 218, 240, 0.84);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.competition-status-pill[data-state="preview"],
.competition-status-pill[data-state="live"] {
  border-color: rgba(105, 236, 173, 0.58);
  background: rgba(26, 122, 78, 0.15);
  color: rgba(137, 248, 192, 0.96);
}

.competition-status-pill[data-state="pending"] {
  border-color: rgba(255, 205, 116, 0.5);
  color: rgba(255, 222, 164, 0.9);
}

.text-win-availability {
  margin-top: 10px;
  padding: 14px 16px;
}

.text-win-availability strong {
  display: block;
  color: rgba(229, 246, 255, 0.94);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.text-win-availability p {
  margin: 5px 0 0;
  color: rgba(218, 235, 244, 0.68);
  font-size: 11px;
  line-height: 1.5;
}

.text-win-form {
  margin-top: 10px;
  padding: 16px;
  text-align: left;
}

.text-win-form[hidden],
.text-win-confirmation[hidden],
.text-win-availability[hidden] {
  display: none;
}

.text-win-form label {
  display: block;
  margin: 0 2px 8px;
  color: rgba(190, 225, 246, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.text-win-field {
  min-height: 56px;
  padding: 0 14px;
  border: 0.7px solid rgba(220, 241, 251, 0.52);
  border-radius: 14px;
  background: rgba(2, 12, 28, 0.25);
  box-shadow: inset 0 0.6px 0 rgba(255, 255, 255, 0.11);
}

.text-win-field:focus-within {
  border-color: rgba(126, 193, 255, 0.9);
  box-shadow: inset 0 0.6px 0 rgba(255, 255, 255, 0.16), 0 0 0 3px rgba(50, 129, 232, 0.1);
}

.text-win-field input {
  width: 100%;
  height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(247, 252, 255, 0.97);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-win-field input::placeholder {
  color: rgba(199, 220, 232, 0.42);
  font-weight: 400;
  text-transform: none;
}

.text-win-test-note {
  margin: 9px 2px 0;
  color: rgba(255, 218, 151, 0.76);
  font-size: 10px;
  line-height: 1.45;
}

.text-win-test-note[hidden] {
  display: none;
}

.text-win-submit {
  display: flex;
  width: 100%;
  margin-top: 10px;
  border-color: rgba(149, 210, 255, 0.76);
  background:
    linear-gradient(120deg, rgba(39, 109, 217, 0.2), rgba(121, 208, 255, 0.08)),
    rgba(2, 14, 32, 0.2);
  box-shadow: inset 0 0.7px 0 rgba(255, 255, 255, 0.18), 0 0 24px rgba(42, 128, 238, 0.12);
}

.text-win-confirmation {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 21px 17px;
  text-align: center;
}

.text-win-confirmation-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0.8px solid rgba(123, 239, 181, 0.72);
  border-radius: 50%;
  background: rgba(26, 131, 82, 0.17);
  box-shadow: 0 0 24px rgba(69, 230, 146, 0.16);
}

.text-win-confirmation-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: rgba(145, 250, 197, 0.98);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-win-confirmation p {
  margin: 6px 0 0;
  color: rgba(144, 242, 193, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.text-win-confirmation strong {
  color: rgba(247, 252, 255, 0.97);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 7vw, 34px);
  font-style: italic;
  line-height: 1.1;
}

.text-win-confirmation small {
  max-width: 310px;
  color: rgba(220, 237, 246, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.text-win-confirmation .text-action {
  margin-top: 8px;
  font-size: 9px;
}

.text-win-terms {
  max-width: 390px;
  margin: 14px auto 0;
  color: rgba(195, 216, 229, 0.48);
  font-size: 9.5px;
  line-height: 1.5;
}

.screen-text-win.is-active .text-win-logo,
.screen-text-win.is-active .text-win-eyebrow,
.screen-text-win.is-active h1,
.screen-text-win.is-active .text-win-intro,
.screen-text-win.is-active .text-win-prize,
.screen-text-win.is-active .text-win-identity,
.screen-text-win.is-active .text-win-availability,
.screen-text-win.is-active .text-win-form,
.screen-text-win.is-active .text-win-confirmation {
  animation: content-rise 0.72s var(--ease) both;
}

.screen-text-win.is-active .text-win-inner h1 {
  animation:
    content-rise 0.72s var(--ease) both,
    text-win-foil-v37 3.1s linear 0.72s infinite;
}

.screen-text-win.is-active .text-win-prize { animation-delay: 0.08s; }
.screen-text-win.is-active .text-win-identity { animation-delay: 0.14s; }
.screen-text-win.is-active .text-win-availability,
.screen-text-win.is-active .text-win-form,
.screen-text-win.is-active .text-win-confirmation { animation-delay: 0.2s; }

@media (max-width: 380px) {
  .install-action {
    min-height: 188px;
    padding: 13px 11px 13px 10px;
  }

  .install-action.is-installed {
    min-height: 112px;
  }

  .install-details small {
    font-size: 10px;
  }

  .text-win-inner {
    padding-right: max(19px, env(safe-area-inset-right));
    padding-left: max(19px, env(safe-area-inset-left));
  }
}

@media (prefers-reduced-motion: reduce) {
  .install-steps li,
  .text-win-inner h1 {
    animation-duration: 10s !important;
  }
}

@keyframes install-step-arrive-v37 {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes text-win-foil-v37 {
  from { background-position: 220% 50%; }
  to { background-position: -40% 50%; }
}

/* v38: lower reveal headline and keep the Lotus crown light registered to the skyline */
@media (orientation: portrait) {
  .reveal-intro,
  .reveal-shell > h1 {
    position: relative;
    top: clamp(38px, 6.4dvh, 54px);
  }
}

.world-image,
.lotus-overlay-track {
  animation: none;
  transform: translate3d(-0.25%, 0.15%, 0) scale(1.045);
}

.lotus-petal-glow {
  animation: lotus-crown-colours-still-v38 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lotus-petal-glow {
    animation-duration: 16s !important;
  }
}

@keyframes lotus-crown-colours-still-v38 {
  0%, 23% {
    opacity: 0.9;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(255, 82, 218, 0.98) 0 16%, rgba(255, 82, 218, 0.38) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(255, 238, 255, 1) 0 14%, rgba(247, 76, 205, 0.7) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(237, 93, 255, 0.96) 0 16%, rgba(207, 71, 255, 0.38) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(255, 83, 218, 0.82)) drop-shadow(0 0 4px rgba(191, 74, 255, 0.42));
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  25%, 48% {
    opacity: 0.94;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(192, 112, 255, 0.98) 0 16%, rgba(146, 76, 255, 0.4) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(248, 235, 255, 1) 0 14%, rgba(173, 80, 255, 0.72) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(219, 103, 255, 0.98) 0 16%, rgba(166, 76, 255, 0.4) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(190, 108, 255, 0.84)) drop-shadow(0 0 4px rgba(137, 78, 255, 0.44));
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  50%, 73% {
    opacity: 0.96;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(77, 191, 255, 0.98) 0 16%, rgba(58, 142, 255, 0.4) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(231, 250, 255, 1) 0 14%, rgba(62, 167, 255, 0.75) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(75, 139, 255, 0.98) 0 16%, rgba(67, 99, 255, 0.4) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(83, 194, 255, 0.88)) drop-shadow(0 0 4px rgba(70, 119, 255, 0.46));
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  75%, 98% {
    opacity: 0.95;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(82, 255, 185, 0.98) 0 16%, rgba(55, 217, 152, 0.4) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(235, 255, 247, 1) 0 14%, rgba(70, 239, 168, 0.76) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(79, 224, 204, 0.98) 0 16%, rgba(46, 184, 171, 0.4) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(85, 255, 188, 0.88)) drop-shadow(0 0 4px rgba(44, 213, 173, 0.46));
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  100% {
    opacity: 0.9;
    background:
      radial-gradient(ellipse at 24% 62%, rgba(255, 82, 218, 0.98) 0 16%, rgba(255, 82, 218, 0.38) 41%, transparent 69%),
      radial-gradient(ellipse at 50% 40%, rgba(255, 238, 255, 1) 0 14%, rgba(247, 76, 205, 0.7) 40%, transparent 70%),
      radial-gradient(ellipse at 76% 62%, rgba(237, 93, 255, 0.96) 0 16%, rgba(207, 71, 255, 0.38) 41%, transparent 69%);
    filter: blur(0.12px) drop-shadow(0 0 2px rgba(255, 83, 218, 0.82)) drop-shadow(0 0 4px rgba(191, 74, 255, 0.42));
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

/* v39: immediate, single-tap fingerprint confirmation */
.signal-portal.signal-touch,
.signal-portal.signal-touch * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.signal-portal.signal-touch svg,
.signal-portal.signal-touch img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.signal-portal.signal-touch .thumbprint path {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 1;
  animation: none;
}

.signal-portal.signal-touch .thumb-scan {
  display: none;
  animation: none;
}

.signal-portal.signal-touch .thumb-label {
  animation: none;
}

.signal-tap-instruction {
  position: absolute;
  top: calc(100% + clamp(14px, 2.1dvh, 19px));
  left: 50%;
  z-index: 7;
  width: max-content;
  max-width: min(82vw, 280px);
  color: rgba(225, 241, 250, 0.82);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(9px, 2.45vw, 11px);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 10px rgba(119, 194, 238, 0.35), 0 2px 8px rgba(0, 4, 18, 0.72);
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
}

.signal-portal.signal-touch.is-tap-confirmed::before {
  animation: fingerprint-green-flash-v39 140ms ease-out both;
}

.signal-portal.signal-touch.is-tap-confirmed .signal-core {
  animation: fingerprint-core-pulse-v39 140ms ease-out both;
}

.signal-portal.signal-touch.is-tap-confirmed .thumbprint {
  stroke: #a9ffd0;
  animation: fingerprint-icon-pulse-v39 140ms ease-out both;
}

.signal-portal.signal-touch.is-tap-confirmed .signal-metal-ring {
  animation: fingerprint-ring-flash-v39 140ms ease-out both !important;
}

.signal-portal.signal-touch.is-tap-confirmed .thumb-label,
.signal-portal.signal-touch.is-tap-confirmed .signal-tap-instruction {
  color: #9fffc9;
  text-shadow: 0 0 8px rgba(82, 255, 162, 0.92), 0 0 20px rgba(37, 218, 130, 0.46);
}

@keyframes fingerprint-green-flash-v39 {
  0% {
    background: radial-gradient(circle, rgba(211, 244, 250, 0.18), rgba(72, 178, 205, 0.08) 49%, transparent 71%);
    box-shadow: 0 0 60px rgba(90, 199, 224, 0.17);
  }
  45% {
    background: radial-gradient(circle, rgba(160, 255, 205, 0.62), rgba(46, 224, 139, 0.24) 49%, transparent 74%);
    box-shadow: 0 0 42px rgba(66, 255, 159, 0.48), 0 0 78px rgba(47, 218, 142, 0.24);
  }
  100% {
    background: radial-gradient(circle, rgba(178, 255, 215, 0.22), rgba(50, 214, 140, 0.08) 49%, transparent 72%);
    box-shadow: 0 0 28px rgba(65, 239, 153, 0.18);
  }
}

@keyframes fingerprint-core-pulse-v39 {
  0% {
    border-color: rgba(226, 246, 253, 0.34);
    box-shadow: 0 0 34px rgba(104, 202, 245, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 26px rgba(109, 193, 233, 0.08);
    transform: scale(1);
  }
  48% {
    border-color: rgba(157, 255, 202, 0.94);
    box-shadow: 0 0 31px rgba(66, 255, 159, 0.52), inset 0 0 22px rgba(76, 246, 161, 0.22);
    transform: scale(1.055);
  }
  100% {
    border-color: rgba(157, 255, 202, 0.62);
    box-shadow: 0 0 22px rgba(66, 255, 159, 0.28), inset 0 0 16px rgba(76, 246, 161, 0.12);
    transform: scale(1);
  }
}

@keyframes fingerprint-icon-pulse-v39 {
  0% { filter: drop-shadow(0 0 4px rgba(200, 240, 255, 0.72)); transform: translate3d(0, -7%, 0) scale(1); }
  48% { filter: drop-shadow(0 0 7px rgba(155, 255, 201, 1)) drop-shadow(0 0 18px rgba(50, 234, 145, 0.72)); transform: translate3d(0, -7%, 0) scale(1.08); }
  100% { filter: drop-shadow(0 0 5px rgba(140, 255, 194, 0.82)); transform: translate3d(0, -7%, 0) scale(1); }
}

@keyframes fingerprint-ring-flash-v39 {
  0% { filter: brightness(1); opacity: 0.96; }
  48% { filter: brightness(1.42) drop-shadow(0 0 9px rgba(72, 255, 163, 0.92)); opacity: 1; }
  100% { filter: brightness(1.12) drop-shadow(0 0 5px rgba(72, 255, 163, 0.4)); opacity: 1; }
}

/* v40: VIP name wrapping and editable database-prefilled RSVP details */
.guest-name {
  white-space: normal;
  text-wrap: balance;
}

.guest-name > #guestName {
  display: grid;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  gap: clamp(1px, 0.35dvh, 4px);
  overflow: visible;
  white-space: normal;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
  -webkit-text-fill-color: initial;
  filter: none;
  transform: none;
  animation: none;
}

.guest-name .guest-name-line {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
  line-height: 1.04;
  transform: none;
}

.field-shell.is-database-prefill {
  border-color: rgba(207, 216, 224, 0.62);
  box-shadow:
    0 0 13px rgba(221, 231, 239, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.field-shell.is-database-prefill input,
.field-shell.is-database-prefill svg {
  color: rgba(199, 208, 216, 0.86);
}

.field-shell.is-user-edited {
  border-color: rgba(189, 229, 248, 0.72);
  box-shadow:
    0 0 15px rgba(94, 177, 231, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.field-shell.is-user-edited input {
  color: rgba(246, 251, 255, 0.98);
}

.field-shell.is-user-edited svg {
  color: rgba(211, 239, 251, 0.95);
}

.signal-error {
  width: min(82vw, 430px);
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 151, 161, 0.55);
  border-radius: 999px;
  background: rgba(77, 12, 27, 0.38);
  color: #ffe5e8;
  font: 600 0.75rem/1.45 Montserrat, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
}

.signal-touch[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.58;
  pointer-events: none;
}

.signal-verified-status.is-invalid {
  color: #ffb2bb;
  text-shadow: 0 0 14px rgba(255, 77, 99, 0.48);
  animation: none;
}
