@font-face {
  font-family: Meridia;
  src: url("/assets/fonts/uncialantiqua.ttf") format("truetype");
  font-display: swap;
}
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  height: 108px;
}
.primary-nav {
  grid-column: 2;
  display: grid;
  grid-template-columns: 76px auto 76px;
  align-items: center;
  gap: 28px;
}
.wordmark {
  justify-self: center;
}
.wordmark img {
  width: 166px;
}
.nav-link {
  background: none;
  border: 0;
  padding: 16px 0;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 600;
  color: #34453e;
  justify-self: start;
}
.nav-link:last-child {
  justify-self: end;
}
.nav-link[aria-current] {
  color: #192d23;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}
#navPacks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  background: #161918;
  color: #fff;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
  font-size: 11px;
}
#navPacks:empty {
  display: none;
}
.site-header .account {
  grid-column: 3;
  justify-self: end;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
  font-size: 13px;
}
.site-header .account > span {
  max-width: min(180px, 100%);
}
.site-header .quiet {
  font-size: 11px;
  border: 0;
  padding: 2px 0;
}
.pack-page {
  min-height: calc(100svh - 208px);
  padding: 54px 0 60px;
}
.pack-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.pack-page-heading h1 {
  font-family: Meridia, Georgia, serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}
.pack-page-heading .eyebrow {
  margin-bottom: 10px;
  color: #8a8e81;
}
.pack-balance {
  display: grid;
  text-align: right;
  gap: 7px;
  font-size: 17px;
}
.pack-balance strong {
  font-weight: 500;
}
.pack-balance > span {
  color: #7b867c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pack-choices {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 6vw, 90px);
  padding: 56px 0 34px;
  min-height: 430px;
}
.choose-pack {
  padding: 0;
  position: relative;
  border: 0;
  background: none;
  color: inherit;
  perspective: 1400px;
  max-width: 35vw;
  width: 242px;
}
.choose-pack .pack-cover {
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s;
  transform: rotateY(-8deg) rotateZ(-3deg);
  filter: drop-shadow(12px 22px 13px #3142372c);
}
.choose-pack:nth-child(2) .pack-cover {
  transform: rotateY(8deg) rotateZ(3deg);
}
.choose-pack:hover .pack-cover {
  transform: translateY(-10px) rotateY(0) rotateZ(0);
  filter: drop-shadow(0 28px 14px #31423732);
}
.choose-pack:disabled {
  opacity: 0.45;
  cursor: default;
}
.choose-pack > span {
  display: block;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #788778;
}
.pack-caption {
  font-size: 12px;
  color: #7b867c;
  text-align: center;
  margin: 0;
  letter-spacing: 0.08em;
}
.pack-caption span {
  margin: 0 12px;
}
#resumePack {
  display: block;
  margin: 0 auto 24px;
  color: #315e45;
}
.pack-cover {
  width: 100%;
  aspect-ratio: 63/96;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #98b09b 0%,
    #456757 9%,
    #183a30 32%,
    #244c3d 61%,
    #597e65 90%,
    #bbceba 100%
  );
  color: #e7dfbe;
  clip-path: polygon(
    1% 0,
    99% 0,
    100% 3%,
    100% 97%,
    99% 100%,
    1% 100%,
    0 97%,
    0 3%
  );
  border-left: 1px solid #ccdec084;
  border-right: 1px solid #fff8ca3a;
  box-shadow:
    inset 9px 0 12px #ffffff12,
    inset -10px 0 11px #05170c60;
}
.pack-cover::before {
  content: "";
  position: absolute;
  inset: 4% 4%;
  border: 1px solid #e9cf875c;
  box-shadow: inset 0 0 0 3px #192b2450;
  z-index: -1;
}
.pack-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, #fdf3cc3d, transparent 56%),
    repeating-linear-gradient(102deg, #eeecc309 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.pack-ornament {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.72;
  z-index: -1;
  mix-blend-mode: screen;
}
.pack-crimp {
  position: absolute;
  left: 0;
  right: 0;
  height: 5%;
  background:
    repeating-linear-gradient(90deg, #203f34aa 0 1px, #b2c5a83d 1px 2px),
    linear-gradient(#809782, #325143, #91aa8c);
  box-shadow:
    0 2px 3px #071b1499,
    inset 0 1px #e8ecc578;
}
.pack-crimp.top {
  top: 0;
}
.pack-crimp.bottom {
  bottom: 0;
  transform: rotate(180deg);
}
.pack-geos {
  width: 69%;
  filter: brightness(0) invert(0.92) sepia(0.28) saturate(0.7);
  opacity: 0.96;
  margin-top: 20%;
  position: relative;
  z-index: 1;
}
.pack-meridia {
  font-family: Meridia, Georgia, serif;
  font-size: clamp(26px, 4vw, 42px);
  margin-top: 6%;
  line-height: 1.3;
  text-shadow: 0 2px 1px #061b1399;
  position: relative;
  z-index: 1;
}
.pack-edition {
  position: absolute;
  top: 12%;
  font-size: 9px;
  letter-spacing: 0.32em;
}
.pack-world {
  font-size: 8px;
  letter-spacing: 0.3em;
  margin-top: 9%;
}
.pack-spec {
  position: absolute;
  bottom: 10%;
  font-size: 8px;
  letter-spacing: 0.2em;
  display: flex;
  gap: 16px;
}
.pack-emblem {
  position: absolute;
  top: 23%;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid #dbc48745;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #e3dba315 0 1px,
    transparent 1px 14px
  );
  opacity: 0.7;
}
.pack-opening {
  --card-width: min(370px, 76vw, calc((100svh - 150px) * 0.7159));
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  inset: 0;
  padding: 0;
  margin: 0;
  background: #050807;
  color: #eae9dd;
  overflow: hidden;
  perspective: 1700px;
  border: 0;
  outline: none;
}
.pack-opening::backdrop {
  background: #000;
}
.opening-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.sealed-pack {
  width: var(--card-width);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 22px 28px #000);
  transform: rotateY(-9deg) rotateZ(-2deg);
  position: relative;
  z-index: 3;
}
.sealed-pack .pack-cover {
  aspect-ratio: 63/94;
  box-shadow:
    inset 6px 0 12px #ffffff18,
    inset -10px 0 11px #05170c60;
}
.sealed-pack .pack-meridia {
  font-size: clamp(30px, 7vw, 58px);
}
.opening-stage::before {
  content: "";
  width: 70vw;
  height: 70vh;
  position: absolute;
  background: radial-gradient(ellipse, #30453824 0, transparent 62%);
  pointer-events: none;
}
.opening-stage::after {
  content: "";
  position: absolute;
  bottom: 8%;
  width: 55vw;
  height: 6%;
  background: radial-gradient(ellipse, #000c, transparent 65%);
  filter: blur(13px);
  pointer-events: none;
}
.opening-leave {
  position: absolute;
  right: clamp(20px, 4vw, 58px);
  top: max(25px, env(safe-area-inset-top));
  background: none;
  color: #9da49b;
  border: 0;
  letter-spacing: 0.1em;
  font-size: 11px;
  padding: 10px;
  z-index: 5;
}
.opening-guide {
  position: absolute;
  bottom: max(25px, env(safe-area-inset-bottom));
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  color: #9da69a;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.opening-guide > span {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  color: #5e7062;
}
.opening-guide p {
  margin: 10px 0 0;
}
.opening-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: screen;
}
.card-stack {
  position: relative;
  width: var(--card-width);
  aspect-ratio: 63/88;
  transform-style: preserve-3d;
  perspective: 1800px;
  z-index: 2;
}
.opening-card {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: none;
  transform-style: preserve-3d;
  opacity: 1;
  cursor: pointer;
  outline-offset: 8px;
  will-change: transform;
}
.opening-card:disabled {
  opacity: 1;
  cursor: default;
}
.card-turner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4.2%;
  overflow: hidden;
  transform: translateZ(0.1px);
}
.card-front {
  transform: rotateY(180deg) translateZ(0.1px);
  background: none;
}
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.card-back {
  padding: 2%;
  background: linear-gradient(
    130deg,
    #b7b8b4,
    #e6e6df 13%,
    #858983 30%,
    #c7cbc1 53%,
    #fafaf0 72%,
    #a0a79e
  );
  box-shadow:
    inset 0 0 0 1px #f4f7eb99,
    0 0 0 1px #ffffff40;
}
.card-back::after {
  content: "";
  position: absolute;
  inset: 4.2%;
  border: 1px solid #636f6144;
  border-radius: 3%;
  pointer-events: none;
}
.card-back-paper {
  width: 100%;
  height: 100%;
  border-radius: 2.7%;
  background: radial-gradient(ellipse at 30% 20%, #fffdf4, #eaece3 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #50584c40;
  position: relative;
  box-shadow: inset 0 0 25px #58634412;
}
.card-back-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}
.card-back-logo {
  width: 62%;
  opacity: 0.85;
}
.card-back-meridia {
  font-family: Meridia, Georgia, serif;
  color: #283c32;
  opacity: 0.8;
  font-size: clamp(27px, 6vw, 43px);
  line-height: 1.35;
  margin-top: 5%;
}
.opening-card.guaranteed .card-back {
  background: linear-gradient(
    125deg,
    #cdeed4,
    #487f57 18%,
    #abc7a0 30%,
    #356d4b 49%,
    #d9efd0 68%,
    #659a6c
  );
  box-shadow:
    0 0 24px #91dca74f,
    0 0 64px #62bd8a30,
    inset 0 0 0 1px #d6f8d4;
}
.opening-card.guaranteed .card-back::after {
  border-color: #3e795555;
}
.opening-card.guaranteed::before {
  content: "";
  position: absolute;
  inset: -16%;
  background: radial-gradient(ellipse, #83c89933, transparent 68%);
  pointer-events: none;
  transform: translateZ(-2px);
}
.opening-card.flipped.guaranteed::before {
  opacity: 0;
}
.opening-card.guaranteed:disabled::before {
  display: none;
}
.opening-card.guaranteed:disabled .card-back {
  box-shadow: inset 0 0 0 1px #d6f8d4;
}
body.opening-active {
  overflow: hidden;
}
@media (max-width: 650px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 120px;
    padding-top: 18px;
    padding-bottom: 14px;
    gap: 14px;
  }
  .primary-nav {
    grid-column: 1;
    justify-self: center;
    grid-template-columns: 62px auto 62px;
    gap: 16px;
  }
  .site-header .account {
    grid-column: 1;
    gap: 4px;
  }
  .wordmark img {
    width: 128px;
  }
  .nav-link {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .pack-page {
    padding-top: 35px;
  }
  .pack-balance {
    font-size: 14px;
  }
  .pack-balance > span {
    font-size: 10px;
  }
  .pack-choices {
    gap: 25px;
    padding-top: 46px;
    min-height: 360px;
  }
  .choose-pack {
    max-width: 39vw;
  }
  .pack-meridia {
    font-size: 26px;
  }
  .pack-edition {
    font-size: 7px;
  }
  .pack-world {
    font-size: 6px;
  }
  .pack-spec {
    font-size: 6px;
    gap: 9px;
  }
  footer {
    flex-wrap: wrap;
    gap: 18px;
  }
  .pack-opening {
    --card-width: min(76vw, calc((100svh - 145px) * 0.7159));
  }
  .opening-leave {
    top: 12px;
  }
  .pack-cover .pack-geos {
    margin-top: 22%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .choose-pack .pack-cover {
    transition: none;
  }
  .opening-card {
    will-change: auto;
  }
}
