/* gammo.app: the Lounge, in CSS.
   Every colour, material and measure here comes from the app's immersive UI kit
   (gammo-app apps/mobile/src/world/skins.ts LOUNGE + src/ui/kit). The page is one illustrated
   night terrace, and the UI is made of game materials: brass coins you press, wooden plaques,
   wood panels with brass rivets, green felt rows, pinned parchment, rimmed pills, a carved shelf
   and the hanging GAMMO sign. Fonts: Lilita One (display) + Nunito (body), SIL OFL 1.1. */

@font-face { font-family: 'Lilita One'; src: url(/fonts/lilita-one.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }

:root {
  color-scheme: dark;
  /* scene */
  --sky: #0b1a1f; --sky-top: #081419; --glow: #57f0dd; --star: #cfe9e4; --hill-far: #0f2a2c; --hill-near: #12312f;
  --lamp: #ffcf6a; --table: #4a2a16; --table-edge: #7a4a26;
  /* text on the world / on wood */
  --cream: #fbefd2; --teal-text: #9fd8cf; --tan: #d8c6a0; --heading: #f5c542; --link: #57f0dd;
  /* accents */
  --teal: #1fd1c1; --brass: #f5c542; --brass-hi: #ffe08a; --pink: #ff5aa0;
  --rim: #d9a93a; --rim-hi: #ffe08a; --rim-lo: #8a6418;
  /* coin */
  --coin-a: #ffe892; --coin-b: #f5c542; --coin-c: #c8901f; --coin-border: #fff1b8; --coin-depth: #7a5112; --coin-ink: #3a2408;
  /* plaque */
  --plq-a: #9a6236; --plq-b: #6e4022; --plq-c: #5a321a; --plq-depth: #2e180b;
  /* panel */
  --wood: #3a2414; --wood-dark: #24160c; --wood-border: #b8892a; --wood-hi: rgba(255, 220, 150, .25);
  /* felt */
  --felt: #0f3b37; --felt-border: #1b5a54; --felt-sub: #9fd8cf;
  /* parchment */
  --parch: #f3e6c8; --parch-edge: #d9c49a; --parch-ink: #3a2408; --parch-sub: #6b4a24; --parch-accent: #7a2116; --pin: #d14b3c; --pin-edge: #7a2116;
  /* pill / inset */
  --pill: #1a120b; --inset: #120c07; --inset-border: #6e4a1c;
  /* winter */
  --wn-sky: #0b1830; --wn-panel: #13284a; --wn-border: #9fc3ee; --wn-red: #c22f2a; --wn-ice: #9fd8ff;

  --display: 'Lilita One', 'Nunito', ui-rounded, system-ui, sans-serif;
  --display-weight: 400;
  --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grain: url(/art/world/grain.webp);
  --maxw: 1160px;
  --gutter: 16px;
}
/* Lilita One has no ğ / ş / İ, so Turkish uses Nunito Black as its display face (as the app does). */
html[lang="tr"] { --display: 'Nunito', ui-rounded, system-ui, sans-serif; --display-weight: 900; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--cream); font: 600 16px/1.55 var(--body);
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(207, 233, 228, .55), transparent),
    radial-gradient(1px 1px at 33% 62%, rgba(207, 233, 228, .4), transparent),
    radial-gradient(1.4px 1.4px at 71% 30%, rgba(207, 233, 228, .5), transparent),
    radial-gradient(1px 1px at 88% 74%, rgba(207, 233, 228, .35), transparent),
    radial-gradient(1px 1px at 52% 8%, rgba(207, 233, 228, .45), transparent),
    radial-gradient(1.2px 1.2px at 6% 88%, rgba(207, 233, 228, .3), transparent),
    var(--sky);
  background-size: 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #9ff7ec; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--brass); color: var(--coin-ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brass); color: var(--coin-ink); border-radius: 10px; font-weight: 900; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, .display { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.12; margin: 0; letter-spacing: .3px; }


/* ---------- materials ------------------------------------------------------------------------ */

/* Brass rivets in the four corners of a wood surface (Panel / Sign ornament: rivets). */
.rivets {
  --r: radial-gradient(circle, #fff3c4 0 1.1px, #d9a93a 1.5px 3.1px, #8a6418 3.3px 4px, transparent 4.4px);
  background-image: var(--r), var(--r), var(--r), var(--r);
  background-size: 9px 9px; background-repeat: no-repeat;
  background-position: 7px 7px, calc(100% - 7px) 7px, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px);
}

/* Panel: wood with grain, brass border, a solid drop shadow and rivets. */
.panel {
  position: relative; border-radius: 18px; border: 2px solid var(--wood-border);
  background: var(--grain) 0 0 / 64px 64px, var(--wood);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .4), inset 0 1px 0 var(--wood-hi);
  padding: 18px;
}
.panel > .rivets { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; }
.panel.dark { background: linear-gradient(rgba(14, 8, 3, .5), rgba(14, 8, 3, .5)), var(--grain) 0 0 / 64px 64px, var(--wood-dark); }
.panel-title { font-family: var(--display); font-weight: var(--display-weight); color: var(--heading); font-size: 20px; letter-spacing: .3px; margin: 0 0 12px; padding: 0 4px; }

/* Felt row: a green felt inset for list rows inside a panel. */
.felt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 10px 12px; border-radius: 12px; background: var(--felt); border: 1px solid var(--felt-border);
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, .28); color: var(--cream);
}
.felt + .felt { margin-top: 8px; }
.felt .f-title { font-weight: 900; font-size: 16px; line-height: 1.25; }
.felt .f-sub { color: var(--felt-sub); font-size: 14px; line-height: 1.4; font-weight: 600; }
.felt .f-mid { flex: 1; min-width: 0; }
.felt .f-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0a2b28; border: 2px solid var(--rim); color: var(--brass); }
.felt .f-ico svg { width: 22px; height: 22px; }
.chip { flex: 0 0 auto; font-family: var(--display); font-weight: var(--display-weight); font-size: 15px; padding: 3px 11px; border-radius: 10px; background: #57f0dd; color: #0b1a1f; }
.chip.quiet { background: rgba(0, 0, 0, .28); color: var(--felt-sub); }

/* Parchment: a pinned note, a touch crooked. */
.parchment {
  --tilt: -1.2deg;
  position: relative; background: var(--parch); color: var(--parch-ink); border-radius: 6px;
  padding: 18px 18px 16px; transform: rotate(var(--tilt));
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35), inset 0 -3px 0 var(--parch-edge);
}
.parchment::before { /* the pin */
  content: ''; position: absolute; top: -7px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .7) 0 2px, transparent 2.5px), var(--pin);
  border: 2px solid var(--pin-edge); box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.parchment h3 { font-size: 20px; color: var(--parch-ink); margin-bottom: 6px; }
.parchment p { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.5; }
.parchment .sub { color: var(--parch-sub); font-weight: 600; }
.parchment a { color: var(--parch-accent); }
.parchment .accent { color: var(--parch-accent); font-weight: 900; }

/* Pill: dark rimmed pill (wallet, streak, small counters, and our section eyebrows). */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 9px; border-radius: 999px;
  background: var(--pill); border: 2px solid var(--wood-border); color: var(--cream);
  font-weight: 900; font-size: 13.5px; letter-spacing: .2px; box-shadow: 0 3px 0 rgba(0, 0, 0, .45); white-space: nowrap;
}
.pill svg, .pill img { width: 18px; height: 18px; color: var(--brass); }

/* Coin: THE primary action. A brass coin on a solid edge that presses down. */
.coin {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 26px; border-radius: 18px; border: 3px solid var(--coin-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 50%),
    radial-gradient(130% 150% at 30% 15%, var(--coin-a) 0%, var(--coin-b) 45%, var(--coin-c) 100%);
  color: var(--coin-ink); font-family: var(--display); font-weight: var(--display-weight); font-size: 21px; letter-spacing: .6px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 0 var(--coin-depth), inset 0 -4px 0 rgba(122, 81, 18, .45), 0 12px 22px -6px rgba(0, 0, 0, .55);
  transition: transform .09s ease, box-shadow .09s ease, filter .15s ease; -webkit-tap-highlight-color: transparent;
}
.coin::after { content: ''; position: absolute; left: 14px; right: 14px; top: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.coin:hover { color: var(--coin-ink); filter: brightness(1.05) saturate(1.05); }
.coin:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--coin-depth), inset 0 -4px 0 rgba(122, 81, 18, .45), 0 6px 12px -6px rgba(0, 0, 0, .55); }
.coin.lg { min-height: 68px; font-size: 26px; padding: 10px 32px; border-radius: 22px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 7px 0 var(--coin-depth), inset 0 -4px 0 rgba(122, 81, 18, .45), 0 14px 26px -8px rgba(0, 0, 0, .6); }
.coin.lg:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--coin-depth), inset 0 -4px 0 rgba(122, 81, 18, .45); }
.coin.sm { min-height: 40px; font-size: 16px; padding: 6px 14px; border-radius: 13px; border-width: 2px; box-shadow: 0 4px 0 var(--coin-depth), inset 0 -3px 0 rgba(122, 81, 18, .45); }
.coin.sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coin-depth); }
.coin svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* Plaque: secondary actions. Wood with a brass rim on a dark edge. */
.plaque {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; isolation: isolate;
  min-height: 50px; padding: 8px 18px; border-radius: 16px; border: 3px solid var(--rim); overflow: hidden;
  background: linear-gradient(180deg, var(--plq-a), var(--plq-b) 55%, var(--plq-c));
  color: var(--cream); font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; letter-spacing: .4px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 5px 0 var(--plq-depth), inset 0 2px 0 rgba(255, 236, 190, .35), inset 0 -3px 0 rgba(0, 0, 0, .25);
  transition: transform .09s ease, box-shadow .09s ease, filter .15s ease; -webkit-tap-highlight-color: transparent;
}
.plaque::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain) 0 0 / 64px 64px; opacity: .22; }
.plaque:hover { color: var(--cream); filter: brightness(1.08); }
.plaque:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--plq-depth), inset 0 2px 0 rgba(255, 236, 190, .35); }
.plaque svg { width: 20px; height: 20px; color: var(--brass); flex: 0 0 auto; }
.plaque.sm { min-height: 40px; font-size: 15px; padding: 5px 12px; border-radius: 13px; border-width: 2px; box-shadow: 0 4px 0 var(--plq-depth), inset 0 2px 0 rgba(255, 236, 190, .35); }
.plaque.ghost { background: var(--wood-dark); border-color: var(--wood-border); }
.plaque.ghost::before { opacity: .35; }
.plaque.ghost svg { color: var(--teal-text); }

/* Store badges: dark plaques, with a "coming soon" tag until the listings are live (assets/site.js). */
.stores { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 7px 14px 7px 12px; text-align: left;
  border-radius: 14px; background: #0d0a07; border: 2px solid var(--wood-border); color: var(--cream); text-decoration: none;
  box-shadow: 0 4px 0 #000, inset 0 1px 0 rgba(255, 220, 150, .18);
}
.store svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--cream); }
.store small { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--tan); font-weight: 800; line-height: 1.2; }
.store b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 19px; line-height: 1.1; letter-spacing: .3px; }
.store:not(.live) { padding-top: 13px; }
.store .soon {
  position: absolute; top: -13px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 900; padding: 2px 9px 2px 7px; border-radius: 999px; color: var(--coin-ink);
  background: var(--brass); border: 2px solid var(--coin-border); box-shadow: 0 2px 0 var(--coin-depth); white-space: nowrap;
}
.store .soon svg { width: 12px; height: 12px; color: var(--coin-ink); }
a.store:hover { color: var(--cream); border-color: var(--brass); }
.store.live .soon { display: none; }
@media (max-width: 459px) {
  .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .store { min-height: 50px; padding: 6px 8px 6px 9px; gap: 7px; }
  .store svg { width: 22px; height: 22px; }
  .store b { font-size: 16.5px; }
  .store small { font-size: 9.5px; letter-spacing: .3px; }
  .store .soon { right: 6px; }
}

/* Mascots: the app's cast as SVG files. They float and breathe (Mascot.tsx idle), blink inside the
   SVG, and keep still under reduced motion (a <source> swaps in the -still file). */
.mascot { display: block; width: var(--s, 100px); height: var(--s, 100px); }
.mascot img { width: 100%; height: 100%; }
.mascot.float img { animation: float 2.4s ease-in-out infinite alternate; transform-origin: 50% 85%; }
.mascot.float.d1 img { animation-delay: -.6s; } .mascot.float.d2 img { animation-delay: -1.2s; } .mascot.float.d3 img { animation-delay: -1.8s; }
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(-4.5%) scale(1.035); } }

/* Speech bubble: a scrap of parchment with a tail (Speech in Mascot.tsx). */
.speech {
  position: relative; display: inline-block; background: var(--parch); color: var(--parch-ink); border: 2px solid var(--parch-edge);
  border-radius: 14px; padding: 9px 13px; font-weight: 800; font-size: 15px; line-height: 1.35; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); max-width: 260px;
}
.speech::after { content: ''; position: absolute; left: 18px; bottom: -10px; border: 8px solid transparent; border-top: 10px solid var(--parch); border-bottom: 0; }
.speech.gold { border-color: var(--brass); }
.speech.tail-right::after { left: auto; right: 18px; }
.speech.tail-left::after { left: -12px; bottom: auto; top: 14px; border: 8px solid transparent; border-right: 11px solid var(--parch); border-left: 0; }

/* Section titles (KitTitle) and the pill eyebrow above them. */
.sec { position: relative; padding: 64px 0; }
.sec-head { max-width: 680px; margin-bottom: 30px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .pill { margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 7.4vw, 46px); color: var(--cream); text-shadow: 0 3px 0 rgba(0, 0, 0, .55); margin-bottom: 12px; }
.sec-head p { margin: 0; color: var(--tan); font-size: 17.5px; line-height: 1.6; }
.lead-cream { color: var(--cream) !important; }

/* A string of lights between sections (the festoon from the lounge scene). */
.lights { display: block; width: 100%; height: 40px; background: url(/art/decor/lights.svg) center top / 240px 40px repeat-x; }

/* ---------- header: the carved shelf -------------------------------------------------------- */
.shelf {
  position: sticky; top: 0; z-index: 40; height: 58px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .25)), var(--grain) 0 0 / 64px 64px, #3a2214;
  border-bottom: 3px solid var(--wood-border); box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 10px 24px rgba(0, 0, 0, .35);
}
.shelf .wrap { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brass); }
.brand .medal { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--rim); background: var(--felt); overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .45); flex: 0 0 auto; }
.brand .medal img { width: 140%; height: 140%; margin: -20% 0 0 -20%; max-width: none; }
.brand .word { font-family: 'Lilita One', var(--display); font-size: 24px; letter-spacing: 2px; color: var(--brass); text-shadow: 0 2px 0 #6e4a10; }
.brand:hover { color: var(--brass); }
.nav { display: none; gap: 20px; margin-left: 10px; }
.nav a { color: var(--tan); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav a:hover { color: var(--brass); }
.shelf .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--inset); border: 2px solid var(--inset-border); }
.langs button { font: 900 12.5px var(--body); letter-spacing: .4px; color: var(--tan); background: none; border: 0; padding: 5px 8px; border-radius: 8px; cursor: pointer; min-width: 36px; min-height: 30px; }
.langs button[aria-pressed="true"] { color: var(--cream); background: linear-gradient(180deg, var(--plq-a), var(--plq-b)); box-shadow: inset 0 0 0 1.5px var(--rim); }
.shelf .coin.sm { display: none; }
.back-link { margin-left: auto; }
@media (min-width: 560px) { .shelf .coin.sm { display: inline-flex; } }
@media (min-width: 980px) { .nav { display: flex; } }

/* ---------- the world backdrop (scene image anchored top, scaled to width, like WorldBackdrop) ---- */
.world { position: relative; isolation: isolate; }
.world { overflow-x: clip; }
.world .scene { position: absolute; left: 0; right: 0; top: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.world .scene img { width: 100%; height: auto; }
.world .scene .lamp-glow {
  position: absolute; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 106, .42), rgba(255, 207, 106, .12) 50%, rgba(255, 207, 106, 0) 70%);
  animation: flicker 3.1s ease-in-out infinite;
}
.world .scene .lamp-glow.b { animation-duration: 3.7s; animation-delay: -1.3s; }
@keyframes flicker { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.97); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); } 44% { opacity: .62; } 48% { opacity: .9; } }
.firefly { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff1a8; box-shadow: 0 0 6px 2px rgba(255, 226, 122, .7); animation: firefly 6s ease-in-out infinite; opacity: 0; }
@keyframes firefly { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 50% { transform: translate(12px, -16px); } 70% { opacity: .7; } 100% { opacity: 0; transform: translate(-6px, -30px); } }

/* The wooden table edge at the bottom of a world scene (WorldBackdrop TableEdge). */
.table-edge { display: block; width: 100%; height: 64px; }
@media (min-width: 700px) { .table-edge { height: 84px; } }

/* Hanging sign (Sign size lg): chains + a wood plank with rivets and the brass GAMMO title. */
.sign { display: flex; flex-direction: column; align-items: center; }
.sign .chains { width: 200px; height: 18px; color: var(--wood-border); }
.sign .plank {
  position: relative; text-align: center; padding: 10px 30px 12px; border-radius: 18px; border: 2px solid var(--wood-border);
  background: var(--grain) 0 0 / 64px 64px, var(--wood); box-shadow: 0 6px 0 rgba(0, 0, 0, .4), inset 0 1px 0 var(--wood-hi);
}
.sign .plank .rivets { position: absolute; left: 0; right: 0; top: 0; height: 26px; background-image: var(--r), var(--r); background-position: 7px 7px, calc(100% - 7px) 7px; }
.sign .title { display: block; font-family: 'Lilita One', var(--display); font-size: 52px; line-height: 1.05; letter-spacing: 3px; color: var(--brass); text-shadow: 0 3px 0 #6e4a10; }
.sign .tag { display: block; font-weight: 800; font-size: 12.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--teal-text); margin-top: 2px; }
@media (min-width: 700px) { .sign .title { font-size: 64px; } .sign .tag { font-size: 14px; } .sign .plank { padding: 12px 40px 14px; } }

/* Phone frames for real in-app captures. */
.phone {
  position: relative; width: var(--w, 230px); aspect-ratio: 286 / 621; border-radius: calc(var(--w, 230px) * .15); padding: calc(var(--w, 230px) * .035);
  background: linear-gradient(160deg, #2a2016, #0c0805 60%); box-shadow: 0 0 0 2px #6e4a1c, 0 24px 40px -12px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 220, 150, .2);
}
.phone .screen { width: 100%; height: 100%; border-radius: calc(var(--w, 230px) * .12); overflow: hidden; background: var(--sky); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Reveal on scroll (only when JS has marked the page; content is visible without JS). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- footer: the dark shelf ---------------------------------------------------------- */
.foot {
  position: relative; padding: 34px 0 40px; color: var(--tan); font-size: 14.5px;
  background: linear-gradient(rgba(14, 8, 3, .62), rgba(14, 8, 3, .62)), var(--grain) 0 0 / 64px 64px, #1e1208; border-top: 3px solid var(--wood-border);
}
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--cream); font-weight: 800; text-decoration: none; padding: 6px 0; }
.foot nav a:hover { color: var(--brass); }
.foot .fine { margin: 18px 0 0; max-width: 78ch; color: var(--tan); line-height: 1.6; font-size: 13.5px; }
.foot .fine a { color: var(--teal-text); }
.foot .cast-row { position: absolute; right: var(--gutter); top: -58px; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }

/* ---------- reduced motion: the world holds still ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .firefly { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
