@import url("https://fonts.googleapis.com/css2?family=Rye&family=UnifrakturCook:wght@700&family=UnifrakturMaguntia&display=swap");

:root {
  --bg: #f7f6f1;
  --ink: #080808;
  --muted: #6e6c66;
  --line: rgba(8, 8, 8, .26);
  --line-active: rgba(8, 8, 8, .82);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  background: var(--bg);
}

.home-view,
.title-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.home-view {
  isolation: isolate;
}

.hover-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .22s ease;
}

.site-shell[data-active="wasteland"] .hover-field {
  background: #f0eee7;
}

.site-shell[data-active="shadow"] .hover-field {
  background: #f2f1eb;
}

.site-shell[data-active="priest"] .hover-field {
  background: #efeee8;
}

.home-view:has(.world-node:hover) .hover-field,
.home-view:has(.world-node:focus-visible) .hover-field {
  opacity: 1;
}

.origin-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: clamp(280px, 33vw, 700px);
  padding: 0;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, opacity .36s ease, filter .36s ease;
}

.origin-mark img,
.return-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.home-view:has(.world-node:hover) .origin-mark,
.home-view:has(.world-node:focus-visible) .origin-mark {
  transform: translate(-50%, -50%) scale(1.012);
}

.site-shell.is-previewing .origin-mark {
  opacity: .48;
  filter: blur(1.4px) contrast(.86);
}

.preview-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .42s ease;
}

.site-shell[data-preview="wasteland"] .preview-wasteland,
.site-shell[data-preview="shadow"] .preview-shadow,
.site-shell[data-preview="priest"] .preview-priest {
  opacity: 1;
}

.fragment {
  position: absolute;
  display: block;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) blur(8px) contrast(.84);
  transform: translateY(8px) scale(.985);
  transition: opacity .46s ease, filter .46s ease, transform .46s ease;
}

.site-shell[data-preview="wasteland"] .preview-wasteland .fragment,
.site-shell[data-preview="shadow"] .preview-shadow .fragment,
.site-shell[data-preview="priest"] .preview-priest .fragment {
  opacity: .52;
  filter: grayscale(1) blur(2.4px) contrast(.9);
  transform: translateY(0) scale(1);
}

.site-shell[data-preview="wasteland"] .preview-wasteland .fragment-large,
.site-shell[data-preview="shadow"] .preview-shadow .fragment-large,
.site-shell[data-preview="priest"] .preview-priest .fragment-large {
  opacity: .42;
  filter: grayscale(1) blur(3px) contrast(.82);
}

.preview-wasteland .fragment-large {
  left: -4vw;
  top: 48vh;
  width: 38vw;
  height: 34vh;
}

.preview-wasteland .fragment-a {
  left: 15vw;
  top: 8vh;
  width: 19vw;
  height: 22vh;
}

.preview-wasteland .fragment-b {
  left: 58vw;
  top: 58vh;
  width: 17vw;
  height: 19vh;
  opacity: .36;
}

.preview-wasteland .fragment-c {
  right: -3vw;
  top: 18vh;
  width: 24vw;
  height: 22vh;
}

.preview-shadow .fragment-large {
  right: -5vw;
  top: 44vh;
  width: 38vw;
  height: 36vh;
}

.preview-shadow .fragment-a {
  right: 16vw;
  top: 7vh;
  width: 19vw;
  height: 22vh;
}

.preview-shadow .fragment-b {
  left: 8vw;
  top: 46vh;
  width: 19vw;
  height: 21vh;
}

.preview-shadow .fragment-c {
  left: 39vw;
  bottom: -5vh;
  width: 23vw;
  height: 18vh;
}

.preview-priest .fragment-large {
  left: 31vw;
  bottom: -8vh;
  width: 38vw;
  height: 36vh;
}

.preview-priest .fragment-a {
  left: 8vw;
  top: 15vh;
  width: 20vw;
  height: 24vh;
}

.preview-priest .fragment-b {
  right: 9vw;
  top: 12vh;
  width: 18vw;
  height: 24vh;
}

.preview-priest .fragment-c {
  right: -3vw;
  top: 56vh;
  width: 22vw;
  height: 18vh;
}

.world-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.branch-line {
  stroke: var(--line);
  stroke-width: .075;
  vector-effect: non-scaling-stroke;
  transition: stroke .18s ease, stroke-width .18s ease, transform .18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.site-shell.is-previewing .branch-line {
  stroke: rgba(8, 8, 8, .08);
  stroke-width: .07;
}

.site-shell[data-active="wasteland"] .line-wasteland,
.site-shell[data-active="shadow"] .line-shadow,
.site-shell[data-active="priest"] .line-priest {
  stroke: var(--line-active);
  stroke-width: .12;
}

.site-shell[data-preview="wasteland"] .line-wasteland,
.site-shell[data-preview="shadow"] .line-shadow,
.site-shell[data-preview="priest"] .line-priest {
  stroke: var(--line-active);
  stroke-width: .13;
}

.home-view:has(.node-wasteland:hover) .line-wasteland,
.home-view:has(.node-wasteland:focus-visible) .line-wasteland {
  transform: translateX(-.7px) translateY(-.5px);
}

.home-view:has(.node-shadow:hover) .line-shadow,
.home-view:has(.node-shadow:focus-visible) .line-shadow {
  transform: translateX(.7px) translateY(-.5px);
}

.home-view:has(.node-priest:hover) .line-priest,
.home-view:has(.node-priest:focus-visible) .line-priest {
  transform: translateY(.9px);
}

.world-node {
  position: absolute;
  z-index: 6;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 0;
  text-align: left;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, opacity .34s ease, filter .34s ease;
}

.world-node span {
  display: block;
  font-size: clamp(17px, 1.55vw, 28px);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
}

.node-wasteland span {
  color: #C85A1E;
  font-family: "Rye", "Rockwell Extra Bold", "Arial Black", serif;
  font-weight: 400;
}

.node-priest span {
  color: var(--ink);
  font-family: "OldLondon", "Old London", "Old English Text MT", "Cloister Black", "UnifrakturMaguntia", "UnifrakturCook", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  text-transform: none;
}

.world-node small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(9px, .7vw, 11px);
  line-height: 1.2;
  transition: opacity .24s ease;
}

.node-wasteland {
  left: 24%;
  top: 31%;
}

.node-shadow {
  left: 77%;
  top: 31%;
}

.node-priest {
  left: 50%;
  top: 82%;
  text-align: center;
}

.world-node:hover,
.world-node:focus-visible,
.world-node.is-active {
  opacity: 1;
  outline: 0;
}

.world-node:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-shell.is-previewing .world-node {
  opacity: .22;
  filter: blur(5px);
}

.site-shell[data-preview="wasteland"] .node-wasteland,
.site-shell[data-preview="shadow"] .node-shadow,
.site-shell[data-preview="priest"] .node-priest {
  z-index: 8;
  opacity: 1;
  filter: blur(0);
}

.site-shell[data-preview="wasteland"] .node-wasteland small,
.site-shell[data-preview="shadow"] .node-shadow small,
.site-shell[data-preview="priest"] .node-priest small {
  opacity: 0;
}

.node-wasteland:hover,
.node-wasteland:focus-visible {
  transform: translate(calc(-50% - 4px), calc(-50% - 2px));
}

.node-shadow:hover,
.node-shadow:focus-visible {
  transform: translate(calc(-50% + 4px), calc(-50% - 2px));
}

.node-priest:hover,
.node-priest:focus-visible {
  transform: translate(-50%, calc(-50% + 4px));
}

.site-shell.is-transitioning .home-view {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .18s ease, transform .18s ease;
}

.title-view {
  display: grid;
  place-items: center;
  padding: 28px;
}

.return-mark {
  position: absolute;
  left: 22px;
  top: 22px;
  width: clamp(96px, 10vw, 160px);
  padding: 0;
}

.title-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 16vw) minmax(260px, 680px);
  align-items: center;
  gap: clamp(22px, 4vw, 72px);
  width: min(86vw, 1000px);
}

.title-origin-line {
  height: 1px;
  background: var(--ink);
}

.title-heading span {
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 30px);
}

.title-heading h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(52px, 8.8vw, 156px);
  font-weight: 900;
  line-height: .82;
  text-transform: uppercase;
}

.title-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 14px);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
  }

  .home-view {
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 24px 18px 32px;
  }

  .origin-mark {
    position: relative;
    left: auto;
    top: auto;
    align-self: end;
    justify-self: center;
    width: min(78vw, 420px);
    margin-top: 16vh;
    transform: none;
  }

  .home-view:has(.world-node:hover) .origin-mark,
  .home-view:has(.world-node:focus-visible) .origin-mark {
    transform: scale(1.008);
  }

  .site-shell.is-previewing .origin-mark {
    filter: blur(1px) contrast(.9);
    opacity: .56;
  }

  .world-lines {
    display: none;
  }

  .world-node {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    padding-left: 0;
  }

  .world-node:hover,
  .world-node:focus-visible,
  .node-wasteland:hover,
  .node-wasteland:focus-visible,
  .node-shadow:hover,
  .node-shadow:focus-visible,
  .node-priest:hover,
  .node-priest:focus-visible {
    transform: translateX(4px);
  }

  .node-priest {
    text-align: left;
  }

  .home-view {
    gap: 56px;
  }

  .node-wasteland,
  .node-shadow,
  .node-priest {
    margin-top: 0;
  }

  .home-view::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(16vh + min(39vw, 210px) + 38px);
    bottom: 122px;
    width: 1px;
    background: var(--line);
  }

  .world-node {
    z-index: 6;
  }

  .preview-layer {
    inset: 0;
  }

  .fragment {
    max-width: none;
  }

  .preview-wasteland .fragment-large,
  .preview-shadow .fragment-large,
  .preview-priest .fragment-large {
    left: -18vw;
    top: 47vh;
    width: 58vw;
    height: 23vh;
  }

  .preview-wasteland .fragment-a,
  .preview-shadow .fragment-a,
  .preview-priest .fragment-a {
    left: 58vw;
    top: 13vh;
    width: 34vw;
    height: 17vh;
  }

  .preview-wasteland .fragment-b,
  .preview-shadow .fragment-b,
  .preview-priest .fragment-b {
    left: 8vw;
    top: 31vh;
    width: 28vw;
    height: 15vh;
  }

  .preview-wasteland .fragment-c,
  .preview-shadow .fragment-c,
  .preview-priest .fragment-c {
    right: -16vw;
    top: 66vh;
    width: 46vw;
    height: 16vh;
  }

  .title-view {
    min-height: 100svh;
    place-items: end start;
  }

  .return-mark {
    left: 18px;
    top: 18px;
    width: 104px;
  }

  .title-stage {
    display: block;
    width: 100%;
    padding-bottom: 12vh;
  }

  .title-origin-line {
    width: 40vw;
    margin-bottom: 26px;
  }

  .title-heading h1 {
    font-size: clamp(54px, 16vw, 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Mobile product control page */
.product-body {
  min-height: 100svh;
  overflow: hidden;
  background: #f7f7f4;
}

.product-device {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #fdfdfb;
  color: #070707;
  isolation: isolate;
}

.product-device::before {
  content: "";
  position: fixed;
  inset: 10px;
  z-index: 40;
  border: 1px solid rgba(0, 0, 0, .52);
  pointer-events: none;
}

.model-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 18px 286px;
  background: #fff;
}

.model-readout {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  color: rgba(0, 0, 0, .36);
  font-family: var(--mono);
  font-size: 10px;
  pointer-events: none;
}

.model-figure {
  position: relative;
  z-index: 2;
  width: min(58vw, 270px);
  height: min(58vh, 520px);
  min-height: 360px;
  margin: 0;
  transform: translateY(-3vh);
  transition: transform .28s ease;
}

.model-angle-preview {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(58vw, 270px);
  height: min(52.78vh, 473.2px);
  min-height: 327.6px;
  object-fit: contain;
  opacity: .12;
  pointer-events: none;
  transform: translateY(calc(-50% - 129px));
}

.model-angle-preview-prev {
  left: 14.5vw;
}

.model-angle-preview-next {
  right: 14.5vw;
}

.model-angle-preview:not([src]),
.model-angle-preview[hidden] {
  display: none;
}

.product-device[data-inspect="true"] .model-figure {
  transform: translateY(-1vh) scale(1.13);
}

.model-figure img {
  position: absolute;
  left: 50%;
  bottom: 5%;
  display: block;
  width: auto;
  max-width: 100%;
  height: 91%;
  object-fit: contain;
  transform: translateX(-50%);
  transition: opacity .18s ease, transform .24s ease;
}

.product-device[data-mode="image"][data-angle="1"] .model-figure img {
  transform: translateX(-50%) scaleX(.86);
}

.product-device[data-mode="image"][data-angle="2"] .model-figure img {
  transform: translateX(-50%) scaleX(.72);
}

.model-shadow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 42%;
  height: 10px;
  background: rgba(0, 0, 0, .08);
  transform: translateX(-50%);
}

.control-pad {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(3, 56px);
  gap: 18px 52px;
  transform: translateX(-50%);
  touch-action: manipulation;
}

.control-pad button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 0, 0, .58);
  background: rgba(255, 255, 255, .72);
  color: #050505;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.control-pad button:active,
.control-pad button:focus-visible {
  background: #050505;
  color: #fff;
  border-color: #050505;
  outline: 0;
}

.control-pad button:active {
  transform: translateY(1px);
}

.control-pad svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.control-text {
  display: block;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.control-text-small {
  font-size: 26px;
}

.control-pad [data-action="info"] svg,
.control-pad [data-action="focus"] svg,
.control-pad [data-action="cart"] svg,
.control-pad [data-action="back"] svg,
.control-pad [data-action="home"] svg {
  fill: none;
}

.control-pad [data-action="up"] svg,
.control-pad [data-action="down"] svg,
.control-pad [data-action="left"] svg,
.control-pad [data-action="right"] svg {
  stroke: none;
}

.info-panel {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(248px + env(safe-area-inset-bottom));
  z-index: 30;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, .72);
  background: rgba(255, 255, 255, .94);
  font-family: var(--mono);
}

.info-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  line-height: 1;
}

.info-panel dl {
  margin: 18px 0 0;
}

.info-panel div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  font-size: 10px;
}

.info-panel dt {
  color: rgba(0, 0, 0, .48);
}

.info-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-side-panel {
  top: 16vh;
  bottom: auto;
  width: min(32vw, 520px);
  max-height: 58vh;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms ease, opacity 280ms ease;
}

.product-side-panel .info-close {
  display: none;
}

.product-side-panel-left {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

.product-side-panel-right {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.product-side-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.cart-pulse .control-pad [data-action="cart"] {
  background: #050505;
  color: #fff;
}

/* GYUN field pack inventory */
.cart-body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--sans);
}

.cart-inventory {
  display: grid;
  grid-template-columns: minmax(280px, 32vw) 1fr;
  min-height: 100svh;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px),
    #000;
}

.inventory-header {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 0 44px;
  pointer-events: none;
}

.inventory-logo {
  grid-column: 2;
  justify-self: center;
  pointer-events: auto;
}

.inventory-back {
  grid-column: 1;
  justify-self: start;
  min-width: 82px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: transparent;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  pointer-events: auto;
}

.inventory-back:hover {
  background: #fff;
  color: #000;
}

.inventory-capacity {
  grid-column: 3;
  justify-self: end;
}

.cart-preview {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 100svh;
  padding: 70px 34px 32px;
}

.cart-home {
  justify-self: center;
  display: block;
  width: 96px;
  line-height: 0;
}

.cart-home img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.cart-preview-figure {
  align-self: center;
  display: grid;
  place-items: center;
  min-height: 0;
}

.cart-preview-figure img {
  display: block;
  max-width: min(80%, 320px);
  max-height: 48vh;
  object-fit: contain;
}

.cart-preview-info {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.cart-preview-info div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .46);
}

.cart-preview-info dt {
  color: rgba(255, 255, 255, .58);
}

.cart-preview-info dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cart-remove {
  justify-self: start;
  min-width: 108px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: transparent;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
}

.cart-remove:disabled {
  opacity: .28;
}

.cart-pack {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 70px 44px 132px;
}

.cart-pack-status {
  position: absolute;
  top: 24px;
  left: 44px;
  z-index: 5;
  min-height: 16px;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.cart-pack-capacity {
  z-index: 5;
  display: grid;
  gap: 1px;
  justify-items: end;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: right;
}

.cart-pack-capacity strong {
  font-size: 14px;
  font-weight: 400;
}

.inventory-grid {
  --cols: 15;
  --rows: 8;
  --cell: min(calc((100vw - 40vw - 88px) / 15), calc((100svh - 216px) / 8));
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-template-rows: repeat(var(--rows), var(--cell));
  width: calc(var(--cell) * var(--cols));
  height: calc(var(--cell) * var(--rows));
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .86);
  background: #000;
  touch-action: none;
}

.inventory-cell {
  border-right: 1px solid rgba(255, 255, 255, .3);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
}

.inventory-cell.is-valid {
  background: rgba(255, 255, 255, .18);
}

.inventory-cell.is-invalid {
  background: rgba(255, 255, 255, .08);
}

.inventory-item {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .58);
  background: #000;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.inventory-item.is-selected {
  border: 3px solid #fff;
}

.inventory-item.is-dragging {
  z-index: 10;
  opacity: .48;
  cursor: grabbing;
}

.inventory-item img {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  image-rendering: auto;
  opacity: .92;
  pointer-events: none;
}

.inventory-size,
.inventory-qty {
  position: absolute;
  right: 5px;
  z-index: 2;
  padding: 1px 3px;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.15;
}

.cart-summary {
  position: absolute;
  right: 44px;
  bottom: 28px;
  z-index: 5;
  width: min(280px, 30vw);
  border: 1px solid rgba(255, 255, 255, .74);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
}

.cart-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.cart-summary div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .44);
}

.cart-summary dt,
.cart-summary dd {
  margin: 0;
}

.cart-checkout {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  text-align: left;
  padding: 0 12px;
}

.cart-remove:enabled:hover,
.cart-checkout:hover {
  background: #fff;
  color: #000;
}

.inventory-size {
  top: 5px;
}

.inventory-qty {
  bottom: 5px;
}

@media (max-width: 760px) {
  .cart-body {
    overflow: auto;
  }

  .inventory-header {
    padding: 0 12px;
  }

  .inventory-back {
    min-width: 74px;
    min-height: 34px;
    font-size: 10px;
  }

  .cart-inventory {
    display: flex;
    flex-direction: column-reverse;
    min-height: 100svh;
  }

  .cart-preview {
    min-height: auto;
    padding: 70px 22px 22px;
  }

  .cart-preview-figure img {
    max-height: 28vh;
  }

  .cart-pack {
    min-height: 58svh;
    padding: 74px 12px 132px;
  }

  .cart-pack-status {
    left: 12px;
  }

  .cart-pack-capacity {
    justify-self: end;
  }

  .cart-summary {
    right: 12px;
    bottom: 18px;
    width: calc(100% - 24px);
  }

  .inventory-grid {
    --cell: min(calc((100vw - 24px) / 15), 44px);
  }

  .inventory-item {
    padding: 3px;
  }
}

@media (min-width: 640px) {
  .product-body {
    background: #fff;
  }

  .product-device {
    width: 100%;
    min-height: 100svh;
    border: 0;
  }

  .product-device::before {
    display: none;
  }

  .control-pad {
    position: absolute;
    bottom: 28px;
  }

  .model-readout {
    left: 50%;
    right: auto;
    width: 402px;
    transform: translateX(-50%);
  }

  .model-stage {
    padding-bottom: 300px;
  }

  .model-figure {
    transform: translateY(1vh);
  }

  .product-device[data-inspect="true"] .model-figure {
    transform: translateY(2vh) scale(1.1);
  }
}

/* GYUN mobile app home */
.app-body {
  min-height: 100svh;
  overflow: hidden;
  background: #fff;
  color: #030303;
  font-family: var(--sans);
}

.app-home {
  position: relative;
  min-height: 100svh;
  background: #fff;
  transition: opacity .3s ease;
}

.app-body.is-selecting-title .app-home {
  opacity: .72;
}

.app-frame {
  display: none;
}

.home-system {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100svh;
  padding: 22vh 24px 0;
}

.home-logo {
  width: min(70vw, 310px);
  margin: 0;
  line-height: 0;
}

.home-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.title-selector {
  display: grid;
  grid-template-columns: auto minmax(188px, 50vw);
  align-items: start;
  gap: 12px;
  margin-top: 15vh;
}

.selector-label {
  padding-top: 5px;
  font-size: clamp(16px, 4.4vw, 27px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.selector-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.selector-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 31px;
  padding: 0 7px;
  border: 2px solid #050505;
  background: #fff;
  text-align: left;
}

.selector-trigger:focus-visible,
.title-option:focus-visible {
  outline: 1px solid #050505;
  outline-offset: 3px;
}

.selected-value {
  flex: 1;
}

.selector-arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #050505;
  transition: transform .25s ease;
}

.app-home[data-open="true"] .selector-arrow {
  transform: rotate(180deg);
}

.title-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  z-index: 5;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0 solid #050505;
  border-top: 0;
  background: #fff;
  list-style: none;
  transition: max-height .25s ease, border-width .01s linear .24s;
}

.app-home[data-open="true"] .title-options {
  max-height: 780px;
  border-width: 2px;
  border-top-width: 0;
  transition: max-height .25s ease;
}

.title-options li {
  margin: 0;
}

.title-option {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  transition: opacity .16s ease, transform .16s ease;
}

.title-option img {
  display: block;
  width: 100%;
  height: auto;
}

.world-body {
  min-height: 100svh;
  overflow: hidden;
  background: #fff;
}

.world-home {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  border: 1px solid rgba(0, 0, 0, .62);
  margin: 15px;
  background: #fff;
}

.world-return {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 96px;
}

.world-return img {
  display: block;
  width: 100%;
  height: auto;
}

.world-home h1 {
  margin: 0;
  max-width: 82vw;
  color: #050505;
  font-size: clamp(48px, 15vw, 120px);
  line-height: .88;
  text-align: center;
}

.world-home h1 img {
  display: block;
  max-width: min(82vw, 680px);
  height: auto;
  margin: 0 auto;
}

.world-wasteland .world-home h1 {
  width: min(82vw, 680px);
}

.world-shadow .world-home {
  margin: 0;
  border: 0;
}

html:has(.shadow-archive),
body:has(.shadow-archive),
html:has(.world-shadow),
body.world-shadow {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.shadow-archive {
  height: 100vh;
  background: white;
}

body.world-wasteland,
.world-wasteland .shadow-archive {
  background: #DB6B3B;
}

body.world-shadow .shadow-sound-toggle,
body.world-wasteland .wasteland-sound-toggle {
  position: fixed;
  top: 20px;
  right: 42px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 25.65px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.world-shadow .shadow-sound-toggle img,
body.world-wasteland .wasteland-sound-toggle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

body.world-shadow .shadow-sound-toggle:focus-visible,
body.world-wasteland .wasteland-sound-toggle:focus-visible {
  outline: 1px solid #050505;
  outline-offset: 5px;
}

.shadow-mark {
  position: fixed;
  top: 20px;
  left: 50%;
  width: 96px;
  transform: translateX(-50%);
  z-index: 100;
}

.gyun-logo {
  display: block;
  width: 100%;
  height: auto;
}

.shadow-logo {
  width: min(31vw, 480px);
  line-height: 0;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.shadow-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.shadow-archive.has-preview .shadow-logo {
  opacity: 0;
  visibility: hidden;
}

.shadow-preview {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.shadow-archive.has-preview .shadow-preview {
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease;
}

.shadow-preview.is-changing {
  opacity: .18;
}

.shadow-preview-image {
  display: block;
  width: auto;
  max-width: 84%;
  height: 72vh;
  object-fit: contain;
  margin: 0 auto;
}

.shadow-preview-image:not([src]),
.shadow-preview-image[hidden] {
  display: none;
}

.shadow-preview-meta {
  position: absolute;
  left: 18%;
  top: 38%;
  display: grid;
  gap: 3px;
  color: #050505;
  font-family: var(--sans);
  line-height: 1.1;
  white-space: nowrap;
}

.shadow-preview-name {
  font-size: 15px;
  font-weight: 700;
}

.shadow-preview-price {
  color: rgba(5, 5, 5, .62);
  font-size: 12px;
  font-weight: 400;
}

.left-preview-info {
  position: absolute;
  left: 7vw;
  top: 18vh;
}

.left-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 40vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.right-panel {
  position: fixed;
  top: 0;
  left: 40vw;
  width: 60vw;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 120px 72px;
  padding: 84vh 72px 160px 0;
}

.product-item {
  display: grid;
  justify-items: center;
  align-content: start;
  color: #050505;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}

.product-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 300px;
  object-fit: contain;
  margin-bottom: 18px;
}

.product-item img[hidden] {
  display: none;
}

.product-name,
.product-price {
  display: block;
  visibility: hidden;
}

.world-priest .world-home {
  background: #050505;
  margin: 0;
  border: 0;
}

.world-priest .world-return {
  left: 50%;
  transform: translateX(-50%);
  filter: invert(1);
}

.world-priest .world-home h1 {
  width: min(76vw, 720px);
  line-height: 0;
}

.priest-logo-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: #050505;
}

/* Shared loop screen for the additional titles. */
.theme-loop-world {
  background: #050505;
}

.theme-loop-world .world-home {
  margin: 0;
  border: 0;
  background: #050505;
}

.theme-loop-world[data-theme="wasteland"],
.theme-loop-world[data-theme="wasteland"] .world-home {
  background: #DB6B3B;
}

.theme-loop-world[data-theme="wasteland"] .world-home {
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
}

.theme-loop-world .world-return {
  left: 50%;
  transform: translateX(-50%);
  filter: invert(1);
}

.theme-loop-world[data-theme="wasteland"] .world-return {
  filter: none;
}

.theme-loop-world[data-theme="shadowOrder"] .world-return {
  z-index: 3;
}

.theme-loop-world .world-home h1 {
  width: min(76vw, 720px);
  line-height: 0;
}

.theme-loop-world[data-theme="wasteland"] .world-home h1 {
  grid-row: 2;
  grid-column: 1;
}

.theme-loop-world[data-theme="shadowOrder"] .world-home h1 {
  position: relative;
}

.theme-loop-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: #050505;
}

.theme-loop-world[data-theme="wasteland"] .theme-loop-video {
  background: #DB6B3B;
}

.theme-loop-video[hidden] {
  display: none;
}

.theme-loop-subtitle {
  display: block;
  grid-row: 3;
  grid-column: 1;
  align-self: start;
  width: min(53.2vw, 504px);
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.theme-loop-subtitle[hidden] {
  display: none;
}

.theme-loop-title-overlay {
  position: absolute;
  right: 3%;
  bottom: 3%;
  z-index: 2;
  display: block;
  width: 47%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.theme-loop-title-overlay[hidden] {
  display: none;
}

@media (min-width: 520px) {
  .app-body {
    display: grid;
    place-items: center;
    background: #fff;
  }

  .app-home {
    width: min(430px, 100vw);
    min-height: min(900px, 100svh);
  }

  .home-system {
    min-height: min(900px, 100svh);
  }
}

@media (max-width: 370px) {
  .title-selector {
    grid-template-columns: auto minmax(188px, 55vw);
    gap: 9px;
  }

  .selector-label {
    font-size: 20px;
  }

}
