/* The portrait film has its own camera framing. Keep the cast clear of the copy and controls. */
.album-page {
  --album-yellow: #ffd25a;
  --album-frame: #bcbcc0;
  padding-bottom: 0;
  background: #080809;
}
.album-page .wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.album-hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px; background: #050506; color: #fff;
}
.album-scene, .album-scene picture, .album-scene img, .album-scene video, .album-scene::after {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.album-scene img, .album-scene video { object-fit: cover; object-position: 50% 80%; }
.album-scene::after {
  content: ""; pointer-events: none;
  background: linear-gradient(#000b, transparent 17%), linear-gradient(90deg,#000c, #0008 24%,transparent 55%), linear-gradient(0deg,#0009,transparent 11%);
}
.album-header {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; gap: clamp(16px,3vw,42px);
  padding: 18px max(20px,4.5vw); background: transparent; color: white;
}
.album-header .brand img { display: block; width: clamp(108px,14vw,176px); height: auto; }
.album-header nav { display: flex; gap: clamp(16px,2vw,30px); }
.album-header nav a,.album-header-order {
  display: inline-flex; min-height: 44px; align-items: center; color: #fff; text-shadow: 0 2px 2px #000;
  font: 700 19px/1 Handjet, monospace; text-decoration: none;
}
.album-header nav a:hover { color: var(--album-yellow); }
.album-header .album-header-order {
  margin-left: auto; min-height: 40px; padding: 8px 15px; background: #eeedef; color: #141316;
  text-shadow: none; box-shadow: inset 2px 2px #fff, inset -2px -2px #7d7b81, 3px 3px #1119;
}
.album-copy { position: absolute; z-index: 1; left: max(20px,4.5vw); bottom: 64px; width: min(46vw,620px); }
.album-page .album-title,.album-page .section-heading h2,.album-page .pixel-copy h2,.album-page .faq-section h2,.album-page .closing h2 {
  font: 400 clamp(24px,2.34vw,36px)/1.32 'Press Start 2P', monospace;
  letter-spacing: 0; word-spacing: -.38em; color: #fff;
}
.album-page .album-sub { margin: 14px 0 24px; max-width: 28em; color: #f1eff3; font: 550 clamp(18px,1.52vw,23px)/1.3 Handjet,monospace; }
.album-order, .album-float {
  display: inline-flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 12px;
  background: var(--album-yellow); color: #17120c; text-decoration: none;
  box-shadow: inset 3px 3px #ffeaad, inset -3px -3px #be8b25, 4px 4px #110e13ac;
  font: 700 25px/1 Handjet,monospace;
}
.album-order img { image-rendering: pixelated; }
.album-order span { padding: 9px 11px; color: var(--album-yellow); background: #16130f; font-size: 20px; white-space: nowrap; }
.album-order:hover,.album-float:hover { background: #ffe397; }
.album-controls {
  display: flex; align-items: center; gap: 6px; position: absolute; z-index: 1;
  left: max(16px,4.5vw); right: max(16px,4.5vw); bottom: 2px;
}
.album-bars { display: flex; flex: 1; gap: 6px; }
.album-bars button,.album-pause { padding: 0; border: 0; color: white; background: transparent; }
.album-bars button { flex: 1; height: 44px; min-width: 0; }
.album-bars button span { position: relative; display: block; height: 4px; background: #ffffff65; overflow: hidden; }
.album-bars [aria-current=true] span::after { content: ""; position: absolute; inset: 0; transform-origin: left; background: var(--album-yellow); }
.album-playing .album-bars [aria-current=true] span::after { animation: album-progress var(--scene-time,8.5s) linear both; }
.album-pause { min-width: 44px; height: 44px; font: 700 20px Handjet,monospace; text-shadow: 0 1px 2px black; }
@keyframes album-progress { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
.album-float { position: fixed; z-index: 8; left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 44px; padding: 7px 18px; font-size: 21px; }
.album-page .section { padding-block: clamp(48px,6vw,88px); }
.album-page .section-heading { margin: 0 0 26px; display: block; }
.album-page .section-heading>p { margin: 8px 0 0; color: #c5c5c9; font: 500 19px/1.35 Handjet,monospace; }
.album-page .album-intro { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(240px,.75fr); align-items: center; gap: 7%; padding-block: clamp(48px,8vw,108px); }
.hello-body { padding: clamp(18px,3.5vw,40px); }
.album-page .hello-body h2 { margin: 0 0 18px; font: 400 clamp(14px,1.3vw,19px)/1.5 'Press Start 2P',monospace; word-spacing: -.38em; }
.album-page .hello-body p { margin: 0 0 16px; font: 500 22px/1.35 Handjet,monospace; }
.album-page .hello-body .hello-accent { color: var(--album-yellow); font-size: 28px; font-weight: 650; }
.hello-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.album-gift { margin: 0; text-align: center; }
.album-gift img { width: min(100%,420px); height: auto; margin: auto; image-rendering: pixelated; }
.album-gift figcaption { color: var(--album-yellow); font: 600 24px Handjet,monospace; }
.album-page .demo-section,.album-page .calc-section { background: #101012; }
.delivery-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.delivery-items article { border: 1px solid #53535a; padding: 22px; background: #1b1b1e; }
.delivery-items img { image-rendering: pixelated; margin-bottom: 12px; }
.delivery-items h3 { margin: 0 0 8px; color: var(--album-yellow); }
.album-page .delivery-items p { font: 500 21px/1.35 Handjet,monospace; }
.album-page .closing .premiere-order { color: white; display: inline-block; margin: 12px; font: 600 21px/1.3 Handjet,monospace; }
.album-page .site-footer { padding-bottom: 72px; }
@media (max-width:850px) { .album-header nav { display: none; } }
@media (max-aspect-ratio:1/1) {
  .album-hero { min-height: 560px; }
  .album-header { padding: 10px 14px; }
  .album-header .brand img { width: 108px; }
  .album-header .album-header-order { min-height: 36px; font-size: 17px; }
  .album-scene { inset: 0 0 96px; height: auto; }
  .album-scene img,.album-scene video { object-position: 50% 100%; }
  .album-scene::after { background: linear-gradient(#000b, #0006 22%,transparent 45%),linear-gradient(0deg,#050506,transparent 9%); }
  .album-copy { inset: 68px 16px 52px; width: auto; display: flex; flex-direction: column; align-items: flex-start; pointer-events:none; }
  .album-page .album-title { font-size: clamp(20px,5.8vw,28px); max-width: 17em; text-shadow: 0 2px 0 #121016; }
  .album-page .album-sub { max-width: 22em; font-size: 18px; margin: 10px 0; text-shadow: 0 1px 2px #171417; }
  .album-copy .album-order { margin-top: auto; pointer-events: auto; }
}
@media (max-width:700px) {
  .album-page .wrap { width: calc(100% - 28px); }
  .album-page .album-intro,.delivery-items { grid-template-columns: 1fr; gap: 26px; }
  .album-gift img { width: min(70%,290px); }
  .album-page .section-heading h2,.album-page .pixel-copy h2,.album-page .faq-section h2,.album-page .closing h2 { font-size: clamp(19px,5vw,25px); }
  .album-page .hello-body p,.album-page .delivery-items p { font-size: 20px; }
}
@media (prefers-reduced-motion:reduce) { .album-playing .album-bars [aria-current=true] span::after { animation: none; } }

.archive-link { color: var(--album-yellow); text-underline-offset: 3px; }
.album-film { display: block; width: min(100%,800px); margin-inline: auto; }
.album-film video { display: block; width: 100%; height: auto; aspect-ratio: 4/3; background: black; }

/* Size the embedded game within the visible page, including the window title bar. */
.album-page #demo .wrap {
  width: min(1240px, calc(100% - 32px));
}
/* This landing has no fixed header above an in-page destination. */
html:has(.album-page) { scroll-padding-top: 0; }
.album-page .demo-window { scroll-margin-top: 4px; }
.album-page .demo-window iframe {
  height: min(740px, calc(100vh - 82px));
  height: min(740px, calc(100dvh - 82px));
  min-height: 0;
}
@media (max-width: 700px), (orientation: landscape) and (max-height: 520px) {
  .album-page #demo .wrap {
    width: auto;
    max-width: none;
    margin-inline: max(4px, env(safe-area-inset-left)) max(4px, env(safe-area-inset-right));
  }
  .album-page #demo .section-heading { margin-inline: 12px; }
  .album-page .demo-window { border-width: 0 2px 4px; border-image-width: 0 2px 4px; }
  .album-page .demo-window .retro-bar { margin-inline: 0; }
  .album-page .demo-window iframe {
    height: min(calc(100vh - 56px), calc(58.333vw + 320px));
    height: min(calc(100dvh - 56px), calc(58.333vw + 320px));
  }
}
