/* Mahjong Meadow website. Colours and fonts come from the game itself. */
/* Paper Ghost studio mark (matches paperghost.io / afterisle.com) */
@font-face { font-family: Unbounded; src: url(fonts/unbounded-latin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(fonts/dmsans-latin.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; }

:root {
  --cream: #F5F0E6;
  --paper: #EFE6CF;
  --paper-2: #E6DCC4;
  --teal: #1B4E48;
  --teal-deep: #133A35;
  --night: #0E2B27;
  --gold: #B48E3C;
  --gold-dark: #8E6C26;
  --sun: #E8BE2C;
  --glow: #FFF3A8;
  --coral: #D2603D;
  --rust: #A8432A;
  --blush: #F2B8C0;
  --ink: #2A2622;
  --ink-soft: #5E574C;
  --radius: 22px;
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0; color: var(--teal); letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before, .eyebrow::after { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 36em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto; z-index: 20; padding: 16px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 700 19px/1 var(--serif); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.pg-brand { gap: 10px; font: 700 15px/1.1 Unbounded, var(--sans); opacity: .92; }
.pg-brand img { width: 34px; height: auto; border-radius: 0; box-shadow: none; transition: transform .3s; }
.pg-brand:hover img { transform: rotate(-8deg) translateY(-2px); }
.pg-brand small { display: block; font: 500 12px/1 Figtree, var(--sans); letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.topnav { display: flex; gap: 6px; }
.topnav a { color: var(--cream); text-decoration: none; font: 600 15px/1 var(--sans); padding: 10px 12px; border-radius: 999px; opacity: .9; }
.topnav a:hover { background: rgba(245,240,230,.12); color: var(--cream); opacity: 1; }
.page .topbar { position: static; background: var(--teal); }

/* ---------- hero (dusk over the meadow) ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 8%, #2C6B5E 0%, #1B4E48 38%, var(--night) 100%); color: var(--cream); padding: 96px 16px 150px; }
.hero::after { /* soft dawn at the bottom of the hero */ content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: -2;
  background: radial-gradient(70% 90% at 50% 100%, rgba(232,190,44,.28), transparent 70%); }
.moon { position: absolute; top: 9%; right: 12%; width: clamp(70px, 10vw, 130px); z-index: -1; filter: drop-shadow(0 0 40px rgba(255,243,168,.45)); animation: moon 9s ease-in-out infinite alternate; }
@keyframes moon { to { transform: translateY(10px); } }
.stars { position: absolute; inset: 0; z-index: -3; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff7 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 44% 22%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff8 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 78% 30%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 90% 6%, #fff7 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 40%, #fff5 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 4%, #fff6 50%, transparent 51%),
  radial-gradient(1px 1px at 36% 34%, #fff4 50%, transparent 51%), radial-gradient(1px 1px at 85% 44%, #fff4 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.flowers { position: absolute; bottom: -2px; z-index: 2; height: 100%; width: auto; max-width: 40vw; object-fit: cover; object-position: top; pointer-events: none; transform-origin: bottom center; }
.flowers.l { left: -2%; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 99%); mask-image: linear-gradient(to right, #000 70%, transparent 99%); animation: sway 7s ease-in-out infinite alternate; }
.flowers.r { right: -2%; -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 99%); mask-image: linear-gradient(to left, #000 70%, transparent 99%); animation: sway 8s ease-in-out -3s infinite alternate-reverse; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.hills { position: absolute; inset: auto 0 -1px; width: 100%; height: clamp(120px, 18vw, 240px); z-index: 1; }

.fireflies { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ff { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 10px 3px rgba(255,243,168,.75), 0 0 26px 8px rgba(232,190,44,.35);
  animation: ff-drift var(--d, 14s) ease-in-out var(--delay, 0s) infinite alternate, ff-blink var(--b, 3s) ease-in-out var(--delay, 0s) infinite; }
@keyframes ff-drift { 0% { transform: translate(0,0); } 33% { transform: translate(var(--x1), var(--y1)); } 66% { transform: translate(var(--x2), var(--y2)); } 100% { transform: translate(var(--x3), var(--y3)); } }
@keyframes ff-blink { 0%, 100% { opacity: .15; } 45%, 60% { opacity: 1; } }

.title-card { position: relative; z-index: 5; width: min(560px, 100%); background: var(--cream); color: var(--ink); text-align: center;
  border-radius: 28px; padding: 48px clamp(22px, 5vw, 52px) 38px; border: 2px solid var(--gold);
  box-shadow: 0 6px 0 var(--gold), 0 30px 80px rgba(4,20,17,.55), inset 0 0 0 7px var(--cream), inset 0 0 0 8.5px rgba(180,142,60,.45); }
.title-card h1 { font-size: clamp(46px, 8.4vw, 82px); font-weight: 800; line-height: .95; color: var(--teal); }
.title-card h1 span { display: block; color: var(--coral); }
.title-card h1 em { font-style: normal; display: inline-block; }
.rule { display: block; width: 62%; height: 2px; margin: 20px auto 18px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); position: relative; }
.rule::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: var(--coral); border: 2px solid var(--cream); transform: translate(-50%,-50%) rotate(45deg); box-shadow: 0 0 0 1.5px var(--gold); }
.title-card .tag { font: 500 clamp(17px, 2.4vw, 20px)/1.4 var(--sans); color: var(--ink-soft); }
.card-tile { position: absolute; width: clamp(64px, 11vw, 96px); filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.card-tile.l { left: -40px; top: -44px; rotate: -14deg; }
.card-tile.r { right: -38px; top: -40px; rotate: 13deg; }
.card-fly { position: absolute; top: -40px; left: 50%; width: 54px; translate: -50% 0; animation: hover 3.2s ease-in-out infinite alternate; }
@keyframes hover { to { transform: translateY(-8px) rotate(6deg); } }
/* ONE LOGO (Jessie, Nov 27: "make sure when the logo is displayed anywhere its the same one in the same preportions"): the same
   title card as the game (meadow-2/m2-iphone.css, "ONE LOGO"). Every size is a share of the card's width (--cw), so the tiles,
   name, gold rule and line under it sit in the same places at every screen size. No small firefly on the card, like the game. */
.title-card { --cw: min(560px, 100vw - 32px); width: var(--cw); border-width: 1.5px; border-radius: calc(var(--cw) * .076);
  padding: calc(var(--cw) * .12) calc(var(--cw) * .05) calc(var(--cw) * .08); box-shadow: 0 6px 0 var(--gold), 0 30px 80px rgba(4,20,17,.55); }
.title-card { border-width: 2px; }
.title-card::before { content: ''; position: absolute; z-index: 0; inset: calc(var(--cw) * .016); border: 1.5px solid #C9A24A; border-radius: calc(var(--cw) * .062); pointer-events: none; }
.title-card::after { content: ''; position: absolute; z-index: 0; inset: calc(var(--cw) * .034); border: 2px dotted #B48E3C; border-radius: calc(var(--cw) * .046); pointer-events: none; }
.title-card > * { position: relative; z-index: 1; }
.title-card h1 { font-family: var(--serif); font-size: calc(var(--cw) * .125); font-weight: 700; line-height: .98; letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(180,142,60,.35); font-variation-settings: "opsz" 48; }
.title-card h1 span { font-size: calc(var(--cw) * .15); }
.title-card .rule { margin: calc(var(--cw) * .045) auto 0; }
.title-card .tag { font: 600 calc(var(--cw) * .044)/1.35 'DM Sans', var(--sans); color: #5E574C; margin-top: calc(var(--cw) * .04); }
.title-card .tag small { display: block; font: 500 calc(var(--cw) * .034)/1.4 var(--sans); color: var(--ink-soft); margin-top: 4px; }
.title-card .card-tile { position: absolute; z-index: 2; width: calc(var(--cw) * .15); top: calc(var(--cw) * -.1); }
.title-card .card-tile.l { left: calc(var(--cw) * .025); right: auto; rotate: -14deg; } .title-card .card-tile.r { right: calc(var(--cw) * .025); left: auto; rotate: 14deg; }
.title-card .cta-row { margin-top: calc(var(--cw) * .05); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

.store-badge { display: inline-flex; align-items: center; gap: 12px; background: #111; color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 20px 10px 16px; border: 1.5px solid #444; line-height: 1.1; text-align: left; }
.store-badge svg { width: 26px; height: 30px; flex: none; }
.store-badge small { display: block; font: 500 12px/1.2 var(--sans); opacity: .85; letter-spacing: .02em; }
.store-badge b { display: block; font: 600 20px/1.1 var(--sans); letter-spacing: -.01em; }
.store-badge:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 700 18px/1 var(--serif);
  text-decoration: none; background: var(--teal); color: var(--cream); border: 0; cursor: pointer; box-shadow: 0 4px 0 var(--teal-deep); transition: transform .15s, box-shadow .15s; }
.btn:hover { color: var(--cream); transform: translateY(-1px); box-shadow: 0 5px 0 var(--teal-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn.cream { background: var(--cream); color: var(--teal); border: 1.5px solid var(--gold); box-shadow: 0 4px 0 var(--gold); }
.btn.cream:hover { color: var(--teal); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; z-index: 6; color: var(--cream); opacity: .8; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: grid; justify-items: center; gap: 8px; }
.scroll-hint::after { content: ''; width: 12px; height: 12px; border-right: 2px solid; border-bottom: 2px solid; rotate: 45deg; animation: bob 1.6s ease-in-out infinite; }
.scroll-hint:hover { color: var(--glow); }
@keyframes bob { 50% { transform: translate(4px, 4px); } }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: clamp(48px, 7vw, 88px) 0; }
.paper { background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.deep { background: var(--teal); color: var(--cream); }
.deep h2, .deep h3 { color: var(--cream); }
.deep .lede { color: rgba(245,240,230,.82); }
.deep .eyebrow { color: var(--sun); }
.scallop { position: absolute; left: 0; right: 0; height: 14px; pointer-events: none; background: radial-gradient(circle at 13px 14px, var(--c) 12.5px, transparent 13.5px) repeat-x; background-size: 26px 14px; background-position: center bottom; }
.scallop.top { top: -1px; height: 15px; background: radial-gradient(circle at 13px 1px, var(--c) 12.5px, transparent 13.5px) repeat-x; background-size: 26px 15px; background-position: center top; }

/* intro: about the game */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro h2 { margin-bottom: 20px; }
.intro .lede + .lede { margin-top: 16px; }
.tile-fan { position: relative; height: 360px; }
.tile-fan img { position: absolute; width: 132px; left: 50%; top: 50%; filter: drop-shadow(0 12px 18px rgba(42,38,34,.22)); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.tile-fan:hover img { transform: translate(-50%,-50%) rotate(var(--r)) translate(var(--hx), var(--hy)); }
.tile-fan img { transform: translate(-50%,-50%) rotate(var(--r)) translate(var(--x), var(--y)); }

/* the playable mini-board */
.play { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.play h2 { margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: rgba(245,240,230,.88); }
.steps b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--teal); font: 800 17px/1 var(--serif); box-shadow: 0 3px 0 var(--gold); }
.board-wrap { position: relative; background: var(--teal-deep); border-radius: 30px; padding: clamp(18px, 3vw, 30px); box-shadow: inset 0 0 0 2px rgba(180,142,60,.5), 0 30px 60px rgba(0,0,0,.25);
  background-image: radial-gradient(circle at 20px 20px, rgba(245,240,230,.05) 2px, transparent 3px); background-size: 40px 40px; }
.board-head { display: flex; justify-content: space-between; align-items: center; color: var(--cream); margin-bottom: 16px; font: 700 18px/1 var(--serif); gap: 12px; }
.board-head #left { font: 600 14px/1 var(--sans); background: rgba(245,240,230,.1); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 1.4vw, 12px); }
.tile { position: relative; aspect-ratio: 180 / 278; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; transition: transform .2s, filter .2s; -webkit-tap-highlight-color: transparent; }
.tile img { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.tile:hover { transform: translateY(-3px); }
.tile.sel { transform: translateY(-6px) scale(1.04); }
.tile.sel img { filter: drop-shadow(0 0 10px rgba(255,243,168,.95)) drop-shadow(0 0 22px rgba(232,190,44,.7)); }
.tile.nope { animation: nope .35s; }
@keyframes nope { 25% { transform: translateX(-5px) rotate(-2deg); } 75% { transform: translateX(5px) rotate(2deg); } }
.tile.gone { visibility: hidden; pointer-events: none; }
.tile.hint img { animation: hintglow 1.2s ease-in-out infinite alternate; }
@keyframes hintglow { to { filter: drop-shadow(0 0 12px rgba(255,243,168,.9)); } }
.spark { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px 3px rgba(255,243,168,.85); pointer-events: none; z-index: 60; }
.board-done { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; border-radius: 30px; background: rgba(14,43,39,.78); backdrop-filter: blur(3px); color: var(--cream); padding: 24px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.board-done.on { opacity: 1; pointer-events: auto; }
.board-done h3 { color: var(--cream); font-size: 32px; margin: 10px 0 8px; }
.board-done img { width: 70px; margin: 0 auto; animation: hover 2.4s ease-in-out infinite alternate; }
.board-done p { color: rgba(245,240,230,.85); margin-bottom: 20px; }

/* screenshots */
.shots-head { margin-bottom: clamp(24px, 4vw, 40px); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 32px); align-items: end; }
.phone { position: relative; margin: 0; }
.phone .frame { position: relative; border-radius: 42px; padding: 9px; background: #1d1d1f; box-shadow: 0 0 0 2px #3a3a3c, 0 30px 50px rgba(42,38,34,.28); }
.phone .frame img { width: 100%; height: auto; border-radius: 34px; aspect-ratio: 390 / 844; object-fit: cover; }
.phone .frame::before { content: ''; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 30%; height: 20px; border-radius: 99px; background: #000; z-index: 2; }
.phone figcaption { text-align: center; margin-top: 18px; font: 600 16px/1.35 var(--sans); color: var(--ink-soft); }
.phone figcaption b { display: block; font: 700 20px/1.2 var(--serif); color: var(--teal); margin-bottom: 2px; }
.shots .phone:nth-child(odd) { transform: translateY(-28px); }

/* worlds */
.worlds-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.worlds-head .lede { max-width: 32em; margin-top: 14px; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--cream); color: var(--teal); cursor: pointer; font: 700 22px/1 var(--sans); box-shadow: 0 3px 0 var(--gold); }
.arrows button:hover { background: #fff; }
.worlds { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, (100vw - 1120px) / 2) 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.worlds::-webkit-scrollbar { display: none; }
.world { scroll-snap-align: center; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; background: var(--paper); box-shadow: 0 0 0 1.5px var(--gold), 0 16px 30px rgba(42,38,34,.2); transition: transform .3s; }
.world:hover { transform: translateY(-6px) rotate(-.6deg); }
.world > img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.world:hover > img { transform: scale(1.06) translateY(-2%); }
.world .label { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--cream); border-radius: 16px; padding: 12px 14px; box-shadow: 0 0 0 1.5px var(--gold), 0 3px 0 var(--gold); }
.world .label b { display: block; font: 700 19px/1.15 var(--serif); color: var(--teal); }
.world .label small { display: block; font: 600 13px/1.3 var(--sans); color: var(--ink-soft); margin-top: 3px; }
.world.locked > img { transform: none !important; }
.world .fog { position: absolute; inset: -20%; pointer-events: none; background:
  radial-gradient(40% 25% at 30% 30%, rgba(245,240,230,.55), transparent 70%),
  radial-gradient(45% 30% at 70% 60%, rgba(245,240,230,.45), transparent 70%),
  radial-gradient(35% 22% at 40% 85%, rgba(245,240,230,.4), transparent 70%);
  animation: fog 14s ease-in-out infinite alternate; }
.world.locked:nth-child(even) .fog { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes fog { to { transform: translate(8%, -6%) scale(1.08); } }
.world .seal { position: absolute; left: 50%; top: 40%; translate: -50% -50%; display: grid; justify-items: center; gap: 10px; text-align: center; }
.world .seal small { font: 700 14px/1.25 var(--serif); color: var(--teal); background: rgba(245,240,230,.82); padding: 6px 12px; border-radius: 999px; }
.world .lock { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--teal); box-shadow: 0 0 0 2px var(--gold), 0 4px 0 var(--gold), 0 10px 24px rgba(27,78,72,.25); }
.world .lock svg { width: 28px; height: 28px; }
.world .seal-fly { position: absolute; width: 34px; top: -14px; right: -16px; animation: hover 2.6s ease-in-out infinite alternate; }
.world.locked:hover .lock { animation: nope .5s; }
.world.locked { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.world.locked:hover { transform: translateY(-6px) rotate(.6deg); }
.world .num { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--cream); font: 800 17px/1 var(--serif); box-shadow: 0 0 0 3px var(--cream), 0 3px 8px rgba(0,0,0,.25); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.feature { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 24px 24px; box-shadow: 0 0 0 1.5px var(--gold), 0 4px 0 var(--gold); }
.feature .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; margin-bottom: 18px; box-shadow: inset 0 0 0 1.5px rgba(180,142,60,.5); }
.feature .ico img { width: 34px; }
.feature .ico svg { width: 30px; height: 30px; }
.feature h3 { color: var(--teal); margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 17px; }

/* coming soon */
.soon { text-align: center; position: relative; overflow: hidden; background: linear-gradient(#F5F0E6, #F6E8C2); }
.soon .icon { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 30px; box-shadow: 0 18px 40px rgba(27,78,72,.3); animation: hover 4s ease-in-out infinite alternate; }
.soon h2 { margin-bottom: 14px; }
.soon .cta-row { margin-top: 24px; }
.soon .petal { position: absolute; top: -40px; width: 22px; opacity: .9; pointer-events: none; animation: fall linear infinite; }
@keyframes fall { to { transform: translate(var(--dx), 900px) rotate(var(--rot)); } }

/* footer */
footer { background: var(--night); color: rgba(245,240,230,.78); padding: 40px 0 28px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
footer .brand { color: var(--cream); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--cream); text-decoration: none; }
footer a:hover { color: var(--sun); }
footer .fine { width: 100%; font-size: 14px; opacity: .7; border-top: 1px solid rgba(245,240,230,.12); padding-top: 22px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.shots .phone.reveal.in:nth-child(odd) { transform: translateY(-28px); }

/* ---------- simple pages (privacy, support) ---------- */
.page-hero { background: var(--teal); color: var(--cream); padding: 28px 0 52px; position: relative; }
.page-hero h1 { color: var(--cream); font-size: clamp(38px, 6vw, 60px); }
.page-hero p { color: rgba(245,240,230,.82); margin-top: 12px; font-size: 19px; }
.doc { background: var(--cream); padding: 40px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 28px; margin: 32px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.note { background: var(--paper); border-radius: 16px; padding: 20px 22px; box-shadow: inset 0 0 0 1.5px rgba(180,142,60,.5); }
.contact-card { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; background: #fff8; border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 0 0 1.5px var(--gold), 0 4px 0 var(--gold); margin-bottom: 20px; }
.contact-card p { font-size: 17px; color: var(--ink-soft); }
details { background: #fff8; border-radius: 16px; padding: 0 22px; box-shadow: 0 0 0 1.5px rgba(180,142,60,.55); }
details + details { margin-top: 12px; }
summary { cursor: pointer; padding: 18px 0; font: 700 19px/1.3 var(--serif); color: var(--teal); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 600 24px/1 var(--sans); color: var(--gold-dark); transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { padding-bottom: 20px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .intro, .play { grid-template-columns: 1fr; }
  .tile-fan { height: 240px; order: -1; }
  .tile-fan img { width: 100px; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone { scroll-snap-align: center; }
  .shots .phone:nth-child(odd), .shots .phone.reveal.in:nth-child(odd) { transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .topnav a.hide-sm { display: none; }
  .brand { font-size: 17px; white-space: nowrap; } .brand img { width: 34px; height: 34px; }
  .pg-brand { font-size: 15px; } .pg-brand img { width: 34px; height: auto; }
  .topnav a { padding: 10px 8px; }
  .hero { padding: 96px 16px 140px; }
  .flowers { width: 62vw; height: auto; max-width: none; }
  .flowers.l { left: -14vw; } .flowers.r { right: -14vw; }
  .moon { top: 82px; right: 8%; }
  .hero { padding-top: 120px; }
  .arrows { display: none; }
  .features { gap: 12px; }
  .feature { padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .feature .ico { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .feature .ico img { width: 26px; } .feature h3 { font-size: 19px; margin-bottom: 2px; } .feature p { font-size: 15.5px; }
  .worlds { grid-auto-columns: 74%; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ff { opacity: .8; }
}

/* Sound button on the little board */
.board-tools { display: flex; align-items: center; gap: 8px; }
.board-head .board-tools > span { font: 600 14px/1 var(--sans); background: rgba(245,240,230,.1); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.sound-btn { width: 32px; height: 32px; border: 0; border-radius: 50%; padding: 6px; background: rgba(245,240,230,.1); color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.sound-btn:hover { background: rgba(245,240,230,.2); }
.sound-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.sound-btn svg { width: 20px; height: 20px; }
.sound-btn .cross { display: none; }
.sound-btn.off .wave { display: none; }
.sound-btn.off .cross { display: inline; }
