/* =========================================================
   COACHMAN CREATIONS — shared styles
   Palette comes straight from Jay's screens.
   ========================================================= */

:root {
  --shop:    #7a9f1e;
  --custom:  #c01b00;
  --gallery: #2bfab2;
  --events:  #00b3d2;
  --club:    #fec002;
  --socials: #ff5e06;
  --deals:   #0f3d24;
  --book:    #c9a23f;

  --gold:      #d4af37;
  --gold-lite: #f6e27a;
  --ink:       #101010;
  --paper:     #f7f4ec;

  --pad: clamp(18px, 5vw, 44px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ink);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a { color: inherit; }

/* ---------- the swipe deck ---------- */

.deck {
  display: flex;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.screen {
  position: relative;
  flex: 0 0 100%;
  height: 100dvh;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: grid;
  /* row 1 clears the header, row 2 takes every spare pixel so the object
     sits dead centre between the header and the button */
  grid-template-rows: 0 1fr auto auto;
  justify-items: center;
  padding: calc(var(--pad) + 34px) var(--pad) calc(var(--pad) + 46px);
  background: var(--bg);
}

/* slight vignette so the flat colour has depth on big screens */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .22) 100%);
}

.screen > * { position: relative; z-index: 1; }

/* ---------- floating object + its shadow ---------- */

.object {
  grid-row: 2;
  align-self: center;
  /* the block includes the ground shadow, so nudge down by half of it —
     what should look centred is the object itself, not the pair */
  transform: translateY(calc((clamp(10px, 2.5vh, 22px) + 18px) / 2 + 10px));
  display: grid;
  justify-items: center;
  gap: clamp(10px, 2.5vh, 22px);
}

.object img {
  display: block;
  width: auto;
  height: min(42dvh, 340px);
  max-width: 78vw;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .4));
  animation: hover-float 4.6s ease-in-out infinite;
  will-change: transform;
}

.object .shadow {
  width: min(48vw, 210px);
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  filter: blur(10px);
  animation: hover-shadow 4.6s ease-in-out infinite;
}

@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes hover-shadow {
  0%, 100% { transform: scale(1);     opacity: .5; }
  50%      { transform: scale(.82);   opacity: .3; }
}

/* the word under the object, in marker */
.word {
  grid-row: 3;
  margin: clamp(12px, 2.6vh, 22px) 0 clamp(14px, 2.8vh, 24px);
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(26px, 7.4vw, 44px);
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .28);
}
.screen[data-tone="light"] .word { color: #14210a; text-shadow: 0 3px 0 rgba(255, 255, 255, .35); }

/* ---------- the gold button ---------- */

.gold {
  grid-row: 4;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: min(84vw, 360px);
  aspect-ratio: 996 / 380;
  padding: 0 0 1.5%;
  border: 0;
  background: url("../assets/button.webp") center / 100% 100% no-repeat;
  color: #000;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(16px, 4.6vw, 22px);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .34));
  transition: transform .12s ease, filter .12s ease;
}

.gold:hover { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .34)) brightness(1.05); }
.gold:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 999px; }

/* the press: button sinks, gleam sweeps across the enamel */
.gold.is-pressed {
  transform: translateY(4px) scale(.965);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .4)) brightness(.94) saturate(1.05);
}
.gold .gleam {
  position: absolute;
  inset: 12% 6%;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}
.gold .gleam::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.gold.is-pressed .gleam::before { animation: sweep .5s ease-out; }
@keyframes sweep {
  0%   { left: -60%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* ---------- deck navigation ---------- */

.dots {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
/* rides the swipe: its position comes straight from scrollLeft each frame */
.dots-thumb {
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35);
  cursor: pointer;
}
.dots button[aria-current="true"] { background: rgba(255, 255, 255, .55); }

.arrow {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.arrow[data-dir="prev"] { left: 10px; }
.arrow[data-dir="next"] { right: 10px; }
.arrow[hidden] { display: none; }
@media (max-width: 720px) { .arrow { display: none; } }

.mark {
  position: fixed;
  top: 14px; left: 50%;
  translate: -50% 0;
  z-index: 5;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(11px, 3.1vw, 13px);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  transition: color .25s ease, text-shadow .25s ease;
}
/* Gallery and Club Coachman are light — the header goes black to stay legible */
body.on-light .mark { color: #000; text-shadow: 0 1px 2px rgba(255, 255, 255, .5); }

/* ---------- sub-pages ---------- */

.page {
  min-height: 100dvh;
  background: var(--bg, var(--paper));
  color: var(--ink);
  padding: 76px var(--pad) 90px;
}
.wrap { max-width: 760px; margin: 0 auto; }

.back {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

h1.title {
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(30px, 8.4vw, 54px);
  line-height: 1.04;
  letter-spacing: .02em;
  margin: 0 0 10px;
}
.lede { font-size: 17px; line-height: 1.55; max-width: 60ch; margin: 0 0 34px; opacity: .85; }

.card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .9);
}

label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* stops iOS zoom */
}
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hint { font-size: 13px; opacity: .7; margin-top: 6px; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.work {
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .9);
}
.work img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #efe9dc; }
.work .meta { padding: 11px 12px 13px; }
.work h3 { margin: 0 0 3px; font-size: 16px; }
.work p { margin: 0; font-size: 13px; opacity: .72; }

.event {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .9);
}
.event .when {
  text-align: center;
  border-right: 2px solid rgba(0, 0, 0, .12);
  padding-right: 10px;
  line-height: 1;
}
.event .when b { display: block; font-size: 25px; }
.event .when span { font-size: 12px; letter-spacing: .12em; }
.event h3 { margin: 0 0 3px; font-size: 17px; }
.event p { margin: 0; font-size: 13.5px; opacity: .75; }
.tix {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-lite);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .event { grid-template-columns: 62px 1fr; }
  .tix { grid-column: 1 / -1; text-align: center; }
}

.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.link {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .9);
  transition: transform .12s ease, box-shadow .12s ease;
}
.link:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .9); }
.link svg { width: 24px; height: 24px; flex: none; }

.foot { margin-top: 42px; font-size: 13px; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  .object img, .object .shadow { animation: none; }
  .gold.is-pressed .gleam::before { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* screens with no word above the button keep the same rhythm */
.screen:not(:has(.word)) .gold { margin-top: clamp(20px, 4.2vh, 38px); }

/* =========================================================
   COMING SOON — metallic gold type with a travelling shine
   Gold is a metal: it only reads as one against dark, so
   these pages sit on near-black washed with the screen's hue.
   ========================================================= */

.soon {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 80px var(--pad) 64px;
  background:
    radial-gradient(120% 78% at 50% 0%, var(--wash, #14110b) 0%, #090807 58%, #000 100%),
    #000;
}

.soon-inner { grid-row: 2; display: grid; justify-items: center; }

.soon .object { grid-row: auto; }   /* the deck pins objects to row 2; not here */
.soon .object img { height: min(28dvh, 210px); }
.soon .object .shadow { background: rgba(0, 0, 0, .6); }
.soon .object { align-self: auto; transform: none; }

/* the Bio polaroid: floats like everything else, with a faint warm halo
   so the white border reads against the near-black wash */
.bio-photo img {
  height: min(34dvh, 268px) !important;
  max-width: 72vw;
  border-radius: 3px;
  transform-origin: center bottom;
  rotate: -2.4deg;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .66))
          drop-shadow(0 0 22px rgba(228, 200, 125, .22));
}
.bio-photo .shadow { width: min(40vw, 170px); }

.soon h1 {
  margin: clamp(10px, 1.8vh, 16px) 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(30px, 9.4vw, 58px);
  line-height: 1.05;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-left: .12em;              /* balances the tracking on the last letter */
  color: #d9bb6b;                   /* solid gold, in case clipping is unsupported */
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .soon h1 {
    color: transparent;
    background-image:
      linear-gradient(100deg, transparent 38%, rgba(255, 252, 235, .92) 50%, transparent 62%),
      linear-gradient(176deg,
        #f7ead9 0%, #e7cf92 16%, #c6a253 34%,
        #7e6226 50%, #b9954a 62%, #f2e3ad 78%, #c9a659 100%);
    background-size: 260% 100%, 100% 100%;
    background-position: -160% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4.2s cubic-bezier(.45, 0, .2, 1) infinite;
  }
}

@keyframes shine {
  0%        { background-position: -160% 0, 0 0; }
  62%, 100% { background-position:  260% 0, 0 0; }
}

.soon .eyebrow {
  margin: clamp(24px, 4.6vh, 40px) 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: clamp(11px, 3vw, 13px);
  letter-spacing: .34em;
  text-transform: uppercase;
  padding-left: .34em;
  color: var(--gold);
}

.soon .rule {
  width: min(280px, 62vw);
  height: 1px;
  margin: clamp(22px, 4vh, 34px) 0 clamp(20px, 3.6vh, 30px);
  background: linear-gradient(90deg, transparent, rgba(198, 162, 83, .75), transparent);
}

.soon p.note {
  margin: 0;
  max-width: 34ch;
  color: #b9b1a2;
  font-size: 16px;
  line-height: 1.6;
}

.soon .soon-cta {
  display: inline-block;
  margin-top: clamp(26px, 5vh, 40px);
  padding: 14px 26px;
  border: 1px solid rgba(198, 162, 83, .45);
  border-radius: 2px;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: .12em;
  padding-left: calc(26px + .12em);
  color: #ebd7a4;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.soon .soon-cta:hover { border-color: var(--gold); color: #fff; }
.soon .soon-cta:focus-visible { outline: 2px solid #ebd7a4; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .soon h1 { animation: none; background-position: 50% 0, 0 0; }
}

/* these can be rendered as <a> or <button> depending on the page — keep them identical */
.gold, .back, .soon-cta {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.gold     { font-family: Cinzel, "Times New Roman", serif; }
.back     { font-family: Archivo, sans-serif; border: 0; }
.soon-cta { font-family: Cinzel, "Times New Roman", serif; background: transparent; }

/* =========================================================
   CONNECT — the gold handset, with a live screen laid over
   the real LCD so every app can float and glow on its own.
   ========================================================= */

.handset-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
  background: radial-gradient(120% 70% at 50% 0%, #2a1204 0%, #0a0705 60%, #000 100%), #000;
}

.handset {
  position: relative;
  width: min(100vw, calc(100dvh * 851 / 1849));
  aspect-ratio: 851 / 1849;
  background: url("../assets/phone-screen.jpg") center / 100% 100% no-repeat;
}

/* the live screen sits exactly on the photographed LCD */
.lcd {
  position: absolute;
  left: 6.23%;
  top: 20.71%;
  width: 86.84%;
  height: 53.11%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2.2% 3.4% 1.6%;
  background: #f0870a;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% 0%, #ffa42a 0%, #ef8409 55%, #d96f05 100%);
  container-type: inline-size;
  overflow: hidden;
}

/* status bar */
.lcd-status { display: flex; justify-content: space-between; align-items: flex-start; }
.lcd-status svg { height: 7cqw; width: auto; fill: #120a01; }

/* app grid */
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3cqw 3.4cqw;
  align-content: center;
  padding: 1cqw 0 2cqw;
}

.app { display: grid; justify-items: center; gap: 1.6cqw; text-decoration: none; }

.app-tile {
  position: relative;
  width: 27cqw;
  aspect-ratio: 1;
  border-radius: 18%;
  overflow: hidden;
  background: #120a01;
  animation: bob 5.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
}

/* the LED: a bright arc on a conic sweep, spinning behind the face.
   Only the 2px rim shows, so it reads as light running round the edge. */
.app-tile::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg,
    transparent 0deg 286deg,
    rgba(255, 214, 120, .55) 312deg,
    #fff6d8 340deg,
    rgba(255, 214, 120, .55) 356deg,
    transparent 360deg);
  animation: orbit 4.6s linear infinite;
  animation-delay: var(--d, 0s);
}

.app-face {
  position: absolute;
  inset: 3.6%;
  border-radius: 16%;
  background:
    radial-gradient(100% 70% at 50% 0%, #2a1a04 0%, #140c01 60%, #0c0700 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 .8cqw rgba(255, 196, 92, .22);
}

.app-face svg { width: 62%; height: 62%; fill: #ffa517; }

.app-name {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 5.4cqw;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-align: center;
  color: #180d01;
}

/* soft-key footer */
.lcd-foot {
  border-top: .7cqw solid #180d01;
  padding-top: 1.4cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 6cqw;
  color: #180d01;
}
.lcd-foot svg { height: 5.4cqw; fill: #180d01; }

/* a tile with no link yet reads as dimmed and does not travel */
.app[aria-disabled="true"] { cursor: default; }

.app:focus-visible .app-tile { outline: .8cqw solid #fff6d8; outline-offset: .6cqw; }
.app:active .app-tile { transform: scale(.95); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.6cqw); }
}
@keyframes orbit {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .app-tile { animation: none; }
  .app-tile::before { animation: none; }
}

/* =========================================================
   HOME — one clip, looping full bleed behind the name.
   Plain HTML video: autoplay + muted + loop + playsinline,
   so it runs with no script at all. If a browser refuses to
   play it, the poster frame stands in by itself.
   ========================================================= */

.screen[data-name="Home"] { background: #050403; }

.home-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* enough shade for the name and button to hold up over the footage */
.screen[data-name="Home"]::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.12) 24%,
                    rgba(0,0,0,.4) 58%, rgba(0,0,0,.88) 100%);
}

/* keeps the name and button at the same height as every other screen */
.stage {
  grid-row: 2;
  align-self: end;            /* the name stays just above the Bio button */
  display: grid;
  align-content: end;
  justify-items: center;
}

/* the name: gold metal, lit from behind */
.home-title {
  margin: 0;
  transform: translateY(clamp(9px, 1.9vh, 17px));   /* sits a little lower */
  display: grid;
  gap: clamp(5px, 1vh, 9px);
  justify-items: center;
  text-align: center;
  font-family: Cinzel, "Times New Roman", serif;
  text-transform: uppercase;
  color: #e4c87d;                      /* if background-clip is unsupported */
  filter:
    drop-shadow(0 0 9px rgba(255, 255, 255, .5))
    drop-shadow(0 0 26px rgba(255, 255, 255, .28))
    drop-shadow(0 2px 3px rgba(0, 0, 0, .65));
}
.home-title span {
  font-weight: 900;
  font-size: clamp(27px, 8.4vw, 46px);
  line-height: 1;
  letter-spacing: .1em;
  padding-left: .1em;
}
.home-title em {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(8px, 2.75vw, 13px);
  line-height: 1.25;
  letter-spacing: .2em;
  padding-left: .2em;
  white-space: nowrap;        /* one line, whatever the screen width */
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-title {
    color: transparent;
    background-image: linear-gradient(176deg,
      #fffaf0 0%, #f2e2b0 14%, #d9bb6b 32%,
      #9a7a32 50%, #cfae5e 64%, #f7ebc4 80%, #d4b163 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* the chosen app swells and turns once, then the link opens */
.app.is-going .app-tile {
  animation: pop-spin .52s cubic-bezier(.3, .8, .25, 1) forwards;
  z-index: 2;
}
.app.is-going .app-face {
  box-shadow:
    inset 0 0 0 .8cqw rgba(255, 214, 120, .6),
    0 0 7cqw rgba(255, 221, 140, .75);
}
.app.is-going .app-name { opacity: .35; transition: opacity .3s ease; }

@keyframes pop-spin {
  0%   { transform: scale(1)    rotate(0deg); }
  55%  { transform: scale(1.42) rotate(230deg); }
  100% { transform: scale(1.3)  rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app.is-going .app-tile { animation: none; }
}

/* ---------- DEALS screen: dark holiday green with a gold shimmer ---------- */
.screen[data-name="Deals"] {
  background:
    radial-gradient(90% 60% at 50% 38%, #1a5c37 0%, #0f3d24 55%, #06200f 100%);
  overflow: hidden;
}
/* a slow band of gold light sweeping across the whole screen */
.screen[data-name="Deals"]::before {
  content: "";
  position: absolute; inset: -20% -60%;
  z-index: 4; pointer-events: none;            /* over everything, gift and button included */
  background: linear-gradient(105deg,
    transparent 38%, rgba(232, 190, 80, 0) 42%,
    rgba(232, 190, 80, .2) 47%, rgba(255, 226, 140, .38) 50%,
    rgba(232, 190, 80, .2) 53%, transparent 58%);
  mix-blend-mode: screen;
  animation: deal-sweep 5.5s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes deal-sweep {
  0%        { transform: translateX(-55%); }
  70%, 100% { transform: translateX(55%); }
}
/* gold glitter drifting up through the screen */
.deal-sparkle { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.deal-sparkle i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, #f6e08a 45%, rgba(212, 175, 55, 0) 75%);
  box-shadow: 0 0 6px rgba(246, 224, 138, .8);
  animation: deal-rise linear infinite;
}
@keyframes deal-rise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: .8; }
  100% { transform: translateY(-110vh) translateX(18px) scale(1); opacity: 0; }
}
.screen[data-name="Deals"] .object, .screen[data-name="Deals"] .gold { z-index: 3; }
.screen[data-name="Deals"] .object img { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(246, 224, 138, .25)); }
@media (prefers-reduced-motion: reduce) {
  .screen[data-name="Deals"]::before, .deal-sparkle i { animation: none; opacity: 0; }
}

/* ---------- BOOK screen: polished gold ---------- */
.screen[data-name="Book"] {
  background:
    radial-gradient(80% 55% at 50% 36%, #fff3c4 0%, rgba(255, 243, 196, 0) 60%),
    linear-gradient(160deg, #f6e08a 0%, #d4af37 42%, #a8801e 78%, #7d5c12 100%);
}
.screen[data-name="Book"]::after {
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(60, 40, 0, .28) 100%);
}
.screen[data-name="Book"] .object .shadow { background: rgba(60, 38, 0, .45); }
.screen[data-name="Book"] .gold { filter: drop-shadow(0 12px 16px rgba(60, 38, 0, .45)); }

/* ---------- BOOK screen v2: the live-painting illustration, arm in motion ---------- */
.screen[data-name="Book"] { background: #120a03; overflow: hidden; }
.book-scene {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 0;
  aspect-ratio: 941 / 1672;
  width: max(100%, calc(100dvh * 941 / 1672));
}
.book-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* arm crop sits at x 482–847, y 398–737 of the 941×1672 artwork */
.book-arm {
  position: absolute;
  left: calc(482 / 941 * 100%); top: calc(398 / 1672 * 100%);
  width: calc(365 / 941 * 100%); height: auto;
  transform-origin: 21.4% 83.2%;        /* the elbow, where the sleeve ends */
  animation: book-paint 2.4s ease-in-out infinite;
}
@keyframes book-paint {
  0%   { transform: rotate(0deg); }
  22%  { transform: rotate(-4.4deg); }
  48%  { transform: rotate(1.2deg); }
  72%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
.screen[data-name="Book"]::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%, transparent 58%, rgba(0,0,0,.75) 100%);
}
.screen[data-name="Book"] .gold { z-index: 3; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
@media (prefers-reduced-motion: reduce) { .book-arm { animation: none; } }

/* wide screens: show the whole illustration instead of a huge crop */
@media (min-aspect-ratio: 4/5) {
  .screen[data-name="Book"]::before {
    content: ""; position: absolute; inset: -40px; z-index: 0;
    background: url("../assets/book-bg.webp") center / cover no-repeat;
    filter: blur(28px) brightness(.55); 
  }
  /* top three-quarters of the art fills the screen height; the bottom quarter runs off-screen */
  .book-scene {
    z-index: 1;
    width: auto; height: 200dvh;
    top: -29dvh; bottom: auto; translate: -50% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .screen[data-name="Book"] .gold { z-index: 3; translate: 0 4dvh; }
}

/* ---------- RAFFLES screen: living galaxy, wheel with marquee lights ---------- */
.screen[data-name="Raffles"] {
  overflow: hidden;
  background:
    radial-gradient(60% 40% at 25% 30%, rgba(140, 60, 220, .55), transparent 70%),
    radial-gradient(55% 45% at 80% 70%, rgba(30, 110, 230, .45), transparent 70%),
    radial-gradient(40% 30% at 70% 20%, rgba(230, 60, 160, .35), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, #12062a 0%, #06020f 70%, #000 100%);
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: nebula 26s ease-in-out infinite alternate;
}
@keyframes nebula {
  0%   { background-position: 0% 0%, 100% 100%, 80% 0%, 50% 50%; }
  100% { background-position: 40% 30%, 60% 60%, 40% 40%, 50% 50%; }
}
.galaxy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.screen[data-name="Raffles"] .object, .screen[data-name="Raffles"] .gold { z-index: 2; }
.wheel-obj {
  position: relative; height: min(46dvh, 380px); aspect-ratio: 640 / 731;
  animation: hover-float 4.6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(246, 210, 110, .35)) drop-shadow(0 24px 30px rgba(0, 0, 0, .6));
}
.wheel-obj img { display: block; width: 100%; height: 100%; animation: none; filter: none; max-width: none; }
.bulbs i {
  position: absolute; width: 7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #fffef2 0%, #fff1b0 30%, rgba(255, 214, 90, .55) 55%, rgba(255, 190, 40, 0) 72%);
  mix-blend-mode: screen; opacity: .15;
  animation: bulb 2.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes bulb {
  0%, 100% { opacity: .12; transform: scale(.75); }
  45%      { opacity: 1;   transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .screen[data-name="Raffles"], .bulbs i, .wheel-obj { animation: none; }
  .bulbs i { opacity: .6; }
}
