:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  background: #eee9dc;
  color: #23231c;
  --gutter: clamp(1rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
summary { width: fit-content; cursor: pointer; }
.wrap { width: min(90rem, 100% - var(--gutter) * 2); margin-inline: auto; }

.masthead {
  position: relative;
  isolation: isolate;
  background: #171326;
  color: #faf5ea;
}
.masthead-art, .masthead::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.masthead-art { object-fit: cover; object-position: center 51%; }
.masthead::before {
  content: "";
  z-index: 0;
  background: linear-gradient(76deg, #151123e8, #15112345 56%, transparent), linear-gradient(0deg, #151123e8, transparent 32%);
}
.masthead-inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(25rem, 50vw, 42rem);
  padding-block: 1.2rem 1.65rem;
}
.masthead h1 {
  align-self: center;
  padding-block: .8rem 1.7rem;
  font-family: Georgia, serif;
  font-size: clamp(5rem, 13vw, 12.5rem);
  font-weight: normal;
  letter-spacing: -.09em;
  line-height: .75;
}
.masthead nav { display: flex; flex-wrap: wrap; gap: .55rem clamp(1rem, 3vw, 2.7rem); }
.masthead nav a { padding-block: .3rem; font-size: .95rem; }
.locale { justify-self: end; position: relative; z-index: 1; }
.locale summary { background: #1b1629; padding: .32rem .75rem; }
.locale > div {
  position: absolute;
  right: 0;
  top: calc(100% + .3rem);
  min-width: 9rem;
  padding: .3rem;
  background: #1b1629;
  border: 1px solid #978ba3;
}
.locale a { display: block; padding: .3rem .6rem; }
.locale a[aria-current], .locale a:hover { background: #433750; }

.game { padding-block: clamp(2.75rem, 7vw, 7rem); }
.game h2 {
  font-size: clamp(2.3rem, 5.8vw, 6rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
:lang(ko) .game h2, :lang(ja) .game h2 { letter-spacing: -.025em; word-break: keep-all; }
.description { max-width: 34rem; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.shot { display: block; width: 100%; height: auto; }
.demo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  width: fit-content;
  padding: .58rem .9rem;
  color: var(--action-ink);
  background: var(--action);
  font-weight: 650;
  text-decoration: none;
}
.demo:focus-visible { outline-color: var(--focus); }
.demo:hover { text-decoration: underline; }
.links { min-width: 0; }
.stores, .secondary { display: flex; flex-wrap: wrap; align-items: start; gap: .35rem 1.1rem; }
.stores a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.secondary { font-size: .9rem; }
.secondary a, .phone summary { padding-block: .35rem; }
.phone { position: relative; }
.codes {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  display: flex;
  gap: .6rem;
  width: max-content;
  padding: .65rem;
  color: #191919;
  background: #fff;
  border: 1px solid #777;
  text-align: center;
}
.codes img { display: block; image-rendering: pixelated; }
@media (hover: none) and (pointer: coarse) { .phone { display: none; } }

.boobytrap {
  --action: #392614;
  --action-ink: #fff6e7;
  --focus: #392614;
  background: #eee9dc;
}
.boobytrap header, .battle-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, auto);
  align-items: end;
  gap: 1rem 2rem;
}
.boobytrap header { padding-bottom: 1.35rem; }
.boobytrap .shot { border: 1px solid #292922; }
.battle-caption { align-items: start; padding-top: 1.3rem; }
.battle-caption .description { padding-top: .45rem; }

.loop-heist {
  --action: #ecdaff;
  --action-ink: #24162f;
  --focus: #ecdaff;
  background: #271e35;
  color: #faf1ff;
}
.heist-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.heist-copy h2 { margin-bottom: .95rem; }
.heist-copy .demo { margin-block: 1.25rem .5rem; }
.heist-layout .shot { border: 1px solid #796b91; }

.firefly {
  --action: #dbea9d;
  --action-ink: #183026;
  --focus: #dbea9d;
  background: #182e27;
  color: #f4f5e5;
}
.forest-layout {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 9vw, 10rem);
  max-width: 72rem;
}
.forest-layout .shot {
  max-width: 21rem;
  justify-self: end;
  border: 1px solid #9ba276;
}
.forest-copy h2 { font-family: Georgia, "Batang", serif; font-weight: 400; }
.forest-copy .description { margin-block: 1rem 1.65rem; }
.forest-actions { border-top: 1px solid #84937d; padding-top: 1.3rem; }
.forest-actions .links { margin-top: .55rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 2rem;
  padding-block: 1.5rem;
}
.footer small { align-self: center; font-size: .875rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 49rem) {
  .boobytrap header, .battle-caption { grid-template-columns: 1fr; }
  .battle-caption { padding-top: .8rem; gap: .45rem; }
  .heist-layout { grid-template-columns: 1fr; }
  .heist-layout .shot { grid-row: 1; }
}
@media (max-width: 35rem) {
  .masthead-art { object-position: 55% center; }
  .masthead nav { gap: .1rem 1rem; }
  .forest-layout { grid-template-columns: 1fr; }
  .forest-layout .shot { width: min(61%, 17rem); justify-self: start; }
}
