@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/figtree-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/fredoka-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/kaushan-script-latin-400-normal.woff2) format('woff2'); }

/* Layout: a phone-width app column over a full-screen 3D sky. Each tab owns a food planet and the
   camera jumps between them through hyperspace. The loyalty card is a walnut plank, like the shop sign;
   everything under it sits on smoked-glass sheets. Single dark look by choice. */
:root {
  --space: #0b0705;
  --night: #17100b;
  --walnut: #5a321c;
  --walnut-deep: #2a170d;
  --cream: #fff1dc;
  --sand: #d6bc9c;
  --dust: #a58c70;
  --amber: #f2a93b;
  --ember: #cd481e;
  --ok: #8fd19e;
  --line: rgba(255, 241, 220, 0.13);
  --glass: rgba(24, 15, 10, 0.72);
  --glass-hi: rgba(52, 32, 20, 0.72);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --font-brand: 'Kaushan Script', 'Brush Script MT', cursive;
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--space); }
html, body { overflow-x: clip; }
body {
  background: radial-gradient(60% 40% at 85% 12%, rgba(184, 106, 42, 0.25), transparent 70%), radial-gradient(50% 35% at 10% 70%, rgba(122, 58, 24, 0.2), transparent 70%), var(--space);
  color: var(--cream); font-family: var(--font-body); font-size: 16px; line-height: 1.45; min-height: 100vh;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
#space, #warp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#warp { pointer-events: none; }
.app {
  position: relative; z-index: 1; max-width: 440px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 12px calc(104px + env(safe-area-inset-bottom, 0px));
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.app.warping { opacity: 0; transform: scale(1.08); pointer-events: none; }
.view { display: flex; flex-direction: column; gap: 18px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; letter-spacing: -0.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.sub { color: var(--sand); font-size: 14px; }

/* top bar */
.top { display: flex; align-items: center; gap: 10px; }
.top-logo { width: 46px; height: 46px; border-radius: 50%; background: var(--walnut-deep); border: 1.5px solid rgba(255, 220, 170, 0.3); object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
.brand-name { font-family: var(--font-brand); font-size: 29px; line-height: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.brand-place { font-size: 12px; color: var(--sand); margin-top: 4px; letter-spacing: 0.02em; }
.icon-btn { margin-left: auto; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .pip { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); border: 2px solid var(--night); }

/* hero: the mascot (animated clip, or still image as fallback) beside the planet */
.hero { position: relative; height: var(--hero-h, 240px); margin-bottom: -20px; }
.mascot { position: absolute; left: -22px; bottom: -8px; height: calc(var(--hero-h, 240px) * 1.073); aspect-ratio: 3 / 4; cursor: pointer; transform-origin: 55% 65%; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.5)); }
.mascot canvas, .mascot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.mascot.still img { animation: float 6s ease-in-out infinite; }
.mascot.still.hit img { animation: hit 0.75s cubic-bezier(.3, .7, .3, 1); }
.mascot.still.happy img { animation: happy 1.15s cubic-bezier(.3, .6, .4, 1); }
.mascot { transition: transform 0.5s cubic-bezier(.3, .7, .3, 1); }
.mascot.joy { transform: translateY(-8px) scale(0.86); z-index: 30; }
.mascot.spin { animation: spin 0.9s cubic-bezier(.4, 0, .2, 1); }
.mascot.arrive { animation: arrive 0.7s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes hit { 0% { transform: rotate(-2deg); } 30% { transform: translate(-8px, -14px) rotate(-16deg); } 55% { transform: translate(14px, 30px) rotate(16deg); } 100% { transform: rotate(-2deg); } }
@keyframes happy { 0% { transform: translateY(0) scale(1, 1); } 14% { transform: translateY(8px) scale(1.07, 0.9); } 32% { transform: translateY(-34px) rotate(6deg) scale(0.95, 1.07); } 48% { transform: translateY(4px) rotate(-4deg) scale(1.06, 0.93); } 66% { transform: translateY(-20px) rotate(5deg) scale(0.97, 1.04); } 82% { transform: translateY(2px) rotate(-3deg) scale(1.03, 0.97); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes spin { 0% { transform: rotate(0deg) scale(1); } 50% { transform: translateY(-18px) rotate(180deg) scale(1.08); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes arrive { 0% { transform: translate(42%, -8%) scale(0.05) rotate(-220deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(0deg) scale(1); opacity: 1; } }

/* speech bubble under the mascot */
.bubble { position: relative; align-self: flex-start; max-width: 100%; background: var(--cream); color: #2b1507; border-radius: 22px; padding: 12px 16px 13px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
.bubble::before { content: ""; position: absolute; left: 54px; top: -9px; width: 20px; height: 20px; background: var(--cream); transform: rotate(45deg); border-radius: 4px; }
.bubble h1 { font-size: 22px; line-height: 1.15; position: relative; }
.bubble p { font-size: 15px; color: #5a3a22; margin-top: 2px; position: relative; }
.bubble strong { color: var(--ember); font-weight: 700; }

/* the loyalty card: a walnut plank */
.card {
  position: relative; border-radius: var(--r-lg); padding: 18px 16px 14px; overflow: hidden;
  background-color: var(--walnut);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.22' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0 0.02  0 0 0 1.6 -0.62'/%3E%3C/filter%3E%3Crect width='600' height='400' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(165deg, #80492a 0%, #5a321c 42%, #3c200e 100%);
  background-size: cover;
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 170, 0.34), inset 0 -3px 0 rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 220, 170, 0.16);
}
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 230, 190, 0.16) 0%, rgba(255, 230, 190, 0) 34%); pointer-events: none; }
.card.thud { animation: thud 0.35s ease-out 0.38s; }
@keyframes thud { 0% { transform: translateY(0); } 35% { transform: translateY(5px) rotate(0.4deg); } 100% { transform: translateY(0); } }
.card-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-top h2 { font-size: 24px; line-height: 1.1; margin-top: 3px; }
.count { font-family: var(--font-display); font-weight: 600; font-size: 38px; line-height: 0.9; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.count small { font-size: 17px; color: var(--sand); font-weight: 500; }
/* milestone track */
.track { position: relative; height: 46px; margin: 16px 6px 14px; }
.track-bar { position: absolute; left: 0; right: 0; top: 14px; height: 8px; border-radius: 99px; background: rgba(20, 10, 4, 0.55); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 220, 170, 0.14); overflow: hidden; }
.track-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f6c56a, var(--amber) 60%, #ff8a3d); box-shadow: 0 0 12px rgba(242, 169, 59, 0.7); transition: width 0.7s cubic-bezier(.2, .8, .2, 1); }
.node { position: absolute; top: 0; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; display: grid; place-items: center; background: #2a170d; color: var(--amber); box-shadow: inset 0 0 0 2px rgba(242, 169, 59, 0.75), 0 4px 8px rgba(0, 0, 0, 0.45); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.node:last-child { margin-left: -36px; }
.node svg { width: 19px; height: 19px; }
.node.on { background: var(--amber); color: #33190a; box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.28), 0 0 18px rgba(242, 169, 59, 0.75); }
.node b { position: absolute; top: 39px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--sand); white-space: nowrap; }
.node:last-child b { left: auto; right: 0; transform: none; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cell { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 10, 4, 0.5); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 220, 170, 0.18); color: var(--ember); }
.cell svg { width: 76%; height: 76%; }
.cell.done { background: radial-gradient(circle at 35% 30%, #fffaf0, var(--cream) 60%, #ecd6b4); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.5), inset 0 -2px 0 rgba(120, 70, 20, 0.18); }
.cell.reward { color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber), inset 0 3px 6px rgba(0, 0, 0, 0.5); }
.cell.reward svg { width: 56%; height: 56%; }
.cell.reward.done { background: radial-gradient(circle at 35% 30%, #ffd98a, var(--amber) 65%, #d9861c); color: #33190a; box-shadow: 0 0 18px rgba(242, 169, 59, 0.65), inset 0 -2px 0 rgba(120, 60, 0, 0.3); }
.cell .ink { width: 96%; height: 96%; object-fit: contain; opacity: var(--o, 0.9); transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); mix-blend-mode: multiply; pointer-events: none; }
.cell.pop .ink { animation: ink-press 0.42s cubic-bezier(.3, 1.3, .5, 1) calc(var(--d, 360ms) + 60ms) backwards; }
@keyframes ink-press { from { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(1.35); } }
.cell.pop { animation: pop 0.5s cubic-bezier(.2, 1.4, .4, 1) var(--d, 360ms) backwards; }
.cell.pop::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--amber); animation: ring 0.6s ease-out calc(var(--d, 360ms) + 40ms) backwards; opacity: 0; }
@keyframes pop { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; border-top: 1px dashed rgba(255, 220, 170, 0.22); font-size: 12px; color: var(--sand); }
.card-foot span:first-child { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

/* buttons */
.btn { min-height: 54px; border-radius: 18px; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; width: 100%; }
.btn-main { background: linear-gradient(180deg, #ffc35a, var(--amber)); color: #2b1507; box-shadow: 0 6px 0 #a8651a, 0 16px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-main:active { transform: translateY(4px); box-shadow: 0 2px 0 #a8651a, inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { background: var(--glass); color: var(--cream); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-small { min-height: 40px; width: auto; font-size: 14.5px; padding: 6px 14px; border-radius: 12px; font-family: var(--font-body); font-weight: 700; }
.btn svg { width: 21px; height: 21px; flex: none; }
.demo-line { display: flex; align-items: center; justify-content: center; gap: 8px; }
.link-btn { background: none; border: 0; cursor: pointer; color: var(--sand); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 6px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 241, 220, 0.14); color: var(--sand); }

/* smoked-glass sheets */
.panel { background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 241, 220, 0.07); }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { font-size: 20px; line-height: 1.15; margin-top: 2px; }

/* rewards */
.rw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rw { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: rgba(12, 8, 6, 0.42); border: 1px solid transparent; }
.rw-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 169, 59, 0.12); color: var(--amber); }
.rw-ico svg { width: 25px; height: 25px; }
.rw-txt { flex: 1; min-width: 0; }
.rw-txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }
.rw-txt span { font-size: 13px; color: var(--sand); }
.rw-bar { height: 5px; border-radius: 99px; background: rgba(255, 241, 220, 0.12); margin-top: 6px; overflow: hidden; }
.rw-bar i { display: block; height: 100%; border-radius: 99px; background: var(--amber); transition: width 0.6s ease; }
.rw.on { background: rgba(242, 169, 59, 0.14); border-color: rgba(242, 169, 59, 0.55); }
.rw.on .rw-ico { background: var(--amber); color: #33190a; }
.pill-ok { flex: none; font-size: 12px; font-weight: 700; color: #0f2a15; background: var(--ok); border-radius: 999px; padding: 5px 10px; }
.lock { flex: none; color: var(--dust); }
.lock svg { width: 20px; height: 20px; display: block; }

/* news */
.feature { position: relative; border-radius: var(--r-md); padding: 16px; overflow: hidden; background: linear-gradient(135deg, #6b3a1c 0%, #3a1f10 60%, #24130a 100%); border: 1px solid rgba(255, 220, 170, 0.18); }
.feature::after { content: ""; position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 169, 59, 0.45), rgba(242, 169, 59, 0) 68%); pointer-events: none; }
.feature .when { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #2b1507; background: var(--amber); border-radius: 999px; padding: 3px 9px; }
.feature .when::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.feature h3 { font-size: 21px; line-height: 1.15; margin-top: 10px; position: relative; }
.feature p { font-size: 14.5px; color: var(--sand); margin-top: 4px; position: relative; max-width: 30ch; }
.feed { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid var(--line); }
.dot { flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(242, 169, 59, 0.12); display: grid; place-items: center; color: var(--amber); }
.dot svg { width: 19px; height: 19px; }
.feed b { display: block; font-weight: 600; font-size: 15px; }
.feed span { font-size: 13px; color: var(--sand); }
.feed time { margin-left: auto; flex: none; font-size: 12px; color: var(--dust); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.4); cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--sand); display: inline-flex; align-items: center; gap: 7px; }
.chip::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dust); flex: none; }
.chip[aria-pressed="true"] { background: var(--cream); color: #2b1507; border-color: var(--cream); }
.chip[aria-pressed="true"]::before { border-color: var(--ember); background: var(--ember); box-shadow: inset 0 0 0 3px var(--cream); }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.4); font-weight: 600; font-size: 14.5px; color: var(--sand); }
.chip-radio input:checked + span { background: var(--cream); color: #2b1507; border-color: var(--cream); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* practical info */
.info { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.info li { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); }
.info li:first-child { border-top: 0; padding-top: 0; }
.info b { display: block; font-weight: 600; font-size: 15px; user-select: all; }
.open-pill { display: inline-block; vertical-align: 2px; margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: rgba(143, 209, 158, 0.16); color: var(--ok, #8fd19e); border: 1px solid rgba(143, 209, 158, 0.45); user-select: none; }
.open-pill.closed { background: rgba(205, 72, 30, 0.16); color: #ffb199; border-color: rgba(255, 177, 153, 0.45); }
.info span { font-size: 13px; color: var(--sand); }
.foot-note { text-align: center; font-size: 12px; color: var(--dust); }

/* other tabs: the planet shows in the empty right side of the header */
.page-head { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-right: 40%; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
.page-head h1 { font-size: 33px; line-height: 1.05; }
.page-head p { color: var(--sand); }
.menu-cat h2 { font-size: 19px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.menu-list li:first-child { border-top: 0; }
.price { color: var(--dust); font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #2b1507; background: var(--amber); border-radius: 999px; padding: 3px 9px; }
.note { font-size: 13.5px; color: var(--sand); background: rgba(58, 36, 16, 0.92); border: 1px solid rgba(242, 169, 59, 0.35); border-radius: var(--r-sm); padding: 10px 12px; }
.contact { font-size: 14px; color: var(--sand); text-align: center; }
.contact b { color: var(--cream); user-select: all; }

/* forms */
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.6); padding: 10px 14px; color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.25); }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(214, 188, 156, 0.55); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.6); font-size: 26px; font-family: var(--font-display); cursor: pointer; line-height: 1; }
.stepper output { font-family: var(--font-display); font-weight: 600; font-size: 34px; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.stepper span { color: var(--sand); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.err { color: #ffb199; font-size: 13.5px; font-weight: 600; }
.done-card { display: flex; flex-direction: column; gap: 12px; }
.done-card h2 { font-size: 22px; color: var(--amber); }
.recap { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.recap dt { color: var(--sand); }
.recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, rgba(11, 7, 5, 0), rgba(11, 7, 5, 0.94) 38%); }
.tabs-in { max-width: 408px; margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: rgba(40, 23, 13, 0.9); border: 1px solid rgba(255, 220, 170, 0.2); border-radius: 26px; padding: 6px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 241, 220, 0.08); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 20px; color: var(--sand); text-decoration: none; font-size: 11.5px; font-weight: 700; min-height: 54px; transition: background 0.2s, color 0.2s; }
.tab svg { width: 23px; height: 23px; }
.tab[aria-current="page"] { background: linear-gradient(180deg, #fff7ea, var(--cream)); color: #2b1507; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }

/* hyperspace clip + stand-in flyer */
#jump { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.18s linear; background: var(--space); }
#jump.on { opacity: 1; }
#flyer { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 0 16px rgba(242, 169, 59, 0.6)); }
.spark { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; }
.spark.star { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: #ffd27a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.spark.seed { width: 9px; height: 15px; margin: -7px 0 0 -4px; background: #fffaf0; border-radius: 50%; }

/* QR sheet + toast */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: rgba(6, 4, 3, 0.74); }
.sheet-in { width: 100%; max-width: 440px; margin-inline: auto; background: linear-gradient(180deg, #2a180e, var(--night)); border: 1px solid var(--line); border-radius: 30px 30px 0 0; padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: up 0.3s ease-out; }
.sheet-in::before { content: ""; width: 44px; height: 5px; border-radius: 99px; background: rgba(255, 241, 220, 0.25); margin-bottom: 6px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-in h2 { font-size: 22px; }
#qr { width: 216px; height: 216px; background: var(--cream); border-radius: 22px; padding: 16px; image-rendering: pixelated; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.toast { position: fixed; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 30; max-width: min(400px, calc(100% - 32px)); background: var(--cream); color: #2b1507; font-weight: 600; padding: 12px 16px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot img, .card.thud, .cell.pop, .cell.pop::after, .cell.pop .ink, .sheet-in { animation: none !important; }
  .app, .toast, .track-fill, #jump { transition: none; }
}

/* ---------- the menu ----------
   Every dish is a little planet: its photo floats above its card. A sticky bar holds the
   "seul / en menu" switch and the category rail. */
.m-hero { position: relative; height: 348px; margin: -12px -16px -8px; overflow: hidden; }
.m-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 42%;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 98%); mask-image: linear-gradient(180deg, #000 52%, transparent 98%); }
video.m-hero-media { opacity: 0; transition: opacity 0.8s ease; }
video.m-hero-media.on { opacity: 1; }
.m-hero-media { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-2%); } }
.m-hero-txt { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.6); }
.m-hero h1 { font-family: var(--font-brand); font-weight: 400; font-size: 66px; line-height: 0.98; letter-spacing: 0; color: var(--cream); }
.m-hero p { color: var(--sand); font-size: 15px; }

.m-bar { position: sticky; top: 0; z-index: 3; margin: 0 -16px; padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(11, 7, 5, 0.98), rgba(11, 7, 5, 0.96) 82%, rgba(11, 7, 5, 0)); padding-bottom: 14px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 18px; background: rgba(40, 23, 13, 0.92); border: 1px solid rgba(255, 220, 170, 0.18); }
.seg button { border: 0; background: none; cursor: pointer; border-radius: 14px; min-height: 46px; padding: 5px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; color: var(--sand); transition: background 0.2s, color 0.2s; }
.seg b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.seg span { font-size: 11.5px; opacity: 0.85; }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, #ffc35a, var(--amber)); color: #2b1507; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.m-rail { display: flex; gap: 8px; overflow-x: auto; touch-action: pan-x pan-y; overscroll-behavior-x: contain; cursor: grab; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: 16px; }
.m-rail::-webkit-scrollbar { display: none; }
.m-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 4px 14px 4px 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(30, 18, 11, 0.9); color: var(--sand); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.m-chip img { width: 34px; height: 34px; border-radius: 50%; background: #120b07; object-fit: cover; }
.m-chip[aria-current="true"] { background: var(--cream); color: #2b1507; border-color: transparent; }

.m-sec { display: flex; flex-direction: column; scroll-margin-top: 150px; }
.m-banner { position: relative; height: 222px; margin: 0 -16px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
.m-banner img { position: absolute; right: -1%; top: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 40%); mask-image: linear-gradient(90deg, transparent 6%, #000 40%);
  opacity: 0; transform: translateX(26px) scale(1.04); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.m-sec.in .m-banner img { opacity: 1; transform: none; }
.m-banner-t { position: absolute; left: 18px; bottom: 16px; max-width: 58%; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.7); }
.m-banner h2 { font-family: var(--font-brand); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: 0; color: var(--cream); }
.m-banner p { font-size: 13.5px; color: var(--sand); }

.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 66px 12px; padding-top: 58px; }
.dish { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; padding: 86px 13px 13px; border-radius: 24px; border: 1px solid rgba(255, 220, 170, 0.16); cursor: pointer;
  background: linear-gradient(180deg, rgba(74, 44, 26, 0.9), rgba(26, 16, 10, 0.94)); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 241, 220, 0.08);
  opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2, .9, .3, 1); transition-delay: var(--rd, 0ms); }
.m-sec.in .dish { opacity: 1; transform: none; }
.dish:active { transform: scale(0.97); transition-duration: 0.1s; transition-delay: 0s; }
.dish::before { content: ""; position: absolute; left: 50%; top: -34px; width: 150px; height: 120px; margin-left: -75px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 169, 59, 0.32), rgba(242, 169, 59, 0)); pointer-events: none; }
.dish-img { position: absolute; left: 50%; top: -56px; width: 156px; height: 156px; margin-left: -78px; pointer-events: none; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.55)); animation: bob 5.5s ease-in-out infinite; animation-delay: var(--bd, 0s); }
.dish-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-sec:not(.live) .dish-img { animation-play-state: paused; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
.dish-name { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; line-height: 1.15; overflow-wrap: anywhere; }
.dish-desc { font-size: 12.5px; line-height: 1.32; color: var(--sand); }
.dish-foot { margin-top: auto; padding-top: 9px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.dish-price { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-price small { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--dust); margin-right: 3px; }
.dish-alt { font-size: 11.5px; color: var(--dust); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish .star { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #2b1507; background: var(--amber); border-radius: 999px; padding: 3px 8px; }
.dish.flip .dish-price { animation: flip 0.35s ease-out; }
@keyframes flip { from { opacity: 0; transform: translateY(8px); } }
/* a wide card: photo on the left */
.dish.wide { grid-column: 1 / -1; padding: 16px 14px 16px 158px; min-height: 132px; justify-content: center; }
.dish.wide::before { left: 78px; top: 50%; margin-top: -60px; }
.dish.wide .dish-img { left: 0; top: 50%; margin: -78px 0 0 0; }
.sizes { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.sizes th { font-weight: 600; color: var(--dust); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; padding: 0 0 3px 8px; }
.sizes td { padding: 4px 0 4px 8px; text-align: right; border-top: 1px solid var(--line); color: var(--sand); }
.sizes td:first-child, .sizes th:first-child { text-align: left; padding-left: 0; color: var(--cream); font-weight: 600; }
.sizes .on { color: var(--amber); font-weight: 700; }
.meats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; align-items: center; }
.meats b { font-size: 13px; color: var(--sand); margin-right: 2px; }
.meats span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255, 241, 220, 0.09); border: 1px solid var(--line); }
.m-order { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.m-legend { font-size: 12.5px; color: var(--dust); text-align: center; }
.check { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); border: 1px dashed rgba(242, 169, 59, 0.6); border-radius: 999px; padding: 1px 7px; margin-top: 3px; align-self: flex-start; }

/* dish sheet */
.ds { gap: 8px; max-height: 92vh; overflow-y: auto; }
.ds-stage { position: relative; width: 250px; height: 222px; margin: -4px 0 -8px; }
.ds-stage::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 169, 59, 0.36), rgba(242, 169, 59, 0)); }
.ds-ring { position: absolute; left: 50%; top: 52%; width: 246px; height: 86px; margin: -43px 0 0 -123px; border-radius: 50%; border: 1.5px solid rgba(255, 210, 122, 0.4); border-left-color: transparent; border-right-color: rgba(255, 210, 122, 0.12); transform: rotate(-14deg); animation: ring-turn 9s linear infinite; }
@keyframes ring-turn { to { transform: rotate(346deg); } }
.ds-stage img { position: absolute; left: 50%; top: 50%; width: 236px; height: 236px; margin: -118px 0 0 -118px; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.6)); animation: pop-in 0.5s cubic-bezier(.2, 1.3, .4, 1), bob 5.5s ease-in-out 0.5s infinite; }
@keyframes pop-in { from { transform: scale(0.6) rotate(-10deg); opacity: 0; } }
.ds h2 { font-family: var(--font-brand); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: 0; }
.ds-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 6px; }
.ds-prices.one { grid-template-columns: minmax(0, 1fr); }
.ds-p { border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 8, 6, 0.5); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ds-p.on { border-color: rgba(242, 169, 59, 0.7); background: rgba(242, 169, 59, 0.12); }
.ds-p b { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--amber); font-variant-numeric: tabular-nums; }
.ds-p span { font-size: 12.5px; color: var(--sand); }
.ds-p i { font-style: normal; font-size: 11.5px; color: var(--dust); }
.ds .sizes { font-size: 14.5px; margin-top: 4px; }
.ds-note { font-size: 12.5px; color: var(--dust); }
@media (prefers-reduced-motion: reduce) {
  .m-hero-media, .dish-img, .ds-ring, .ds-stage img, .dish.flip .dish-price { animation: none !important; }
  .dish, .m-banner img { opacity: 1; transform: none; transition: none; }
}
/* the mascot floats low in the menu picture: keep that part fully visible */
#view-menu .m-hero { height: 376px; }
#view-menu .m-hero-media { -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
#view-menu .m-hero-txt { right: 38%; }

/* ---------- planets: one per part of the menu, behind the cards ---------- */
.m-space { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.m-planet { position: absolute; width: min(60vw, 280px); aspect-ratio: 1; top: calc(46% - min(60vw, 280px) / 2); visibility: hidden; opacity: 0; will-change: transform, opacity; }
.m-planet.r { right: calc(min(60vw, 280px) * -0.16); }
.m-planet.l { left: calc(min(60vw, 280px) * -0.16); }
@media (min-width: 520px) { .m-planet.r { right: calc(50% - 300px); } .m-planet.l { left: calc(50% - 300px); } }
.m-stars { position: absolute; left: 0; top: 0; width: calc(100% + 1100px); height: calc(100% + 1100px); background-repeat: repeat; will-change: transform; }
.m-stars.far { opacity: 0.7; }
.m-stars.near { opacity: 0.9; }
.m-planet img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 40px rgba(242, 169, 59, 0.22)); animation: planet-turn 28s ease-in-out infinite alternate; }
@keyframes planet-turn { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.m-banner { height: 168px; -webkit-mask-image: none; mask-image: none; }
.m-banner img { display: none; }
.m-banner-t { max-width: 64%; }
.dish { background: linear-gradient(180deg, rgba(74, 44, 26, 0.86), rgba(26, 16, 10, 0.92)); }
.m-banner-t { text-shadow: 0 2px 14px rgba(0, 0, 0, 1), 0 0 30px rgba(11, 7, 5, 0.9); }
/* pizzas */
.pz-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.pz-seg button b { font-size: 15px; }
.pz-group { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 2px -40px; font-size: 16px; color: var(--cream); }
.pz-group:first-child { margin-top: -20px; }
.pz-group i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--dust); font-family: var(--font-body); white-space: nowrap; }
.dishes.pz .dish-desc { font-size: 12px; }
.ds-prices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-prices.three .ds-p b { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { .m-planet img { animation: none; } }
.pz-group span { text-shadow: 0 2px 12px rgba(0, 0, 0, 1); }
.pz-group i { background: rgba(20, 12, 8, 0.85); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }

/* when the planet sits on the left, the section title moves to the right */
.m-sec.pl-l .m-banner-t { left: auto; right: 18px; align-items: flex-end; text-align: right; }

.m-boss { display: flex; align-items: center; gap: 8px; margin: 2px 0 -4px; padding: 10px 12px; border-radius: 14px; border: 1px dashed rgba(242, 169, 59, 0.6); background: rgba(242, 169, 59, 0.1); color: var(--amber); font-size: 13.5px; font-weight: 700; }
.m-boss svg { width: 18px; height: 18px; flex: none; }
.ds-form { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; padding-top: 4px; border-top: 1px solid var(--line); }
.ds-form .eyebrow { text-align: center; }
.ds-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ds-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-fields.one { grid-template-columns: minmax(0, 1fr); }
.ds-fields label { font-size: 13px; }
.eur { position: relative; }
.eur input { padding-right: 30px !important; font-family: var(--font-display); font-weight: 600; font-size: 19px !important; text-align: right; }
.eur span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--sand); font-weight: 700; pointer-events: none; }
.ds-form .link-btn { align-self: center; }
#dish-sheet .sheet-in { max-height: 94vh; overflow-y: auto; }

/* ---------- the patron edits the whole menu ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-sec.in .dish.off { opacity: 0.55; }
.dish.off .dish-img { filter: grayscale(0.8) drop-shadow(0 18px 14px rgba(0, 0, 0, 0.55)); }
.dish .star.off-tag { background: var(--dust); color: #22130a; }
.dish-img.ph img, #ds-img.ph, #ed-img.ph { object-fit: cover; border-radius: 26px; border: 2px solid rgba(255, 241, 220, 0.22); }
.dish-img.ph { width: 132px; height: 132px; margin-left: -66px; top: -46px; }
.dish.wide .dish-img.ph { left: 12px; margin: -66px 0 0 0; }
.m-chip img.ph { border-radius: 50%; object-fit: cover; }
.dish.add { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; min-height: 76px; padding: 14px 16px; border: 1.5px dashed rgba(242, 169, 59, 0.7); background: rgba(242, 169, 59, 0.07); box-shadow: none; }
.dish.add::before { display: none; }
.dish.add .add-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #2b1507; font-size: 28px; font-weight: 700; line-height: 1; flex: none; }
.dish.add .dish-name { color: var(--amber); }
.dish.add .dish-desc { flex-basis: 100%; padding-left: 56px; margin-top: -4px; }
.m-edit { pointer-events: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; min-height: 40px; padding: 6px 13px; border-radius: 999px; border: 1.5px dashed rgba(242, 169, 59, 0.75); background: rgba(20, 12, 7, 0.75); color: var(--amber); font-weight: 700; font-size: 13.5px; cursor: pointer; text-shadow: none; }
.m-edit svg { width: 16px; height: 16px; }
.m-banner { pointer-events: none; }
.m-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 46px; padding: 18px 16px; border-radius: var(--r-lg); border: 1px dashed rgba(242, 169, 59, 0.5); background: rgba(20, 12, 7, 0.7); }
.m-tools .btn { width: 100%; }
.link-btn.armed, .btn.armed { color: #ffb199; }
.btn-danger.armed { background: #c4401c; color: #fff; }
.ed .ed-photo { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
#ed-img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5)); }
.ed-photo-btns { display: flex; flex-direction: column; gap: 4px; align-items: stretch; min-width: 0; }
.ed-file { min-height: 56px; font-size: 14.5px; }
.ed-photo-btns .link-btn { align-self: center; }
.ed-mode-f { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ed .chips { gap: 6px; }
.ed .chip-radio span { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.ed-px { display: flex; flex-direction: column; gap: 10px; }
.ed-row { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 8, 6, 0.35); }
.ed-row > .field input { padding-right: 46px; }
.ed-row-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 241, 220, 0.1); color: var(--sand); cursor: pointer; }
.ed-rows-add { align-self: flex-start; }
.ed-stars { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-stars button { min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 241, 220, 0.07); color: var(--sand); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.ed .agree b { color: var(--cream); }
.ed-del-note { text-align: center; margin-top: 6px; }
.ed .btn-danger { margin-top: 4px; }
.m-occ { display: flex; align-items: center; gap: 10px; text-align: left; }
.m-occ svg { width: 22px; height: 22px; flex: none; color: var(--amber); }
.m-occ b { color: var(--cream); }
.m-occ-go { margin-top: 10px; }
.m-occ-go svg { width: 20px; height: 20px; }

/* ---------- the card page: painted sky, the mascot's trips, the reward moment ---------- */
#view-carte { position: relative; }
.c-sky { position: absolute; left: -16px; right: -16px; top: -12px; aspect-ratio: 900 / 1205; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 44%, transparent 84%); mask-image: linear-gradient(180deg, #000 0, #000 44%, transparent 84%); }
.c-sky img, .c-sky video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: sky-drift 26s ease-in-out infinite alternate; }
.c-sky video { opacity: 0; transition: opacity 0.9s ease; }
.c-sky video.on { opacity: 1; }
.c-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 5, 0.5), rgba(11, 7, 5, 0) 15%); }
@keyframes sky-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (min-width: 520px) {
  .c-sky { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 34%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 34%, #000 52%, transparent 100%); }
}
.mascot.front { z-index: 30; }
.app.rewarding { z-index: 10; }
.veil { position: fixed; inset: 0; z-index: 28; overflow: hidden; touch-action: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(circle at 50% 30%, rgba(96, 56, 24, 0.72), rgba(8, 5, 3, 0.94) 64%); }
.veil::before { content: ""; position: absolute; left: 50%; top: 30%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 122, 0.13) 0deg 7deg, rgba(255, 210, 122, 0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 4%, transparent 44%); mask-image: radial-gradient(circle, #000 4%, transparent 44%); animation: rays 28s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.veil.on { opacity: 1; }
.prize { position: fixed; left: 50%; top: 60%; z-index: 31; width: min(408px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: linear-gradient(180deg, #fffaf0, var(--cream)); color: #2b1507; border-radius: 28px; padding: 34px 18px 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  opacity: 0; transform: translate(-50%, 26px) scale(0.9); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(.2, 1.4, .4, 1); }
.prize.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.prize::before { content: ""; position: absolute; left: 50%; top: -10px; width: 24px; height: 24px; margin-left: -12px; background: #fffaf0; transform: rotate(45deg); border-radius: 5px; }
.prize-medal { position: absolute; top: -30px; left: 50%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; display: grid; place-items: center; color: #33190a;
  background: radial-gradient(circle at 35% 30%, #ffe2a0, var(--amber) 62%, #d9861c); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 0 4px #fffaf0, 0 0 26px rgba(242, 169, 59, 0.8); }
.prize-medal svg { width: 30px; height: 30px; }
.prize .eyebrow { color: var(--ember); margin-top: 4px; }
.prize h2 { font-size: 31px; line-height: 1.08; color: #2b1507; }
.prize p { font-size: 15px; line-height: 1.4; color: #5a3a22; max-width: 34ch; }
.prize p strong { color: var(--ember); }
.prize .btn { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .c-sky img, .c-sky video, .veil::before { animation: none !important; }
  .veil, .prize { transition: none; }
}
[hidden] { display: none !important; }

/* the whole card page fits on one screen: the greeting lives in the card, the hero takes whatever height is left */
#view-carte { gap: 12px; }
#view-carte .top { min-height: 46px; padding-left: 4px; }
.card { padding-block: 13px; }
.card-top { align-items: flex-start; }
.card-hi { min-width: 0; }
.card-hi h1 { font-size: 22px; line-height: 1.12; }
.card-hi p { font-size: 13.5px; line-height: 1.3; min-height: 2.6em; color: var(--sand); margin-top: 2px; }
.card-hi strong { color: var(--amber); font-weight: 700; }
.grid { margin-top: 12px; }
.card-foot { align-items: center; margin-top: 11px; padding-top: 8px; font-size: 11.5px; }
.card-foot span:first-child { letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot .link-btn { min-height: 0; font-size: 12.5px; padding: 9px 0; margin: -9px 0; white-space: nowrap; }

/* a slimmer card, and a bigger mascot standing on its edge */
#view-carte { gap: 10px; }
#plank, #open-qr { margin-inline: 14px; }
#open-qr { width: auto; }
.mascot { height: calc(var(--hero-h, 240px) * 1.18); }

/* the journey clips share the look of the first one */
.jump-v { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.18s linear; background: var(--space); }
.jump-v.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .jump-v { transition: none; } }
.app.fading { opacity: 0; pointer-events: none; }
.m-hero.going { overflow: visible; }
.m-hero.going .m-hero-txt { opacity: 0; transition: opacity 0.12s linear; }

/* ---------- the news page ---------- */
.a-alerts { display: flex; flex-direction: column; gap: 9px; margin-top: -2px; }
.a-alerts h2 { font-size: 15px; font-family: var(--font-body); font-weight: 700; color: var(--sand); letter-spacing: 0; }
.a-alerts .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.a-alerts .chips::-webkit-scrollbar { display: none; }
.a-alerts .chip { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.a-feed { display: flex; flex-direction: column; gap: 14px; }
.post { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 4px 10px; align-items: start; padding: 15px 14px 14px 16px; border-radius: 24px; border: 1px solid rgba(255, 220, 170, 0.16);
  background: linear-gradient(180deg, rgba(74, 44, 26, 0.9), rgba(26, 16, 10, 0.94)); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 241, 220, 0.08); overflow: hidden; }
.post::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); opacity: 0; transition: opacity 0.6s ease; }
.post.unread::before { opacity: 1; }
.post-head { grid-column: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.post-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #2b1507; background: var(--amber); border-radius: 999px; padding: 3px 9px; }
.post-tag.t-flash { background: #ff8a5c; }
.post-tag.t-couscous { background: #8fb7ff; }
.post-tag.t-nouveau { background: var(--ok); }
.post-tag.t-info { background: var(--cream); }
.post-tag.t-pizzas { background: #ffd27a; }
.post time { font-size: 12px; color: var(--dust); }
.post .new { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); transition: opacity 0.6s ease; }
.post:not(.unread) .new { opacity: 0; }
.post h3 { grid-column: 1; font-size: 18.5px; line-height: 1.18; margin-top: 5px; }
.post p { grid-column: 1; font-size: 14px; line-height: 1.4; color: var(--sand); overflow-wrap: anywhere; }
.post-img { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 104px; height: 104px; margin-right: -8px; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.5)); }
.post-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.post.first { padding-top: 18px; padding-bottom: 18px; grid-template-columns: minmax(0, 1fr) 118px; border-color: rgba(242, 169, 59, 0.45); background: linear-gradient(135deg, rgba(110, 62, 28, 0.95), rgba(40, 22, 12, 0.96) 70%); }
.post.first h3 { font-size: 22px; }
.post.first .post-img { width: 132px; height: 132px; margin-right: -14px; }
.post.first::after { content: ""; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 169, 59, 0.34), rgba(242, 169, 59, 0)); pointer-events: none; }
.post.enter { animation: post-in 0.6s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes post-in { from { opacity: 0; transform: translateY(-18px) scale(0.96); } }
.a-boss .sub { margin: -4px 0 12px; }
.a-empty { text-align: center; color: var(--sand); font-size: 14px; padding: 18px 10px; }
.ps { align-items: stretch; text-align: left; gap: 12px; max-height: 94vh; overflow-y: auto; }
.ps h2, .ps > .eyebrow { text-align: center; }
.ps .chips { gap: 6px; }
.ps .chip-radio span { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.ps .field textarea { min-height: 74px; }
.tab { position: relative; }
.tab-pip { position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--ember); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #28170d; }
a.icon-btn { color: inherit; text-decoration: none; }
/* what the phone shows when a notification arrives */
.push { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 40; width: min(420px, calc(100% - 20px)); display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 13px; border-radius: 22px; background: rgba(250, 244, 234, 0.97); color: #23120a; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); transform: translate(-50%, -140%); transition: transform 0.5s cubic-bezier(.2, 1.1, .3, 1); }
.push.on { transform: translate(-50%, 0); }
.push img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: #2a170d; }
.push b { display: block; font-size: 13px; }
.push span { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.push small { display: block; font-size: 13px; line-height: 1.25; color: #5a3a22; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push time { align-self: start; font-size: 11.5px; color: #8a6a4c; }
.m-call { margin-top: 16px; font-size: 14px; color: var(--sand); background: rgba(58, 36, 16, 0.92); border: 1px solid rgba(242, 169, 59, 0.35); border-radius: var(--r-sm); padding: 11px 13px; text-align: center; }
.m-call b { color: var(--cream); white-space: nowrap; user-select: all; }
@media (prefers-reduced-motion: reduce) { .post.enter { animation: none; } .push { transition: none; } }

.post-tag.t-custom { background: #e8c9a6; }
.post.has-photo { grid-template-columns: minmax(0, 1fr); }
.post.first.has-photo { grid-template-columns: minmax(0, 1fr); }
.post-photo { grid-column: 1; margin-top: 10px; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.post-photo img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.ps-chip { position: relative; display: inline-flex; }
.ps-chip.own .chip-radio span { padding-right: 34px; }
.ps-chip-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 241, 220, 0.12); color: var(--sand); font-size: 12px; cursor: pointer; }
.ps-chip .chip-radio input:checked ~ * { }
.ps-add { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed rgba(242, 169, 59, 0.7); background: none; color: var(--amber); font-weight: 700; font-size: 14px; cursor: pointer; }
.ps-newcat { display: flex; gap: 8px; }
.ps-newcat input { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--amber); background: rgba(12, 8, 6, 0.6); padding: 8px 12px; color: var(--cream); }
.ps-newcat .btn { min-height: 46px; }
.ps-photo-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 16px; border: 1.5px dashed var(--line); background: rgba(12, 8, 6, 0.45); color: var(--sand); font-weight: 600; cursor: pointer; }
.ps-photo-btn svg { width: 24px; height: 24px; color: var(--amber); }
.ps-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ps-photo-btn:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.ps-preview { position: relative; border-radius: 16px; overflow: hidden; }
.ps-preview img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.ps-preview-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(11, 7, 5, 0.8); color: var(--cream); font-size: 14px; cursor: pointer; }

/* ---------- contact page ---------- */
#view-contact .m-hero { height: clamp(220px, calc(100vh - 430px), 330px); height: clamp(220px, calc(100svh - 430px), 330px); }
#view-contact .m-hero-media { object-position: 80% 45%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
#view-contact .m-hero-txt { right: 34%; }
#view-contact .m-hero h1 { font-size: 54px; }
/* the news title stays left of the mascot, with a tight shadow so its letters stay sharp over the picture */
#view-actus .m-hero h1 { font-size: 56px; white-space: nowrap; }
#view-actus .m-hero-txt { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 3px 10px rgba(0, 0, 0, 0.6); }
.ct-call { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 18px 14px 14px; border-radius: 26px; text-decoration: none; color: #2b1507;
  background: linear-gradient(180deg, #ffd27a, var(--amber) 60%, #e48f22); box-shadow: 0 7px 0 #a8651a, 0 18px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55); overflow: hidden; }
.ct-call:active { transform: translateY(5px); box-shadow: 0 2px 0 #a8651a, inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.ct-call::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); animation: ct-shine 3.6s ease-in-out infinite; }
@keyframes ct-shine { 0%, 55% { left: -50%; } 100% { left: 130%; } }
.ct-call-ico { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #2b1507; color: var(--amber); box-shadow: 0 0 0 4px rgba(43, 21, 7, 0.15); }
.ct-call-ico::before, .ct-call-ico::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(43, 21, 7, 0.45); animation: ct-ring 2.4s ease-out infinite; }
.ct-call-ico::after { animation-delay: 1.2s; }
@keyframes ct-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
.ct-call-ico svg { width: 26px; height: 26px; animation: ct-wiggle 2.4s ease-in-out infinite; }
@keyframes ct-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(6deg); } }
.ct-call-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ct-call-txt small { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.ct-call-txt b { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-call-go { margin-left: auto; font-size: 34px; line-height: 1; font-weight: 300; }
.ct-note { font-size: 14px; color: var(--sand); text-align: center; margin-top: -4px; }
.ct-info { display: flex; flex-direction: column; padding: 6px 16px; }
.ct-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: inherit; }
.ct-row + .ct-row { border-top: 1px solid var(--line); }
.ct-row b { display: block; font-size: 15px; }
.ct-row small { display: block; font-size: 13px; color: var(--sand); }
a.ct-row small { text-decoration: underline; text-underline-offset: 3px; }
.ct-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 169, 59, 0.14); color: var(--amber); }
.ct-ico svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .ct-call::after, .ct-call-ico::before, .ct-call-ico::after, .ct-call-ico svg { animation: none; } }

/* ---------- accounts ---------- */
[hidden] { display: none !important; }
body:not(.is-patron) .boss-only { display: none !important; }
.top .icon-btn + .icon-btn { margin-left: 0; }
.acc-btn { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #2b1507; background: linear-gradient(180deg, #ffd27e, var(--amber)); border-color: rgba(255, 220, 170, 0.5); }

.gate { position: fixed; inset: 0; z-index: 21; overflow-y: auto; -webkit-overflow-scrolling: touch; background: radial-gradient(120% 70% at 50% 0%, #5a321c, #17100b 60%, #0b0705) #0b0705; }
.gate-in { max-width: 440px; margin-inline: auto; padding: calc(10px + env(safe-area-inset-top, 0px)) 20px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-height: 100%; }
.gate-logo { width: min(74vw, 300px); height: auto; aspect-ratio: 1; align-self: center; border-radius: 36px; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 220, 170, 0.14); margin-top: 6px; }
.gate.small .gate-logo { width: 132px; border-radius: 28px; }
.g-step { display: flex; flex-direction: column; gap: 12px; animation: up 0.3s ease-out; }
.g-step h1 { font-size: 27px; line-height: 1.12; }
#g-welcome h1 { text-align: center; }
.g-perks { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.35; color: var(--sand); }
.g-perks span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 169, 59, 0.14); color: var(--amber); }
.g-perks svg { width: 22px; height: 22px; }
.g-step .link-btn { align-self: center; }
.g-demo { font-size: 12.5px; color: var(--dust); text-align: center; background: rgba(12, 8, 6, 0.45); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; }
.g-demo b { color: var(--sand); font-weight: 700; }
.g-foot { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--dust); text-align: center; }
.g-install { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 18px; background: rgba(242, 169, 59, 0.1); border: 1px solid rgba(242, 169, 59, 0.35); }
.g-install span { font-size: 13.5px; color: var(--sand); }
.g-install .btn { margin-top: 4px; }

.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 241, 220, 0.1); color: var(--sand); font-weight: 700; font-size: 13px; cursor: pointer; }
.hint { font-size: 12.5px; color: var(--dust); }
.hint.bad { color: #ffb199; }
.hint.good { color: var(--ok); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--sand); line-height: 1.35; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--amber); }
.inline-link { background: none; border: 0; padding: 0; color: var(--cream); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.ok { color: var(--ok); font-size: 14px; font-weight: 600; }
.btn-danger { background: #a3361a; color: #fff1dc; box-shadow: 0 5px 0 #6d200d; }

.acc { text-align: center; }
.acc-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 32px; color: #2b1507; background: linear-gradient(180deg, #ffd27e, var(--amber)); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.acc .sub { margin-top: -6px; overflow-wrap: anywhere; }
.acc-list, .acc-form { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.acc-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 8, 6, 0.45); color: var(--cream); font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; text-align: left; }
.acc-row svg { width: 22px; height: 22px; color: var(--amber); flex: none; }
.acc-row.danger { color: #ffb199; justify-content: center; background: none; border-color: transparent; min-height: 44px; font-size: 14px; }

.boss { text-align: left; align-items: stretch; }
.boss h2, .boss > .eyebrow { text-align: center; }
.boss-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.boss-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 18px; border: 1px solid rgba(242, 169, 59, 0.35); background: rgba(242, 169, 59, 0.1); color: var(--cream); font: inherit; text-align: left; cursor: pointer; }
.boss-tile svg { width: 28px; height: 28px; color: var(--amber); margin-bottom: 4px; }
.boss-tile b { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }
.boss-tile span { font-size: 12.5px; color: var(--sand); line-height: 1.3; }
.scan { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.scan-view { position: relative; width: 170px; height: 170px; border-radius: 18px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
.scan-view i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--amber); }
.scan-view i:nth-child(1) { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan-view i:nth-child(2) { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-view i:nth-child(3) { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan-view i:nth-child(4) { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-line { position: absolute; left: 20px; right: 20px; height: 2px; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: scanline 1.8s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 24px; } to { top: 144px; } }
.team h3 { font-size: 18px; }
.team { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.team-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 12px; border-radius: 14px; background: rgba(12, 8, 6, 0.45); border: 1px solid var(--line); font-size: 14px; }
.team-list li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.team-list small { display: block; color: var(--dust); font-size: 12px; }
.team-list .link-btn { min-height: 40px; font-size: 13px; }
.team-add { display: flex; align-items: flex-end; gap: 8px; }
.team-add .field { flex: 1; }
.team-add .btn { min-height: 50px; }

.inst-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.inst-seg { width: 100%; }
.inst-steps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.inst-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(12, 8, 6, 0.45); border: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.inst-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #2b1507; font-weight: 800; font-size: 15px; }
.ios-share { width: 20px; height: 20px; vertical-align: -4px; color: #5aa9ff; }
#inst-sheet, #legal-sheet { z-index: 23; }
.legal ul { margin: 0; padding-left: 18px; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--sand); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .g-step, .scan-line { animation: none !important; } }
.agree span { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--sand); }

.wall { position: fixed; inset: 0; z-index: 24; overflow-y: auto; -webkit-overflow-scrolling: touch; background: radial-gradient(120% 70% at 50% 0%, #5a321c, #17100b 60%, #0b0705) #0b0705; }
.wall-in { max-width: 440px; margin-inline: auto; min-height: 100%; padding: calc(22px + env(safe-area-inset-top, 0px)) 20px calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wall-logo { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55); }
.wall h1 { font-size: 27px; line-height: 1.12; }
.w-box { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.w-big { min-height: 62px; font-size: 19px; }
.w-warn { padding: 12px 14px; border-radius: 16px; background: rgba(205, 72, 30, 0.16); border: 1px solid rgba(255, 177, 153, 0.35); color: var(--cream); font-size: 14.5px; line-height: 1.4; text-align: left; }
.w-url { font-weight: 700; color: var(--amber); overflow-wrap: anywhere; }
.w-after { font-size: 14px; color: var(--sand); }
.w-arrow { position: fixed; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 16px 2px; border-radius: 16px; background: rgba(11, 7, 5, 0.92); box-shadow: 0 0 24px 14px rgba(11, 7, 5, 0.9); color: var(--amber); font-weight: 700; font-size: 13px; pointer-events: none; animation: nudge 1.2s ease-in-out infinite alternate; }
.w-arrow svg { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(242, 169, 59, 0.6)); }
@keyframes nudge { from { transform: translate(-50%, -8px); } to { transform: translate(-50%, 4px); } }
.w-demo { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 14px; font-size: 12.5px; color: var(--dust); }
.w-os { display: flex; gap: 6px; }
.w-os button { min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 8, 6, 0.5); color: var(--sand); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.w-os button[aria-pressed="true"] { background: var(--cream); color: #2b1507; }
.wall .inst-steps li > div { flex: 1; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .w-arrow { animation: none; } }

#g-welcome { margin-top: 8px; }
body.gated .app, body.gated .tabs { visibility: hidden; }

.boss { max-height: 94vh; overflow-y: auto; }
.cl-count { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #2b1507; background: var(--amber); border-radius: 999px; padding: 2px 8px; vertical-align: 3px; }
.cl-search { position: relative; }
.cl-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dust); }
.cl-search input { width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.6); padding: 8px 12px 8px 38px; color: var(--cream); }
.cl-search input:focus { border-color: var(--amber); outline: none; }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.cl-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 8, 6, 0.45); color: var(--cream); font: inherit; text-align: left; cursor: pointer; }
.cl-row .acc-av { width: 38px; height: 38px; font-size: 17px; flex: none; box-shadow: none; }
.cl-row > span:nth-child(2) { flex: 1; min-width: 0; }
.cl-row b { display: block; font-size: 15px; }
.cl-row small { display: block; font-size: 12px; color: var(--dust); overflow-wrap: anywhere; }
.cl-n { flex: none; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.cl-n small { display: inline; font-size: 12px; }
.cl-gift { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800; color: #2b1507; background: var(--amber); border-radius: 999px; padding: 1px 7px; }
.cl-more { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 12px; margin-top: -4px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: rgba(12, 8, 6, 0.3); font-size: 13.5px; color: var(--sand); }
.cl-more .btn { margin-top: 4px; }
.cl-empty { color: var(--dust); font-size: 14px; padding: 6px 2px; }

/* ---------- scan page (patrons) ---------- */
.tabs-in { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.sc-head { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.sc-head h1 { font-family: var(--font-brand); font-weight: 400; font-size: 54px; line-height: 1; letter-spacing: 0; }
.sc-cam { position: relative; height: 230px; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 40%, #2a170d, #070403); border: 1px solid var(--line); box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8); }
.sc-frame { position: relative; width: 168px; height: 168px; }
.sc-frame i { position: absolute; width: 38px; height: 38px; border: 4px solid var(--amber); }
.sc-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.sc-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.sc-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.sc-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.sc-frame .scan-line { left: 10px; right: 10px; animation-name: scanline2; }
@keyframes scanline2 { from { top: 12px; } to { top: 154px; } }
.sc-cam-txt { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--dust); }
.sc-cam.flash::after { content: ""; position: absolute; inset: 0; background: rgba(143, 209, 158, 0.35); animation: scflash 0.5s ease-out forwards; }
.sc-cam.bad::after { background: rgba(205, 72, 30, 0.4); }
@keyframes scflash { to { opacity: 0; } }
.sc-demo { display: flex; flex-direction: column; gap: 10px; }
.sc-demo label { color: var(--dust); font-size: 13px; }

.sc-res { display: flex; flex-direction: column; gap: 12px; animation: up 0.3s ease-out; }
.sc-who { display: flex; align-items: center; gap: 12px; }
.sc-who .acc-av { width: 52px; height: 52px; font-size: 24px; flex: none; }
.sc-who > div { flex: 1; min-width: 0; }
.sc-who b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.sc-who small { color: var(--dust); font-size: 12.5px; overflow-wrap: anywhere; }
.sc-who .count { font-size: 34px; }
.sc-line { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.sc-line b { display: block; font-size: 16px; }
.sc-line.ok { background: rgba(143, 209, 158, 0.14); border: 1px solid rgba(143, 209, 158, 0.45); }
.sc-line.ok b { color: var(--ok); }
.sc-line.warn { background: rgba(205, 72, 30, 0.16); border: 1px solid rgba(255, 177, 153, 0.45); }
.sc-line.warn b { color: #ffb199; }
.sc-rw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-rw li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 8, 6, 0.45); }
.sc-rw li > svg { width: 30px; height: 30px; flex: none; color: var(--amber); }
.sc-rw li > div { flex: 1; min-width: 0; }
.sc-rw b { display: block; font-size: 15.5px; }
.sc-rw span { font-size: 13px; color: var(--sand); }
.sc-rw li.todo { border-color: rgba(242, 169, 59, 0.7); background: rgba(242, 169, 59, 0.14); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.12); }
.sc-rw li.todo span { color: var(--amber); font-weight: 700; }
.sc-rw li.given { opacity: 0.75; }
.sc-rw li.given > svg { color: var(--dust); }
.sc-rw .btn { min-height: 44px; flex: none; }
.sc-rw .pill-done { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255, 241, 220, 0.12); color: var(--sand); flex: none; }
.sc-later { align-self: center; }
.sc-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sc-log li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sc-log li:first-child { border-top: 0; }
.sc-log time { flex: none; width: 74px; color: var(--dust); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sc-log span { flex: 1; min-width: 0; }
.sc-log em { font-style: normal; color: var(--dust); font-size: 12.5px; }
.sc-log .w { color: #ffb199; }
.sc-log .g { color: var(--amber); }
.sc-empty { color: var(--dust); font-size: 14px; padding: 6px 0; }
.sc-rule { font-size: 12.5px; color: var(--dust); text-align: center; padding: 0 8px; }

/* the client's own rewards, once given */
.rw.given .rw-ico { filter: grayscale(1); opacity: 0.6; }
.rw.given b { text-decoration: line-through; text-decoration-color: rgba(255, 241, 220, 0.5); }
.pill-done { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255, 241, 220, 0.12); color: var(--sand); flex: none; }
@media (prefers-reduced-motion: reduce) { .sc-res, .sc-cam.flash::after { animation: none !important; } }


/* wide screens: the header picture fades out at its edges, but never the title written over it */
@media (min-width: 520px) {
  .m-hero .m-hero-media, #view-menu .m-hero .m-hero-media, #view-contact .m-hero .m-hero-media { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 34%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 34%, #000 52%, transparent 100%); }
}

/* ---------- real app additions ---------- */
.sc-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.sc-cam.live video { opacity: 1; }
.sc-cam .sc-frame, .sc-cam .sc-cam-txt { z-index: 1; }
.sc-cam-txt { padding: 0 12px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); color: var(--cream) !important; }
#qr { transition: opacity 0.3s; }
#qr.wait { opacity: 0.12; }
.post-del { grid-column: 1 / -1; justify-self: end; margin-top: 6px; background: none; border: 0; color: var(--dust); font-size: 12.5px; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; }
.cl-paper { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cl-paper label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sand); }
.cl-paper input { width: 90px; min-height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.6); color: var(--cream); padding: 6px 10px; }
.legal li b { color: var(--cream); }
#acc-push span { pointer-events: none; }
button[disabled] { opacity: 0.6; cursor: progress; }
.rw-claim { flex: none; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.rv-panel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rv-panel h2 { font-size: 20px; }
.rv-panel p { color: var(--sand); font-size: 14.5px; line-height: 1.45; max-width: 32ch; }
.rv-panel .btn { width: 100%; margin-top: 4px; }
.rv-stars { display: inline-flex; gap: 4px; color: var(--amber); }
.rv-stars svg { width: 22px; height: 22px; fill: currentColor; }
/* the one-time review page */
.rv-page { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(120% 70% at 50% 18%, rgba(242, 169, 59, 0.22), transparent 60%), linear-gradient(180deg, #2a170d, #120a06 75%);
  opacity: 0; transition: opacity 0.3s ease; }
.rv-page.on { opacity: 1; }
.rv-in { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rv-art { position: relative; width: min(64vw, 280px); aspect-ratio: 608 / 688; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.rv-page.on .rv-art { animation: rv-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.rv-in .rv-stars svg { width: 28px; height: 28px; }
.rv-page.on .rv-stars svg { animation: rv-star 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.rv-page.on .rv-stars svg:nth-child(2) { animation-delay: 0.08s; } .rv-page.on .rv-stars svg:nth-child(3) { animation-delay: 0.16s; }
.rv-page.on .rv-stars svg:nth-child(4) { animation-delay: 0.24s; } .rv-page.on .rv-stars svg:nth-child(5) { animation-delay: 0.32s; }
.rv-in h1 { font-family: 'Fredoka', sans-serif; font-size: clamp(25px, 7vw, 31px); line-height: 1.15; color: var(--cream); }
.rv-in p { color: var(--sand); font-size: 15.5px; line-height: 1.45; max-width: 30ch; }
.rv-in .btn { width: 100%; }
.rv-in .btn-main { margin-top: 6px; }
body.rv-on { overflow: hidden; }
.rv-art img, .rv-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-art canvas { opacity: 0; transition: opacity 0.25s; }
.rv-art canvas.on { opacity: 1; }
.rv-art canvas.on + img, .rv-art img.off { opacity: 0; }
@keyframes rv-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes rv-pop { from { transform: scale(0.6) translateY(30px); opacity: 0; } }
@keyframes rv-star { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rv-art, .rv-page.on .rv-art, .rv-page.on .rv-stars svg { animation: none !important; } }
.ct-review { margin-top: 12px; min-height: 0; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; color: var(--cream);
  background: rgba(40, 23, 13, 0.82); border: 1.5px solid rgba(242, 169, 59, 0.5); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35); }
.ct-review::after { display: none; }
.ct-review:active { transform: translateY(2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.ct-review .ct-call-ico { width: 40px; height: 40px; background: var(--amber); color: #33190a; box-shadow: none; }
.ct-review .ct-call-ico::before, .ct-review .ct-call-ico::after { display: none; }
.ct-review .ct-call-ico svg { width: 20px; height: 20px; animation: none; }
.ct-review .ct-call-txt small { font-size: 11px; color: var(--amber); opacity: 1; }
.ct-review .ct-call-txt b { font-size: 18px; white-space: normal; }
.ct-review .ct-call-go { font-size: 26px; color: var(--amber); }
.sc-head { position: relative; }
.sc-boss { position: absolute; top: 4px; right: 0; margin: 0; width: 52px; height: 52px; color: var(--amber); border-color: rgba(242, 169, 59, 0.5); }
.sc-boss svg { width: 28px; height: 28px; }
.ps-tpl-box { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.ps-tpl-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ps-tpl-row::-webkit-scrollbar { display: none; }
.ps-tpl-card { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px 10px; border-radius: 18px; border: 1.5px solid var(--line); background: rgba(12, 8, 6, 0.45); color: var(--cream); text-align: left; cursor: pointer; }
.ps-tpl-card img { width: 100%; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.ps-tpl-card small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.ps-tpl-card b { font-size: 13.5px; line-height: 1.25; font-weight: 600; }
.ps-tpl-card.on { border-color: var(--amber); background: rgba(242, 169, 59, 0.16); }
/* sheets: always a strip of dark background to tap above them, and the tap counts on iPhone */
.sheet { cursor: pointer; }
.sheet-in { cursor: auto; max-height: calc(100% - 56px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-in > * { flex-shrink: 0; }
/* the sky: a still field of stars (the 3D scene of the first version is gone) */
#space, #warp { display: none !important; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url(stars.webp) 0 0 / 640px 640px repeat; opacity: 0.75; }
/* while the app starts: only the logo, never the demo card */
body.booting .app, body.booting .tabs { visibility: hidden; }
body.booting::after { content: ""; position: fixed; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; z-index: 50;
  background: url(logo.webp) center / cover no-repeat; border-radius: 32px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); animation: boot-pulse 1.4s ease-in-out infinite alternate; }
@keyframes boot-pulse { from { transform: scale(0.96); opacity: 0.85; } to { transform: scale(1.02); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.booting::after { animation: none; } }
body { margin: 0; }
.app { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.c-sky { top: calc(-12px - env(safe-area-inset-top, 0px)); }
.m-hero { margin-top: calc(-12px - env(safe-area-inset-top, 0px)); }
#rules-sheet, #mentions-sheet { z-index: 23; }
.card-foot span:first-child { white-space: normal; overflow: visible; }
.card-foot span:last-child { text-align: right; }
.legal { max-height: 88vh; overflow-y: auto; }
.legal h2 { font-size: 20px; }
.legal li { overflow-wrap: anywhere; }
.legal-links { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--dust); line-height: 2; }
.legal-links .inline-link { font-size: inherit; color: var(--sand); }
#qr-sheet.gift h2 { color: var(--amber); }
