/* VIP AIxperience v3 · VIP Media Group — charcoal, champagne gold, ruby. Calm and premium. */
:root {
  --bg: #15141b; --ink: #f6f1e7; --mute: #bdb5a6; --dim: #8a8478;
  --gold: #d8c194; --gold2: #b8975f; --ruby: #c8102e; --ruby2: #e0344d; --leaf: #8fb98a;
  --glass: rgba(24, 23, 32, .66); --glass2: rgba(34, 32, 44, .82); --line: rgba(255, 240, 215, .12); --line2: rgba(216, 193, 148, .35);
  --r: 20px; --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  --display: 'Montserrat', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body);
  touch-action: manipulation; -webkit-user-select: none; user-select: none; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
input, textarea, select { -webkit-user-select: text; user-select: text; font: inherit; font-size: 16px; color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
a { color: var(--gold); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#labels { position: fixed; inset: 0; pointer-events: none; transition: opacity .8s; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }

/* 3D labels — badge only; full name on hover / active */
.zlabel { pointer-events: auto; display: flex; align-items: center; gap: 0; padding: 3px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 19, 27, .55); border: 1px solid rgba(255, 240, 215, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 12px var(--display); letter-spacing: .05em; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), background .3s, opacity .4s, gap .3s, padding .3s; animation: lbob 4s ease-in-out infinite; }
.zlabel .zn { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, margin .3s; }
.zlabel:hover, .zlabel.on { background: rgba(28, 26, 38, .9); border-color: color-mix(in srgb, var(--zc, #d8c194) 60%, transparent); padding-right: 13px; }
.zlabel:hover .zn, .zlabel.on .zn { max-width: 220px; opacity: 1; margin-left: 8px; }
.zlabel:hover { transform: translateY(-3px) scale(1.04); }
@keyframes lbob { 50% { translate: 0 -3px; } }
body.flying .zlabel { opacity: .25; }
body.zoomed .zlabel:not(.on):not(:hover) { opacity: .4; scale: .78; }
.zb { --zc: #d8c194; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff6e6; position: relative;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--zc) 85%, #fff 15%), color-mix(in srgb, var(--zc) 55%, #15141b) 75%);
  box-shadow: 0 0 0 1.5px rgba(255, 240, 215, .35) inset, 0 0 18px color-mix(in srgb, var(--zc) 55%, transparent); --icon-bg: color-mix(in srgb, var(--zc) 60%, #15141b); }
.zb svg { width: 58%; height: 58%; }
.zb.logo { background: radial-gradient(circle at 35% 30%, #3a3746, #17161e 75%); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--zc) 70%, transparent) inset, 0 0 18px color-mix(in srgb, var(--zc) 45%, transparent); }
.zb.logo img, .zb.home img { width: 66%; height: 66%; object-fit: contain; }
.zb.logo.fill img { width: 100%; height: 100%; }
.zb.home { background: radial-gradient(circle at 35% 30%, #4a2630, #17161e 75%); box-shadow: 0 0 0 1.5px rgba(216, 193, 148, .6) inset, 0 0 18px rgba(200, 16, 46, .4); }
.zb.sm { width: 22px; height: 22px; vertical-align: -6px; display: inline-grid; margin-right: 6px; box-shadow: 0 0 0 1px rgba(255, 240, 215, .3) inset; }
.zb.lg { width: 40px; height: 40px; }
.zb.xl { width: 52px; height: 52px; }
.plogo { height: 30px; width: auto; display: block; }
.plogo.word { display: inline-flex; align-items: center; gap: 8px; font: 600 20px var(--display); color: #fff; height: auto; }
.plogo.word svg { width: 28px; height: 28px; color: #f2a541; }

/* Welcome */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(70% 60% at 50% 35%, #2a2733 0%, #15141b 70%); transition: opacity 1.4s ease, visibility 1.4s; overflow-y: auto; }
#loader.out { opacity: 0; visibility: hidden; }
.ld-glow { position: absolute; inset: 0; background: radial-gradient(30% 25% at 50% 28%, rgba(216, 193, 148, .16), transparent 70%); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { opacity: .55; } }
.ld-inner { position: relative; width: min(520px, 100%); }
.ld-mark { width: 150px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.ld-group { margin: 6px 0 0; font: 400 15px var(--display); letter-spacing: .5em; padding-left: .5em; color: var(--gold); }
.ld-group b { color: var(--ruby2); }
.ld-title { margin: 26px 0 6px; font: 300 clamp(34px, 8vw, 56px)/1 var(--display); letter-spacing: .14em; padding-left: .14em; color: var(--ink); animation: rise 1.2s .2s cubic-bezier(.2, .8, .2, 1) both; }
.ld-tag { margin: 0 0 24px; color: var(--mute); font-size: 15px; animation: rise 1.2s .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.ld-somi { display: flex; align-items: flex-end; gap: 12px; text-align: left; margin: 0 auto 22px; max-width: 440px; animation: rise 1.2s .5s both; }
.ld-somi img { width: 104px; flex: none; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }
.ld-bubble { position: relative; margin: 0 0 24px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: rgba(246, 241, 231, .95); color: #24222b; font-weight: 600; font-size: 14.5px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ld-partner { display: flex; align-items: center; gap: 12px; justify-content: center; margin: -6px auto 18px; padding: 9px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); width: max-content; max-width: 100%; text-align: left; font-size: 13px; }
.ld-partner small { display: block; color: var(--mute); font-size: 11.5px; }
.ph, .ld-partner img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--gold2), var(--ruby)); display: grid; place-items: center; font-weight: 800; flex: none; }
.ld-bar { width: 180px; height: 2px; margin: 0 auto 22px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .3s; }
.btn-enter { padding: 16px 40px; border-radius: 999px; font: 500 14px var(--display); letter-spacing: .22em; text-transform: uppercase; color: #1d1b22;
  background: linear-gradient(120deg, #e9d6ad, var(--gold) 45%, var(--gold2)); box-shadow: 0 10px 34px rgba(216, 193, 148, .28), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .2s, opacity .3s, box-shadow .3s; }
.btn-enter:disabled { opacity: .45; cursor: wait; }
.btn-enter:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(216, 193, 148, .42), inset 0 1px 0 rgba(255, 255, 255, .6); }
.ld-hint { margin-top: 16px; font-size: 12px; color: var(--dim); letter-spacing: .06em; }

/* HUD */
#hud { position: fixed; z-index: 12; top: calc(12px + var(--st)); left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
#hud > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand img { height: 22px; }
.brand span { font: 400 12px var(--display); letter-spacing: .16em; }
.brand b, .ld-title b { color: var(--gold); font-weight: 500; }
.ibtn.sm { width: 32px; height: 32px; font: 600 13px var(--display); color: var(--mute); }
.hud-right { display: flex; gap: 8px; align-items: center; }
.pill { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font: 600 15px var(--display); font-variant-numeric: tabular-nums; }
.pill .spk { color: var(--gold); text-shadow: 0 0 12px rgba(216, 193, 148, .7); }
.pill.bump { animation: bump .6s; }
@keyframes bump { 40% { transform: scale(1.12); box-shadow: 0 0 26px rgba(216, 193, 148, .5); } }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--glass2); display: grid; place-items: center; font-size: 17px; overflow: hidden; border: 1px solid var(--line); }
.avatar svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.avatar circle { fill: none; stroke-width: 2.5; }
.avatar .rb { stroke: rgba(255, 255, 255, .1); }
.avatar .rr { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 125.6; stroke-dashoffset: 125.6; transition: stroke-dashoffset 1s; }
.avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ibtn { width: 42px; height: 42px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 16px; color: var(--gold); }
.ibtn.off { color: var(--dim); text-decoration: line-through; }

#partnerBar { position: fixed; z-index: 11; top: calc(64px + var(--st)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 7px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12.5px; max-width: calc(100vw - 28px); }
#partnerBar .ph, #partnerBar img { width: 28px; height: 28px; font-size: 12px; }
#partnerBar .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#partnerBar a { flex: none; padding: 6px 12px; border-radius: 999px; background: #25d366; color: #062b14; text-decoration: none; font-weight: 800; font-size: 12px; }

/* Main bar */
#bar { position: fixed; z-index: 12; left: 50%; transform: translateX(-50%); bottom: calc(22px + var(--sb)); display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
#bar button { min-width: 78px; padding: 8px 10px 7px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: background .25s; }
#bar button i { font-style: normal; font-size: 18px; color: var(--gold); height: 24px; display: grid; place-items: center; font-family: var(--display); font-weight: 500; }
#bar button span { font: 500 11px var(--display); letter-spacing: .04em; color: var(--mute); }
#bar button:hover, #bar button.on { background: rgba(216, 193, 148, .12); }
#bar button.on span { color: var(--ink); }
.somi-ic img { width: 26px; height: 26px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; background: rgba(246, 241, 231, .9); }

/* Solutions tray */
#tray { position: fixed; z-index: 12; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--sb)); width: min(720px, calc(100vw - 20px)); padding: 12px; border-radius: 22px; background: var(--glass2); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); animation: up .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 14px); } }
.tray-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 4px 10px; }
.tray-head b { font: 500 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tray-head span { font-size: 12px; color: var(--dim); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); margin-bottom: 10px; }
.seg button { padding: 7px 14px; border-radius: 9px; font: 500 12px var(--display); letter-spacing: .05em; color: var(--mute); }
.seg button.on { background: rgba(216, 193, 148, .18); color: var(--ink); }
.tray-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.chip { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 16px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .2s; min-width: 0; }
.chip:hover { background: rgba(255, 255, 255, .08); border-color: var(--zc); transform: translateY(-2px); }
.chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: color-mix(in srgb, var(--zc) 24%, transparent); }
.chip b { font: 500 12.5px/1.25 var(--display); }
.chip small { font-size: 11px; color: var(--dim); line-height: 1.3; }
.chip .tick { position: absolute; top: 8px; right: 9px; font-size: 11px; color: var(--leaf); }

/* Somi guide */
#somi { position: fixed; z-index: 13; left: 18px; bottom: calc(100px + var(--sb)); display: flex; align-items: flex-end; gap: 10px; pointer-events: none; max-width: min(460px, calc(100vw - 36px)); }
#somi > * { pointer-events: auto; }
.somi-face { flex: none; width: 112px; padding: 0; animation: bob 4.5s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); transition: transform .3s; }
.somi-face img { width: 100%; display: block; }
.somi-face.cheer { animation: cheer .9s ease; }
@keyframes cheer { 30% { transform: translateY(-14px) scale(1.06); } 60% { transform: translateY(0) scale(1); } }
.somi-bubble { position: relative; margin-bottom: 34px; padding: 13px 34px 13px 16px; border-radius: 18px 18px 18px 4px; background: rgba(246, 241, 231, .96); color: #25232c; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: pop .35s cubic-bezier(.2, .9, .3, 1.2); min-width: 0; }
.somi-bubble.hide { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.somi-bubble p { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.45; min-height: 1.45em; }
.somi-bubble .who { display: block; font: 600 10px var(--display); letter-spacing: .18em; color: var(--ruby); margin-bottom: 3px; }
.somi-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.somi-acts:empty { display: none; }
.somi-acts button, .somi-acts a { padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #25232c; color: #f6f1e7; text-decoration: none; }
.somi-acts .ghost { background: transparent; color: #25232c; border: 1px solid rgba(37, 35, 44, .25); }
.somi-x { position: absolute; top: 7px; right: 8px; width: 22px; height: 22px; border-radius: 50%; font-size: 10px; color: #6e6a75; }
.somi-bubble .dots { display: flex; gap: 4px; margin-top: 8px; }
.somi-bubble .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(37, 35, 44, .2); }
.somi-bubble .dots i.on { background: var(--ruby); }

/* Zone card */
#zoneCard { position: fixed; z-index: 11; right: 18px; top: calc(74px + var(--st)); width: min(370px, calc(100vw - 36px)); max-height: calc(100dvh - 190px); overflow-y: auto; padding: 18px 18px 16px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: slideIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.kick { font: 600 10px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--zc, var(--gold)); }
#zoneCard h3 { margin: 4px 0 2px; font: 500 21px/1.2 var(--display); letter-spacing: .01em; }
#zoneCard .tag { margin: 0 0 12px; color: var(--mute); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 7px; }
.checks li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.4; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--zc, var(--gold)); border-bottom: 2px solid var(--zc, var(--gold)); transform: rotate(-45deg); }
.value { padding: 11px 13px; border-radius: 14px; background: rgba(216, 193, 148, .08); border: 1px solid var(--line2); font-size: 13.5px; margin-bottom: 14px; }
.value small { display: block; font: 600 9.5px var(--display); letter-spacing: .2em; color: var(--gold); margin-bottom: 3px; }
.zc-acts { display: grid; gap: 8px; }
.mood { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; color: var(--dim); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 9px; }
.eq i { width: 2px; background: var(--gold); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .25s; } .eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%, 100% { height: 2px; } 50% { height: 9px; } }
.zc-min { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 12px; color: var(--mute); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background .2s, transform .1s; }
.btn:hover { background: rgba(255, 255, 255, .11); }
.btn:active { transform: scale(.98); }
.btn.gold { color: #1d1b22; border-color: transparent; background: linear-gradient(120deg, #e9d6ad, var(--gold) 50%, var(--gold2)); }
.btn.ruby { border-color: transparent; background: linear-gradient(120deg, var(--ruby), #9e0c25); }
.btn.wa { background: #25d366; color: #052b13; border-color: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* toasts */
#toasts { position: fixed; z-index: 60; top: calc(68px + var(--st)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(24, 23, 32, .9); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 700; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: tin .4s cubic-bezier(.2, .9, .3, 1.2), tout .4s ease 2.8s forwards; }
.toast .amt { font: 600 13px var(--display); color: var(--gold); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
@keyframes tout { to { opacity: 0; transform: translateY(-8px); } }

/* panel */
#scrim { position: fixed; inset: 0; z-index: 30; background: rgba(10, 9, 14, .4); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
#panel { position: fixed; z-index: 31; top: calc(66px + var(--st)); right: 12px; bottom: 104px; width: min(460px, calc(100vw - 24px)); display: flex; flex-direction: column; border-radius: 24px;
  background: rgba(22, 21, 30, .9); border: 1px solid var(--line); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: slideIn .45s cubic-bezier(.2, .8, .2, 1); }
#panel .grab { display: none; }
#panel header { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px 22px; }
#panel h2 { margin: 0; font: 500 18px var(--display); letter-spacing: .02em; }
.x { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .07); font-size: 13px; color: var(--mute); }
.pbody { flex: 1; overflow-y: auto; padding: 4px 18px 26px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lead { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 0 2px 14px; }
.sec { font: 600 10px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 20px 2px 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); margin-bottom: 8px; width: 100%; text-align: left; }
.row .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(255, 255, 255, .06); }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-size: 14px; }
.row .tx small { color: var(--mute); font-size: 12.5px; line-height: 1.35; display: block; }
.row .rt { flex: none; font: 600 13px var(--display); color: var(--gold); }
.row.done { opacity: .6; } .row.done .rt { color: var(--leaf); }
.bar2 { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 7px; }
.bar2 i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.tabs { display: flex; gap: 6px; margin: 4px 0 6px; }
.tabs button { flex: 1; padding: 9px; border-radius: 12px; font: 500 12.5px var(--display); color: var(--mute); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tabs button.on { color: var(--ink); background: rgba(216, 193, 148, .14); border-color: var(--line2); }

/* project cards */
.pcard { display: block; width: 100%; text-align: left; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); margin-bottom: 12px; transition: border-color .25s, transform .2s; }
.pcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.pcard .cv { position: relative; aspect-ratio: 16/9; background: #222029; }
.pcard .cv img { width: 100%; height: 100%; object-fit: cover; }
.pcard .cv .cnt { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.pcard .cv .cnt span { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(20, 19, 27, .75); }
.pcard .cv .seen { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(143, 185, 138, .9); color: #10230f; }
.pcard .bd { padding: 12px 14px 14px; }
.pcard .bd small { color: var(--gold); font: 500 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.pcard .bd b { display: block; font-size: 15px; margin: 3px 0 4px; line-height: 1.3; }
.pcard .bd p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* stamps */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 9.5px; font-weight: 700; line-height: 1.15; padding: 6px; position: relative;
  background: radial-gradient(circle, color-mix(in srgb, var(--zc) 35%, #1d1b24) 0%, #1d1b24 70%); border: 1.5px dashed var(--zc); }
.stamp span { display: block; font-size: 20px; margin-bottom: 2px; }
.stamp.off { --zc: rgba(255, 255, 255, .18); filter: grayscale(1); opacity: .45; }

/* rewards */
.reward { padding: 14px; border-radius: 18px; background: linear-gradient(150deg, rgba(216, 193, 148, .1), rgba(200, 16, 46, .05)); border: 1px solid var(--line2); margin-bottom: 10px; }
.reward .top { display: flex; gap: 12px; }
.reward .ic { font-size: 28px; }
.reward b { font-size: 14.5px; }
.reward p { margin: 3px 0 10px; color: var(--mute); font-size: 13px; line-height: 1.4; }
.reward .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reward .cost { font: 600 14px var(--display); color: var(--gold); }
.tagn { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(143, 185, 138, .18); color: var(--leaf); margin-left: 6px; vertical-align: 2px; }
.note { color: var(--dim); font-size: 12.5px; line-height: 1.5; }

/* chat (Ask Somi) */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.somi { align-self: flex-start; background: rgba(246, 241, 231, .95); color: #25232c; border-radius: 16px 16px 16px 4px; font-weight: 500; }
.msg.me { align-self: flex-end; background: rgba(216, 193, 148, .18); border: 1px solid var(--line2); border-radius: 16px 16px 4px 16px; }
.msg .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.msg .acts button, .msg .acts a { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #25232c; color: #f6f1e7; text-decoration: none; }
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chat-head img { width: 54px; }
.sugs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.sugs button { padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.sugs button:hover { border-color: var(--line2); }
.ask { display: flex; gap: 8px; position: sticky; bottom: 0; padding-top: 10px; background: linear-gradient(transparent, rgba(22, 21, 30, .95) 30%); }
.ask input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); outline: none; }
.ask input:focus { border-color: var(--line2); }

.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 12px; color: var(--mute); margin: 0 0 5px 3px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--line2); }
.field textarea { min-height: 80px; resize: vertical; }
.chips2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip2 { padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.chip2.on { border-color: var(--gold); background: rgba(216, 193, 148, .14); }
.hero { text-align: center; padding: 4px 0 2px; }
.hero .big { font-size: 42px; }
.hero h3 { margin: 6px 0 2px; font: 500 20px var(--display); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.stats3 div { padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); text-align: center; }
.stats3 b { display: block; font: 600 18px var(--display); font-variant-numeric: tabular-nums; }
.stats3 small { font-size: 11px; color: var(--mute); }

/* modal */
#modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(8, 7, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
.mbox { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 24px; background: rgba(24, 23, 32, .96); border: 1px solid var(--line); padding: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: pop .4s cubic-bezier(.2, .9, .3, 1.15); }
.mbox.wide { width: min(1000px, 100%); padding: 0; }
.mbox > .x { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(20, 19, 27, .7); }
.mbox h2 { font: 500 21px/1.3 var(--display); margin: 4px 0 8px; }

/* project viewer */
.pv { display: grid; grid-template-columns: 1.55fr 1fr; max-height: calc(100dvh - 32px); }
.pv-media { min-width: 0; background: #0e0d12; display: flex; flex-direction: column; }
.pv-info { min-width: 0; overflow-y: auto; padding: 22px 22px 22px; max-height: calc(100dvh - 32px); }
.pv-info h2 { margin-top: 6px; }
.pv-info p { color: #ddd5c6; line-height: 1.6; font-size: 14.5px; margin: 0 0 12px; }
.pv-stage { position: relative; aspect-ratio: 16/9; background: #0e0d12; }
.pv-stage img, .pv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.pv-stage .ext { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: center; }
.pv-cap { padding: 10px 18px; font-size: 13.5px; color: var(--mute); min-height: 42px; }
.pv-thumbs { display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; scrollbar-width: thin; }
.pv-thumbs button { position: relative; flex: none; width: 108px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: opacity .2s, border-color .2s; background: #222; }
.pv-thumbs button.on { border-color: var(--gold); opacity: 1; }
.pv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumbs .pl { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: #fff; text-shadow: 0 0 8px #000; }
.pv-body { padding: 6px 22px 22px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.pv-body p { color: #ddd5c6; line-height: 1.6; font-size: 14.5px; margin: 0 0 12px; }
.pv-acts { display: grid; gap: 8px; }

/* quiz / reveal */
.quiz .q { font: 500 19px/1.4 var(--display); margin: 8px 0 14px; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 13px 15px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 600; font-size: 14px; line-height: 1.4; transition: background .2s; }
.opt:hover { background: rgba(255, 255, 255, .09); }
.opt.right { background: rgba(143, 185, 138, .2); border-color: var(--leaf); }
.opt.wrong { background: rgba(200, 16, 46, .18); border-color: var(--ruby2); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.somi-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 6px; }
.somi-row img { width: 74px; flex: none; }
.somi-row .msg { max-width: none; }
.reveal { text-align: center; }
.reveal .somi-big { width: 150px; margin: -10px auto 0; display: block; animation: cheer 1s ease; }
.badge { width: 120px; height: 120px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 44px; border: 2px dashed var(--zc); background: radial-gradient(circle, color-mix(in srgb, var(--zc) 40%, #1d1b24), #1d1b24 72%); box-shadow: 0 0 50px color-mix(in srgb, var(--zc) 45%, transparent); animation: stampIn .8s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stampIn { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } }
.ticket { position: relative; margin: 14px 0; padding: 18px; border-radius: 18px; background: linear-gradient(130deg, #ecdcb6, var(--gold) 55%, var(--gold2)); color: #1d1b22; text-align: center; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: rgb(24, 23, 32); transform: translateY(-50%); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket .code { font: 600 22px var(--display); letter-spacing: .1em; margin: 6px 0; -webkit-user-select: all; user-select: all; }
.ticket small { font-weight: 700; opacity: .7; }

#confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }
#foot { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(5px + var(--sb)); font-size: 9px; white-space: nowrap; text-align: center; color: rgba(246, 241, 231, .4); }
#foot a { color: rgba(246, 241, 231, .6); text-decoration: none; }

@media (min-width: 761px) { #bar, #hud, #somi, #tray { z-index: 33; } }
@media (max-width: 760px) {
  .brand span { display: none; } .brand { padding: 7px 10px; }
  #bar { bottom: calc(16px + var(--sb)); padding: 5px; gap: 2px; }
  #bar button { min-width: 74px; padding: 7px 4px 6px; }
  #tray { bottom: calc(86px + var(--sb)); }
  .tray-list { grid-template-columns: repeat(2, 1fr); }
  .tray-list .chip:last-child:nth-child(odd) { grid-column: span 2; }
  #somi { left: 10px; right: 10px; top: calc(66px + var(--st)); bottom: auto; align-items: flex-start; max-width: none; }
  .somi-face { width: 62px; }
  .somi-bubble { margin: 8px 0 0; flex: 1; border-radius: 4px 18px 18px 18px; }
  #zoneCard { right: 10px; left: 10px; top: auto; bottom: calc(86px + var(--sb)); width: auto; max-height: 46dvh; padding: 15px 15px 13px; animation: up2 .45s cubic-bezier(.2, .8, .2, 1); }
  @keyframes up2 { from { opacity: 0; transform: translateY(16px); } }
  #zoneCard h3 { font-size: 18px; }
  #zoneCard.min .checks, #zoneCard.min .tag, #zoneCard.min .mood { display: none; }
  #panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(88dvh, 780px); border-radius: 24px 24px 0 0; padding-bottom: var(--sb); animation: up2 .45s cubic-bezier(.2, .8, .2, 1); }
  #panel .grab { display: block; width: 42px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 8px auto 0; }
  .pv { grid-template-columns: 1fr; max-height: none; }
  .pv-info { max-height: none; overflow: visible; padding: 14px 18px 20px; }
  #bar button { min-width: 0; flex: 1; padding: 7px 2px 6px; }
  #bar { left: 8px; right: 8px; transform: none; }
  #bar button span { font-size: 10px; }
  @keyframes up { from { opacity: 0; transform: translate(-50%, 14px); } }
  .mbox { padding: 20px 18px; }
  .zlabel { font-size: 10.5px; padding: 5px 10px 5px 8px; }
  #foot { font-size: 8px; left: 50%; bottom: calc(2px + var(--sb)); }
  #partnerBar { top: calc(62px + var(--st)); }
  #toasts { top: calc(150px + var(--st)); }
  #bar button span { white-space: nowrap; font-size: 9.5px; letter-spacing: 0; }
  #zoneCard.min .zc-acts .btn:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ───────── v3 additions ───────── */
/* living galaxy vignette behind UI */
#labels::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(8, 7, 14, .55)); }
#tip { z-index: 14; }

/* main bar with the raised Somi button */
#bar { align-items: flex-end; overflow: visible; padding: 6px 8px; gap: 2px; }
#bar button i svg { width: 22px; height: 22px; }
#bar button.somi-main { position: relative; min-width: 96px; padding-top: 0; margin: 0 4px; }
.somi-orb { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin-top: -36px; margin-bottom: 1px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff8ec, #f1e3c6 55%, #c9a865); box-shadow: 0 0 0 3px rgba(21, 20, 27, .9), 0 0 0 4.5px var(--gold), 0 10px 30px rgba(0, 0, 0, .45), 0 0 40px rgba(216, 193, 148, .45);
  animation: orbBob 3.6s ease-in-out infinite; transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.somi-orb::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(216, 193, 148, .5); animation: ping 2.8s ease-out infinite; }
.somi-orb::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 230, 180, .9), transparent 30%); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 72%); animation: spin 4s linear infinite; }
.somi-orb img, .somi-orb video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 50%; pointer-events: none; }
#bar button.somi-main:hover { background: none; }
#bar button.somi-main:hover .somi-orb { transform: translateY(-4px) scale(1.06); }
#bar button.somi-main:active .somi-orb { transform: scale(.94); }
#bar button.somi-main.on .somi-orb { box-shadow: 0 0 0 3px rgba(21, 20, 27, .9), 0 0 0 4.5px #fff1d0, 0 0 50px rgba(255, 220, 160, .7); }
#bar button.somi-main span:last-child { color: var(--gold); font-weight: 600; }
@keyframes orbBob { 50% { translate: 0 -3px; } }
@keyframes ping { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
#bar button:active i { transform: scale(.88); }
#bar button i { transition: transform .2s cubic-bezier(.2, .9, .3, 1.5); }
#bar button:hover i { transform: translateY(-2px); }
.pf { position: relative; width: 30px; height: 30px; }
.pf .ring { position: absolute; inset: -3px; width: 36px; height: 36px; transform: rotate(-90deg); }
.pf .ring circle { fill: none; stroke-width: 2.5; }
.pf .rb { stroke: rgba(255, 255, 255, .1); }
.pf .rr { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 125.6; stroke-dashoffset: 125.6; transition: stroke-dashoffset 1s; }
.pf #avatarGlyph { position: absolute; inset: 3px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.pf #avatarGlyph svg { width: 20px; height: 20px; }
.pf #avatarGlyph img { width: 100%; height: 100%; object-fit: cover; }
.pdot { position: absolute; top: -2px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--ruby2); box-shadow: 0 0 0 2px #1b1a22; animation: ping2 2s infinite; }
@keyframes ping2 { 50% { transform: scale(1.25); } }

/* tray */
@media (min-width: 761px) { #tray { bottom: calc(124px + var(--sb)); } }
#tray.pop .chip { animation: chipIn .45s cubic-bezier(.2, .9, .3, 1.25) both; }
#tray.pop .chip:nth-child(2) { animation-delay: .04s; } #tray.pop .chip:nth-child(3) { animation-delay: .08s; } #tray.pop .chip:nth-child(4) { animation-delay: .12s; } #tray.pop .chip:nth-child(5) { animation-delay: .16s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.chip { align-items: center; text-align: center; padding: 14px 8px 12px; gap: 7px; }
.chip:hover .zb { transform: scale(1.1) rotate(-4deg); }
.chip .zb { transition: transform .3s cubic-bezier(.2, .9, .3, 1.5); }
.chip:active { transform: scale(.97); }

/* key points */
.kps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 7px; }
.kps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.35; padding: 7px 10px 7px 7px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); }
.kps li i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--zc, var(--gold)); background: color-mix(in srgb, var(--zc, #d8c194) 16%, transparent); }
.kps li i svg { width: 18px; height: 18px; }
.kps.row3 { grid-template-columns: repeat(3, 1fr); }
.kps.row3 li { flex-direction: column; text-align: center; font-size: 12px; padding: 10px 8px; }
.value { display: flex; gap: 10px; align-items: flex-start; }
.value > i { flex: none; width: 26px; height: 26px; color: var(--gold); } .value > i svg { width: 100%; height: 100%; }
.mini-kp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-kp span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 5px; border-radius: 999px; font-size: 11.5px; color: var(--mute); background: rgba(255, 255, 255, .05); }
.mini-kp i { width: 16px; height: 16px; color: var(--gold); } .mini-kp i svg { width: 100%; height: 100%; }

/* zone card */
.zc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding-right: 26px; }
.zc-head h3 { margin: 2px 0 0 !important; }
.zc-logo .plogo { height: 26px; margin-top: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zc-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 12px; }
.zc-strip button { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #222029; border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.zc-strip button:hover { transform: translateY(-2px) scale(1.03); border-color: var(--zc); }
.zc-strip img { width: 100%; height: 100%; object-fit: cover; }
.zc-strip .pl, .pv-thumbs .pl { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; text-shadow: 0 0 8px #000; }
#zoneCard.min .kps, #zoneCard.min .zc-strip { display: none; }

/* panels: profile / contact / pocket */
#panel h2 .zb.sm { vertical-align: -5px; }
.p-logo { margin: 0 2px 12px; } .p-logo .plogo { height: 34px; }
.pocket-cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; text-align: left; margin-bottom: 12px;
  background: linear-gradient(120deg, rgba(216, 193, 148, .22), rgba(200, 16, 46, .14)); border: 1px solid var(--line2); position: relative; overflow: hidden; transition: transform .2s; }
.pocket-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 3.5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.pocket-cta:active { transform: scale(.98); }
.pk-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #1b1a22; border: 1px solid var(--line2); }
.pk-ic img { width: 34px; }
.pocket-cta .tx { flex: 1; min-width: 0; } .pocket-cta b { display: block; font-size: 15px; } .pocket-cta small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.pocket-cta .go { flex: none; padding: 9px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #1d1b22; background: linear-gradient(120deg, #e9d6ad, var(--gold) 50%, var(--gold2)); }
.member { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 12px; }
.member .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 800; background: linear-gradient(135deg, var(--gold2), var(--ruby)); }
.member .av img { width: 100%; height: 100%; object-fit: cover; }
.member .tx { flex: 1; min-width: 0; } .member b { display: block; } .member small { color: var(--mute); font-size: 12.5px; }
.member .ok { font-size: 12px; font-weight: 800; color: var(--leaf); }
.hero.sm .big { font-size: 34px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; text-decoration: none; text-align: center; transition: transform .2s; }
.cbtn:hover { transform: translateY(-2px); }
.cbtn.gold { color: #1d1b22; background: linear-gradient(140deg, #f3e6c6, var(--gold) 55%, var(--gold2)); }
.cbtn.gold img { width: 44px; height: 44px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; background: #fff7e8; }
.cbtn.wa { color: #052b13; background: #25d366; } .cbtn.wa i { width: 44px; height: 44px; display: grid; place-items: center; } .cbtn.wa i svg { width: 30px; height: 30px; }
.cbtn b { font-size: 13.5px; } .cbtn small { font-size: 11.5px; opacity: .75; }
a.row { text-decoration: none; color: inherit; }
.row .ic svg { width: 20px; height: 20px; color: var(--gold); }
.btn.ghost { background: transparent; }

/* case-study viewer */
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tagz { display: inline-flex; align-items: center; padding: 4px 11px 4px 4px; border-radius: 999px; font: 600 11px var(--display); letter-spacing: .06em; background: color-mix(in srgb, var(--zc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--zc) 40%, transparent); }
.tagz .plogo { height: 16px; margin-left: 6px; }
.pv-stage .poster { filter: blur(0); }
.pv-stage iframe { opacity: 0; transition: opacity .5s; } .pv-stage iframe.ready { opacity: 1; }
.pv-stage img.photo { opacity: 0; transition: opacity .35s; } .pv-stage img.photo.ready { opacity: 1; }
.pv-stage::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #15141b 30%, #24222c 50%, #15141b 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* creature tip bubble */
#tip { position: fixed; left: 50%; top: 30%; width: min(300px, calc(100vw - 32px)); padding: 13px 34px 13px 15px; border-radius: 18px; background: rgba(246, 241, 231, .97); color: #25232c; box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 40px rgba(170, 210, 255, .35); cursor: pointer; }
#tip.show { animation: tipIn .5s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes tipIn { from { opacity: 0; transform: translateY(10px) scale(.85); } }
#tip::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.tip-k { font: 600 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #6c5aa8; margin-bottom: 4px; }
#tip p { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.45; }
.tip-x { position: absolute; top: 7px; right: 8px; width: 22px; height: 22px; border-radius: 50%; font-size: 10px; color: #6e6a75; }

@media (max-width: 760px) {
  #bar { padding: 5px 4px; }
  #bar button.somi-main { min-width: 0; flex: 1.15; margin: 0; }
  .somi-orb { width: 62px; height: 62px; margin-top: -30px; }
  .zlabel { padding: 2px; } .zb { width: 28px; height: 28px; }
  .zlabel:hover .zn, .zlabel.on .zn { margin-left: 6px; }
  .kps.row3 { grid-template-columns: 1fr; } .kps.row3 li { flex-direction: row; text-align: left; font-size: 13px; padding: 7px 10px 7px 7px; }
  #tray { bottom: calc(96px + var(--sb)); }
  #zoneCard { bottom: calc(96px + var(--sb)); }
  .chip { padding: 11px 8px 10px; flex-direction: row; text-align: left; }
  .chip .zb.lg { width: 34px; height: 34px; }
  .chip small { display: none; }
}
img.broken { opacity: 0 !important; }

/* ───────── v3.1 ───────── */
/* Somi half-body avatar beside her bubble */
.somi-face { width: 132px; height: 158px; animation: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); position: relative; }
.somi-face canvas { width: 100%; height: 100%; display: block; }
.somi-face::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 193, 148, .35), transparent); z-index: -1; }
.somi-face:hover { transform: translateY(-3px); }
/* HUD small buttons: language + music (same size as ?) */
.ibtn.sm.lang { font: 700 11.5px var(--display); color: var(--gold); letter-spacing: .02em; }
#soundBtn { display: grid; place-items: center; text-decoration: none; }
#soundBtn .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
#soundBtn .eq i { width: 2.5px; height: 4px; border-radius: 2px; background: var(--gold); animation: eq 1s ease-in-out infinite; }
#soundBtn .eq i:nth-child(2) { animation-delay: .2s; } #soundBtn .eq i:nth-child(3) { animation-delay: .45s; } #soundBtn .eq i:nth-child(4) { animation-delay: .7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
#soundBtn.off .eq i { animation: none; height: 3px; background: var(--dim); }
/* map controls */
#nav { position: fixed; z-index: 12; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#nav button { width: 40px; height: 40px; display: grid; place-items: center; font: 400 22px/1 var(--display); color: var(--ink); transition: background .2s, color .2s; }
#nav button + button { border-top: 1px solid var(--line); }
#nav button:hover { background: rgba(216, 193, 148, .14); color: var(--gold); }
#nav button:active { transform: scale(.92); }
#nav svg { width: 19px; height: 19px; }
body:has(#zoneCard:not(.hidden)) #nav { right: 400px; }
body:has(#panel:not(.hidden)) #nav { opacity: 0; pointer-events: none; }
/* Next buttons + website link */
.btn.next { flex-direction: column; gap: 1px; align-items: center; }
.btn.next small { display: inline-flex; align-items: center; font-weight: 600; font-size: 11.5px; color: var(--mute); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.next small .zb.sm { width: 18px; height: 18px; margin-right: 5px; }
.site { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--gold); background: rgba(216, 193, 148, .07); border: 1px solid var(--line2); font-weight: 700; font-size: 13px; }
.site svg { width: 18px; height: 18px; }
/* Ask Somi */
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chat-head img { width: 50px; flex: none; }
.chat-head .who { flex: 1; min-width: 0; } .chat-head .who b { display: block; font: 600 16px var(--display); } .chat-head .who small { color: var(--mute); font-size: 12px; }
.live-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-weight: 800; font-size: 12.5px; text-decoration: none; color: #1d1b22; background: linear-gradient(120deg, #f3e2bb, var(--gold) 50%, var(--gold2)); box-shadow: 0 6px 20px rgba(216, 193, 148, .35); animation: livePulse 2.6s ease-in-out infinite; }
.live-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0344d; box-shadow: 0 0 0 0 rgba(224, 52, 77, .6); animation: liveDot 1.6s infinite; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 7px rgba(224, 52, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 52, 77, 0); } }
@keyframes livePulse { 50% { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(216, 193, 148, .5); } }
.ask-tabs { margin-bottom: 12px; }
.bp-wrap { position: relative; height: min(60dvh, 560px); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line2); }
.bp-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.bp-wrap iframe.ready { opacity: 1; }
.bp-load { position: absolute; inset: 0; display: grid; place-items: center; background: #f6f1e7; }
.bp-note { margin: 8px 2px 0; }
#panel.wide-chat { width: min(520px, calc(100vw - 24px)); }
.msg.in { animation: msgIn .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.msg.me.in { transform-origin: right bottom; } .msg.somi.in { transform-origin: left bottom; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.msg .acts > * { animation: msgIn .4s .15s both; }
.typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9a27a; animation: dotJump 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dotJump { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat { scroll-behavior: smooth; }
/* onboarding + celebration avatars */
.onboard { text-align: center; }
.ob-somi { display: block; width: 150px; height: 170px; margin: -10px auto 2px; }
.ob-somi.big { width: 170px; height: 190px; }
.onboard input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .07); outline: none; text-align: center; font-weight: 700; font-size: 17px; margin: 6px 0 4px; }
.onboard input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 193, 148, .18); }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; text-align: left; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); animation: msgIn .5s both; }
.steps li:nth-child(2) { animation-delay: .1s; } .steps li:nth-child(3) { animation-delay: .2s; }
.steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); color: #1d1b22; background: linear-gradient(120deg, #e9d6ad, var(--gold)); }
.steps b { display: block; font-size: 14px; } .steps small { color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.hi-name { font: 600 15px var(--display); margin: 0 2px 10px; }
.hero .big.crown { color: var(--gold); } .hero .big.crown svg { width: 42px; height: 42px; }
@media (max-width: 760px) {
  .somi-face { width: 74px; height: 88px; }
  #nav { top: auto; bottom: calc(108px + var(--sb)); right: 10px; transform: none; }
  #nav button { width: 38px; height: 38px; }
  body:has(#zoneCard:not(.hidden)) #nav { right: 10px; opacity: 0; pointer-events: none; }
  body:has(#tray:not(.hidden)) #nav { opacity: 0; pointer-events: none; }
  .chat-head { flex-wrap: wrap; } .live-btn { order: 3; width: 100%; justify-content: center; }
  .bp-wrap { height: 58dvh; }
}
.chat-head .ch-v { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(0,0,0,.35); }
/* case-study carousel: photos then films, swipe / arrows / ← → */
.pv-slide { position: absolute; inset: 0; z-index: 1; }
.pv-slide.in-r { animation: slideR .38s cubic-bezier(.2, .8, .2, 1); } .pv-slide.in-l { animation: slideL .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideR { from { opacity: 0; transform: translateX(6%); } } @keyframes slideL { from { opacity: 0; transform: translateX(-6%); } }
.pv-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 300 30px/1 var(--display); color: #fff; padding-bottom: 4px;
  background: rgba(16, 15, 22, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .15s; }
.pv-nav:hover { background: rgba(216, 193, 148, .5); } .pv-nav:active { transform: translateY(-50%) scale(.9); }
.pv-nav.prev { left: 12px; } .pv-nav.next { right: 12px; }
.pv-count { position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(16, 15, 22, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 11.5px var(--display); color: #fff; white-space: nowrap; pointer-events: none; }
.pv-count .dots { display: inline-flex; gap: 5px; align-items: center; }
.pv-count .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: all .25s; }
.pv-count .dots i.video { border-radius: 1px; clip-path: polygon(0 0, 100% 50%, 0 100%); width: 7px; height: 8px; }
.pv-count .dots i.on { background: var(--gold); transform: scale(1.35); }
.pv-thumbs button.video { border-color: rgba(224, 52, 77, .35); }
.pv-thumbs { scroll-behavior: smooth; }
@media (max-width: 760px) { .pv-nav { width: 36px; height: 36px; font-size: 24px; } .pv-nav.prev { left: 6px; } .pv-nav.next { right: 6px; } }

/* ───────── v3.2 ───────── */
/* Somi's bubble rises from the Ask Somi button, with her animated sticker on its corner */
#somi { left: 50% !important; right: auto !important; top: auto !important; bottom: calc(118px + var(--sb)) !important; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); max-width: none !important; display: block !important; z-index: 33; }
#somi.hidden { display: none !important; }
#somi.pop { animation: bubbleUp .5s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes bubbleUp { from { opacity: 0; transform: translate(-50%, 26px) scale(.9); } }
#somi .somi-bubble { margin: 0 !important; padding: 14px 34px 14px 84px; border-radius: 20px !important; min-height: 74px; }
#somi .somi-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
#somi .stk { position: absolute; left: -10px; bottom: -6px; width: 92px; height: 92px; cursor: pointer; }
/* sticker + emotions */
.stk { display: inline-block; position: relative; transform-origin: 50% 85%; }
.stk img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); pointer-events: none; }
.stk[data-anim=wave] img { animation: stkWave 1.1s ease-in-out 2; } @keyframes stkWave { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.stk[data-anim=bounce] img { animation: stkBounce .9s cubic-bezier(.3, 1.6, .5, 1) 2; } @keyframes stkBounce { 40% { transform: translateY(-10px) scale(1.04, .97); } 70% { transform: translateY(0) scale(.98, 1.03); } }
.stk[data-anim=jump] img { animation: stkJump .7s cubic-bezier(.3, 1.6, .5, 1) 3; } @keyframes stkJump { 45% { transform: translateY(-18px) rotate(-4deg) scale(1.06); } }
.stk[data-anim=heartbeat] img { animation: stkBeat 1s ease-in-out 3; } @keyframes stkBeat { 15%, 45% { transform: scale(1.1); } 30% { transform: scale(1); } }
.stk[data-anim=pop] img { animation: stkPop .6s cubic-bezier(.2, 1.8, .4, 1); } @keyframes stkPop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } }
.stk[data-anim=tilt] img { animation: stkTilt 2.2s ease-in-out; } @keyframes stkTilt { 30%, 70% { transform: rotate(-9deg) translateX(-3px); } }
.stk[data-anim=shake] img { animation: stkShake .5s ease-in-out 2; } @keyframes stkShake { 25% { transform: translateX(-5px) rotate(-3deg); } 75% { transform: translateX(5px) rotate(3deg); } }
.stk[data-anim=float] img { animation: stkFloat 2.4s ease-in-out; } @keyframes stkFloat { 50% { transform: translateY(-8px); } }
.stk[data-anim=fly] img { animation: stkFly 1.2s cubic-bezier(.2, .8, .2, 1); } @keyframes stkFly { 0% { transform: translate(-30px, 20px) rotate(-14deg) scale(.8); opacity: 0; } 60% { transform: translate(4px, -6px) rotate(4deg); } }
.stk[data-anim=sway] img { animation: stkSway 2.4s ease-in-out; } @keyframes stkSway { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
#somi.talking .stk img { animation: stkTalk .5s ease-in-out infinite; } @keyframes stkTalk { 50% { transform: translateY(-2px) scale(1.015); } }
.stk-fx { position: absolute; right: 2px; top: 6px; font-size: 22px; pointer-events: none; animation: fxUp 1.6s ease-out forwards; }
.stk-fx.b { right: auto; left: 6px; top: 18px; font-size: 16px; animation-delay: .25s; }
@keyframes fxUp { 0% { opacity: 0; transform: translateY(6px) scale(.5); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-34px) scale(.9) rotate(12deg); } }
.stk.ob { width: 150px; height: 150px; margin: -6px auto 2px; display: block; }
/* achievements drop from the Sparks pill */
#achs { position: fixed; z-index: 60; top: calc(62px + var(--st)); right: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.ach { display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px; border-radius: 14px; background: rgba(24, 23, 32, .92); border: 1px solid color-mix(in srgb, var(--zc) 55%, transparent); box-shadow: 0 10px 26px rgba(0, 0, 0, .35), 0 0 18px color-mix(in srgb, var(--zc) 30%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: achIn .45s cubic-bezier(.2, .9, .3, 1.3); max-width: 250px; }
.ach.out { animation: achOut .45s ease forwards; }
@keyframes achIn { from { opacity: 0; transform: translateY(-14px) scale(.8); } } @keyframes achOut { to { opacity: 0; transform: translateX(30px); } }
.ach-ic .zb.sm { width: 30px; height: 30px; margin: 0; } .ach-glyph { font-size: 22px; display: grid; place-items: center; width: 30px; height: 30px; }
.ach-tx small { display: block; font: 600 9.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--zc); } .ach-tx b { display: block; font-size: 13px; line-height: 1.25; }
#toasts { top: auto !important; bottom: calc(118px + var(--sb)); }
/* map controls hug the right edge on every screen */
#nav { right: 10px !important; top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; opacity: 1 !important; pointer-events: auto !important; z-index: 13; }
body:has(#panel:not(.hidden)) #nav { opacity: 0 !important; pointer-events: none !important; }
@media (min-width: 761px) { #zoneCard { right: 64px !important; } }
@media (max-width: 760px) { #nav { top: 38% !important; } #nav button { width: 36px; height: 36px; font-size: 20px; } #zoneCard { max-height: 56dvh !important; right: 54px !important; } #somi { bottom: calc(102px + var(--sb)) !important; } #somi .stk { width: 76px; height: 76px; } #somi .somi-bubble { padding-left: 72px; } #toasts { bottom: calc(102px + var(--sb)); } }
/* zone card: one cover per case study */
.zc-strip button { position: relative; } .zc-strip .cl { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 5px 3px; font-size: 9.5px; font-weight: 700; color: #fff; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
/* case study actions: NEXT PROJECT first, WhatsApp as a green outline */
.btn.next-pj { font: 700 13.5px var(--display); letter-spacing: .14em; padding: 14px 16px; box-shadow: 0 10px 26px rgba(216, 193, 148, .3); }
.btn.next-pj:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.wa-line { background: transparent; color: #4ee08a; border: 1.5px solid rgba(37, 211, 102, .65); }
.btn.wa-line:hover { background: rgba(37, 211, 102, .1); }
/* Ask Somi: fixed header + quick questions, conversation below */
#panel.ask-panel .pbody { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; }
.ask-head { flex: none; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ask-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; } .ask-chips::-webkit-scrollbar { display: none; }
.ask-chips button { flex: none; padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); white-space: nowrap; }
.ask-chips button:hover { border-color: var(--line2); background: rgba(216, 193, 148, .1); }
#panel.ask-panel .chat { flex: 1; overflow-y: auto; padding: 4px 2px 8px; overscroll-behavior: contain; }
#panel.ask-panel .ask { position: static; flex: none; padding-top: 8px; background: none; }
.bp-mount { flex: 1; min-height: 240px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--mute); font-size: 12.5px; }
.ai-on { color: #c58cff; font-weight: 800; }
/* Botpress webchat laid over the panel's chat area */
.bpFab { display: none !important; }
body:not(.bp-on) .bpWebchat { visibility: hidden !important; pointer-events: none !important; }
body.bp-on .bpWebchat { position: fixed !important; left: var(--bpx) !important; top: var(--bpy) !important; width: var(--bpw) !important; height: var(--bph) !important; max-height: none !important; right: auto !important; bottom: auto !important; z-index: 34 !important; border-radius: 16px !important; overflow: hidden !important; }
.ach-glyph.spk { color: var(--gold); text-shadow: 0 0 12px rgba(216, 193, 148, .8); font-size: 20px; }
#pdot + * {} #profileBtn .ring .rr { display: none; }
#zoneCard.min .site, #zoneCard.min .mood { display: none; }
#zoneCard.min .zc-head { margin-bottom: 4px; }
#zoneCard.min .tag { margin-bottom: 10px; }

/* ═══ v3.4 · Sparks: share the site or finish a solution ═══ */
.earn { display: grid; gap: 8px; margin: 4px 0 14px; }
.earn-share, .earn-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); }
.earn-share { border-color: var(--line2); background: linear-gradient(120deg, rgba(216, 193, 148, .16), rgba(216, 193, 148, .04)); cursor: pointer; transition: transform .2s, border-color .2s; }
.earn-share:hover { transform: translateY(-1px); border-color: var(--gold); }
.earn .es-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(216, 193, 148, .14); color: var(--gold); font-size: 17px; }
.earn .es-ic svg { width: 19px; height: 19px; }
.earn .tx { flex: 1; min-width: 0; } .earn b { display: block; font-size: 14px; } .earn small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }
.earn .go { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #1d1b22; background: linear-gradient(120deg, #e9d6ad, var(--gold) 50%, var(--gold2)); }
.zc-prog { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: var(--mute); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.zc-prog b { color: var(--gold); font-weight: 800; white-space: nowrap; } .zc-prog.done b { color: var(--leaf); }
.row .ic .zb { width: 30px; height: 30px; }
/* collapsed card still shows the business value, compact */
#zoneCard.min .value { margin: 10px 0 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.4; }
#zoneCard.min .value > i { width: 20px; height: 20px; }
#zoneCard.min .value > div { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#zoneCard.min .zc-prog { margin: 0 0 8px; padding: 6px 10px; font-size: 11.5px; }
/* night: UI glass picks up a moonlit blue tint */
body.night { --glass: rgba(16, 18, 34, .7); --glass2: rgba(24, 26, 46, .86); }
.ask-chips .tour-chip { color: #1d1b22; font-weight: 800; border-color: transparent; background: linear-gradient(120deg, #e9d6ad, var(--gold) 50%, var(--gold2)); }

/* ═══ v3.5 ═══ */
.pk-ic.app { background: none; border: 0; padding: 0; } .pk-ic.app img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 16px rgba(80, 90, 255, .35); }
.pocket-app { display: block; width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; box-shadow: 0 10px 26px rgba(80, 90, 255, .4); }
.pthumb { flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--g1), var(--g2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -4px var(--g2); }
.pthumb svg { width: 24px; height: 24px; stroke-width: 1.7; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.pthumb.sm { width: 34px; height: 34px; border-radius: 10px; } .pthumb.sm svg { width: 19px; height: 19px; }
.pthumb.xl { width: 76px; height: 76px; border-radius: 22px; } .pthumb.xl svg { width: 40px; height: 40px; }
.earn .pthumb { width: 38px; height: 38px; border-radius: 12px; } .earn .pthumb svg { width: 20px; height: 20px; }

/* share sheet */
.share-sheet .ss-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .share-sheet h2 { margin: 2px 0 4px; } .share-sheet .note { margin: 0; }
.ss-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 14px; }
.ss-card img { width: 120px; aspect-ratio: 1200/630; object-fit: cover; border-radius: 10px; flex: none; }
.ss-cap { min-width: 0; font-size: 12px; } .ss-cap b { font-size: 13px; } .ss-cap p { margin: 3px 0; color: var(--mute); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .ss-cap small { color: var(--gold); }
.ss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ss-btn { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.ss-btn:hover { transform: translateY(-2px); border-color: var(--sc); }
.ss-btn span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sc); box-shadow: 0 6px 14px -4px var(--sc); }
.ss-btn span svg { width: 24px; height: 24px; } .ss-btn small { font-size: 11.5px; font-weight: 700; }
.zc-acts .share-big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .zc-acts .share-big svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .ss-card img { width: 96px; } .ss-grid { gap: 8px; } .ss-btn span { width: 40px; height: 40px; } }

/* every element (including scrolling panels, modals and the splash screen) ignores double-tap zoom; the 3D canvas handles its own gestures */
*, *::before, *::after { touch-action: manipulation; }
#gl, #gl * { touch-action: none; }
.ld-foot { margin-top: 26px; font-size: 10px; color: rgba(246, 241, 231, .4); letter-spacing: .02em; }
.ld-foot a { color: rgba(246, 241, 231, .6); text-decoration: none; }
