/* Mall page, matched to concept 1 (tools/art/out/web_concept_1.png in the game project).
   Desktop: the page is laid out in concept pixels on a 1024 px canvas and scaled to the
   window width with `zoom` (set by the script in the page). Phones get a stacked layout. */

@font-face { font-family: "Fredoka"; src: url("/mall/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/mall/fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --lav: #DECDF5;
  --cream: #FDF6E8;
  --step: #FEF8EC;
  --step-line: #F1E4CE;
  --cocoa: #4A1F14;
  --text: #5E4A40;
  --muted: #7A675D;
  --yellow: #FBBB22;
  --yellow-hover: #F2AA06;
  --lav-btn: #E7DBFA;
  --lav-btn-hover: #D9C8F6;
  --line: #EADCC6;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--lav); }
body { margin: 0; background: var(--lav); color: var(--cocoa); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--cocoa); }
a:focus-visible, button:focus-visible { outline: 3px solid #E8735A; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yellow); padding: 8px 14px; border-radius: 999px; font-family: var(--display); }
.skip:focus { left: 16px; }

/* ---------- the canvas ---------- */
.page { position: relative; width: 1024px; height: 1536px; margin: 0 auto; }
.abs { position: absolute; }
/* when the page is narrower than the window, its full-width art fades into the lavender at the sides */
.page-inset .hero-scene, .page-inset .hero-clouds, .page-inset .closing-scene { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.page-inset .hero-scene { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%); mask-composite: intersect; }
.page-inset .hero-panel { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%); mask-image: linear-gradient(90deg, transparent 0, #000 6%); }

/* hero */
.hero-scene { left: 0; top: 0; width: 1024px; height: 620px; object-fit: cover; }
.hero-panel { left: 0; top: 205px; width: 620px; height: 415px; }
.hero-clouds { left: 0; top: 490px; width: 1024px; height: 140px; z-index: 1; }

.nav { left: 35px; top: 8px; width: 955px; height: 49px; background: var(--cream); border-radius: 25px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 21px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19.5px; color: var(--cocoa); letter-spacing: -.1px; }
.brand img { width: auto; height: 42px; }
.nav nav { display: flex; gap: 0; }
.nav nav a { text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 14.5px; color: #4E3A33; padding: 6px 15.5px; border-radius: 999px; }
.nav nav a:last-child { padding-right: 0; }
.nav nav a:hover { color: var(--cocoa); text-decoration: underline; text-underline-offset: 4px; }

.logo { left: 56px; top: 84px; width: 318px; z-index: 3; }
.logo img { width: 100%; height: auto; }
.hero-title { left: 36px; top: 292px; width: 396px; font-size: 27.5px; line-height: 33px; text-align: center; letter-spacing: -.2px; z-index: 3; }
.hero-btns { left: 38px; top: 375px; display: flex; gap: 12px; z-index: 3; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; border-radius: 24px; padding: 0 22px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--cocoa); text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 0 rgba(150, 90, 0, .18); transition: background-color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-hover); }
.btn--lav { background: var(--lav-btn); box-shadow: 0 2px 0 rgba(110, 80, 160, .15); }
.btn--lav:hover { background: var(--lav-btn-hover); }
.btn .badge { width: 31px; height: 33px; border-radius: 6px; background: #2A1A12; display: grid; place-items: center; margin-left: -8px; flex: none; }
.btn .badge img { width: 19px; height: 19px; }
.btn .arrow { width: 14px; height: 14px; }
.btn .play { width: 14px; height: 16px; }
.hero-btns .btn--yellow { width: auto; padding: 0 24px 0 24px; }
.hero-btns .btn--lav { width: 176px; justify-content: center; }
.hero-text { left: 51px; top: 441px; width: 432px; font-size: 15.7px; line-height: 20.6px; color: var(--muted); z-index: 3; }
.hero-text b { color: #6B4D3E; font-weight: 700; }

/* cards */
.card { background: var(--cream); border-radius: 24px; }
.features { left: 12px; top: 590px; width: 1000px; height: 232px; }
.features h2 { position: absolute; left: 0; right: 0; top: 7px; text-align: center; font-size: 33px; font-weight: 700; z-index: 3; }
.feat-row { position: absolute; left: 0; right: 0; top: 46px; height: 170px; z-index: 3; }
.feat-row .feat { position: absolute; top: 0; width: 240px; }
.feat-row .feat:nth-child(1) { left: 11px; } .feat-row .feat:nth-child(2) { left: 245px; } .feat-row .feat:nth-child(3) { left: 481px; } .feat-row .feat:nth-child(4) { left: 721px; }
.feat { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 0; position: relative; }
.feat + .feat::before { content: ""; position: absolute; left: 14px; top: 12px; height: 142px; width: 1.5px; background: var(--line); }
.feat img { width: 76px; height: 76px; }
.feat h3 { margin-top: 13px; font-size: 18px; line-height: 20px; font-weight: 700; }
.feat p { margin-top: 6px; font-size: 14.3px; line-height: 18.5px; color: var(--muted); }

.shots { left: 12px; top: 830px; width: 1000px; height: 250px; }
.shots h2 { position: absolute; left: 32px; top: 13px; font-size: 26.5px; font-weight: 700; }
.pill { position: absolute; right: 29px; top: 15px; height: 29px; border-radius: 15px; background: var(--lav-btn); border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 7px; padding: 0 15px 0 21px; font-family: var(--display); font-weight: 500; font-size: 13.5px; color: #4E3A33; }
.pill:hover { background: var(--lav-btn-hover); }
.pill img { width: 11px; height: 11px; }
.shot-row { position: absolute; left: 28px; top: 54px; display: grid; grid-template-columns: 303px 307px 304px; gap: 15px; }
.shot-row button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; height: 182px; cursor: zoom-in; background: #d9cbe9; }
.shot-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shot-row button:hover img { transform: scale(1.03); }

.how { left: 12px; top: 1090px; width: 1000px; height: 208px; }
.how h2 { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 33px; font-weight: 700; }
.steps { position: absolute; left: 23px; top: 47px; display: grid; grid-template-columns: 308px 307px 309px; gap: 15px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; height: 148px; background: var(--step); border: 1.5px solid var(--step-line); border-radius: 16px; }
.step .num { position: absolute; left: 7px; top: 7px; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px; color: #fff; }
.step h3 { position: absolute; left: 62px; top: 14px; font-size: 16.2px; line-height: 20px; font-weight: 700; }
.step p { position: absolute; left: 30px; top: 59px; font-size: 13px; line-height: 18.2px; color: var(--muted); }
.step .art { position: absolute; }
.step:nth-child(1) p { width: 126px; left: 28px; }
.step:nth-child(1) .art { left: 140px; top: 1px; width: 180px; height: 146px; }
.step:nth-child(2) p { width: 140px; left: 46px; }
.step:nth-child(2) .art { left: 173px; top: 1px; width: 112px; height: 146px; }
.step:nth-child(3) h3 { left: 70px; top: 13px; width: 110px; }
.step:nth-child(3) p { width: 146px; left: 22px; }
.step:nth-child(3) .art { left: 150px; top: -3px; width: 168px; height: 150px; }

/* closing band */
.closing-scene { left: 0; top: 1290px; width: 1024px; height: 200px; }
.dusty { left: 62px; top: 1300px; width: 222px; height: 180px; z-index: 2; }
.closing { left: 262px; top: 1333px; width: 500px; text-align: center; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.closing h2 { font-size: 23.5px; font-weight: 700; line-height: 28px; }
.closing p { margin-top: 5px; font-size: 15.2px; color: #4E3A33; }
.closing .btn { margin-top: 13px; height: 42px; width: 305px; justify-content: center; font-size: 15px; }

/* footer */
.footer { left: 18px; top: 1475px; width: 988px; height: 55px; background: var(--cream); border-radius: 24px 24px 0 0; z-index: 3;
  display: flex; align-items: center; padding: 0 30px 0 32px; font-size: 13.4px; color: #4E3A33; }
.footer .brand { font-size: 15.5px; gap: 10px; }
.footer .brand img { width: auto; height: 38px; }
.footer .bar { width: 1.5px; height: 20px; background: #8B7A70; margin: 0 26px 0 27px; }
.footer nav { display: flex; gap: 33px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer .copy { margin-left: auto; }

/* lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 94vw); overflow: visible; }
dialog.lightbox::backdrop { background: rgba(40, 22, 14, .82); }
dialog.lightbox img { border-radius: 14px; max-height: 80vh; width: auto; margin: 0 auto; }
dialog.lightbox .nav-row { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
dialog.lightbox p { color: #FDF6E8; text-align: center; font-family: var(--display); margin-top: 8px; }

/* ---------- phones: stacked ---------- */
@media (max-width: 760px) {
  .hero-scene { -webkit-mask-image: none; mask-image: none; }
  .page { width: auto; height: auto; zoom: 1 !important; display: flex; flex-direction: column; }
  .abs { position: relative; left: auto !important; top: auto !important; }
  .hero-panel, .hero-clouds, .closing-scene { display: none; }
  .nav { order: 0; width: auto; margin: 12px max(12px, env(safe-area-inset-left, 0px)) 0; height: auto; flex-wrap: wrap; justify-content: center; gap: 4px 0; padding: 10px 14px; border-radius: 22px; }
  .nav nav a { padding: 4px 10px; }
  .hero-scene { order: 1; width: 100%; height: 240px; margin-top: 12px; object-fit: cover; }
  .logo, .hero-title, .hero-btns, .hero-text { width: auto; background: var(--cream); margin: 0; }
  .logo { order: 2; padding: 20px 16px 0; width: 100%; }
  .logo > img { width: min(330px, 100%); margin: 0 auto; }
  .hero-title { order: 3; padding: 12px 20px 0; font-size: 24px; line-height: 29px; }
  .hero-btns { order: 4; flex-direction: column; align-items: center; padding: 16px 16px 0; }
  .hero-btns .btn { width: min(327px, 100%) !important; justify-content: center; }
  .hero-text { order: 5; padding: 14px 22px 26px; text-align: center; }
  .card { width: auto; height: auto; margin: 12px max(12px, env(safe-area-inset-left, 0px)) 0; padding: 22px 16px; }
  .features { order: 6; } .shots { order: 7; } .how { order: 8; }
  .features h2, .shots h2, .how h2 { position: static; text-align: center; font-size: 28px; }
  .feat-row { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 8px; margin-top: 18px; }
  .feat-row .feat { position: static; width: auto; }
  .feat + .feat::before { display: none; }
  .feat p { font-size: 14px; }
  .pill { position: static; margin: 10px auto 0; }
  .shot-row { position: static; grid-template-columns: 1fr; margin-top: 16px; }
  .shot-row button { height: auto; aspect-ratio: 16 / 9; }
  .steps { position: static; grid-template-columns: 1fr; margin-top: 16px; }
  .closing { order: 9; width: auto; margin: 0 max(12px, env(safe-area-inset-left, 0px)) 12px; padding: 54px 16px 26px; background: var(--cream); border-radius: 24px; }
  .closing .btn { width: min(305px, 100%); }
  .dusty { order: 9; width: 170px; height: auto; margin: 20px auto -48px; z-index: 3; }
  .footer { order: 10; width: auto; height: auto; margin: 0 max(12px, env(safe-area-inset-left, 0px)); flex-wrap: wrap; justify-content: center; gap: 10px 16px; padding: 18px 16px; border-radius: 22px 22px 0 0; text-align: center; }
  .footer .bar { display: none; }
  .footer nav { flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .footer .copy { margin: 0; width: 100%; }
}
@media (max-width: 380px) { .feat-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
