/* LUNA LUX partner hub — design v2 (approved "HomeLive" look). Tokens, the money watch, the bottom nav,
   the entry gate and the light interaction layer (ripple, LUNA bubble, magnifier). CSS-only animation,
   all of it off with prefers-reduced-motion. No library. Loaded by resources/views/partners/hub/layout.blade.php. */

:root {
  --cream: #FBF6EE;
  --ink: #2B1B24;
  --ink-soft: #6B5560;
  /* UX council 2.12 (#6, R2-6): no navy in the partner palette — the "royal" accent is the brand plum. */
  --royal: #7A2450;
  --royal-glow: #E86F9A;
  --gold: #B88A2A;
  --gold-ink: #8A5F0F;
  --gold-soft: #F6EEDF;
  --gold-light: #E9CF86;
  /* Owner 2.12 16:30: buttons in a deep, luxurious LUNA pink (refined, less loud) with a thin gold edge. */
  --pink: #A8295F;
  --pink-ink: #8C1D4D;
  --pink-btn: linear-gradient(180deg, #B23668, #8C1D4D);
  --pink-edge: inset 0 0 0 1px rgba(241,222,170,.3);
  --warn: #B42318;
  --muted: #6B5560;
  --hair: #EFE4D6;
  --card-line: #EADFCF;
  --font: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-num: 'Inter', 'IBM Plex Sans Thai', sans-serif;
}

body { font-family: var(--font); background: var(--cream); color: var(--ink); }
.num, .brand { font-family: var(--font-num); }
header.bar { background: rgba(251,246,238,.94); }
.card { border-color: var(--card-line); }
.btn-pink { background: var(--pink-btn); color: #FFF8EC; box-shadow: var(--pink-edge); }
.btn-royal { background: var(--royal); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline[aria-disabled="true"] { border-color: #E3D9CC; background: #F4EFE8; color: #6F5E67; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--card-line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr-tools { display: flex; align-items: center; gap: 8px; }

/* ---------- bottom nav ---------- */
nav.tabs { background: #fff; border-top: 1px solid var(--hair); }
nav.tabs a { min-height: 60px; color: var(--ink-soft); font-size: .8rem; font-weight: 500; }
nav.tabs a[aria-current="page"] { color: var(--pink-ink); font-weight: 700; }
nav.tabs a[aria-current="page"] svg { stroke: var(--pink-ink); }

/* ---------- the money watch ---------- */
.hw { position: relative; width: 300px; height: 300px; margin: 6px auto 26px; user-select: none; -webkit-user-select: none; touch-action: pan-y; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.9,.3,1.15); }
.hw.drag { transition: none; }
.hw-dial { display: block; width: 300px; height: 300px; filter: drop-shadow(0 14px 26px rgba(43,27,36,.28)); }
.hw-ticks line { stroke: #8E8A93; stroke-width: 1.4; stroke-linecap: round; }
.hw-ticks line.q { stroke: #C99A3B; stroke-width: 2; }
.hw-logo { position: absolute; left: 50%; top: 50px; width: 84px; height: 34.4px; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 1px 8px rgba(233,207,134,.45)); }
.hw-face { position: absolute; left: 26px; top: 26px; width: 248px; height: 248px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 72px 18px 0; font-family: var(--font); cursor: pointer; -webkit-touch-callout: none; }
.hw-face:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.hw-mode { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; animation: hw-pop .28s ease-out; }
.hw-mode[hidden] { display: none; }
.hw-label { font-size: 12px; font-weight: 600; letter-spacing: .8px; color: var(--gold-light); }
.hw-value { font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -1px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hw-lg .hw-value { font-size: 44px; }
.hw-md .hw-value { font-size: 28px; letter-spacing: -.3px; }
.hw-sm .hw-value { font-size: 21px; letter-spacing: 0; }
/* B4: long amounts (฿1,533.80, ฿12,345.50) step down so the dial never cuts them ("฿1,533…"). */
.hw-lg .hw-value.hw-long { font-size: 34px; }
.hw-lg .hw-value.hw-xlong { font-size: 28px; }
.hw-md .hw-value.hw-long { font-size: 23px; }
.hw-md .hw-value.hw-xlong { font-size: 20px; }
.hw-gold .hw-value { color: var(--gold-light); }
.hw-warn .hw-value { color: #FFB4C8; }
.hw-chip { font-size: 12px; font-weight: 600; line-height: 1.35; color: #FFF5F9; margin-top: 6px; padding: 4px 12px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(233,207,134,.45); max-width: 100%; text-align: center; }
/* LUX-037: one part per line, never cut (no ellipsis on money). */
.hw-chip-l { display: block; white-space: nowrap; }
.hw-dots { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: center; gap: 5px; }
.hw-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D9CDBD; transition: width .2s, background .2s; }
.hw-dots i.on { width: 16px; background: var(--gold); }
.hw-fill { opacity: 0; transition: stroke-dashoffset .25s, opacity .2s; filter: drop-shadow(0 0 6px rgba(64,128,255,.95)); }
.hw.holding .hw-fill { opacity: .95; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s linear, opacity .1s; }
.hw-pill { position: absolute; left: 50%; top: -30px; transform: translate(-50%,6px); padding: 6px 14px; border-radius: 16px; background: linear-gradient(135deg,#3B6BFF,#1D4ED8); color: #fff; font: 600 13px/1.2 var(--font); white-space: nowrap; opacity: 0; transition: opacity .2s, transform .25s; pointer-events: none; z-index: 4; box-shadow: 0 6px 18px rgba(30,58,138,.35); }
.hw.holding .hw-pill { opacity: 1; transform: translate(-50%,0); }
.hw-gift { position: absolute; right: -14px; top: -2px; z-index: 3; }
.hw-sea1 { animation: hw-sea1 9s linear infinite; }
.hw-sea2 { animation: hw-sea2 6.5s linear infinite reverse; }
.hw-sea3 { animation: hw-sea3 13s linear infinite; }
.hw-bub { opacity: 0; animation: hw-bub 5s ease-in infinite; }
.hw-b2 { animation-duration: 6.5s; animation-delay: 1.4s; }
.hw-b3 { animation-duration: 7s; animation-delay: 2.8s; }
@keyframes hw-sea1 { to { transform: translateX(-160px); } }
@keyframes hw-sea2 { to { transform: translateX(-120px); } }
@keyframes hw-sea3 { to { transform: translateX(-128px); } }
@keyframes hw-bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-70px); opacity: 0; } }
@keyframes hw-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 345px) { .hw { transform: scale(.86); margin: -14px auto 6px; } }

/* home row under the watch */
.hw-facts { display: flex; gap: 8px; margin-top: 4px; }
.hw-fact { flex: 1; min-width: 0; min-height: 52px; border-radius: 14px; border: 1px solid var(--card-line); background: #fff; display: flex; align-items: center; gap: 8px; padding: 6px 10px; text-decoration: none; color: var(--ink); }
.hw-fact svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; }
.hw-fact span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hw-fact small { font-size: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-fact b { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hw-fact.soon b { color: var(--warn); }
.hw-act { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.btn-share { position: relative; overflow: hidden; min-height: 56px; border-radius: 28px; font-size: 1.05rem; font-weight: 700; background: var(--pink-btn); color: #FFF8EC; box-shadow: 0 8px 20px -10px rgba(110,16,55,.55), var(--pink-edge); }
.btn-share::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg,transparent,rgba(241,222,170,.22),transparent); transform: skewX(-18deg); animation: hub-sweep 3.8s ease-in-out infinite; pointer-events: none; }
@keyframes hub-sweep { 0%,55% { left: -60%; } 85%,100% { left: 130%; } }

/* ---------- entry gate: opaque doors + crest, once per session (html.gate-on is set by the layout) ---------- */
.hub-gate { display: none; }
html.gate-on .hub-gate { display: block; position: fixed; inset: 0; z-index: 90; perspective: 1400px; overflow: hidden; background: #F7EFE1; animation: gate-bg .25s 1.3s forwards, gate-off 0s 1.9s forwards; }
.hub-gate .door { position: absolute; top: 0; bottom: 0; width: 50%; background: radial-gradient(120% 70% at 50% 40%,#FFFDF8 0%,#F7EFE1 55%,#EBDDC4 100%); will-change: transform; }
.hub-gate .door i { position: absolute; inset: 26px 22px; border: 1px solid rgba(184,138,42,.35); border-radius: 10px; }
.hub-gate .door.l { left: 0; transform-origin: 0 50%; box-shadow: inset -1px 0 0 #C9A24B, inset -14px 0 24px -18px rgba(120,84,20,.35); animation: gate-l 1s .65s cubic-bezier(.65,0,.25,1) forwards; }
.hub-gate .door.r { right: 0; transform-origin: 100% 50%; box-shadow: inset 1px 0 0 #C9A24B, inset 14px 0 24px -18px rgba(120,84,20,.35); animation: gate-r 1s .65s cubic-bezier(.65,0,.25,1) forwards; }
.hub-gate .crest { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-56%); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: gate-crest .5s .6s forwards; }
.hub-gate .disc { width: 118px; /* the LUNA LUX icon fills it */ height: 118px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#2A2230 0%,#120D16 70%); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #E9CF86, 0 0 0 4px #A87A22, 0 18px 40px rgba(43,27,36,.35); position: relative; overflow: hidden; }
.hub-gate .disc .gate-logo { width: 86px; height: 35.2px; display: block; }
.hub-gate b { font: 700 17px/1.2 var(--font); letter-spacing: 6px; padding-left: 6px; color: var(--ink); margin-top: 8px; }
.hub-gate small { font: 500 10px/1 var(--font-num); letter-spacing: 3px; color: #8A6A2A; }
.hub-gate.open, .hub-gate.open .door, .hub-gate.open .crest { animation-delay: 0s !important; }
html.gate-on .hub-gate.gone { display: none; }
@keyframes gate-l { to { transform: rotateY(-82deg); } }
@keyframes gate-r { to { transform: rotateY(82deg); } }
@keyframes gate-crest { to { transform: translate(-50%,-56%) scale(1.12); opacity: 0; } }
@keyframes gate-bg { to { background: transparent; } }
@keyframes gate-off { to { visibility: hidden; pointer-events: none; } }

/* ---------- touch feedback ---------- */
.hub-ripple { position: fixed; z-index: 80; width: 120px; height: 120px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle,rgba(184,138,42,.35) 0,rgba(184,138,42,.12) 45%,transparent 70%); transform: translate(-50%,-50%) scale(.2); animation: hub-ripple .55s ease-out forwards; }
@keyframes hub-ripple { to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
.hub-press { transform: scale(.97); }

/* ---------- LUNA speaks: a small bubble, tap-through, goes away by itself ---------- */
#hub-talk { position: fixed; left: 14px; right: 14px; top: 66px; z-index: 70; max-width: 452px; margin: 0 auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 18px; background: rgba(255,253,249,.97); border: 1px solid var(--card-line); box-shadow: 0 10px 30px rgba(43,27,36,.18); font: 500 14px/1.5 var(--font); color: var(--ink); opacity: 0; transform: translateY(-10px); transition: opacity .22s, transform .3s; pointer-events: none; }
#hub-talk.on { opacity: 1; transform: none; }
#hub-talk .av, .luna-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #F5D5D1; }
#hub-talk .av img, .luna-av img { width: 100%; height: 100%; border-radius: 50%; display: block; }

/* ---------- magnifier: press and hold a product photo ---------- */
.hub-loupe-ok { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hub-loupe { position: fixed; left: 0; top: 0; z-index: 85; width: 136px; height: 136px; border-radius: 50%; pointer-events: none; background-repeat: no-repeat; background-color: #fff; box-shadow: 0 0 0 3px #E9CF86, 0 0 0 4px #A87A22, 0 14px 34px rgba(43,27,36,.35); opacity: 0; transition: opacity .15s; }
.hub-loupe.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hw, .hw-fill, .hw-dots i { transition: none; }
  .hw-sea1, .hw-sea2, .hw-sea3, .hw-bub, .hw-mode, .btn-share::after, .hub-ripple { animation: none; }
  .hw-bub { opacity: 0; }
  .hub-ripple { display: none; }
  html.gate-on .hub-gate { animation: gate-off 0s .5s forwards; }
  .hub-gate .door, .hub-gate .crest { animation: gate-fade .3s .2s forwards; }
  #hub-talk { transition: opacity .1s; transform: none; }
}
@keyframes gate-fade { to { opacity: 0; } }

/* ---------- page spotlights (public/hub/hub-guide.js) ---------- */
.hub-spot { position: fixed; inset: 0; z-index: 75; pointer-events: none; }
.hub-spot .spot-card { pointer-events: auto; }
.spot-ring { position: fixed; box-shadow: 0 0 0 2000px rgba(27,20,32,.4), 0 0 0 2px var(--gold-light), 0 0 24px 4px rgba(233,207,134,.55); transition: all .35s cubic-bezier(.2,.8,.25,1); }
.hub-spot.in .spot-ring { animation: spot-in .35s ease-out; }
.spot-card { position: fixed; left: 16px; right: 16px; max-width: 448px; margin: 0 auto; padding: 14px 16px 12px; border-radius: 20px; background: #FFFDF9; box-shadow: 0 16px 40px rgba(0,0,0,.28); color: var(--ink); }
.hub-spot.in .spot-card { animation: spot-card .35s .08s cubic-bezier(.2,.9,.3,1.2) both; }
.spot-hd { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.spot-hd .luna-av { width: 26px; height: 26px; }
.spot-dots { margin-left: auto; display: flex; gap: 4px; }
.spot-dots i { width: 6px; height: 6px; border-radius: 3px; background: #E3D7C6; }
.spot-dots i.on { width: 14px; background: var(--gold); }
.spot-card p { margin: 8px 0 10px; font-size: 15.5px; line-height: 1.55; }
.spot-ft { display: flex; gap: 8px; justify-content: space-between; }
.spot-ft button { min-height: 44px; padding: 0 18px; border-radius: 22px; font: 600 15px/1 var(--font); border: 1px solid var(--card-line); background: #fff; color: var(--ink); cursor: pointer; }
.spot-ft .spot-go { background: var(--pink); border-color: var(--pink); color: #fff; }
/* UX council 2.12 (#5): "ข้าม" is a quiet text link, the one button is the pink primary. */
.spot-ft .spot-skip { border: 0; background: transparent; padding: 0 6px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.spot-arrow { position: fixed; width: 28px; height: 36px; transition: top .35s, left .35s; }
.spot-arrow::before { content: ""; position: absolute; left: 12px; top: 4px; width: 4px; height: 26px; border-radius: 2px; background: var(--gold-light); }
.spot-arrow::after { content: ""; position: absolute; left: 5px; bottom: 0; border: 9px solid transparent; border-top: 12px solid var(--gold-light); border-bottom: 0; }
.spot-arrow.up { transform: rotate(180deg); }
.spot-arrow { animation: spot-bob 1.2s ease-in-out infinite; }
.spot-arrow.up { animation-name: spot-bob-up; }
.spot-hand { position: fixed; width: 40px; height: 40px; transition: top .35s, left .35s; animation: spot-tap 1.4s ease-in-out infinite; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.spot-hand svg { width: 40px; height: 40px; fill: #FFFDF9; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spot-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes spot-card { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spot-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spot-bob-up { 0%,100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(-6px); } }
@keyframes spot-tap { 0%,100% { transform: translate(0,0) scale(1); } 45% { transform: translate(0,-8px) scale(1); } 60% { transform: translate(0,0) scale(.9); } }
@media (prefers-reduced-motion: reduce) {
  .spot-ring, .spot-arrow, .spot-hand { transition: none; }
  .hub-spot.in .spot-ring, .hub-spot.in .spot-card, .spot-arrow, .spot-arrow.up, .spot-hand { animation: none; }
}

/* ---------- tap-to-explain <x-hub.tip> (public/hub/hub.js): ⓘ or a chip → one short line in a bubble ---------- */
.tip { display: inline-flex; vertical-align: middle; }
.tip-i { width: 44px; height: 44px; margin: -10px -8px -10px -6px; border: 0; background: transparent; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; border-radius: 22px; }
.tip-i svg, .tip-chip svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.tip-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px 6px 14px; border-radius: 22px; border: 1px solid var(--card-line); background: #fff; color: var(--ink); font: 600 14px/1.3 var(--font); text-align: left; cursor: pointer; }
.tip-chip svg { flex: none; color: var(--gold-ink); }
.tip-i[aria-expanded="true"], .tip-chip[aria-expanded="true"] { color: var(--royal); border-color: var(--royal); }
.tip-pop { position: fixed; left: 14px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 72; max-width: 452px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: #fff; font: 500 15px/1.5 var(--font); text-align: left; box-shadow: 0 12px 32px rgba(43,27,36,.3); animation: tip-in .18s ease-out; }
.tip-pop[hidden] { display: none; }
/* Recheck P1-2: inside a bottom sheet there is no tab bar, so a bubble at the bottom would cover the sheet's own buttons
   (the withdraw confirm). It sits at the top instead, over the dimmed scrim above the panel (panel max-height 88vh). */
[data-sheet].on .tip-pop, [data-sheet]:target .tip-pop { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
.tip-a { color: var(--gold-light); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
@keyframes tip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- small bottom sheet [data-sheet] (hub.js opens/closes it; :target without JS) ---------- */
.sheet { display: none; position: fixed; inset: 0; z-index: 60; }
.sheet:target, .sheet.on { display: flex; align-items: flex-end; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(43,27,36,.55); }
.sheet-panel { position: relative; width: 100%; max-width: 480px; margin: 0 auto; background: #FFFDF9; border-radius: 26px 26px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; animation: tip-in .28s ease-out; }
.sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: #E3D7C6; margin: 0 auto 10px; }
.sheet-panel h2 { font-size: 1.15rem; }
.sheet-panel h2:focus { outline: none; }
.sheet-panel ul { list-style: none; margin-top: 10px; }
.sheet-panel li { font-size: 14px; color: var(--ink-soft); padding: 6px 0; border-top: 1px solid var(--hair); }

/* ---------- hub home, element-first (approved prototype screens "home-new" / "home") ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 4px; }
.hello small { display: block; font-size: 14px; color: var(--ink-soft); }
.hello h1 { margin: 0; font-size: 1.3rem; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.tiles li { position: relative; min-width: 0; }
.tiles a.pic { display: block; text-decoration: none; }
.tiles .thumb { border-radius: 16px; }
.tiles .earn { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 13px/1.5 var(--font-num); pointer-events: none; }
.tiles .go { position: absolute; right: 4px; bottom: 4px; width: 44px; height: 44px; border-radius: 22px; border: 2px solid #fff; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; }
.tiles .go svg, .qa svg, .tier-line svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.steps-row { list-style: none; display: flex; align-items: flex-start; gap: 2px; margin-top: 12px; padding: 10px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--card-line); }
.steps-row li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-soft); }
.steps-row li.sep { flex: none; height: 40px; justify-content: center; color: var(--gold); font-weight: 700; }
.steps-row .dot { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card-line); background: #fff; color: var(--ink-soft); }
.steps-row .dot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.steps-row li.done { color: var(--ink); }
.steps-row li.done .dot { background: var(--royal); border-color: var(--royal); color: #fff; }
.steps-row li.now { color: var(--ink); }
.steps-row li.now .dot { border-color: var(--pink); color: var(--pink); }
.tier-line { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.tier-line b { color: var(--ink); font-weight: 600; }
.qa { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 14px; }
.qa a, .qa button { position: relative; width: 100%; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; border-radius: 16px; border: 1px solid var(--card-line); background: #fff; color: var(--ink); font: 600 14px/1.3 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.qa svg { width: 24px; height: 24px; color: var(--gold-ink); stroke-width: 1.8; }
.qa .need { position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; border-radius: 5px; background: var(--pink); }
.bonus-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--card-line); background: #fff; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.bonus-card > svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #C2410C; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bonus-card .bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bonus-card .bc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bonus-card #bonus-h { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-soft); line-height: 1.3; }
.bonus-card #bonus-h .num { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.bonus-card .bc-days { flex: none; display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 10px; border: 1.5px solid var(--warn); color: var(--warn); font-size: 13px; font-weight: 700; white-space: nowrap; }
.bonus-card .bc-sub { font-size: 14px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .tip-pop, .sheet-panel { animation: none; } }
.open-line { min-height: 56px; margin-top: 8px; text-decoration: none; }
.open-line[hidden] { display: none; }

/* ---------- 360px visual audit (01-visual-audit.md): line breaks, chip rows, first-visit queue ---------- */
/* G3: no 1–2 word orphans in headings and short centred lines; calmer paragraphs.
   Before the no-wrap rules below: `text-wrap` resets the wrap mode, so a later white-space:nowrap must win. */
p, li, .small, .meaning, .tip-t, .spot-card p { text-wrap: pretty; }
h1, h2, h3, summary, .sub, .center, .hint, .linkbtn, .mo-sheet h2, .mo-sheet p { text-wrap: balance; }
/* G1/G2: a borrowed word, a name or "number + unit" never breaks inside (App\Domain\Ux\ThaiText::keep adds .nw). */
.nw { white-space: nowrap; }
b.num, span.num, strong.num, dd.num, td.num, div.num, .hw-fact .num { white-space: nowrap; }
.tip-chip-t, .pill, .qa a, .qa button, .btn, .chip { white-space: nowrap; }
.btn { text-align: center; }
/* G4: chip rows are centred (no ragged 1+2 left-aligned rows). */
.chiprow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; }
/* A title (or a field label) with its ⓘ on the same line. */
.tline { display: flex; align-items: center; gap: 2px; }
.tline > :first-child { min-width: 0; }
/* G5: one first-visit layer at a time: moment / gift sheet / tour / spotlight first, the LUNA guide card after them. */
body.spot-on .guide, body.spot-on .guide-chip,
body:has(#hub-moment) .guide, body:has(#hub-moment) .guide-chip,
body:has(#gift-sheet) .guide, body:has(#gift-sheet) .guide-chip { display: none !important; }
/* H4: "ดูหน้าถอนเงิน" is a normal (white) secondary button, not a greyed "disabled" one. */
.btn-outline.btn-view { background: #fff; color: var(--ink); border: 1.5px solid #e3dbd0; }
/* S3/SH5: product cards of one row have the same height; price, commission and the button line up at the bottom. */
.pcards > .card { display: flex; flex-direction: column; }
.pc-body { flex: 1; display: flex; flex-direction: column; padding: 8px 2px 2px; }
.pc-name { font-weight: 600; line-height: 1.35; margin-top: 2px; font-size: .94rem; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-money { margin-top: auto; }
.pcards form { margin-top: 6px; }
/* S4: the category rail shows that it scrolls. */
.chips-fade { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tip-chip .need { display: inline-block; width: 9px; height: 9px; margin-left: 4px; border-radius: 5px; background: var(--pink); vertical-align: middle; }
/* E1/E2: money history line: title + amount on one row, the meta lines under it at full width. */
.lrow { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 12px 0; }
.lrow-w { grid-column: 1 / -1; }
/* T1/T6: the tiers table fits 360px: headers never wrap, each price level sits under its column header. */
.tiers-t { font-size: .92rem; }
.tiers-t th { white-space: nowrap; }
.tiers-t thead small { display: block; font-size: .83rem; font-weight: 500; color: var(--muted); }
/* SH1: a picked piece is two rows (name never squeezed by the arrows); SH3: a long signed link is one line. */
.pick { padding: 10px 0; }
.pick-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.linkbox-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
/* P2: the two "you get" chips of the product page fit one row at 360px. */
#piece-benefit { gap: 6px; flex-wrap: nowrap; }
#piece-benefit .tip-chip { padding: 6px 6px 6px 10px; gap: 2px; font-size: 14px; }
#piece-benefit .tip-chip .need { margin-left: 2px; }
.errbox li, .field .err { text-wrap: balance; }
/* A chip wider than the screen (rare: a long date or name) may wrap inside itself rather than run off the edge. */
.tip, .tip-chip { max-width: 100%; }
.chiprow .tip-chip-t { white-space: normal; text-wrap: balance; }

/* ---------- tiers climb (owner 24.11, night prototype "tiers climb"): tiers/blade [data-tier-climb] ----------
   The lowest tier at the bottom (DOM order stays lowest-first for screen readers). Static without .go (no JS) and with
   reduced motion; hub.js adds .go: each tier rises in turn from the bottom (--i), her tier glows twice. */
.tclimb { list-style: none; display: flex; flex-direction: column-reverse; margin: 14px 0 2px; padding: 0; }
.tclimb li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 44px; padding: 4px 10px 4px 6px; border-radius: 14px; }
.tclimb li::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--card-line); }
.tclimb li:first-child::before { bottom: 50%; }
.tclimb li:last-child::before { top: 50%; }
.tclimb li.tc-done::before { background: var(--gold-light); }
.tclimb li.tc-here::before { background: linear-gradient(to top, var(--gold-light) 50%, var(--card-line) 50%); }
.tc-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--card-line); box-sizing: border-box; }
.tc-dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-name { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.tc-meta { font-size: .9rem; color: var(--muted); text-align: right; white-space: nowrap; }
.tc-done .tc-dot { background: var(--gold-light); border-color: var(--gold-light); color: var(--gold-ink); }
.tc-done .tc-name { color: var(--ink); }
.tc-here { background: #fff; box-shadow: 0 0 0 1.5px var(--gold-light), 0 4px 14px rgba(138,95,15,.12); }
.tc-here .tc-dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.tc-here .tc-dot svg { fill: currentColor; stroke-width: 1.2; }
.tc-here .tc-name { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.tc-next .tc-dot { border: 2px dashed var(--gold); }
.tc-next .tc-name { color: var(--ink); }
.tc-next .tc-meta b { color: var(--gold-ink); font-weight: 700; }
.tclimb.go li { animation: tc-rise .5s cubic-bezier(.2,.9,.3,1.2) calc(var(--i) * 140ms) both; }
.tclimb.go li.tc-here { animation: tc-rise .5s cubic-bezier(.2,.9,.3,1.2) calc(var(--i) * 140ms) both, tc-glow 1.4s ease-out calc(var(--i) * 140ms + 520ms) 2; }
@keyframes tc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tc-glow {
  0% { box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 0 0 rgba(184,138,42,.55); }
  100% { box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 0 14px rgba(184,138,42,0); }
}

/* ---------- visual ideas (audit 03-visual-ideas.md): the five small ones in this PR ---------- */
/* #1 earnings: pending → available → paid is one flow: a dotted gold line joins the three numbers, a dot runs down it. */
.steps3 .stepno { position: relative; }
.steps3 > .row + .row .stepno::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); width: 2px; height: 18px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--gold-light) 0 3px, transparent 3px 6px); }
.steps3 > .row + .row .stepno::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 14px); width: 6px; height: 6px; margin-left: -3px; border-radius: 3px; background: var(--gold); opacity: 0; animation: flow-dot 1.6s ease-in-out .6s 3; }
.steps3 > .row:nth-child(3) .stepno::after { animation-delay: 1.4s; }
@keyframes flow-dot { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* #2 earnings: each order's step as 4 dots under its label (paid → shipped → delivered → completed). */
.otrack-w { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.otrack { display: flex; align-items: center; padding-right: 4px; }
.otrack i { position: relative; width: 8px; height: 8px; border-radius: 4px; background: #fff; border: 1.5px solid var(--card-line); box-sizing: border-box; }
.otrack i + i { margin-left: 12px; }
.otrack i + i::before { content: ""; position: absolute; right: calc(100% + 1.5px); top: 50%; width: 12px; height: 2px; margin-top: -1px; background: var(--card-line); }
.otrack i.on { background: var(--gold); border-color: var(--gold); }
.otrack i.on::before { background: var(--gold-light) !important; }
.otrack i.now { animation: hub-pulse 1.4s ease-out .4s 2; }

/* #3 a copied button shows a gold tick for a moment (Hub.copied in hub.js; the toast keeps the words). */
.btn.copied { position: relative; overflow: visible; animation: copied-pop .35s cubic-bezier(.2,.9,.3,1.4); }
.btn.copied::after { content: ""; position: absolute; right: -6px; top: -8px; width: 24px; height: 24px; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(43,27,36,.2); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; animation: copied-tick .3s cubic-bezier(.2,.9,.3,1.5) both; pointer-events: none; }
@keyframes copied-pop { 40% { transform: scale(.96); } 100% { transform: none; } }
@keyframes copied-tick { from { transform: scale(0); } to { transform: none; } }

/* #4 wallet KYC 1-2-3: the steps are joined by a line, gold up to where she is; done = gold tick, "now" glows twice. */
.wiz li { position: relative; }
.wiz li + li::before { content: ""; position: absolute; top: 16px; left: calc(-50% - 6px + 21px); right: calc(50% + 21px); height: 2px; border-radius: 1px; background: #e8e1d6; }
.wiz li.done + li::before { background: var(--gold-light); }
.wiz li.done .no { background: var(--gold-light); color: var(--gold-ink); }
.wiz li.now .no { animation: hub-pulse 1.4s ease-out .3s 2; }

/* #5 progress bars fill from empty when the page opens (tiers, jewellery rewards). */
.progress i { animation: hub-grow .9s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes hub-grow { from { width: 0; } }

@keyframes hub-pulse { 0% { box-shadow: 0 0 0 0 rgba(184,138,42,.55); } 100% { box-shadow: 0 0 0 10px rgba(184,138,42,0); } }

/* ---------- visual ideas 2 (audit 03-visual-ideas.md #6–#15; owner approved 25.11) ----------
   Same rules as above: the markup is complete without JS; motion runs once and is off with reduced motion
   (the block right below); no amount is computed here: every number on screen comes from the money readers. */

/* #6 home "first steps": a line joins the three circles (gold after a done step); the next circle pulses twice. */
.steps-row li.sep { position: relative; width: 18px; font-size: 0; color: transparent; }
.steps-row li.sep::before { content: ""; position: absolute; left: -3px; right: -3px; top: 19px; height: 2px; border-radius: 1px; background: var(--card-line); }
.steps-row li.done + li.sep::before { background: var(--gold-light); transform-origin: left center; animation: hub-line .6s ease-out .35s both; }
.steps-row li.now .dot { animation: hub-pulse-pink 1.4s ease-out .9s 2; }
@keyframes hub-line { from { transform: scaleX(0); } }
@keyframes hub-pulse-pink { 0% { box-shadow: 0 0 0 0 rgba(140,29,77,.45); } 100% { box-shadow: 0 0 0 12px rgba(140,29,77,0); } }

/* #7 wallet: the payout round as three stops (you ask → team approves by Thu 23:59 → Friday). Where she is comes from
   the withdrawal state (an open request = step 2), never from the clock. */
.cycle { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; padding: 0; }
.cycle li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 14px; line-height: 1.35; color: var(--ink-soft); min-width: 0; }
.cycle li + li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: repeating-linear-gradient(90deg, var(--card-line) 0 4px, transparent 4px 7px); }
.cycle .cy-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--card-line); color: var(--gold-ink); box-sizing: border-box; margin-bottom: 4px; }
.cycle .cy-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cycle b { color: var(--ink); font-weight: 600; }
.cycle li.done .cy-dot { background: var(--gold-light); border-color: var(--gold-light); }
.cycle li.done + li::before { background: var(--gold-light); }
.cycle li.now .cy-dot { border-color: var(--gold); animation: hub-pulse 1.4s ease-out .4s 2; }
.cycle-late { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* #9 the money watch: a ring around the dial. Solid gold = พร้อมถอน, dashed = รอยืนยัน; the two arcs are the two reader
   figures (SVG pathLength = their total, the same total the watch shows), so nothing is worked out here. Shown on the
   total / available / pending faces; the face's own part is bright, the other one dim. A small key sits by each label. */
.hw-ring { opacity: 0; transition: opacity .25s; }
.hw[data-face="total"] .hw-ring, .hw[data-face="available"] .hw-ring, .hw[data-face="pending"] .hw-ring { opacity: 1; }
.hw-ring-a, .hw-ring-p { transition: opacity .25s; }
.hw[data-face="pending"] .hw-ring-a, .hw[data-face="available"] .hw-ring-p { opacity: .28; }
.hw-ring g { transform-origin: 150px 150px; animation: hw-ring-in .9s cubic-bezier(.2,.8,.2,1) .3s both; }
@keyframes hw-ring-in { from { opacity: 0; transform: rotate(-40deg); } }
.hw-mode[data-ring] .hw-label::before, .hw-chip[data-ring-key] .hw-chip-l::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 5px; vertical-align: 1px; box-sizing: border-box; background: var(--gold-light); }
.hw-mode[data-ring="p"] .hw-label::before, .hw-chip[data-ring-key] .hw-chip-l + .hw-chip-l::before { background: none; border: 1.5px dashed var(--gold-light); }

/* #10 a real share from the LINE picker: a small gold spark on the button (LUNA says the line). */
.btn.shared-ok { position: relative; overflow: visible; }
.btn.shared-ok::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px var(--gold-light); opacity: 0; animation: spark-ring .7s ease-out; pointer-events: none; }
.btn.shared-ok::after { content: "✦"; position: absolute; right: -4px; top: -12px; font-size: 18px; line-height: 1; color: var(--gold); text-shadow: 0 0 6px rgba(233,207,134,.9); animation: spark-star .8s cubic-bezier(.2,.9,.3,1.4) both; pointer-events: none; }
@keyframes spark-ring { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes spark-star { 0% { transform: scale(0) rotate(-90deg); } 60% { transform: scale(1.3) rotate(10deg); } 100% { transform: none; } }

/* #11 empty states: a small gold line drawing (sprout / gift bag / envelope) instead of an emoji; it draws itself once. */
.eart { display: block; width: 72px; height: 72px; margin: 0 auto; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eart .ea-soft { stroke: var(--gold-light); }
.eart path, .eart circle, .eart rect { stroke-dasharray: 1; stroke-dashoffset: 0; animation: ea-draw 1.1s ease-out .2s both; }
.eart .ea-late { animation-delay: .8s; }
@keyframes ea-draw { from { stroke-dashoffset: 1; } }

/* #12 my shop: the piece she moved slides into its new place (hub-shop.js, after the save) and glows once. */
.pick.moved { animation: pick-glow 1.6s ease-out; border-radius: 12px; }
.pick.slide { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pick-glow { 0%, 30% { background: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold-light); } 100% { background: transparent; box-shadow: 0 0 0 2px transparent; } }

/* #13 LUNA: the five guide steps as a small path (done ✓ gold, now ★ pink, later a number), like the tier climb. */
.lpath { display: flex; align-items: center; margin: 10px 2px 8px; }
.lpath i { flex: none; width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--font-num); font-style: normal; background: #fff; border: 2px solid var(--card-line); color: var(--ink-soft); box-sizing: border-box; animation: lp-in .35s cubic-bezier(.2,.9,.3,1.3) calc(var(--i) * 110ms) both; }
.lpath .lp-l { flex: 1; min-width: 8px; height: 2px; margin: 0 3px; border-radius: 1px; background: var(--card-line); }
.lpath .lp-l.ok { background: var(--gold-light); }
.lpath i.ok { background: var(--gold-light); border-color: var(--gold-light); color: var(--gold-ink); }
.lpath i.now { width: 28px; height: 28px; border-radius: 14px; background: var(--pink); border-color: var(--pink); color: #fff; font-size: 14px; animation: lp-in .35s cubic-bezier(.2,.9,.3,1.3) calc(var(--i) * 110ms) both, hub-pulse-pink 1.4s ease-out calc(var(--i) * 110ms + 400ms) 2; }
@keyframes lp-in { from { opacity: 0; transform: scale(.4); } }

/* #14 a transfer receipt: a gold "โอนแล้ว" stamp, pressed on once. */
.card.rc { overflow: hidden; } /* the stamp's press (scale) never widens the page */
.rc-stamp { float: right; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 10px 2px 4px 10px; border-radius: 48px; border: 3px double var(--gold); color: var(--gold-ink); background: rgba(246,238,223,.6); transform: rotate(-9deg); text-align: center; animation: rc-stamp .45s cubic-bezier(.3,1.6,.5,1) .35s both; }
.rc-stamp b { font-size: 1.05rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.rc-stamp small { font: 600 11px/1.3 var(--font-num); white-space: nowrap; }
@keyframes rc-stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } }

/* #15 KYC / bank-book photo: a dashed frame with what to photograph (card / face / book page); ✓ and a preview when the
   photo is ready (the preview stays on her phone until she sends). */
.field > .shot { position: relative; display: flex; align-items: center; justify-content: center; height: 112px; margin: 2px 0 8px; border: 2px dashed #d8cbb8; border-radius: 14px; background: #fbf8f4; color: #c9b590; overflow: hidden; font-weight: 400; }
.shot svg { width: 120px; height: 84px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.shot img[hidden] { display: none; }
.shot .shot-ok { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 13px; display: none; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 0 0 2px #fff; }
.field > .shot.ok { border-style: solid; border-color: var(--gold-light); color: var(--gold); }
.shot.ok .shot-ok { display: block; animation: copied-tick .3s cubic-bezier(.2,.9,.3,1.5) both; }
.field > .shot.bad { border-color: #e2a39c; }

@media (prefers-reduced-motion: reduce) {
  .tclimb.go li, .tclimb.go li.tc-here, .steps3 .stepno::after, .otrack i.now, .btn.copied, .btn.copied::after, .wiz li.now .no, .progress i { animation: none; }
  .steps3 .stepno::after { display: none; }
  /* visual ideas 2: everything above is shown in its final state */
  .steps-row li.done + li.sep::before, .steps-row li.now .dot, .cycle li.now .cy-dot, .hw-ring g, .btn.shared-ok::before, .btn.shared-ok::after,
  .eart path, .eart circle, .eart rect, .pick.moved, .lpath i, .lpath i.now, .rc-stamp, .shot.ok .shot-ok { animation: none; }
  .hw-ring, .hw-ring-a, .hw-ring-p, .pick.slide { transition: none; }
  .pick.moved { background: var(--gold-soft); }
  .share-dock { transition: none; } /* UX council 2.12 */
  .thumb.img-wait { animation: none; }
}
/* Recheck 320px (02-recheck.md P2-1): the no-wrap rules above fit 360px; at 320px a grid column may shrink below its
   no-wrap content, the commission line may wrap and the tiers table gets tighter, so nothing scrolls sideways. */
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* The tiers table (3 "ชิ้นราคา" columns since the Thai review) fits its card below 400px; at 320px the "คุณ" pill
   goes under the tier's sub-line. */
@media (max-width: 400px) {
  .tiers-t { font-size: .83rem; } /* UX council 2.12 (#27): 14px minimum */
  .tiers-t thead small { font-size: .83rem; }
  .tiers-t th, .tiers-t td { padding-left: 2px !important; padding-right: 2px !important; }
}
@media (max-width: 340px) {
  .pc-money .nw { white-space: normal; }
  .tiers-t tbody th .pill { display: block; width: max-content; margin: 2px 0 0 !important; }
}
/* P3-6: each link of the error summary is a full-size tap target. */
.errbox a { display: inline-block; padding: 8px 0; }
/* P3-4: a tip that reads as a plain question link (no chip frame), e.g. "🔒 ปลอดภัยไหม" under the 3 things to prepare. */
.tip-plain .tip-chip { border-color: transparent; background: transparent; color: var(--ink-soft); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"][data-needs-tick] { opacity: .4; cursor: not-allowed; } /* hub-bot polish 28.11: leave / delete wait for the tick */
.qr-pulse { outline: 3px solid var(--gold); outline-offset: 4px; transition: outline-color .3s; } /* hub-bot polish 28.11: "long-press here" */
/* Journeys 30.11: Instagram / TikTok in three steps (share page sheet). */
.social-steps { margin: 10px 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.social-steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.social-steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2B1D16; color: #F4E3B5; font-weight: 700; font-size: .85rem; }
.social-note { margin: 12px 0 0; font-size: .9rem; color: #6B5646; text-align: center; }
#social-sheet .btn { width: 100%; }

/* ---- UX council 2.12 (Apple/Samsung review, owner-approved) ---- */
/* #2: the share button follows her thumb — once the in-page button scrolls away, a compact copy sits above the nav. */
.share-dock { position: fixed; left: 0; right: 0; bottom: calc(63px + env(safe-area-inset-bottom)); z-index: 9; padding: 8px 0 10px; background: linear-gradient(rgba(251,246,238,0), var(--cream) 30%); transform: translateY(120%); opacity: 0; transition: transform .22s ease, opacity .22s ease; pointer-events: none; }
.share-dock .wrap { max-width: 480px; }
.share-dock .btn-share { min-height: 52px; }
.share-dock.on { transform: none; opacity: 1; pointer-events: auto; }
body.dock-on { padding-bottom: calc(84px + 72px + env(safe-area-inset-bottom)); }
/* R2-19: "show your QR" is the second action under the share button. */
.hw-qr { margin-top: 8px; min-height: 48px; border-radius: 24px; color: var(--ink); }
.hw-qr svg { color: var(--gold-ink); }
/* #15: three shortcuts; the gift tile carries a word, not an unexplained dot. */
.qa.qa3 { grid-template-columns: repeat(3,1fr); }
.qa .need-tag { position: absolute; top: 6px; right: 6px; padding: 0 7px; border-radius: 99px; background: var(--pink); color: #fff; font: 700 12px/1.6 var(--font); font-style: normal; }
/* #3: the tier line is a chip with a baht number, not tiny grey text. */
.tier-chip { justify-content: space-between; text-align: left; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--card-line); color: var(--ink); font-size: 15px; }
.tier-chip { white-space: normal; }
.tier-chip > span:first-child { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tier-chip .tc-name { color: var(--ink-soft); font-size: 14px; }
.tier-chip .tc-gain { color: var(--pink-ink); font-weight: 700; font-size: 15px; }
/* UX council 2.12 (#4, R2 env check): a photo that is still loading shimmers in brand cream; one that fails shows a
   quiet gem silhouette instead of an empty beige square (the layout script marks .img-wait / .img-fail). */
.thumb.img-wait { background: linear-gradient(100deg, #f4ece0 30%, #fbf6ee 50%, #f4ece0 70%) 0 0 / 300% 100%; animation: thumb-shimmer 1.3s linear infinite; }
.thumb.img-wait img { opacity: 0; }
.thumb img { transition: opacity .25s ease; }
.thumb.img-fail { background: #f6efe4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6 52 19v26L32 58 12 45V19z' fill='none' stroke='%23c9b08a' stroke-width='2'/%3E%3Cpath d='M12 19l20 9 20-9M32 28v30' fill='none' stroke='%23c9b08a' stroke-width='1.4'/%3E%3C/svg%3E") center / 38% no-repeat; }
.thumb.img-fail img { visibility: hidden; }
@keyframes thumb-shimmer { to { background-position: -300% 0; } }
/* UX council 2.12 (#9, R2-17): every tier column fits its column on phone, tablet and desktop. */
.tiers-wide [data-tier-wide] th, .tiers-wide [data-tier-wide] td { padding-left: 3px !important; padding-right: 3px !important; }
.tiers-wide [data-tier-wide] thead th { vertical-align: bottom; }
.tiers-all { margin-top: 6px; }
.tiers-all > summary { font-weight: 600; }
/* UX council 2.12 (#11, R2-10): the folded "what to prepare" card on an empty wallet. */
details.prep-fold { padding: 4px 18px; }
details.prep-fold > summary { min-height: 52px; }
details.prep-fold > summary h2 { margin: 0; }
details.prep-fold[open] { padding-bottom: 14px; }
/* UX council 2.12 (#12, R2-18): one icon family (x-hub.icon), gold, sitting on the text line. */
.hub-ico { display: inline-block; vertical-align: -3px; color: var(--gold-ink); flex: none; }
.hub-ico + * { margin-left: 0; }
/* UX council 2.12 (#13): one header — wordmark always, back as an icon on sub-pages; the moon's first-visit label. */
.hdr-left { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.back.back-ico { min-width: 44px; width: 44px; height: 44px; padding: 0; justify-content: center; margin-left: -10px; }
.back.back-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.luna-tag { font-size: 13px; font-weight: 600; color: var(--pink-ink); background: #fce7ef; border-radius: 99px; padding: 2px 10px; white-space: nowrap; margin-right: -4px; }
@media (max-width: 360px) { .luna-tag { display: none; } }
.hdr-left .brand { white-space: nowrap; }
.linkbox-big { font-size: 1rem; font-weight: 600; color: var(--ink); text-align: center; }
