#companion-store {
  --ink: light-dark(#241c2d, #f4eefa);
  --quiet: light-dark(#605866, #c1b8c7);
  --paper: light-dark(#fbf8f3, #28232a);
  --edge: light-dark(#d9d0c9, #514953);
  --panel: light-dark(#fffdf9, #322b33);
  --dark: #292131;
  --cream: #f8f0e5;
  --halo: #f9e1ae;
  --sky: #d7becf;
  --land: #ae98b8;
  color: var(--ink);
  background: var(--paper);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "PingFang TC",
    sans-serif;
  container-type: inline-size;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}
#companion-store * {
  box-sizing: border-box;
}
#companion-store [hidden] {
  display: none !important;
}
#companion-store :is(button, select, input) {
  font: inherit;
}
#companion-store button {
  color: inherit;
  border: 0;
  background: transparent;
}
#companion-store p,
#companion-store h2,
#companion-store h3 {
  margin: 0;
}
#companion-store .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px clamp(15px, 3.8cqw, 38px);
  border-bottom: 1px solid var(--edge);
}
#companion-store .word {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font:
    600 clamp(17px, 2.5cqw, 23px) / 1.1 Georgia,
    serif;
  letter-spacing: -0.75px;
}
#companion-store .word img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
#companion-store .tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
#companion-store .textbtn {
  font-size: 12px;
  padding: 6px 1px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: 4px;
}
#companion-store select {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 8px;
  max-width: 100%;
  padding: 5px 4px;
}
#companion-store .tools select {
  font-size: 12px;
}
#companion-store .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #302435;
  min-height: clamp(263px, 36cqw, 365px);
  display: flex;
  align-items: center;
  background: linear-gradient(
    105deg,
    #f9eee3 3%,
    color-mix(in srgb, var(--sky) 30%, #f9eee3) 40%,
    var(--sky) 81%,
    var(--land) 112%
  );
}
#companion-store .sun {
  position: absolute;
  z-index: -1;
  width: 49%;
  aspect-ratio: 1;
  top: 6%;
  left: 52%;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--halo) 90%, white),
    color-mix(in srgb, var(--halo) 30%, transparent)
  );
  box-shadow:
    0 0 0 14px #ffffff26,
    0 0 0 15px #ffffff28,
    0 0 0 43px #ffffff12;
}
#companion-store .shape {
  position: absolute;
  inset: auto -5% -34% 43%;
  height: 62%;
  transform: rotate(-15deg);
  border-radius: 45% 42% 0 0;
  background: linear-gradient(25deg, var(--land), transparent);
  z-index: -1;
}
#companion-store .art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  height: 100%;
  object-fit: contain;
  object-position: 50% bottom;
  pointer-events: none;
  z-index: -1;
}
#companion-store .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/grain.png");
  opacity: 0.12;
  mix-blend-mode: multiply;
}
#companion-store .words {
  position: relative;
  z-index: 1;
  width: 51%;
  padding: 25px 0 26px clamp(18px, 4.5cqw, 45px);
}
#companion-store .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.035em;
  font-weight: 600;
  color: #534156;
}
#companion-store .eyebrow:before {
  content: "";
  width: 19px;
  height: 2px;
  background: currentColor;
}
#companion-store .quote {
  font-family: "Songti SC", "Songti TC", "STSong", "Iowan Old Style", Georgia,
    serif;
  font-weight: 700;
  font-size: clamp(32px, 5.4cqw, 57px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin: 13px 0 10px;
}
#companion-store .quote span {
  display: block;
}
#companion-store[lang="en"] .quote {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 5.5cqw, 59px);
  line-height: 1.01;
}
#companion-store[lang="en"] .quote span:last-child {
  font-style: italic;
}
#companion-store .context {
  color: #534454;
  font-size: 14px;
  max-width: 31ch;
}
#companion-store .play {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 13px;
  background: #302435;
  color: #fff6ef;
  border-radius: 100px;
  padding: 9px 16px;
}
#companion-store .play b {
  font-size: 10px;
}
#companion-store .times {
  font-size: 11px;
  padding-left: 8px;
  border-left: 1px solid #ffffff50;
  font-variant-numeric: tabular-nums;
}
#companion-store .moviebar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #594459;
}
#companion-store .hero.playing .moviebar {
  animation: mihTime 5s linear both;
}
@keyframes mihTime {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
#companion-store .shelf {
  padding: 18px clamp(15px, 3.8cqw, 38px) 20px;
}
#companion-store .shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
}
#companion-store h3 {
  font-size: clamp(16px, 2.3cqw, 21px);
  font-weight: 650;
  letter-spacing: -0.035em;
}
#companion-store .shelf-head small,
#companion-store .foot,
#companion-store .muted {
  color: var(--quiet);
  font-size: 12px;
}
#companion-store .film {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#companion-store .frame {
  text-align: start;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 5px;
}
#companion-store .photo {
  height: clamp(55px, 9.1cqw, 91px);
  overflow: hidden;
  position: relative;
  border-radius: 7px;
  background: linear-gradient(120deg, var(--thumb-a), var(--thumb-b));
  isolation: isolate;
}
#companion-store .photo:before {
  content: "";
  position: absolute;
  inset: -62% -15% -180% 22%;
  border-radius: 50%;
  background: #ffffff54;
  z-index: -1;
}
#companion-store .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.25);
  transform-origin: 50% 28%;
}
#companion-store .frame[aria-pressed="true"] .photo:after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 4px solid #714477;
}
#companion-store .frame[aria-pressed="true"] .title {
  font-weight: 700;
}
#companion-store .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px;
  line-height: 1.25;
  padding: 0 1px;
}
#companion-store .title {
  font-size: 13px;
  color: var(--ink);
}
#companion-store .access {
  color: var(--quiet);
  font-size: 11px;
}
#companion-store .buyband {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  background: var(--dark);
  color: var(--cream);
  padding: 21px clamp(16px, 3.8cqw, 38px);
}
#companion-store .band-title {
  font:
    500 26px/1.2 "Iowan Old Style",
    "Songti SC",
    "Songti TC",
    Georgia,
    serif;
}
#companion-store .band-copy {
  font-size: 13px;
  margin-top: 3px;
  color: #ded3de;
}
#companion-store .pricebutton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #f5d598;
  color: #302536;
  border-radius: 99px;
  padding: 10px 18px;
  font-weight: 680;
}
#companion-store .pricebutton .money {
  padding-right: 12px;
  border-right: 1px solid #92806c;
}
#companion-store .foot {
  padding: 10px clamp(15px, 3.8cqw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
#companion-store .foot select {
  font-size: 11px;
  padding: 3px;
}
#companion-store .checkout {
  padding: clamp(17px, 4.5cqw, 43px);
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  gap: clamp(18px, 4cqw, 46px);
  background: var(--paper);
}
#companion-store .receipt {
  border-radius: 13px;
  overflow: hidden;
  align-self: start;
  background: var(--dark);
  color: var(--cream);
}
#companion-store .receipt-art {
  height: 136px;
  background: linear-gradient(120deg, #dac3de, #ffe4ba);
  text-align: center;
}
#companion-store .receipt-art img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
#companion-store .receipt-copy {
  padding: 18px;
  display: grid;
  gap: 6px;
}
#companion-store .receipt-copy strong {
  font:
    500 33px/1.05 Georgia,
    serif;
}
#companion-store .receipt-copy small {
  color: #e5dce3;
}
#companion-store .flow {
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 11px;
}
#companion-store .flow h2 {
  font-size: clamp(23px, 3.5cqw, 32px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
#companion-store .flow p {
  color: var(--quiet);
  max-width: 40ch;
}
#companion-store .flow form,
#companion-store .flow label {
  display: grid;
  gap: 8px;
}
#companion-store .flow input {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
}
#companion-store .block {
  width: 100%;
  background: var(--dark);
  color: var(--cream);
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 620;
}
#companion-store .flow .textbtn {
  width: fit-content;
  color: var(--quiet);
}
#companion-store .flow [data-mail] p {
  white-space: pre-line;
}
#companion-store .flow [role="alert"] {
  color: light-dark(#982830, #ffb6b8);
}
#companion-store .payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#companion-store button.method {
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 7px 12px;
}
#companion-store button.method[aria-pressed="true"] {
  background: var(--dark);
  color: var(--cream);
}
#companion-store .flow .order-no {
  overflow-wrap: anywhere;
  font-size: 12px;
}
#companion-store .flow .key {
  overflow-wrap: anywhere;
  font-size: 13px;
}
#companion-store button:disabled {
  opacity: 0.6;
}
#companion-store[lang="ja"] .quote {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(26px, 4.6cqw, 50px);
  line-height: 1.25;
  line-break: strict;
}
#companion-store .key {
  padding: 10px 12px;
  border: 1px dashed var(--edge);
  border-radius: 6px;
  background: var(--panel);
  font:
    600 18px/1.3 ui-monospace,
    monospace;
  user-select: all;
}
@container (max-width:580px) {
  #companion-store .tools {
    gap: 8px;
  }
  #companion-store .hero {
    min-height: 246px;
  }
  #companion-store .words {
    width: 55%;
  }
  #companion-store .art {
    width: 54%;
    height: 92%;
    top: auto;
    bottom: 0;
  }
  #companion-store .context {
    font-size: 13px;
  }
  #companion-store .film {
    gap: 7px;
  }
  #companion-store .meta {
    flex-wrap: wrap;
  }
  #companion-store .checkout {
    grid-template-columns: 1fr;
  }
  #companion-store .receipt {
    display: flex;
  }
  #companion-store .receipt-art {
    width: 35%;
    height: auto;
    min-height: 104px;
    position: relative;
  }
  #companion-store .receipt-art img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  #companion-store .receipt-copy {
    padding: 12px;
  }
}
@container (max-width:400px) {
  #companion-store .hero {
    min-height: 270px;
  }
  #companion-store .art {
    width: 66%;
    right: -7%;
    height: 76%;
  }
  #companion-store .quote {
    font-size: 33px;
  }
  #companion-store .words {
    width: 58%;
    padding-left: 14px;
  }
  #companion-store .eyebrow {
    font-size: 11px;
  }
  #companion-store .eyebrow:before {
    width: 9px;
  }
  #companion-store .shelf {
    padding-inline: 12px;
  }
  #companion-store .film {
    gap: 6px;
  }
  #companion-store .nav {
    padding-inline: 12px;
  }
  #companion-store .tools {
    gap: 6px;
  }
  #companion-store .meta {
    display: grid;
  }
  #companion-store .buyband {
    gap: 10px;
  }
  #companion-store .pricebutton {
    padding: 9px 13px;
  }
  #companion-store[lang="en"] .eyebrow {
    letter-spacing: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #companion-store .hero.playing .moviebar {
    animation: none;
  }
}
@media (pointer: coarse) {
  #companion-store :is(button, select) {
    min-height: 44px;
  }
  #companion-store .flow input {
    font-size: 16px;
  }
}
