@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/baloo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/caveat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/caveat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800.woff2") format("woff2");
}

:root {
  --paper: #fff6e5;
  --snow: #ffffff;
  --pine: #0f4b39;
  --pine-deep: #0a3527;
  --berry: #d63b2b;
  --gold: #f6b73c;
  --ink: #241c14;
  --ink-soft: #6b5b4a;
  --faded: #9c8a73;
  --rule: #e6d1a8;
  --body-ink: #4f4133;

  --font-fun: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --font-body: "Nunito", "Segoe UI", Verdana, sans-serif;

  --radius-card: 18px;
  --radius-field: 12px;
  --shadow: 4px 4px 0 0 var(--pine-deep);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--paper);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* The 112px tree pattern sits over the paper at 42%, matching the artboards. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/tile.svg");
  background-size: 112px 112px;
  background-repeat: repeat;
  opacity: 0.42;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom));
}

.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 390px;
  padding-bottom: 20px;
}

/* notices */

.notice {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 358px;
  margin: 8px 16px 0;
  padding: 12px 14px;
  background: var(--gold);
  border: 2px solid var(--pine);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.notice__close {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

/* garland + header */

.garland {
  display: block;
  width: 100%;
  height: 26px;
  flex-shrink: 0;
}

/* The string alternates red and green, all bulbs flipping together. */
.bulb--red {
  fill: var(--berry);
  animation: bulb-red 2.4s steps(1, end) infinite;
}

.bulb--green {
  fill: var(--pine);
  animation: bulb-green 2.4s steps(1, end) infinite;
}

@keyframes bulb-red {
  0%,
  49.99% {
    fill: var(--berry);
  }
  50%,
  100% {
    fill: var(--pine);
  }
}

@keyframes bulb-green {
  0%,
  49.99% {
    fill: var(--pine);
  }
  50%,
  100% {
    fill: var(--berry);
  }
}

/* Four short rays flash while that bulb is showing its bright berry glass. */
.bulb__rays {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
}

.bulb--red .bulb__rays {
  animation: rays-red 2.4s ease-in-out infinite;
}

.bulb--green .bulb__rays {
  animation: rays-green 2.4s ease-in-out infinite;
}

@keyframes rays-red {
  0% {
    opacity: 0;
  }
  6%,
  44% {
    opacity: 0.95;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes rays-green {
  0%,
  50% {
    opacity: 0;
  }
  56%,
  94% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand svg {
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__family {
  font-family: var(--font-fun);
  font-size: 17px;
  font-weight: 800;
  line-height: 19px;
  color: var(--pine);
}

.brand__season {
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: var(--berry);
  white-space: nowrap;
}

.status {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--snow);
  border: 2px solid var(--pine);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--pine-deep);
}

.status span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  color: var(--pine);
  white-space: nowrap;
}

.status--drawn {
  background: var(--pine);
  border-color: var(--pine-deep);
}

.status--drawn span {
  color: var(--paper);
}

/* type */

h1 {
  margin: 0;
  font-family: var(--font-fun);
  font-size: 36px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: -0.02em;
  color: var(--pine);
}

h2 {
  margin: 0;
  font-family: var(--font-fun);
  font-size: 24px;
  line-height: 1.1;
  color: var(--pine);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px 0;
}

.hero--center {
  align-items: center;
  text-align: center;
  padding-top: 26px;
}

.hero__title {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.hero__title svg {
  margin-bottom: 4px;
  flex-shrink: 0;
}

.kickerRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kicker {
  font-family: var(--font-hand);
  font-size: 26px;
  font-weight: 700;
  line-height: 28px;
  color: var(--berry);
  transform: rotate(-2deg);
  transform-origin: 50% 50%;
  width: fit-content;
}

.kicker--center {
  align-self: center;
  transform: rotate(-1.5deg);
  text-align: center;
  padding: 14px 24px 0;
}

.lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--body-ink);
}

.lede--center {
  max-width: 290px;
  margin-inline: auto;
  text-align: center;
}

.deadline {
  color: var(--berry);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.footnote {
  margin: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--body-ink);
}

/* cards */

.cardWrap {
  position: relative;
  align-self: center;
  width: calc(100% - 48px);
  max-width: 342px;
  margin: 22px auto 0;
}

.cardWrap--tight {
  margin-top: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px 16px;
  background: var(--snow);
  border: 3px solid var(--pine);
  border-radius: var(--radius-card);
  box-shadow: 5px 5px 0 0 var(--pine-deep);
}

.bow {
  position: absolute;
  top: -18px;
  right: 18px;
  pointer-events: none;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card__script {
  font-family: var(--font-hand);
  font-size: 27px;
  font-weight: 700;
  line-height: 27px;
  color: var(--ink);
}

.card__count {
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink-soft);
}

.card__foot {
  margin: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink-soft);
}

.card__hint {
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink-soft);
}

/* fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field + .field {
  margin-top: 9px;
}

.field__label {
  font-family: var(--font-hand);
  font-size: 21px;
  font-weight: 700;
  line-height: 21px;
  color: var(--ink-soft);
}

.field__input {
  width: 100%;
  padding: 11px 13px;
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: var(--radius-field);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
}

.field__input::placeholder {
  color: var(--faded);
  font-weight: 600;
  opacity: 1;
}

.field__input:focus-visible,
.slot__input:focus-visible,
.slot__price:focus-visible,
.slot__link:focus-visible,
.nameInput:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

/* buttons */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border: 2px solid var(--pine);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.btn--wide {
  width: 100%;
}

.btn--berry {
  background: var(--berry);
  color: var(--snow);
  box-shadow: 4px 4px 0 0 var(--pine-deep);
}

.btn--mail {
  margin-top: 4px;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 0 var(--pine-deep);
}

.btn--ghost {
  background: var(--snow);
  color: var(--pine);
  border-width: 3px;
  box-shadow: 4px 4px 0 0 var(--pine-deep);
}

.btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

.btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--pine-deep);
}

.chip {
  border: 2px solid var(--pine);
  background: var(--snow);
  color: var(--pine);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.chip:disabled {
  opacity: 0.4;
  cursor: default;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 700;
  color: var(--berry);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.linkish--inline {
  font-size: 19px;
}

.linkish--small {
  font-size: 16px;
  color: var(--faded);
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px 0;
}

.actions .btn {
  width: 100%;
}

/* already in */

.already {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 0;
}

.already__label {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  color: var(--body-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nameChip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--snow);
  border: 2px solid var(--pine);
  border-radius: 10px;
  box-shadow: 2px 2px 0 0 var(--pine-deep);
  transform: rotate(-2deg);
}

.nameChip:nth-child(even) {
  background: var(--gold);
  transform: rotate(2deg);
}

.nameChip__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--pine);
}

.nameChip span:last-child {
  font-family: var(--font-hand);
  font-size: 25px;
  font-weight: 700;
  line-height: 25px;
  color: var(--ink);
}

.already__foot {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  color: var(--body-ink);
}

/* wish slots */

.slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 24px 0;
}

.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--snow);
  border: 3px solid var(--pine);
  border-radius: 16px;
  box-shadow: 4px 4px 0 0 var(--pine-deep);
  cursor: pointer;
}

.slot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.slot--empty {
  background: rgba(255, 246, 229, 0.72);
  border: 2.5px dashed var(--faded);
  box-shadow: none;
  cursor: default;
}

.slot--editing,
.slot--locked {
  align-items: flex-start;
  cursor: default;
}

.slot--editing:focus-visible {
  outline: none;
}

.slot__thumbWrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.slot__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--pine);
  overflow: hidden;
}

.slot--empty .slot__thumb {
  background: transparent;
  border: 2px dashed var(--faded);
}

.slot__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot__num {
  position: absolute;
  top: -6px;
  left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold);
  border: 2px solid var(--pine);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  color: var(--ink);
}

.slot--empty .slot__num {
  background: var(--paper);
  border: 1.8px dashed var(--faded);
  color: var(--faded);
}

.slot__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.slot--editing .slot__body {
  gap: 5px;
}

.slot__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 19px;
  color: var(--ink);
}

.slot__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.slot__priceChip {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: var(--gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  color: var(--ink);
}

.slot__source {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--ink-soft);
}

.slot__meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.slot__clear {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink-soft);
  cursor: pointer;
}

.slot__clear:hover,
.slot__clear:focus-visible {
  color: var(--berry);
}

.slot__input {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
}

.slot__input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.slot__metaRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot__price {
  width: 82px;
  flex: 0 0 auto;
  padding: 2px 9px;
  background: none;
  border: 1.5px dashed var(--faded);
  border-radius: 8px;
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink-soft);
}

.slot__price::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.slot__linkRow {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.slot__link {
  width: 100%;
  min-width: 0;
  padding: 0 0 2px;
  background: none;
  border: 0;
  border-bottom: 1.5px dashed var(--faded);
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink-soft);
}

.slot__link::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

/* signed-in line */

.signed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 24px 0;
}

.signed__line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  color: var(--body-ink);
}

.signed__email {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--ink-soft);
}

.nameInput {
  width: 160px;
  padding: 7px 10px;
  border: 2px solid var(--pine);
  border-radius: 10px;
  background: var(--snow);
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.lockedNote {
  margin: 18px 24px 0;
  padding: 11px 14px;
  border: 2px dashed var(--faded);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* waiting progress */

.progress {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.progress__count {
  font-family: var(--font-fun);
  font-size: 38px;
  font-weight: 800;
  line-height: 38px;
  color: var(--pine);
}

.progress__label {
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: var(--ink-soft);
}

.bar {
  display: flex;
  width: 100%;
  height: 14px;
  border: 2px solid var(--pine);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--berry),
    var(--berry) 8px,
    var(--paper) 8px,
    var(--paper) 16px
  );
  border-right: 2px solid var(--pine);
}

.inChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inChip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1.8px solid var(--pine);
  border-radius: 999px;
}

.inChip:nth-child(even) {
  background: var(--gold);
}

.inChip span:last-child {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  color: var(--ink);
}

.inChip__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pine);
}

.inChip--waiting {
  background: transparent;
  border: 1.8px dashed var(--faded);
}

.inChip--waiting span:last-child {
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--ink-soft);
}

/* roster */

.roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 24px 0;
  padding: 0;
  list-style: none;
}

.roster__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--snow);
  border: 3px solid var(--pine);
  border-radius: 14px;
  box-shadow: 3px 3px 0 0 var(--pine-deep);
}

.roster__dot {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--pine);
}

.roster__name {
  font-family: var(--font-hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

/* sealed tag */

.sealed {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 290px;
  margin: 28px auto 0;
}

.sealed__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 270px;
  overflow: hidden;
  background: var(--pine);
  border: 3px solid var(--pine-deep);
  border-radius: 20px;
  box-shadow: 6px 6px 0 0 var(--pine-deep);
  transform: rotate(-1.5deg);
}

.sealed__ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sealed__seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--berry);
  border: 3px solid var(--pine-deep);
  box-shadow: inset 0 0 0 6px #b92d20, 0 4px 0 0 var(--pine-deep);
}

.sealed__sealName {
  font-family: var(--font-fun);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 12px;
  color: var(--paper);
}

.sealed__sealYear {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 12px;
  color: var(--gold);
}

.sealed__pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 16px;
  background: var(--pine);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  color: var(--paper);
  white-space: nowrap;
}

.sealed__star {
  position: absolute;
}

.sealed__star--top {
  top: -10px;
  right: -4px;
}

.sealed__star--bottom {
  bottom: 10px;
  left: -10px;
}

/* Unwrap: shake, pop the seal, ribbons vanish, box shrinks away. */
.sealed.is-unwrapping .sealed__box {
  animation: unwrap-box 950ms cubic-bezier(0.3, 0.1, 0.4, 1) both;
}

.sealed.is-unwrapping .sealed__seal {
  animation: unwrap-seal 500ms 130ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sealed.is-unwrapping .sealed__ribbon {
  animation: unwrap-ribbon 420ms 260ms ease-in both;
}

.sealed.is-unwrapping .sealed__pill {
  animation: unwrap-pill 260ms 180ms ease-in both;
}

.sealed.is-unwrapping .sealed__star {
  animation: unwrap-fade 300ms 150ms ease-in both;
}

@keyframes unwrap-box {
  0% {
    transform: rotate(-1.5deg) scale(1);
    opacity: 1;
  }
  12% {
    transform: rotate(1.2deg) scale(1.02);
  }
  24% {
    transform: rotate(-2.2deg) scale(1.02);
  }
  36% {
    transform: rotate(1deg) scale(1.01);
  }
  46% {
    transform: rotate(-1.5deg) scale(1);
  }
  100% {
    transform: rotate(-1.5deg) scale(0.84);
    opacity: 0;
  }
}

@keyframes unwrap-seal {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  35% {
    transform: scale(1.18) rotate(-6deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.15) rotate(28deg);
    opacity: 0;
  }
}

@keyframes unwrap-ribbon {
  100% {
    transform: scale(1.06);
    opacity: 0;
  }
}

@keyframes unwrap-pill {
  100% {
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
  }
}

@keyframes unwrap-fade {
  100% {
    opacity: 0;
  }
}

/* Entry for the unwrapped tag and its list. */
.tagCard {
  animation: tag-in 600ms cubic-bezier(0.2, 0.85, 0.3, 1.18) both;
}

.cardWrap--reveal .card {
  animation: card-in 450ms 120ms ease-out both;
}

@keyframes tag-in {
  from {
    transform: translateY(26px) scale(0.82) rotate(3deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes card-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* unwrapped tag */

.tagCard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 310px;
  height: 274px;
  margin: 2px auto 0;
}

.tagCard__shape {
  position: absolute;
  inset: 0;
}

.tagCard__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 204px;
  margin-top: 46px;
  text-align: center;
  transform: rotate(-2.5deg);
}

.tagCard__label {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  color: var(--pine);
}

.tagCard__name {
  font-family: var(--font-hand);
  font-size: 58px;
  font-weight: 700;
  line-height: 56px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.tagCard__foot {
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  line-height: 22px;
  color: var(--pine);
}

/* wish list */

.wishes {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wishes__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wishes__item > svg {
  flex: 0 0 12px;
}

.wishes__title {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  color: var(--ink);
}

.wishes__link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.wishes__link .wishes__title {
  flex: 0 1 auto;
}

.wishes__link:active .wishes__title {
  color: var(--berry);
}

.wishes__arrow {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-soft);
}

.wishes__price {
  flex: 0 0 44px;
  margin-left: auto;
  padding: 1px 8px;
  background: var(--paper);
  border: 1.5px solid var(--pine);
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  color: var(--pine);
}

/* loading / auth */

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 390px;
  padding: 64px 24px;
  text-align: center;
}

/* motion */

@media (prefers-reduced-motion: reduce) {
  .kicker,
  .sealed__box,
  .tagCard__text {
    transform: none;
  }

  .bulb--red,
  .bulb--green,
  .bulb__rays,
  .sealed.is-unwrapping .sealed__box,
  .sealed.is-unwrapping .sealed__seal,
  .sealed.is-unwrapping .sealed__ribbon,
  .sealed.is-unwrapping .sealed__pill,
  .sealed.is-unwrapping .sealed__star,
  .tagCard,
  .cardWrap--reveal .card {
    animation: none;
  }

  .btn:active:not(:disabled) {
    transform: none;
  }
}
