/* Stokkur invitation — shared styles (Figma: Stokkur Brand 2027 / 106:23628) */

@font-face { font-family: "TWK Everett"; src: url(../fonts/everett-light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "TWK Everett"; src: url(../fonts/everett-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TWK Everett"; src: url(../fonts/everett-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
.inv, .states {
  --primary: #011E1F;          /* Schemes/Primary */
  --on-primary: #EAFEFF;       /* Schemes/On Primary */
  --on-surface: #19191A;       /* Schemes/On Surface */
  --on-surface-var: #55565D;   /* Schemes/On Surface Variant */
  --surface-high: #EAEAEB;     /* Schemes/Surface Container High */
  --surface-bright: #FCFCFC;   /* Schemes/Surface Bright */
  --outline-var: #E4E5E7;      /* Schemes/Outline Variant */
  --error: #B3261E;            /* new — M3 error */
  --glass-stroke: rgba(255,255,255,.24);
  --glass-strong: rgba(255,255,255,.16);
  --glass-soft: rgba(255,255,255,.11);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --font-display: "TWK Everett", "Helvetica Neue", sans-serif;
  --font-ui: "Inter", "Helvetica Neue", sans-serif;
}

/* ---------- Page: always exactly one viewport, no page scroll ---------- */
.inv {
  container-type: size;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: var(--inv-h, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;            /* safety net only on extremely short screens */
  overscroll-behavior: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
}
.inv::-webkit-scrollbar { display: none; }

/* Background video — fill blend LIGHTEN over #011E1F */
.inv-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.inv-video video {
  position: absolute;
  left: 0;
  top: -18.61cqi;               /* y -268 @1440 */
  width: 172.78cqi;             /* 2488 @1440 */
  min-height: calc(100cqb + 18.61cqi);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  mix-blend-mode: lighten;
}

.inv-page {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.54cqb, 26px) 24px clamp(24px, 10.16cqb, 104px);
}

.inv-header { display: flex; padding: 8px 0 clamp(14px, 2.34cqb, 24px); border-bottom: 1px solid rgba(255,255,255,.45); }
.inv-logo { display: block; width: auto; height: 32px; aspect-ratio: 150 / 32; }

/* Date + location */
.inv-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: clamp(14px, 2.34cqb, 24px); }
.inv-meta-item {
  flex: 0 1 448px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
}
.inv-meta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-meta-main { font-weight: 700; font-size: 26px; line-height: 1.15; white-space: nowrap; }
.inv-meta-sub { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; line-height: 1.2; white-space: nowrap; }

.inv-tile {
  --tile-w: 54px; --tile-h: 62px; --tile-top: 21px;
  flex: none;
  box-sizing: border-box;
  width: var(--tile-w);
  height: var(--tile-h);
  border-radius: 8px;
  border: 1px solid var(--glass-stroke);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: transform .25s var(--ease-out), border-color .2s ease;
}
.inv-tile-top { flex: none; height: var(--tile-top); display: grid; place-items: center; background: var(--glass-strong); font-weight: 700; font-size: 12px; line-height: 1; }
.inv-tile-bottom { flex: 1; display: grid; place-items: center; background: var(--glass-soft); font-weight: 700; font-size: 26px; line-height: 1; }
.inv-tile-pin { flex: 1; display: grid; place-items: center; background: var(--glass-soft); transition: background-color .2s ease; }
.inv-tile-pin svg { transition: transform .35s var(--ease-spring); }

.inv-arrow { flex: none; opacity: .5; transition: opacity .2s ease, transform .25s var(--ease-out); }

/* Location link states */
a.inv-meta-item:hover .inv-tile { border-color: rgba(255,255,255,.45); }
a.inv-meta-item:hover .inv-tile-pin { background: var(--glass-strong); }
a.inv-meta-item:hover .inv-tile-pin svg { transform: translateY(-3px); }
a.inv-meta-item:hover .inv-arrow { opacity: 1; transform: translate(2px, -2px); }
a.inv-meta-item:active .inv-tile { transform: scale(.96); }
a.inv-meta-item:focus-visible { outline: 2px solid var(--on-primary); outline-offset: 6px; }

/* Title */
.inv-spacer { flex: 1 1 auto; min-height: 12px; }
.inv-title {
  margin: 0 0 0 -.1em;
  max-width: 8.95em;            /* 811 @ 91px */
  font-weight: 400;
  font-size: clamp(36px, min(6.32cqi, 8.9cqb), 91px);
  line-height: 1.2;
  letter-spacing: 0;
}

/* Description + registration card */
.inv-bottom {
  display: grid;
  grid-template-columns: minmax(0, 802fr) minmax(0, 566fr);
  gap: 24px;
  align-items: start;
  margin-top: clamp(18px, 4.6cqb, 47px);
}
.inv-desc { font-weight: 400; font-size: clamp(14px, 1.56cqb, 16px); line-height: 1.2; }
.inv-desc p { margin: 0 0 1.2em; }
.inv-desc p:last-child { margin-bottom: 0; }

.inv-card {
  --card-head: 44px;
  box-sizing: border-box;
  min-height: 181px;
  border-radius: 24px;
  border: 1px solid var(--glass-stroke);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.inv-card-head { flex: none; height: calc(var(--card-head) - 1px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: var(--glass-strong); font-weight: 700; font-size: 12px; }
.inv-card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px; background: var(--glass-soft); }
.inv-card-text { margin: 0; font-weight: 300; font-size: 15px; line-height: 1.2; }
.inv-card-text b { font-weight: 700; }
.inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: var(--on-primary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  animation: chipIn .5s var(--ease-spring) both .15s;
}
.swap-in { animation: rise .5s var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* Entrance motion */
.rise { animation: rise .8s var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 38px;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, border-color .18s ease, transform .14s var(--ease-out), opacity .2s ease, box-shadow .18s ease;
}
.btn-label { transition: opacity .15s ease; }

/* BTN Invite — Default / Hover / Pressed (+ Focus) */
.btn-invite { background: #fff; color: var(--primary); }
.btn-invite:hover, .btn-invite.is-hover { background: #F1F1F1; }
.btn-invite:active, .btn-invite.is-active { background: #E0ECEC; transform: scale(.985); }
.btn-invite:focus-visible, .btn-invite.is-focus { box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px var(--on-primary); }

/* BTN Ghost — on dark glass, used after registering (new) */
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover, .btn-ghost.is-hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }
.btn-ghost:active, .btn-ghost.is-active { background: rgba(255,255,255,.14); transform: scale(.985); }
.btn-ghost:focus-visible, .btn-ghost.is-focus { box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px var(--on-primary); }

/* BTN Default — Default / Hover / Pressed / Inactive (+ Focus, Loading) */
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled), .btn-primary.is-hover { background: #001819; }
.btn-primary:hover:not(:disabled) .btn-label, .btn-primary.is-hover .btn-label { opacity: .9; }
.btn-primary:active:not(:disabled):not(.is-loading), .btn-primary.is-active { transform: scale(.985); }
.btn-primary:active:not(:disabled):not(.is-loading) .btn-label, .btn-primary.is-active .btn-label { opacity: .5; }
.btn-primary:disabled, .btn-primary.is-inactive { opacity: .25; cursor: not-allowed; }
.btn-primary:disabled .btn-label, .btn-primary.is-inactive .btn-label { opacity: .5; }
.btn-primary:focus-visible, .btn-primary.is-focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.btn-primary.is-loading { cursor: progress; background: #001819; }
.btn-primary.is-loading .btn-label { opacity: .9; }

/* BTN Secondary — light outline, used for "Loka" next to a primary action (new) */
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--outline-var); }
.btn-secondary:hover, .btn-secondary.is-hover { background: #F1F1F1; border-color: #C9CACE; }
.btn-secondary:active, .btn-secondary.is-active { background: #E0ECEC; transform: scale(.985); }
.btn-secondary:focus-visible, .btn-secondary.is-focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }

/* Add to calendar (new) */
.success-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cal { position: relative; }
.cal-btn svg { flex: none; }
.cal-chev { transition: transform .3s var(--ease-out); }
.cal.is-open .cal-chev { transform: rotate(180deg); }
.cal-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--outline-var);
  background: #fff;
  box-shadow: 0 18px 40px -16px rgba(1,30,31,.35), 0 2px 6px rgba(1,30,31,.06);
  transform-origin: 50% 100%;
  animation: menuIn .28s var(--ease-out) both;
}
.cal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--on-surface);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  outline: none;
  transition: background-color .15s ease;
  animation: rise .3s var(--ease-out) both;
  animation-delay: calc(60ms + var(--i, 0) * 45ms);
}
.cal-item:hover, .cal-item.is-hover { background: #F1F1F1; }
.cal-item:active { background: #E0ECEC; }
.cal-item:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-ico { flex: none; color: var(--primary); }
.cal-ext { margin-left: auto; opacity: .45; transition: opacity .15s ease, transform .2s var(--ease-out); }
.cal-item:hover .cal-ext { opacity: 1; transform: translate(1px, -1px); }

.spinner {
  flex: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(234,254,255,.3);
  border-top-color: var(--on-primary);
  animation: spin .7s linear infinite;
}

/* Icon buttons — 44 hit area */
.icon-btn {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .12s var(--ease-out), opacity .15s ease;
}
.icon-btn:hover:not(:disabled), .icon-btn.is-hover { background: #F1F1F1; }
.icon-btn:active:not(:disabled), .icon-btn.is-active { background: var(--outline-var); transform: scale(.92); }
.icon-btn:focus-visible, .icon-btn.is-focus { box-shadow: 0 0 0 2px var(--primary); }
.icon-btn:disabled { opacity: .25; cursor: not-allowed; }
.icon-btn svg { display: block; }
.modal-close svg { transition: transform .3s var(--ease-out); }
.modal-close:hover svg { transform: rotate(90deg); }

/* ---------- Text fields (M3 Filled) ---------- */
.field { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.field-input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface-high);
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .5px;
  outline: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.field-input::placeholder { color: var(--on-surface-var); opacity: 1; transition: opacity .15s ease; }
.field-input:hover, .field-input.is-hover { background: #E2E2E4; }
.field-input:not(:placeholder-shown), .field-input.is-filled { background: var(--surface-bright); border-color: var(--outline-var); }
.field-input:not(:placeholder-shown):hover { border-color: #C9CACE; }
.field-input:focus, .field-input.is-focus { background: var(--surface-bright); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(1,30,31,.12); }
.field-input:focus::placeholder { opacity: .6; }
.field.has-error .field-input { border-color: var(--error); background: #FFFBFA; }
.field.has-error .field-input:focus { box-shadow: 0 0 0 3px rgba(179,38,30,.14); }
.field-input:disabled { opacity: .38; cursor: not-allowed; }
.field-msg {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 6px);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .4px;
  color: var(--error);
  animation: msgIn .22s var(--ease-out) both;
}
.shake-a .field-input { animation: shakeA .42s ease both; }
.shake-b .field-input { animation: shakeB .42s ease both; }

/* Quantity stepper */
.qty { display: flex; align-items: center; gap: 10px; height: 56px; }
.qty-label { flex: 1; min-width: 0; font-family: var(--font-ui); font-size: 16px; line-height: 24px; letter-spacing: .5px; color: var(--on-surface); }
.qty-value {
  flex: none;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--outline-var);
  background: var(--surface-bright);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .5px;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.qty-num { display: block; }
.up-a .qty-num { animation: upA .3s var(--ease-out); }
.up-b .qty-num { animation: upB .3s var(--ease-out); }
.down-a .qty-num { animation: downA .3s var(--ease-out); }
.down-b .qty-num { animation: downB .3s var(--ease-out); }

/* ---------- Modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(1,30,31,.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn .28s ease both;
}
.overlay.is-static { position: absolute; }
.overlay.is-closing { animation: fadeOut .24s ease both; }

.modal {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 684px;
  min-height: min(602px, calc(100cqb - 48px));
  margin: auto;
  padding: clamp(60px, 8cqb, 82px) 56px clamp(32px, 5.5cqb, 56px);
  border-radius: 24px;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 60%;
  animation: modalIn .5s var(--ease-out) both;
}
.is-closing .modal { animation: modalOut .22s ease-in both; }
.modal-close { position: absolute; top: 20px; right: 20px; }
.modal-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; color: #000; }
.modal-form { flex: 1; display: flex; flex-direction: column; }
.modal-fields { display: flex; flex-direction: column; gap: clamp(30px, 5.2cqb, 53px); margin-top: clamp(24px, 4.1cqb, 42px); }
.modal-actions { margin-top: auto; padding-top: clamp(32px, 5.6cqb, 57px); }
.stagger { animation: rise .5s var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 60ms); }

/* ---------- Success (new) ---------- */
.success { flex: 1; display: flex; flex-direction: column; }
.success-title { margin: clamp(20px, 3.2cqb, 32px) 0 0; }
.success-text { margin: 12px 0 0; max-width: 480px; font-family: var(--font-ui); font-size: 16px; line-height: 24px; letter-spacing: .5px; color: var(--on-surface-var); }
.success-summary { margin: clamp(16px, 3cqb, 28px) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--outline-var); }
.success-summary li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--outline-var); font-family: var(--font-ui); font-size: 14px; line-height: 20px; letter-spacing: .25px; color: var(--on-surface-var); }
.success-summary b { font-weight: 500; color: var(--on-surface); text-align: right; }

/* Success graphic: the invitation's date tile, a confetti burst and a check */
.sx { position: relative; width: 88px; height: 100px; flex: none; }
.sx-ring {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: ring 1s .35s var(--ease-out) both;
}
.sx-tile {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 14px 30px -12px rgba(1,30,31,.55);
  animation: tileIn .7s var(--ease-out) both;
}
.sx-tile-top { flex: none; height: 32px; display: grid; place-items: center; background: rgba(234,254,255,.16); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.sx-tile-bottom { flex: 1; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; }
.sx-check {
  position: absolute;
  right: -14px;
  bottom: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--on-primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px #fff;
  animation: pop .5s .45s var(--ease-spring) both;
}
.sx-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s .75s ease forwards; }
.sx-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.sx-burst i {
  position: absolute;
  left: calc(var(--w) / -2);
  top: calc(var(--h) / -2);
  width: var(--w);
  height: var(--h);
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  animation: burst 1.25s var(--t) cubic-bezier(.15,.75,.35,1) both;
}

/* ---------- Mobile (≤ 767px) — Figma frame 430 ---------- */
@container (max-width: 767px) {
  .inv-video video {
    left: -100.47cqi;           /* x -432 @430 */
    top: -38.14cqi;             /* y -164 @430 */
    width: 492.56cqi;           /* 2118 @430 */
    min-height: calc(100cqb + 38.14cqi);
  }
  .inv-page { padding: clamp(12px, 2.8cqb, 26px) 12px calc(clamp(12px, 3cqb, 32px) + env(safe-area-inset-bottom, 0px)); }
  .inv-header { padding: 4px 0 clamp(12px, 2.6cqb, 24px); }
  .inv-logo { height: clamp(24px, 3.4cqb, 32px); }
  .inv-meta { flex-direction: column; flex-wrap: nowrap; gap: clamp(10px, 2.6cqb, 24px); margin-top: clamp(12px, 2.6cqb, 24px); }
  .inv-meta-item { flex: none; gap: 18px; }
  .inv-meta-main { font-size: clamp(19px, 5.35cqi, 23px); }
  .inv-meta-sub { font-size: 14px; }
  .inv-title { margin-left: 0; font-size: clamp(28px, min(9.8cqi, 4.6cqb), 42px); }
  .inv-bottom { grid-template-columns: minmax(0, 1fr); margin-top: clamp(10px, 2.6cqb, 24px); gap: clamp(14px, 3.4cqb, 40px); }
  .inv-desc { font-size: clamp(12.5px, 1.6cqb, 14px); }
  .inv-desc p { margin-bottom: .9em; }
  .inv-card { --card-head: clamp(34px, 4.7cqb, 44px); min-height: 0; }
  .inv-card-body { padding: clamp(12px, 1.7cqb, 16px); gap: clamp(10px, 1.7cqb, 16px); }
  .inv-card-text { font-size: clamp(14px, 1.6cqb, 15px); }
  .inv-card .btn { height: clamp(48px, 6cqb, 56px); }

  .overlay { align-items: flex-end; padding: 0; }
  .modal {
    max-width: none;
    min-height: 0;
    max-height: calc(100cqb - 24px);
    overflow-y: auto;
    margin: auto 0 0;
    padding: 72px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    animation: sheetIn .55s var(--ease-out) both;
  }
  .modal::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--outline-var); }
  .is-closing .modal { animation: sheetOut .26s ease-in both; }
  .modal-close { top: 16px; right: 16px; }
  .modal-fields { gap: clamp(30px, 4.3cqb, 40px); margin-top: clamp(20px, 3.4cqb, 32px); }
  .modal-actions { padding-top: clamp(32px, 5cqb, 48px); }
  .success-actions { grid-template-columns: minmax(0, 1fr); }
  .success-summary li { flex-direction: column; gap: 2px; }
  .success-summary b { text-align: left; }
}

/* Short phones — compact tiles so everything still fits */
@container (max-width: 767px) and (max-height: 760px) {
  .inv-tile { --tile-w: 46px; --tile-h: 52px; --tile-top: 18px; border-radius: 7px; }
  .inv-tile-top { font-size: 11px; }
  .inv-tile-bottom { font-size: 22px; }
  .inv-tile-pin svg { width: 26px; height: 26px; }
  .inv-meta-item { gap: 14px; }
  .inv-meta-main { font-size: 19px; }
  .inv-meta-sub { font-size: 13px; }
  .inv-meta-text { gap: 1px; }
}

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(32px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modalOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { from { transform: none; } to { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes shakeA { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes shakeB { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes upA { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes upB { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes downA { from { opacity: 0; transform: translateY(-70%); } to { opacity: 1; transform: none; } }
@keyframes downB { from { opacity: 0; transform: translateY(-70%); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chipIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tileIn {
  0% { opacity: 0; transform: translateY(24px) rotate(-10deg) scale(.7); }
  55% { opacity: 1; transform: translateY(-6px) rotate(4deg) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes ring { 0% { opacity: .5; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) rotate(0deg) scale(.3); }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(var(--r)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .inv *, .inv *::before, .inv *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spinner { animation: spin 1.4s linear infinite !important; }
  .sx-burst { display: none; }
}

/* RSVP submit error + honeypot */
.form-error { color: var(--error); font-size: 14px; line-height: 1.4; text-align: center; margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
