:root {
  color-scheme: light;
  --ink: #171d22;
  --rule: #afc3d6;
  --page-color: #e5eff5;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  min-height: 100%;
  background-color: #fbfcfc;
  background-image:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 86%) 45% 55%, transparent),
    repeating-linear-gradient(135deg, transparent 0 10px, rgb(35 92 101 / 12%) 10.5px 11.3px, transparent 12px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page-color); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #116cc7; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
@media (min-width: 1024px) {
  body {
    width: min(1056px, calc(100% - 16px));
    margin-inline: auto;
    border-inline: 1px solid #93adbf;
    box-shadow: 0 0 20px #233e591c;
  }
  .wrap { width: calc(100% - 30px); }
}
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; background: white; padding: 8px; }

.site-header {
  --header-paper: #faf8f2;
  background-color: var(--header-paper);
  background-image:
    linear-gradient(112deg, transparent 73%, rgb(35 92 101 / 6%) 73.3%),
    linear-gradient(112deg, transparent 48%, rgb(35 92 101 / 5%) 48.3%);
  background-size: min(46%, 330px) 100%;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 9px -5px rgb(29 65 75 / 32%);
  border-bottom: 2px solid #35636c;
}
.header-inner, .main-nav, .locale { display: flex; align-items: center; }
.header-inner { gap: 28px; padding-block: 7px; }
.brand { display: inline-flex; align-items: center; gap: .27em; flex: none; font-size: clamp(24px, calc(18px + 1vw), 32px); text-decoration: none; }
/* The face occupies the first 506 of the original artwork's 582 rows. */
.brand-icon { display: block; width: 1.55em; aspect-ratio: 520 / 506; overflow: hidden; }
.brand-icon img { width: 100%; height: auto; }
.brand-name {
  color: #235c65; font: 800 1.3em/1 "Avenir Next", ui-rounded, system-ui, sans-serif;
  letter-spacing: -.025em; white-space: nowrap;
}
.brand-name span { color: #607b1b; }
.main-nav { align-self: stretch; margin-left: auto; gap: 16px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding-inline: 3px; color: #234750;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.main-nav a::before { content: ""; width: 21px; height: 21px; background: center / contain no-repeat; }
.main-nav .nav-games::before { background-image: url("../images/nav-games.svg"); }
.main-nav a::after {
  content: ""; position: absolute; inset: auto 2px 2px; height: 3px;
  border-radius: 2px; background: #286471; opacity: 0;
}
.main-nav a:is(:hover, :focus-visible, [aria-current])::after { opacity: 1; }
.locale {
  padding: 3px; border: 1px solid #bed0d3; border-radius: 999px;
  background: #eff5f5; color: #254b54;
}
.locale > * {
  display: grid; place-items: center; min-width: 38px; min-height: 32px;
  padding-inline: 9px; border-radius: inherit; font-size: 13px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.locale [aria-current] { background: #235c65; color: white; }
.locale a:hover { background: #d6e8e7; }

.page-heading { display: flex; align-items: center; gap: 12px; margin-block: 20px 12px; }
.page-heading h1 { flex: 1; display: flex; align-items: center; gap: .45em; color: #203f47; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; }
.page-heading h1::before { content: ""; flex: 0 0 4px; height: 1em; background: #35636c; border-radius: 1px; }
.rotation-toggle { min-height: 36px; padding: 4px 10px; background: white; color: var(--ink); border: 1px solid var(--rule); border-radius: 5px; font-size: 13px; }
.rotation-toggle:hover { border-color: var(--ink); }
.furikiku { --color: #ffbd4a; --paper: #fff5dc; --night: #102922; }
.jumpooman { --color: #63cdff; --paper: #eaf6ff; --night: #152e44; }
.jumpoogirl { --color: #ff91b6; --paper: #fff0f5; --night: #241f40; }
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(22px, 3vw, 40px); }
.pick {
  position: relative; display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px);
  min-width: 0; padding: 8px 14px 8px 8px; border-radius: 9px; text-decoration: none;
  background: #f4f5f6; color: #262c33; box-shadow: inset 0 0 0 1px #dadee2;
  font-weight: 750; font-size: clamp(14px, 1.5vw, 19px); line-height: 1.4;
}
.pick img { width: clamp(42px, 5vw, 64px); border-radius: 7px; }
.pick i { flex: none; width: 8px; height: 8px; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pick:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.pick[aria-current] { color: white; background: var(--night); box-shadow: inset 0 -4px var(--color); }
.pick[aria-current] i { color: var(--color); }

/* Share one grid cell so the tallest game sets the height at each viewport width. */
.switchable-games { display: grid; grid-template-columns: minmax(0, 1fr); }
.switchable-games > .page-heading { grid-area: 1 / 1; }
.switchable-games > .picker { grid-area: 3 / 1; }
.switchable-games > .stage { grid-area: 2 / 1; }
.stage[inert] { visibility: hidden; pointer-events: none; }
.stage {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  margin-bottom: 14px; overflow: clip; border-radius: 12px; background: var(--paper);
  box-shadow: 0 2px 4px #17202a12, 0 8px 22px #17202a1b;
}
.media { display: flex; flex-direction: column; min-width: 0; background: var(--night); }
.screen { position: relative; flex: 1 0 auto; min-width: 0; overflow: hidden; }
/* Reserve image height from the column width. Taller copy can add height only. */
.screen::before { content: ""; display: block; padding-top: 50%; }
.view { position: absolute; inset: 0; overflow: hidden; }
.feature, .screenshot img { width: 100%; height: 100%; object-fit: contain; }
.jumpoogirl .screenshot img { object-fit: cover; object-position: 60% center; }
.jumpoogirl .screenshot:last-child img { object-position: 35% center; }
/* Keep portrait gameplay legible over a soft, full-width version of the same scene. */
.screenshot .shot-backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transform: scale(1.14);
  filter: blur(12px) saturate(.8);
}
.shot-backdrop + img { position: relative; }
/* Extend the banner's sky and pitch into the space around the uncropped artwork. */
.furikiku .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-block: 1px solid transparent;
  border-image: url("../furikiku/images/feature-ja.png") 1 0 / 50% 0 stretch;
  pointer-events: none;
}
.furikiku .feature { position: relative; }
.poster { position: absolute; inset: 0; isolation: isolate; }
.poster img { position: absolute; }
.poster-scene { width: 100%; height: 100%; object-fit: cover; }
.poster-hero { inset: 0 0 0 auto; width: 55%; height: 100%; object-fit: cover; clip-path: polygon(22% 0,100% 0,100% 100%,0 100%); }
.poster-logo { top: 50%; left: 3%; transform: translateY(-50%); width: 51%; }
.trailer-launch, .video-view iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-launch:focus-visible { outline-offset: -5px; outline-color: white; }
.play-label {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center;
  gap: .6em; padding: 8px 13px; border-radius: 5px; color: white; background: #10171ded;
  font-size: 14px; font-weight: 700;
}
.play-label::before { content: ""; border-block: 5px solid transparent; border-left: 8px solid var(--color); }
.duration { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; }
.trailer-launch:hover .play-label, .trailer-launch:focus-visible .play-label { background: #10171d; box-shadow: 0 0 0 2px var(--color); }
.video-view iframe { background: #10171d; }
.filmbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; background: #12191d; color: white; }
.filmbar > span { font-size: 13px; font-weight: 650; }
.frames { display: flex; gap: 6px; }
.frame-choice { display: grid; place-items: center; width: 59px; height: 44px; padding: 3px; border: 1px solid #788086; border-radius: 4px; background: #232c32; }
.frame-choice img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 1px; }
.frame-choice[aria-pressed="true"], .frame-choice:hover { border: 2px solid var(--color); padding: 2px; }
.frame-choice:focus-visible { outline-color: white; }

.furikiku .info { --panel-base: #ffd16b; --panel-light: #ffe29a; --panel-ink: #392b16; }
.jumpooman .info { --panel-base: #74c6f4; --panel-light: #a5dbf8; --panel-ink: #102e46; }
.jumpoogirl .info { --panel-base: #f69ab8; --panel-light: #ffc4d8; --panel-ink: #412038; }
.info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  --inset: clamp(18px, 2vw, 28px);
  color: var(--panel-ink);
  background: linear-gradient(155deg, var(--panel-base) 0%, var(--panel-base) 36%, var(--panel-light) 100%);
}
.game-intro {
  min-width: 0;
  padding-bottom: var(--inset);
  background: var(--panel-light);
}
.game-intro p { margin-inline: var(--inset); }
.info h2 {
  margin-bottom: 14px;
  padding: 10px var(--inset);
  background: var(--panel-ink);
  background: color-mix(in srgb, var(--panel-ink) 78%, var(--panel-base));
  box-shadow: inset 0 0 0 1px var(--panel-ink);
  color: #fff;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  font-feature-settings: "palt";
  letter-spacing: 0;
  line-height: 1.35;
}
.phone-icon {
  display: inline-block;
  width: 16px;
  height: 24px;
  vertical-align: middle;
  margin-inline-end: 7px;
  image-rendering: pixelated;
}
.game-subtitle { margin-bottom: 12px; font-size: 14px; font-weight: 650; letter-spacing: .025em; }
.description { line-height: 1.8; font-size: clamp(16px, calc(10px + .5vw), 17px); line-break: strict; text-align: justify; text-align-last: start; }
.download-area {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 16px 8px 20px; border-top: 1px solid #17202a26; background: #ffffff38; text-align: center;
}
.download-area h3 { font-size: 15px; margin-bottom: 6px; }
.download-columns { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 10px; }
.download-column { width: min(50%, 160px); min-width: 137px; display: grid; justify-items: center; }
.download-os { font-size: 13px; line-height: 20px; }
.store-badge { display: grid; place-items: center; height: 60px; }
.store-badge img { max-width: none; width: auto; }
.store-badge.ios img { height: 40px; }
/* The Japanese Google badge PNG includes 29 transparent pixels above and below. */
.store-badge.android img { height: 53px; }
.store-qr { display: block; border: 1px solid #475159; background: white; }
.store-qr img { width: 135px; height: 135px; object-fit: contain; image-rendering: pixelated; }

.site-footer { border-top: 2px solid #668b95; background: #203f47; color: #fff; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-block: 18px; }
.copyright { font-size: inherit; white-space: nowrap; }
.site-footer nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.site-footer a:focus-visible { outline-color: white; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .wrap { width: min(660px, calc(100% - 28px)); }
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(296px, 1fr); align-items: stretch; }
  .download-area { border-top: 0; border-inline-start: 1px solid #17202a26; }
}
@media (max-width: 580px) {
  .page-heading { margin-block: 15px 8px; }
  .picker { gap: 5px; margin-bottom: 22px; }
  .stage { margin-bottom: 10px; }
  .pick { flex-direction: column; justify-content: center; gap: 4px; padding: 7px 2px 10px; font-size: clamp(11px, 3vw, 15px); }
  .pick img { width: 42px; }
  .pick i { display: none; }
  .screen::before { padding-top: 52.63%; }
  .filmbar { padding: 7px 12px; }
  .frame-choice { width: 47px; }
  .info { display: flex; }
  .download-area { border-inline-start: 0; border-top: 1px solid #17202a26; }
}

@media (max-width: 650px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; padding-block: 6px; }
  .brand { grid-column: 1 / -1; justify-self: start; }
  .main-nav { margin-left: 0; gap: 9px; }
  .main-nav a { gap: 5px; }
  .locale { justify-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes game-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .pick {
    animation: game-enter 580ms ease-out backwards;
  }
  .pick:nth-child(2) { animation-delay: 80ms; }
  .pick:nth-child(3) { animation-delay: 160ms; }

  .stage:not([inert]) .view, .stage:not([inert]) .game-intro > * {
    animation: game-enter 540ms ease-out backwards;
  }
  .stage:not([inert]) .view { animation-delay: 160ms; }
  .stage:not([inert]) .game-intro > * { animation-delay: 210ms; }
  .pick:focus-visible { animation: none; }
}
