.edition-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  display: grid;
  place-items: center;
  background: #333c4b url("./assets/edition-sky.webp") center 70% / cover no-repeat;
}
.edition-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 42%, transparent 27%, #10172760 100%);
}
.edition-sitter {
  display: block;
  width: min(112vw, 73svh, 790px);
  max-width: none;
  height: auto;
  mask-image: linear-gradient(#000 80%, #000d 91%, transparent);
}
.edition-scroll {
  position: absolute;
  inset: auto auto 2% 50%;
  translate: -50% 0;
  color: #fff;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  outline-offset: 2px;
}
.edition-scroll:hover { background: #131c287d; }
.edition-scroll span {
  width: 11px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  rotate: 45deg;
}
.edition-hero + .topbar :is(.main-nav, .language-switch) :focus-visible { outline-color: #fff; }
.edition-guide h2, .edition-invites h2, .edition-story h2 { margin: 0; font-size: clamp(1.62rem, 4vw, 2.7rem); }
.edition-guide p, .edition-story p { max-width: 45rem; margin: .64rem 0 0; color: var(--muted); }
.edition-guide-actions, .edition-invite-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.catalog-page .gallery-stage, .catalog-page .gallery-portrait { aspect-ratio: 4 / 5; }
.catalog-page .gallery-portrait { width: 100%; filter: none; }
.catalog-page .gallery-work {
  flex-basis: 100%;
  order: 2;
  color: #e1cba2;
  font-size: .81rem;
  line-height: 1.25;
}
.detail-edition .detail-portrait {
  aspect-ratio: 4 / 5;
  width: min(100%, 38svh, 23rem);
  border-radius: .3rem;
  box-shadow: 0 10px 26px #04070d8f;
}

.core-home {
  color-scheme: dark;
  --edition-silver: linear-gradient(168deg, #f4f8fd 1%, #dae3ec 31%, #a8b8ca 51%, #e2ebf5 67%, #a5b5c9 100%);
}
.core-home body {
  position: relative;
  isolation: isolate;
  background: #343f4c;
}
.core-home body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#101a2642, #111d2d62), url("./assets/edition-sky.webp") center 70% / cover no-repeat;
}
.core-home .edition-main { color: #f4f6fa; }
.edition-main .shell, .core-home .home-topbar .shell { width: min(1240px, calc(100% - clamp(2rem, 7vw, 6.25rem))); }
.edition-hero + .home-topbar {
  background:
    linear-gradient(179deg, #d0deed25, #dce7f006 42%, #0b101b38 78%, #aebed018),
    linear-gradient(108deg, #1d2835eb, #45515dee 47%, #253242df 82%, #2d3a48e8);
  border-bottom-color: #c0d2e54a;
  box-shadow: inset 0 1px #dcedff6b, 0 7px 20px #0a12242e;
  backdrop-filter: blur(22px);
}
.core-home .home-topbar .main-nav > * { color: #e8eef6; white-space: nowrap; }
.core-home .home-topbar .main-nav :is(a, button):hover,
.core-home .home-topbar .main-nav a[aria-current="location"] { color: #fff; border-bottom-color: transparent; box-shadow: inset 0 -2px #d1e3f58f; }
.core-home .home-topbar .rail-brand { filter: grayscale(1); }
.edition-scene {
  min-height: calc(100svh - var(--home-nav-height));
  align-content: center;
  display: grid;
  padding-block: clamp(3.6rem, 8vw, 7rem);
}
#top, #edition-rules, #main, #invites, #story { scroll-margin-top: 0; }
#top { scroll-margin-top: calc(-1 * (var(--home-nav-height) + .7rem)); }
.edition-rules-grid, .edition-invite-grid, .edition-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
}
.edition-main h2 { text-wrap: balance; }
.edition-guide h2, .edition-invites > h2, .edition-story h2, .edition-pack h1 {
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -.05em;
}
.edition-guide p, .edition-story p, .edition-rule-list dd { color: #e0e6ee; }
.edition-guide-actions { margin-top: 1.5rem; }
.edition-main .button.primary {
  color: #172435;
  border-color: #e9f1fc;
  background: var(--edition-silver);
  box-shadow: inset 0 1px #fff, 0 4px 14px #0914264d;
}
.edition-main .button.primary:hover:not(:disabled) { filter: brightness(1.08); }
.edition-main .button.primary:disabled { background: var(--soft); color: var(--muted); box-shadow: none; }
.edition-surface, .edition-pack .pack-console {
  background: linear-gradient(150deg, #d9e5f218, transparent 53%), #111a25ed;
  border: 1px solid #e3ecf53d;
  border-radius: .875rem;
  box-shadow: inset 0 1px #ffffff08, 0 18px 42px #0003;
}
.edition-rule-panel { padding: clamp(1.2rem, 3.7vw, 2.6rem); }
.edition-rule-list { display: grid; gap: 1.1rem; margin: 0; }
.edition-rule-list > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .6rem; }
.edition-rule-list dt { font-weight: 650; }
.edition-rule-list dd { margin: 0; }
.edition-tier-panel { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e3ecf535; }
.edition-tier-panel p { margin: 0; }
.edition-tier-panel .edition-caption { font-size: .875rem; color: #b9c3d0; }
.edition-tier-band { display: grid; grid-template-columns: minmax(3px, .5fr) 5fr 35fr 59.5fr; gap: 3px; margin-block: .65rem; }
.edition-tier-band i { height: 5px; border-radius: 4px; background: #8795a6; }
.edition-tier-band i:nth-child(1) { background: #ebcb90; }
.edition-tier-band i:nth-child(2) { background: #a0c6dc; }
.edition-tier-band i:nth-child(3) { background: #b8c4d4; }
.edition-tier-list { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; padding: 0; margin: 0 0 .5rem; list-style: none; }
.edition-catalog-summary { margin-top: 1.5rem; }
.edition-catalog-summary summary { width: fit-content; cursor: pointer; color: #e3ebf6; }
.edition-catalog-summary .section-heading { margin-block: 1rem; }
.edition-pack .layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "stage console";
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.8rem);
  border: 0;
  background: none;
}
.edition-pack .stage { display: block; width: 100%; max-width: none; border: 0; }
.edition-pack .console { padding: 0; background: none; }
.edition-pack .chamber { min-height: 0; aspect-ratio: 1.08; border-color: #e1edfb42; border-radius: .875rem; }
.edition-pack .chamber:is([data-state="closed"], [data-state="loading"]) {
  background: linear-gradient(153deg, #ebf2ff24, transparent 42%, #0c131f56 100%), radial-gradient(ellipse at 50% 84%, #111d2a96, transparent 62%);
  box-shadow: inset 0 1px #e5edfb4f, 0 20px 40px #0b111a3d;
  backdrop-filter: blur(2px);
}
.edition-capsule { display: none; position: absolute; inset: 4% 8% auto; height: 87%; z-index: 2; pointer-events: none; }
.edition-pack .chamber:is([data-state="closed"], [data-state="loading"]) .edition-capsule { display: grid; place-items: center; }
.edition-pack .chamber:is([data-state="closed"], [data-state="loading"]) > :not(.edition-capsule, .chamber-caption),
.edition-pack .chamber:is([data-state="closed"], [data-state="loading"])::before,
.edition-pack .chamber:is([data-state="closed"], [data-state="loading"])::after { visibility: hidden; }
.edition-capsule img { height: 100%; width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 15px 14px #0a152191); }
.edition-capsule .edition-capsule-reflection {
  position: absolute;
  top: 89%;
  transform: scaleY(-.72);
  transform-origin: center top;
  translate: 0 72%;
  opacity: .32;
  mask-image: linear-gradient(to top, #000 6%, transparent 38%);
  filter: blur(1.5px) brightness(.72);
}
.edition-pack .pack-console { display: block; margin-top: 1.35rem; padding: clamp(.8rem, 2vw, 1.4rem); }
.edition-pack .pack-quantity { display: block; }
.edition-pack .quantity-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .5rem .8rem;
}
.edition-pack #quantity-label, .edition-pack .quantity-error { grid-column: 1 / -1; }
.edition-pack .quantity-custom {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: .28rem .5rem;
  margin: 0;
}
.edition-pack .quantity-custom span:first-child { grid-column: 1 / -1; }
.edition-pack .quantity-custom input { width: 4.3rem; max-width: 100%; }
.edition-pack .quantity-total { margin-block: .65rem .3rem; text-align: left; }
.edition-pack .pack-action-bar { display: grid; gap: .55rem; }
.edition-pack .pack-action-bar .prompt-feedback { margin: 0; }
.edition-invite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem; }
.edition-share-content { display: grid; gap: .82rem; }
.edition-invite-links { margin: 0; }
.edition-story { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.edition-story-portrait { overflow: hidden; border-radius: .875rem; border: 1px solid #e1edfb42; max-width: 26rem; }
.edition-story-portrait img { display: block; width: 100%; height: auto; }
.edition-story .edition-story-label { margin: 0 0 1rem; color: #d6e1ee; }
.edition-story article p + p { margin-top: 1.15rem; }
.edition-story article .button { margin-top: 1.5rem; }
@media (max-width: 1050px) {
  html.core-home { --home-nav-height: 2.75rem; --home-brand-height: 3.45rem; }
  .core-home .home-topbar .header-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: var(--home-brand-height) var(--home-nav-height);
    gap: 0 .5rem;
    min-height: unset;
  }
  .core-home .home-topbar .main-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; justify-content: flex-start; }
  .core-home .home-topbar .header-actions { grid-row: 1; grid-column: 2; }
}
@media (max-width: 780px) {
  .edition-rules-grid, .edition-invite-grid, .edition-story, .edition-pack .layout { grid-template-columns: minmax(0, 1fr); }
  .edition-story-portrait { width: min(100%, 22rem); }
  .edition-pack .layout { grid-template-areas: "stage" "console"; }
  .edition-pack .chamber { aspect-ratio: 1.13; }
  .edition-rule-list > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}
@media (max-width: 370px) {
  .edition-pack .quantity-field { grid-template-columns: minmax(0, 1fr); }
  .edition-pack .quantity-custom { width: max-content; }
}
