@font-face {
  font-family:Adventure;
  src:url('assets/fonts/bangers.woff2') format('woff2');
  font-display:swap;
  font-weight:400;
}
@font-face {
  font-family:Nunito;
  src:url('assets/fonts/nunito-regular.woff2') format('woff2');
  font-display:swap;
  font-weight:400;
}
@font-face {
  font-family:Nunito;
  src:url('assets/fonts/nunito-bold.woff2') format('woff2');
  font-display:swap;
  font-weight:700 900;
}
:root {
  color-scheme:dark;
  --ink:#071c36;
  --blue:#103e68;
  --red:#e92e40;
  --paper:#fff7e9;
  --ice:#badff0;
  --gold:#ffd66d;
  font-family:Nunito,Arial,sans-serif;
  background:var(--ink);
  color:var(--paper);
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:auto;
  scroll-padding-top:20px;
}
body {
  margin:0;
}
button,input {
  font:inherit;
}
button,a {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
button {
  cursor:pointer;
  border:0;
}
a {
  color:inherit;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid var(--gold);
  outline-offset:5px;
}
button:disabled {
  cursor:default;
}
[hidden] {
  display:none!important;
}
.svg-definitions {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}
.topbar {
  position:absolute;
  z-index:10;
  top:0;
  left:0;
  width:100%;
  padding:24px clamp(22px,4vw,64px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-size:11px;
  line-height:1.4;
}
.brand svg {
  width:24px;
  height:32px;
  fill:currentColor;
  color:var(--red);
}
.brand b {
  font-size:13px;
}
.edit {
  display:flex;
  align-items:center;
  gap:8px;
  background:#071c3677;
  color:var(--paper);
  border:1px solid #fff7e940;
  border-radius:30px;
  padding:8px 15px;
  min-height:40px;
  font-size:11px;
  backdrop-filter:blur(10px);
}
.edit span {
  font-size:17px;
}
.journey {
  height:400svh;
  position:relative;
}
.stage {
  height:100svh;
  position:sticky;
  top:0;
  overflow:hidden;
  isolation:isolate;
  background:var(--ink);
}
.film {
  position:absolute;
  inset:0 0 0 38%;
  overflow:hidden;
  z-index:-3;
}
.film img,.film canvas {
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 38%;
}
.film:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,var(--ink),transparent 40%),linear-gradient(0deg,var(--ink),transparent 40%,#071c3670 100%);
  pointer-events:none;
}
.film canvas {
  opacity:0;
}
.film canvas.ready {
  opacity:1;
}
.film img.hidden {
  opacity:0;
}
.cinema-texture {
  position:absolute;
  z-index:-2;
  inset:0;
  background:radial-gradient(circle at 1px 1px,#a5c9e621 1px,transparent 1.5px);
  background-size:7px 7px;
  mask-image:linear-gradient(90deg,#000,transparent 60%);
  pointer-events:none;
}
.corner-web {
  position:absolute;
  z-index:1;
  width:250px;
  height:250px;
  left:-28px;
  top:-35px;
  color:var(--ice);
  opacity:.18;
  pointer-events:none;
}
.corner-web-right {
  left:auto;
  right:-35px;
  transform:scaleX(-1);
  opacity:.24;
  width:340px;
  height:340px;
}
.scene-heading {
  position:absolute;
  z-index:2;
  left:8%;
  top:29%;
  width:52%;
  max-width:750px;
  pointer-events:none;
}
.scene-heading>p:first-child {
  font-size:17px;
  margin:0 0 22px;
  color:var(--ice);
}
.scene-heading h1 {
  font-family:Adventure,Impact,sans-serif;
  font-weight:400;
  font-size:clamp(110px,15vw,240px);
  line-height:.93;
  letter-spacing:3px;
  color:var(--paper);
  margin:0 0 34px;
  transform:rotate(-7deg);
  transform-origin:30% 50%;
  -webkit-text-stroke:1px var(--ink);
  text-shadow:2px 3px 0 var(--red),4px 6px 0 var(--red),6px 9px 0 #a7112a,9px 13px 0 #020e21;
  overflow-wrap:anywhere;
}
.scene-heading h1.long-name {
  font-size:clamp(70px,9vw,132px);
  letter-spacing:0;
}
.scene-heading h1.very-long-name {
  font-size:clamp(45px,6vw,88px);
}
.hero-invite {
  font-family:Adventure,Impact,sans-serif;
  font-size:clamp(25px,3vw,42px);
  line-height:1.2;
  max-width:450px;
  margin:0;
  transform:rotate(-3deg);
}
.comic-note {
  position:absolute;
  right:5%;
  top:19%;
  z-index:2;
  display:grid;
  place-content:center;
  text-align:center;
  width:145px;
  height:145px;
  background:var(--gold);
  color:var(--ink);
  font-family:Adventure,Impact,sans-serif;
  font-size:25px;
  line-height:1.1;
  transform:rotate(13deg);
  clip-path:polygon(50% 0,61% 13%,79% 5%,81% 24%,99% 28%,90% 45%,100% 62%,81% 68%,79% 89%,60% 85%,48% 100%,39% 83%,18% 92%,17% 72%,0 65%,11% 47%,0 31%,22% 24%,22% 5%,40% 14%);
}
.scene-controls {
  position:absolute;
  bottom:65px;
  left:8%;
  z-index:3;
}
.scene-controls>a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  min-width:205px;
  min-height:54px;
  background:var(--red);
  border:1px solid #ff5c6a;
  box-shadow:4px 4px 0 #8b1830;
  color:white;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  padding:13px 22px;
  transform:rotate(-2deg);
}
.scene-controls>a span {
  font-size:24px;
  line-height:1;
}
.scroll-cue {
  font-size:11px;
  color:#c9d8e6;
  margin:15px 0 0;
  max-width:320px;
  min-height:16px;
}
.playback-tools {
  position:absolute;
  z-index:4;
  bottom:30px;
  right:28px;
  display:flex;
  align-items:center;
  gap:12px;
}
.play {
  display:grid;
  place-content:center;
  background:#071c3699;
  border:1px solid #d5e3f86b;
  color:white;
  border-radius:50%;
  width:42px;
  height:42px;
  font-size:17px;
  backdrop-filter:blur(8px);
}
.motion {
  background:transparent;
  color:#c7d7e6;
  font-size:10px;
  min-height:40px;
  padding:8px;
}
.progress {
  position:absolute;
  bottom:0;
  height:3px;
  left:0;
  right:0;
  background:#ffffff15;
}
.progress span {
  display:block;
  height:100%;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:left;
}
.invitation {
  position:relative;
  isolation:isolate;
  padding:130px 24px 55px;
  overflow:hidden;
  background:var(--red);
  background-image:radial-gradient(circle at 2px 2px,#790c232e 1.5px,transparent 2px);
  background-size:11px 11px;
  display:flex;
  align-items:center;
  flex-direction:column;
}
.invitation:before {
  content:'';
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(var(--ink),#bd193933 115px,transparent 260px);
}
.thread {
  position:absolute;
  top:0;
  height:143px;
  width:2px;
  background:var(--paper);
  left:50%;
  transform:rotate(-5deg);
  transform-origin:top;
}
.invitation-web {
  position:absolute;
  right:-15px;
  top:60px;
  width:min(65vw,550px);
  height:min(65vw,550px);
  color:#fff7e960;
  transform:scaleX(-1);
  pointer-events:none;
}
.arrival {
  font-family:Adventure,Impact,sans-serif;
  font-size:32px;
  color:var(--paper);
  margin:0 0 24px;
  transform:rotate(-3deg);
  text-shadow:2px 3px 0 #9b1930;
}
.ticket {
  position:relative;
  width:min(100%,540px);
  background:var(--paper);
  color:var(--ink);
  padding:44px 45px 0;
  text-align:center;
  border:2px solid var(--ink);
  border-radius:4px;
  box-shadow:7px 8px 0 var(--ink),14px 17px 0 #730b2330;
  transform:rotate(-1.5deg);
  isolation:isolate;
}
.ticket:before {
  content:'';
  position:absolute;
  top:9px;
  left:9px;
  right:9px;
  bottom:9px;
  border:1px solid #071c3622;
  pointer-events:none;
  z-index:-1;
}
.ticket:after {
  content:'';
  position:absolute;
  left:calc(50% - 9px);
  top:10px;
  width:18px;
  height:9px;
  border-radius:100%;
  background:var(--ink);
  box-shadow:inset 0 2px 3px #000;
}
.ticket-web {
  position:absolute;
  top:12px;
  left:12px;
  width:170px;
  height:170px;
  opacity:.22;
  color:var(--blue);
  z-index:-1;
}
.ticket-ribbon {
  font-size:11px;
  font-weight:700;
  display:inline-block;
  background:var(--ink);
  color:var(--paper);
  padding:8px 20px;
  transform:rotate(3deg);
}
.ticket-emblem {
  width:46px;
  height:58px;
  margin:25px auto 8px;
  color:var(--red);
}
.ticket-emblem svg {
  width:100%;
  height:100%;
  fill:currentColor;
}
.intro {
  font-family:Adventure,Impact,sans-serif;
  font-size:30px;
  margin:0 0 10px;
  line-height:1.1;
  transform:rotate(-4deg);
}
.ticket h2 {
  font-family:Adventure,Impact,sans-serif;
  font-size:clamp(68px,14vw,112px);
  font-weight:400;
  line-height:.95;
  letter-spacing:2px;
  color:var(--red);
  margin:0 0 18px;
  transform:rotate(-4deg);
  text-shadow:1px 1px 0 var(--paper),3px 3px 0 var(--ink);
  overflow-wrap:anywhere;
}
.ticket h2.long-name {
  font-size:clamp(40px,10vw,68px);
  letter-spacing:0;
}
.ticket h2.very-long-name {
  font-size:clamp(34px,8vw,52px);
}
.birthday {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  margin:0 auto 28px;
  position:relative;
}
.birthday>span {
  font-size:12px;
}
.birthday>span:first-child {
  max-width:60px;
  text-align:right;
}
.birthday>span:last-child {
  max-width:60px;
  text-align:left;
}
.birthday strong {
  position:relative;
  display:grid;
  place-items:center;
  font-family:Adventure,Impact,sans-serif;
  font-size:61px;
  font-weight:400;
  width:83px;
  height:83px;
  border:2px solid var(--ink);
  border-radius:50%;
  color:var(--paper);
  background:var(--blue);
  box-shadow:3px 3px 0 var(--red);
  line-height:1;
}
.message {
  font-size:15px;
  line-height:1.75;
  margin:0 0 27px;
}
.message strong {
  font-weight:700;
  font-size:17px;
}
.event-details,.event-empty {
  border-top:2px dashed #071c3640;
  border-bottom:2px dashed #071c3640;
  padding:22px 0;
  margin:0 0 24px;
  display:grid;
  gap:18px;
  text-align:left;
}
.event-details div {
  display:grid;
  grid-template-columns:65px 1fr;
  gap:12px;
}
.event-details span {
  font-size:12px;
  color:#3a566e;
}
.event-details strong {
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.event-empty>div {
  display:flex;
  gap:15px;
  align-items:center;
}
.event-empty svg {
  width:24px;
  height:24px;
  stroke:var(--red);
  fill:none;
  stroke-width:1.7;
  flex-shrink:0;
}
.event-empty span {
  font-size:10px;
  color:#3a566e;
}
.event-empty strong {
  display:block;
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  margin-top:3px;
}
.ticket-promise {
  font-size:13px;
  line-height:1.65;
  margin:16px 0;
}
.see-you {
  font-family:Adventure,Impact,sans-serif;
  color:var(--red);
  font-size:45px;
  margin:12px 0 23px;
  transform:rotate(-5deg);
}
.ticket-bottom {
  margin:0 -45px;
  padding:21px 26px;
  background:var(--blue);
  color:var(--paper);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:10px;
  line-height:1.5;
  border-top:2px solid var(--ink);
  text-align:left;
}
.ticket-bottom span:last-child {
  text-align:right;
}
.ticket-bottom svg {
  width:21px;
  height:29px;
  fill:currentColor;
  flex-shrink:0;
}
.after-invite {
  margin:45px auto 0;
  text-align:center;
  max-width:440px;
}
.replay {
  background:var(--ink);
  color:var(--paper);
  min-height:46px;
  padding:12px 22px;
  font-size:13px;
  border-radius:30px;
}
.edit-details {
  display:block;
  margin:10px auto 0;
  background:transparent;
  color:var(--paper);
  text-decoration:underline;
  text-underline-offset:4px;
  min-height:40px;
  font-size:12px;
}
.demo-label {
  font-size:10px;
  line-height:1.6;
  color:#fff7e9d9;
  margin:12px auto;
  max-width:300px;
}
footer {
  padding:20px 25px 30px;
  background:var(--ink);
  text-align:center;
  font-size:10px;
  color:#afc3d9;
}
footer details {
  max-width:640px;
  margin:auto;
}
footer summary {
  cursor:pointer;
  min-height:30px;
}
footer p {
  line-height:1.8;
}
.primary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:50px;
  background:var(--red);
  color:white;
  border-radius:7px;
  padding:14px;
  font-weight:700;
  font-size:14px;
}
dialog {
  width:min(460px,calc(100% - 28px));
  max-height:calc(100dvh - 32px);
  border:2px solid var(--ink);
  border-radius:14px;
  background:var(--paper);
  color:var(--ink);
  padding:28px;
  overflow-y:auto;
  color-scheme:light;
  box-shadow:8px 8px 0 #0004;
}
dialog::backdrop {
  background:#020c19c9;
  backdrop-filter:blur(5px);
}
dialog h2 {
  font-family:Adventure,Impact,sans-serif;
  font-weight:400;
  font-size:35px;
  line-height:1.05;
  max-width:280px;
  margin:10px 25px 25px 0;
}
.close {
  position:absolute;
  right:12px;
  top:10px;
  width:42px;
  height:42px;
  background:transparent;
  color:var(--ink);
  font-size:26px;
}
label {
  font-size:13px;
  font-weight:700;
  display:block;
  margin-bottom:15px;
}
label span {
  font-size:11px;
  font-weight:400;
}
input {
  display:block;
  width:100%;
  min-width:0;
  min-height:44px;
  border:1px solid #bdc7ce;
  border-radius:7px;
  background:white;
  color:var(--ink);
  padding:10px;
  margin-top:6px;
  font-size:16px;
}
.form-row {
  display:grid;
  grid-template-columns:70px 1fr;
  gap:15px;
}
dialog p {
  font-size:11px;
  color:#3a566e;
  line-height:1.6;
}
.no-js {
  text-align:center;
  font-size:12px;
}
.motion-off .journey {
  height:100svh;
}
.motion-off .film canvas {
  opacity:0;
}
.motion-off .film img {
  opacity:1;
}
.motion-off .progress {
  display:none;
}
.motion-off .play {
  display:none;
}
.motion-off .playback-tools {
  bottom:12px;
}
@media(max-width:700px) {
  .topbar {
    padding:19px 20px;
  }
  .brand {
    font-size:9px;
    gap:9px;
  }
  .brand b {
    font-size:11px;
  }
  .brand svg {
    width:20px;
    height:28px;
  }
  .edit {
    padding:7px 11px;
    font-size:10px;
    min-height:36px;
  }
  .edit span {
    font-size:14px;
  }
  .film {
    inset:0;
  }
  .film:after {
    background:linear-gradient(180deg,#071c368c 0,transparent 28%,#071c3620 40%,#071c36cb 68%,var(--ink) 87%);
  }
  .film img,.film canvas {
    object-fit:cover;
    object-position:50% 30%;
  }
  .scene-heading {
    left:7%;
    right:7%;
    top:auto;
    bottom:170px;
    width:auto;
    max-width:none;
    text-align:center;
  }
  .scene-heading>p:first-child {
    font-size:12px;
    margin:0 0 15px;
  }
  .scene-heading h1 {
    font-size:clamp(85px,28vw,178px);
    margin-bottom:24px;
    letter-spacing:2px;
    transform:rotate(-7deg);
    text-shadow:2px 3px 0 var(--red),4px 6px 0 var(--red),6px 9px 0 #a7112a,8px 11px 0 #020e21;
  }
  .scene-heading h1.long-name {
    font-size:clamp(56px,16vw,100px);
  }
  .scene-heading h1.very-long-name {
    font-size:clamp(37px,11vw,68px);
    line-height:1.1;
  }
  .hero-invite {
    font-size:25px;
    max-width:300px;
    margin:auto;
  }
  .comic-note {
    top:17%;
    right:5%;
    width:95px;
    height:95px;
    font-size:17px;
  }
  .corner-web {
    width:170px;
    height:170px;
  }
  .corner-web-right {
    width:240px;
    height:240px;
    right:-35px;
    top:-30px;
  }
  .scene-controls {
    left:0;
    right:0;
    bottom:70px;
    text-align:center;
    display:flex;
    align-items:center;
    flex-direction:column;
  }
  .scene-controls>a {
    min-height:47px;
    min-width:197px;
    font-size:13px;
    padding:10px 19px;
  }
  .scroll-cue {
    font-size:10px;
    margin-top:11px;
    max-width:85vw;
  }
  .playback-tools {
    bottom:max(14px,env(safe-area-inset-bottom));
    right:16px;
    gap:6px;
  }
  .play {
    height:32px;
    width:32px;
    font-size:13px;
  }
  .motion {
    font-size:9px;
    min-height:32px;
    padding:5px;
  }
  .progress {
    height:2px;
  }
  .invitation {
    padding:116px 25px 35px;
  }
  .arrival {
    font-size:30px;
    margin-bottom:25px;
  }
  .thread {
    height:126px;
  }
  .ticket {
    padding:36px 26px 0;
    max-width:430px;
  }
  .ticket-emblem {
    width:35px;
    height:45px;
    margin:23px auto 9px;
  }
  .intro {
    font-size:26px;
  }
  .ticket h2 {
    font-size:clamp(60px,21vw,95px);
  }
  .birthday {
    margin-bottom:22px;
  }
  .birthday strong {
    height:75px;
    width:75px;
    font-size:55px;
  }
  .message {
    font-size:13px;
  }
  .message strong {
    font-size:15px;
  }
  .event-details,.event-empty {
    padding-block:19px;
  }
  .ticket-bottom {
    margin-inline:-26px;
    padding:19px 20px;
    font-size:9px;
  }
  .ticket-promise {
    font-size:12px;
  }
  .see-you {
    font-size:41px;
  }
  .invitation-web {
    top:50px;
    width:300px;
    height:300px;
    right:-80px;
  }
  .after-invite {
    margin-top:38px;
  }
}
@media(max-height:650px) and (orientation:portrait) {
  .scene-heading {
    bottom:151px;
  }
  .scene-heading h1 {
    font-size:24vw;
    margin-bottom:18px;
  }
  .scene-heading>p:first-child {
    margin-bottom:11px;
  }
  .hero-invite {
    font-size:22px;
  }
  .scene-controls {
    bottom:58px;
  }
  .comic-note {
    width:80px;
    height:80px;
    font-size:14px;
  }
  .topbar {
    padding-top:13px;
  }
  .playback-tools {
    bottom:8px;
  }
}
@media(orientation:landscape) and (max-height:500px) {
  .topbar {
    padding:12px 20px;
  }
  .brand span {
    display:none;
  }
  .film {
    inset:0 0 0 38%;
  }
  .scene-heading {
    top:25%;
    bottom:auto;
    left:7%;
    width:45%;
    text-align:left;
  }
  .scene-heading>p:first-child {
    font-size:10px;
    margin-bottom:8px;
  }
  .scene-heading h1 {
    font-size:76px;
    margin-bottom:12px;
  }
  .scene-heading h1.long-name {
    font-size:43px;
  }
  .scene-heading h1.very-long-name {
    font-size:34px;
  }
  .hero-invite {
    font-size:20px;
    margin:0;
    max-width:300px;
  }
  .scene-controls {
    bottom:32px;
    left:7%;
    right:auto;
    text-align:left;
    align-items:flex-start;
  }
  .scene-controls>a {
    min-height:38px;
    padding:6px 15px;
    min-width:175px;
  }
  .scroll-cue {
    font-size:9px;
    margin-top:9px;
  }
  .comic-note {
    width:84px;
    height:84px;
    font-size:15px;
    top:24%;
    right:5%;
  }
  .playback-tools {
    bottom:15px;
    right:17px;
  }
  .motion {
    font-size:9px;
  }
  .play {
    width:32px;
    height:32px;
  }
  .film:after {
    background:linear-gradient(90deg,var(--ink),transparent 60%),linear-gradient(0deg,var(--ink),transparent 45%);
  }
  .corner-web-right {
    width:170px;
    height:170px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .journey {
    height:100svh;
  }
  body.motion-enabled .journey {
    height:400svh;
  }
}
@media(min-width:701px) and (min-height:501px) and (max-height:720px) {
  .scene-heading {
    top:23%;
    max-width:52%;
  }
  .scene-heading h1 {
    font-size:clamp(90px,12vw,155px);
    margin-bottom:22px;
  }
  .scene-heading h1.long-name {
    font-size:clamp(50px,7vw,88px);
  }
  .scene-heading h1.very-long-name {
    font-size:clamp(34px,5vw,65px);
  }
  .hero-invite {
    font-size:27px;
  }
  .scene-heading>p:first-child {
    font-size:13px;
    margin-bottom:16px;
  }
  .scene-controls {
    bottom:40px;
  }
  .comic-note {
    width:115px;
    height:115px;
    font-size:21px;
    top:21%;
  }
}
