/* Chill Runner v4 look: cream, black and gold.
   Loaded last, so it sits on top of the older styles in index.html.
   Khmer letters use Kantumruy Pro from /fonts (our own files); Latin letters use Urbanist. */
@font-face{font-family:"CR Khmer";src:url(/fonts/KantumruyPro-Regular.ttf) format("truetype");font-weight:400;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF,U+200B-200D,U+25CC}
@font-face{font-family:"CR Khmer";src:url(/fonts/KantumruyPro-Medium.ttf) format("truetype");font-weight:500;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF,U+200B-200D,U+25CC}
@font-face{font-family:"CR Khmer";src:url(/fonts/KantumruyPro-SemiBold.ttf) format("truetype");font-weight:600;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF,U+200B-200D,U+25CC}
@font-face{font-family:"CR Khmer";src:url(/fonts/KantumruyPro-Bold.ttf) format("truetype");font-weight:700 900;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF,U+200B-200D,U+25CC}

:root{
 --v-bg:#F4F1EC;--v-card:#ECE7E0;--v-card2:#E4DED6;--v-ink:#1B1714;--v-mut:#8A8079;--v-line:#E2DCD4;--v-white:#fff;
 --v-gold:#B8925A;--v-goldd:#94713F;--v-goldl:#D4B07A;--v-gg:linear-gradient(140deg,#CDA86E 0%,#B08A52 55%,#92703F 100%);
 --v-red:#E5483B;--v-fire:#E2702A;--v-ok:#3E9B63;--v-nav:rgba(52,47,43,.88);
 --acc:#B8925A;--accfg:#fff;
}
html[data-mood="dark"]{--v-bg:#121010;--v-card:#1F1B18;--v-card2:#29241F;--v-ink:#F3EEE8;--v-mut:#9C928A;--v-line:#2C2622;--v-white:#1A1714;--v-nav:rgba(40,36,33,.92)}
body,button,input,textarea,select{font-family:"CR Khmer",Urbanist,system-ui,-apple-system,sans-serif}
html[data-mood="light"] body{background:var(--v-bg)}
html[data-mood="dark"] body{background:var(--v-bg)}

/* ---------- Bottom menu: Feed · Messages · Leaderboard · Profile ---------- */
html[data-mood] #bnav{width:min(84vw,330px);height:68px;padding:6px 8px;justify-content:space-around;background:var(--v-nav);border:0;
 box-shadow:0 10px 30px rgba(0,0,0,.25);bottom:calc(16px + env(safe-area-inset-bottom,0px))}
html[data-mood] #bnav button{flex:none;width:56px;height:56px;border-radius:50%;color:#f1ebe4;background:transparent}
html[data-mood] #bnav button.on{flex:none;background:#fff;color:#1B1714}
html[data-mood] #bnav svg{width:24px;height:24px;stroke-width:1.8}
html[data-mood] #bnav button.on svg{fill:currentColor}
html[data-mood] #bnav button[data-n="lead"].on svg path:nth-child(2){fill:none}
html[data-mood] #bnav .bb{top:6px;right:4px;background:var(--v-red);border:2px solid #3a3430;min-width:19px;height:19px;line-height:15px}
html[data-mood] #bnav .bd{top:12px;right:12px;background:var(--v-red);border-color:#3a3430}

/* ---------- Member area (html.v4me is set by v4.js while you are in the app) ---------- */
html.v4me body>nav,html.v4me #mbBack,html.v4me .mood,html.v4me .langBtn,html.v4me #mbTg{display:none!important}
html.v4me #me.rest{background:var(--v-bg);overflow:visible;color:var(--v-ink);--fg:var(--v-ink);--mut:var(--v-mut);--line:var(--v-line);--card:var(--v-white)}
html.v4me #me.rest::before,html.v4me #me.rest::after{display:none}
html.v4me #me .lt{padding:0 14px 130px;max-width:520px;color:var(--v-ink)}
html.v4me .mb .mb-top{display:none}
html.v4me .mb.on-feed .mb-ci{margin-top:10px}

/* top bar */
#v4Top{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin:0 -14px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;background:var(--v-bg)}
#v4Top h1{margin:0;font-size:23px;font-weight:600;letter-spacing:-.2px;color:var(--v-ink);text-align:center;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4-rb{position:relative;width:46px;height:46px;border-radius:50%;border:0;background:var(--v-card);color:var(--v-ink);display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
.v4-rb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v4-rb .v4-dot{position:absolute;top:11px;right:12px;width:9px;height:9px;border-radius:50%;background:var(--v-red);border:2px solid var(--v-card)}
.v4-fo{display:none}
.mb.on-feed .v4-fo{display:block}

/* who ran today */
#v4St{margin:2px -14px 0;padding:0 14px}
.v4-row{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:4px 2px 8px}
.v4-row::-webkit-scrollbar{display:none}
.v4-s{flex:none;width:66px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;padding:0;cursor:pointer;color:var(--v-ink);font-size:13.5px;font-weight:500}
.v4-s span.n{max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v4-ring{position:relative;width:66px;height:66px;border-radius:50%;padding:3px;background:var(--v-gg)}
.v4-ring.plain{background:var(--v-line)}
.v4-ring i.f{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;border:2.5px solid var(--v-bg);overflow:hidden;background:var(--v-card2);font-style:normal;font-weight:700;font-size:22px;color:var(--v-ink)}
.v4-ring i.f img{width:100%;height:100%;object-fit:cover;display:block}
.v4-live{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);background:var(--v-ink);color:var(--v-bg);font-size:10.5px;font-weight:800;font-style:italic;padding:2px 8px;border-radius:99px;border:2px solid var(--v-bg)}
.v4-add{position:absolute;right:-1px;bottom:-1px;width:22px;height:22px;border-radius:50%;background:var(--v-gold);color:#fff;display:grid;place-items:center;border:2px solid var(--v-bg);font-weight:700;font-size:15px;line-height:1}
.v4-cap{font-size:12px;color:var(--v-mut);font-weight:500;margin:0 2px 2px}

/* check-in card */
.v4-ck{display:flex;align-items:center;gap:12px;background:var(--v-ink);color:#fff;border-radius:22px;padding:12px 12px 12px 14px;margin:10px 0 0}
html[data-mood="dark"] .v4-ck{background:#2a2420;border:1px solid #3a322b}
.v4-ck .pin{flex:none;width:46px;height:46px;border-radius:50%;background:var(--v-gg);display:grid;place-items:center;color:#2a2018;box-shadow:0 0 0 5px rgba(184,146,90,.18)}
.v4-ck .pin svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.v4-ck .tx{flex:1;min-width:0}
.v4-ck b{display:block;font-size:16px;font-weight:700}
.v4-ck small{display:block;font-size:12.5px;opacity:.75;line-height:1.3;margin-top:1px}
.v4-ck button{flex:none;border:0;border-radius:99px;padding:12px 18px;font:600 15.5px "CR Khmer",Urbanist,sans-serif;background:#fff;color:#1B1714;cursor:pointer}
html[data-mood="dark"] .v4-ck button{background:var(--v-gg);color:#fff}
.v4-ck.done .pin{background:var(--v-ok);color:#fff}
.v4-ck.off{background:var(--v-card);color:var(--v-ink)}
.v4-ck.off .pin{background:var(--v-white);color:var(--v-mut);box-shadow:none}

/* check-in sheet: big gold button */
#v4Ci{position:fixed;inset:0;z-index:200;display:flex;align-items:flex-end;background:rgba(244,241,236,.6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
html[data-mood="dark"] #v4Ci{background:rgba(0,0,0,.55)}
#v4Ci[hidden]{display:none}
#v4Ci .sh{width:100%;max-width:520px;margin:0 auto;background:var(--v-white);color:var(--v-ink);border-radius:30px 30px 0 0;padding:10px 20px calc(30px + env(safe-area-inset-bottom,0px));text-align:center;box-shadow:0 -10px 40px rgba(0,0,0,.12);animation:v4up .25s ease-out}
@keyframes v4up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.v4-grab{width:40px;height:5px;border-radius:3px;background:var(--v-line);margin:0 auto 14px}
#v4Ci h2{margin:0;font-size:20px;font-weight:700}
#v4Ci p{margin:4px 0 0;font-size:14px;color:var(--v-mut)}
#v4Ci .big{width:200px;height:200px;border-radius:50%;margin:26px auto 18px;border:0;cursor:pointer;background:radial-gradient(circle at 35% 30%,#D9B985,#B08A52 55%,#8E6C3C);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;
 box-shadow:0 0 0 14px rgba(184,146,90,.12),0 0 0 30px rgba(184,146,90,.06),0 18px 40px rgba(146,112,63,.45);font:600 22px/1.2 "CR Khmer",Urbanist,sans-serif;animation:v4pulse 2.4s ease-in-out infinite}
#v4Ci .big:active{transform:scale(.97)}
#v4Ci .big svg{width:34px;height:34px;margin-bottom:6px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#v4Ci .big small{font-size:13.5px;opacity:.85;margin-top:10px;font-weight:600}
@keyframes v4pulse{0%,100%{box-shadow:0 0 0 14px rgba(184,146,90,.12),0 0 0 30px rgba(184,146,90,.06),0 18px 40px rgba(146,112,63,.45)}50%{box-shadow:0 0 0 18px rgba(184,146,90,.16),0 0 0 38px rgba(184,146,90,.05),0 18px 40px rgba(146,112,63,.45)}}
#v4Ci .note{font-size:12px;color:var(--v-mut)}
@media(prefers-reduced-motion:reduce){#v4Ci .big{animation:none}}

/* + new post button */
#v4Fab{position:fixed;right:max(18px,calc(50% - 242px));bottom:calc(100px + env(safe-area-inset-bottom,0px));z-index:90;width:56px;height:56px;border-radius:50%;border:0;background:var(--v-gg);color:#fff;display:none;place-items:center;box-shadow:0 8px 22px rgba(146,112,63,.45);cursor:pointer}
#v4Fab svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
html.v4me.v4-feed #v4Fab{display:grid}
html.v4-compose #v4Fab{display:none}

/* ---------- Feed ---------- */
html.v4me .fd-new{display:none}
html.v4me.v4-compose .fd-new{display:block;position:fixed;left:0;right:0;bottom:0;z-index:210;max-width:520px;margin:0 auto;max-height:92vh;overflow:auto;
 background:var(--v-white);color:var(--v-ink);border:0;border-radius:28px 28px 0 0;padding:10px 16px calc(22px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 40px rgba(0,0,0,.18);animation:v4up .25s ease-out}
#v4Dim{position:fixed;inset:0;z-index:205;background:rgba(27,23,20,.35);display:none}
html.v4-compose #v4Dim{display:block}
.v4-ch{display:flex;align-items:center;justify-content:space-between;margin:2px 0 12px}
.v4-ch b{font-size:20px;font-weight:700}
html.v4me .fd-new textarea{background:var(--v-card);border:0;border-radius:18px;color:var(--v-ink);font:17px/1.45 "CR Khmer",Urbanist,sans-serif;padding:14px 16px;min-height:96px}
html.v4me .fd-rd{display:flex;gap:10px;margin:12px 0 0}
html.v4me .fd-rd[hidden]{display:none}
html.v4me .fd-rd label{flex:1;display:flex;align-items:center;gap:6px;background:var(--v-card);border-radius:16px;padding:8px 14px;cursor:text}
html.v4me .fd-rd span{font-size:12px;color:var(--v-mut);font-weight:600;width:100%;display:block}
html.v4me .fd-rd label{flex-wrap:wrap;row-gap:0}
html.v4me .fd-rd input{width:62%;min-width:0;border:0;background:none;outline:none;color:var(--v-ink);font:700 18px "CR Khmer",Urbanist,sans-serif;padding:0}
html.v4me .fd-rd em{font-style:normal;color:var(--v-mut);font-size:13px}
html.v4me .fd-bar{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
html.v4me .fd-ph,html.v4me .fd-pvsel{border:1.5px solid var(--v-line);color:var(--v-ink);background:var(--v-white)}
html.v4me .fd-bar .btn,html.v4me #fdPost{background:var(--v-gg);color:#fff;font-weight:700}
html.v4me .fd-prev img,html.v4me .fd-crop{background:var(--v-card)}
html.v4me .fd-prev .fd-ar button{border-color:var(--v-line)}
html.v4me .fd-prev .fd-ar button.on{background:var(--v-ink);color:var(--v-bg)}

html.v4me .fd-tabs{background:var(--v-card);border-radius:99px;padding:5px;margin:14px 0 12px}
html.v4me .fd-tabs button{border-radius:99px;font:600 14.5px "CR Khmer",Urbanist,sans-serif;color:var(--v-mut);padding:10px}
html.v4me .fd-tabs button.on{background:var(--v-ink);color:var(--v-bg)}

/* post cards */
html.v4me .fd-p{background:var(--v-white);border:1px solid var(--v-line);border-radius:26px;padding:14px 16px;margin-bottom:12px;color:var(--v-ink)}
html.v4me .fd-p.pin,html.v4me .fd-p.tm{border-color:rgba(184,146,90,.55);background:var(--v-white)}
html.v4me .fd-who b{font-size:16px;font-weight:700}
html.v4me .fd-who span{font-size:12.5px;color:var(--v-mut)}
html.v4me .fd-tag{background:var(--v-gold);color:#fff;font-weight:700}
html.v4me .fd-pin{color:var(--v-gold)}
html.v4me .avs{background:var(--v-card2);color:var(--v-ink)}
html.v4me .fd-h .avs{width:42px;height:42px}
html.v4me .fd-t{font-size:15.5px;line-height:1.5}
html.v4me .fd-f button{color:var(--v-ink);font:600 14.5px "CR Khmer",Urbanist,sans-serif}
html.v4me .fd-k.on{color:#E0364A;background:rgba(224,54,74,.1)}
html.v4me .fd-cm{border-top-color:var(--v-line)}
html.v4me .fd-cf input{background:var(--v-card);border:0;color:var(--v-ink)}
html.v4me .fd-cf .btn{background:var(--v-ink);color:var(--v-bg)}
html.v4me .fd-more{color:var(--v-mut)}
.fd-rn{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}
.fd-rc{display:inline-flex;align-items:center;gap:5px;background:var(--v-card,#ece7e0);color:inherit;border-radius:99px;padding:6px 11px;font-size:13px;font-weight:700}
.fd-rc svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* photo posts: the photo fills the card, name and buttons sit on the photo */
html.v4me .fd-p.v4ph{display:grid;grid-template-columns:100%;padding:0;border:0;border-radius:28px;overflow:hidden;background:var(--v-white);box-shadow:0 1px 2px rgba(0,0,0,.04)}
html.v4me .fd-p.v4ph>.fd-phw{grid-area:1/1;margin:0;border-radius:0}
html.v4me .fd-p.v4ph .fd-img{border-radius:0;margin:0;max-height:none;min-height:260px;object-fit:cover;background:#1b1714}
html.v4me .fd-p.v4ph>.fd-phw::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,0) 26%,rgba(0,0,0,0) 52%,rgba(0,0,0,.72) 100%)}
/* the header is flattened into the photo grid so the ⋯ button can sit at the top-right corner */
html.v4me .fd-p.v4ph>.fd-h{display:contents}
html.v4me .fd-p.v4ph .fd-h>.avs{grid-area:1/1;align-self:start;justify-self:start;z-index:3;margin:17px 0 0 17px;width:40px;height:40px;border:2px solid rgba(255,255,255,.8)}
html.v4me .fd-p.v4ph .fd-h>.fd-who{grid-area:1/1;align-self:start;justify-self:start;z-index:2;margin:12px;max-width:calc(100% - 80px);min-height:50px;box-sizing:border-box;
 display:flex;flex-direction:column;justify-content:center;padding:4px 16px 4px 56px;border-radius:99px;background:rgba(30,26,24,.42);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;line-height:1.25}
html.v4me .fd-p.v4ph .fd-who span{color:rgba(255,255,255,.82)}
html.v4me .fd-p.v4ph .fd-mini,html.v4me .fd-p.v4ph .fd-pin{display:none}
html.v4me .fd-p.v4ph .fd-h>.fd-more{grid-area:1/1;align-self:start;justify-self:end;z-index:3;margin:16px 14px 0 0;width:40px;height:40px;background:rgba(255,255,255,.25);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff}
html.v4me .fd-p.v4ph>.fd-rn{grid-area:1/1;align-self:end;z-index:2;margin:0 14px 58px;color:#fff}
html.v4me .fd-p.v4ph .fd-rc{background:rgba(255,255,255,.2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.v4me .fd-p.v4ph>.fd-f{grid-area:1/1;align-self:end;z-index:2;margin:0;padding:6px 8px 10px}
html.v4me .fd-p.v4ph .fd-f button{color:#fff}
html.v4me .fd-p.v4ph .fd-k.on{color:#ff6b7a;background:rgba(255,255,255,.14)}
html.v4me .fd-p.v4ph>.fd-t{grid-row:2;margin:0;padding:12px 16px 14px}
html.v4me .fd-p.v4ph>.fd-cm{grid-row:3;margin:0 14px 12px}
html.v4me .fd-p.v4ph>.fd-cm:not([hidden])~*,html.v4me .fd-p.v4ph>.fd-t~.fd-cm{margin-top:0}

/* next run card */
html.v4me .fd-p.fd-run{background:var(--v-card);border:0;border-radius:24px;padding:14px}
html.v4me .fd-run>.fd-h{display:none}
html.v4me .fd-run .rg{border-radius:18px;overflow:hidden;margin-bottom:12px}
.fr-top{display:flex;gap:14px;align-items:center}
.fr-cal{flex:none;width:62px;height:62px;border-radius:16px;background:var(--v-ink,#1b1714);color:var(--v-bg,#f4f1ec);display:flex;flex-direction:column;align-items:center;justify-content:center}
.fr-cal small{font-size:11px;letter-spacing:1px;opacity:.7;font-weight:600}
.fr-cal b{font-size:24px;font-weight:600;line-height:1}
html[data-mood="dark"] .fr-cal{background:var(--v-gg);color:#fff}
.fr-tt{min-width:0}
html.v4me .fd-run .fr-t{margin:0;font-size:18px;font-weight:700}
html.v4me .fd-run .fr-d{margin:2px 0 0;font-size:13.5px;color:var(--v-mut)}
html.v4me .fd-run .fr-n{margin:12px 0 0}
html.v4me .fd-run .jn-c{margin-top:12px;font-size:14px}
html.v4me .jn-chip{background:var(--v-white);border:1px solid var(--v-line);color:var(--v-ink)}
html.v4me .joinbtn{margin-top:12px;background:var(--v-gg);color:#fff;font:700 16px "CR Khmer",Urbanist,sans-serif;padding:15px 20px;box-shadow:none;border:0}
html.v4me .joinbtn.done{background:var(--v-ink);color:var(--v-bg);border:0}
html.v4me .joinbtn.closed{background:var(--v-card2);color:var(--v-mut);border:0}

/* small cards on top of the feed */
html.v4me .pcard{background:var(--v-white);border:1px solid var(--v-line);border-radius:22px;color:var(--v-ink);margin:12px 0 0}
html.v4me .pcard p{color:var(--v-mut)}
html.v4me .pcard .btn,html.v4me .pc-b .btn{background:var(--v-ink);color:var(--v-bg)}
html.v4me .mb-ci{border-radius:18px}
html.v4me .mb-ci.ok{background:rgba(62,155,99,.12);border-color:rgba(62,155,99,.4);color:var(--v-ink)}
html.v4me .mb-empty{color:var(--v-mut);text-align:center;padding:24px 6px}
html.v4me .btn.line{border-color:var(--v-line);color:var(--v-ink)}

/* ---------- Club menu (4 dots) ---------- */
#v4Menu{position:fixed;inset:0;z-index:220;background:var(--v-bg);color:var(--v-ink);overflow:auto;padding:0 14px calc(30px + env(safe-area-inset-bottom,0px));animation:v4in .2s ease-out}
#v4Menu[hidden]{display:none}
@keyframes v4in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
#v4Menu .in{max-width:520px;margin:0 auto}
#v4Menu .hd{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top,0px)) 2px 12px}
#v4Menu .hd h1{margin:0;font-size:23px;font-weight:600;flex:1;text-align:center}
#v4Menu .hd .v4-rb.x{background:var(--v-ink);color:var(--v-bg)}
#v4Menu .ban{position:relative;border-radius:26px;overflow:hidden;height:170px;background:#333 center/cover no-repeat}
#v4Menu .ban::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.65))}
#v4Menu .ban div{position:absolute;left:16px;right:16px;bottom:14px;color:#fff;z-index:1}
#v4Menu .ban b{font-size:19px;display:block}
#v4Menu .ban span{font-size:13px;opacity:.9}
#v4Menu .two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
#v4Menu .big{border:0;text-align:left;border-radius:22px;padding:14px 16px;background:var(--v-card);color:var(--v-ink);cursor:pointer;font:inherit}
#v4Menu .big.dk{background:var(--v-ink);color:var(--v-bg)}
#v4Menu .big b{display:block;font-size:16px;margin-top:8px}
#v4Menu .big small{font-size:12.5px;opacity:.7}
#v4Menu .lbl{font-size:12px;letter-spacing:1.2px;color:var(--v-mut);font-weight:700;text-transform:uppercase;margin:20px 4px 8px}
#v4Menu .grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
#v4Menu .t{border:0;border-radius:20px;background:var(--v-card);color:var(--v-ink);padding:14px 6px;text-align:center;cursor:pointer;font:700 13.5px "CR Khmer",Urbanist,sans-serif;text-decoration:none;display:block}
#v4Menu .t span{display:block;margin-top:6px}
#v4Menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#v4Menu .big svg{color:var(--v-gold)}

/* panels (messages, notifications) pick up the new colours */
html[data-mood="light"] .pnl{--pbg:var(--v-bg);--pcard:var(--v-card);--pline:var(--v-line);--pfg:var(--v-ink);--pmut:var(--v-mut)}

/* fixes after first look */
#v4St,.v4-ck,html.v4me .fd-p,html.v4me .pcard{text-align:left}
html.v4me .fd-run h3.fr-t{color:var(--v-ink);text-transform:none;letter-spacing:-.2px}
html[data-mood] #crInst{background:var(--v-white);color:var(--v-ink);border:1px solid var(--v-line);box-shadow:0 12px 32px rgba(27,23,20,.18)}
html[data-mood] #crInst .go{background:var(--v-gg);color:#fff;border:0}
html[data-mood] #crInst small{color:var(--v-mut)}
html[data-mood] #crInst .x{color:var(--v-mut)}
html.v4me #mbBoot{padding-top:calc(70px + env(safe-area-inset-top,0px))}
html.v4me #me.rest{isolation:auto}
html.v4me .mb .fd-rd input[type=text]{width:auto;flex:1;min-width:0;background:none;border:0;border-radius:0;padding:0;margin:0;color:var(--v-ink);font:700 18px "CR Khmer",Urbanist,sans-serif}

/* reward screen (after check-in, game, etc.): calm gold "victory" look from the v4 design */
html.v4me #rwOv[class]{--rc:#E9C98E;--rg1:#3a2f22;--rd:#94713F;background:radial-gradient(ellipse at 50% 40%,#3a2f22 0%,#1d1712 45%,#100c09 100%)}
html.v4me #rwOv .rw-beams{opacity:.18!important}
html.v4me #rwOv .rw-emb{width:180px;height:180px;clip-path:none;background:url(/img/a4a51f87a4.png) center/contain no-repeat;filter:drop-shadow(0 0 30px rgba(255,220,160,.55));mix-blend-mode:screen}
html.v4me #rwOv .rw-emb:after,html.v4me #rwOv .rw-emb span{display:none}
html.v4me #rwOv .rw-ttl{font:600 clamp(38px,11vw,48px)/1.1 "CR Khmer",Urbanist,sans-serif;font-style:normal;letter-spacing:6px;background:none;-webkit-text-fill-color:#E9C98E;color:#E9C98E;text-shadow:none;margin-top:18px}
html.v4me #rwOv .rw-sub{opacity:.85;font-weight:500;font-size:16px}
html.v4me #rwOv .rw-pts{background:rgba(255,255,255,.1);border:0;padding:12px 26px}
html.v4me #rwOv .rw-pts b{font:700 34px/1 "CR Khmer",Urbanist,sans-serif;text-shadow:none}
html.v4me #rwOv .rw-pts span{font:600 14px "CR Khmer",Urbanist,sans-serif;letter-spacing:2px;color:rgba(255,255,255,.75)}
html.v4me #rwOv .rw-tap{letter-spacing:2px;font-weight:600}
html.v4me .mb-top #nChat,html.v4me .mb-top #nBell{display:none}
html.v4me .mb-ic,html.v4me .mb-out{border-color:var(--v-line);color:var(--v-ink)}
html.v4me .fd-p .fd-t{color:var(--v-ink)}

/* fix: outline buttons stay outline (was black text on black) */
html.v4me .btn.line{background:transparent}

/* ---------- Leaderboard tab in the v4 theme ---------- */
.v4i{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:6px;vertical-align:-3px;font-style:normal;color:var(--v-gold)}
.v4i svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html.v4me .pd-lbl{display:flex;align-items:center;opacity:1;color:var(--v-mut);font-weight:700;letter-spacing:1.2px}
html.v4me .pd-top b{font-size:14px;font-weight:700}
html.v4me .pd-top>span,html.v4me .pd-n{color:var(--v-mut);opacity:1}
html.v4me .pd-blk{border-radius:22px 22px 0 0;font:500 30px "CR Khmer",Urbanist,sans-serif;align-items:center;padding:0;box-shadow:none}
html.v4me .pd-s1 .pd-blk{background:var(--v-gg);color:#fff;box-shadow:none}
html.v4me .pd-s2 .pd-blk,html.v4me .pd-s3 .pd-blk{background:var(--v-card);color:var(--v-mut)}
html.v4me .pd-empty{opacity:.55}
html.v4me .pd-av{background:var(--v-card2);color:var(--v-ink);border:2px solid var(--v-bg)}
html.v4me .pd-av.you{border-color:var(--v-gold)}
html.v4me .pd-more{background:var(--v-ink);color:var(--v-bg);border-color:var(--v-bg)}
html.v4me .crowned{box-shadow:0 0 0 2px var(--v-gold)}
html.v4me .pd-av.crowned::after{filter:sepia(1) saturate(.6) hue-rotate(-12deg) brightness(.95)}
html.v4me .lb-you{background:var(--v-ink);color:var(--v-bg);border:0;border-radius:24px;padding:14px 18px;gap:14px}
html.v4me .lb-you .rk{font:700 24px "CR Khmer",Urbanist,sans-serif;color:var(--v-bg);min-width:0}
html.v4me .lb-you.top .rk{color:var(--v-goldl)}
html.v4me .lb-you b{font-size:16px}
html.v4me .lb-you span{color:var(--v-bg);opacity:.7}
html.v4me .lb-you .chip{background:rgba(226,112,42,.22);color:#f3a36b;border:0;opacity:1}
html.v4me .cl-card,html.v4me .stg{background:var(--v-white);border:1px solid var(--v-line);border-radius:22px;color:var(--v-ink)}
html.v4me .stg.s1{border-color:rgba(184,146,90,.6);background:var(--v-white)}
html.v4me .cl-h{display:flex;align-items:center;opacity:1;color:var(--v-mut);font-weight:700;letter-spacing:1.2px}
html.v4me .cl-s{color:var(--v-mut);opacity:1}
html.v4me .cl-next{display:flex;align-items:center}
html.v4me .cl-next .v4i{width:15px;height:15px}
html.v4me .cl-bar{background:var(--v-card2);height:9px}
html.v4me .cl-bar i{background:var(--v-gg)}
html.v4me .cl-av{background:var(--v-card2);border-color:var(--v-white)}
html.v4me .cl-big{color:var(--v-ink);font-weight:700}
html.v4me .cl-clover{flex:none;width:46px;height:46px;border-radius:50%;background:var(--v-gg);display:grid;place-items:center;font-size:0}
html.v4me .cl-clover .v4i{color:#fff;width:22px;height:22px;margin:0}
html.v4me .cl-more{color:var(--v-goldd)}
html.v4me .stg-r{background:var(--v-card);border-color:transparent;color:var(--v-ink)}
html.v4me .stg-r.you{border-color:var(--v-gold);background:rgba(184,146,90,.14)}
html.v4me .mb-stats div{background:var(--v-white);border:1px solid var(--v-line);border-radius:20px}
html.v4me .mb-stats b{font-weight:700;color:var(--v-ink)}
/* check-in + game buttons on Leaderboard / Profile */
html.v4me #scanBtn{border-radius:22px}
html.v4me #scanBtn.ci-on{background:var(--v-gg);color:#fff;animation:none}
html.v4me #scanBtn.ci-done{background:var(--v-ink);color:var(--v-bg);border:0}
html.v4me #scanBtn.ci-off{background:var(--v-card);color:var(--v-mut);border:0}
html.v4me #gameBtn{background:var(--v-ink);color:var(--v-bg);box-shadow:none;border-radius:22px;padding:14px 18px}
html.v4me #gameBtn .gm-t{display:flex;align-items:center;font-weight:700}
html.v4me #gameBtn .v4i{color:var(--v-goldl);width:20px;height:20px}
html.v4me #gameBtn small{color:var(--v-bg);opacity:.7}
html.v4me #gameBtn.gm-in{background:var(--v-white);color:var(--v-ink);border:1px solid var(--v-line)}
html.v4me #gameBtn.gm-in small{color:var(--v-mut);opacity:1}
html.v4me #gameBtn.gm-in .v4i{color:var(--v-gold)}
/* rewards list */
html.v4me .mb-row{background:var(--v-white);border:1px solid var(--v-line);border-radius:20px}
html.v4me .mb-row.you{border-color:var(--v-gold);background:rgba(184,146,90,.1)}
html.v4me .mb-row button{background:var(--v-ink);color:var(--v-bg);font-weight:700}
html.v4me .mb-row button:disabled{background:var(--v-card);color:var(--v-mut)}
html.v4me .mb-row .n em.un{color:var(--v-goldd)}
/* dark mode: keep the "black" cards dark (not flipped to cream) */
html[data-mood="dark"].v4me .lb-you,html[data-mood="dark"].v4me #scanBtn.ci-done,html[data-mood="dark"].v4me #gameBtn:not(.gm-in){background:#2a2420;color:#F3EEE8;border:1px solid #3a322b}
html[data-mood="dark"].v4me .lb-you .rk{color:#F3EEE8}
html[data-mood="dark"].v4me .lb-you.top .rk{color:var(--v-goldl)}
html[data-mood="dark"].v4me .lb-you span,html[data-mood="dark"].v4me #gameBtn small{color:#F3EEE8}

/* ---------- Leaderboard + Rewards (v4 design) ---------- */
html.v4me.v4-lead .mb .mb-stats,html.v4me.v4-lead #scanBtn,html.v4me.v4-lead #hLead,html.v4me.v4-lead #hRew{display:none!important}
.v4-seg{display:none;background:var(--v-card);border-radius:99px;padding:5px;margin:4px 0 0}
html.v4me.v4-lead.show-rew .v4-seg{display:flex}
.v4-seg button{flex:1;border:0;background:none;border-radius:99px;padding:12px 0;font:500 16px "CR Khmer",Urbanist,sans-serif;color:var(--v-mut);cursor:pointer}
.v4-seg button.on{background:var(--v-ink);color:var(--v-bg)}
html.v4me.v4-lead.show-rew.v4-rw #tlead,html.v4me.v4-lead.show-rew.v4-rw .v4-sh{display:none!important}
html.v4me.v4-lead.show-rew:not(.v4-rw) #trew{display:none!important}
html.v4me.v4-lead.show-rew.v4-rw #trew{display:block!important}
html.v4me #gameBtn{margin-top:12px}
.v4-sh{font-size:12px!important;letter-spacing:1.2px!important;color:var(--v-mut)!important;margin:26px 4px 10px!important;text-transform:uppercase}
.v4-pills{display:flex;gap:8px;justify-content:center;margin:14px 0 2px}
.v4-pills span,.v4-pills a{background:var(--v-card);padding:8px 16px;border-radius:99px;font-size:14px;color:var(--v-mut);font-weight:500;text-decoration:none}
.v4-pills .on{background:var(--v-ink);color:var(--v-bg)}
.v4-since{text-align:center;font-size:12px;color:var(--v-mut);margin-top:6px}
/* podium */
.v4-pod{display:flex;align-items:flex-end;justify-content:center;gap:10px;margin:18px 0 0;padding:0 4px}
.v4-pc{flex:1;max-width:120px;display:flex;flex-direction:column;align-items:center;border:0;background:none;padding:0;color:var(--v-ink);cursor:pointer;font:inherit;position:relative}
.v4-pc.empty{opacity:.5;cursor:default}
.v4-pa{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;overflow:hidden;background:var(--v-card2);border:3px solid #cfcac4;font-weight:700;font-size:20px;color:var(--v-ink)}
.v4-pa img{width:100%;height:100%;object-fit:cover}
.v4-pc.p1 .v4-pa{width:80px;height:80px;border-color:var(--v-gold)}
.v4-pc.p3 .v4-pa{width:58px;height:58px;border-color:#d8a07a}
.v4-pc.you .v4-pa{box-shadow:0 0 0 3px var(--v-bg),0 0 0 5px var(--v-gold)}
.v4cr{width:26px;height:20px;fill:var(--v-gold);margin-bottom:2px}
.v4-pc b{font-size:15px;font-weight:700;margin-top:5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v4-pc small{font-size:12px;color:var(--v-mut);font-weight:600}
.v4-pb{width:100%;margin-top:8px;border-radius:22px 22px 0 0;background:var(--v-card);display:grid;place-items:center;font:500 30px "CR Khmer",Urbanist,sans-serif;color:var(--v-mut)}
.v4-pc.p1 .v4-pb{height:126px;background:var(--v-gg);color:#fff;font-size:34px}
.v4-pc.p2 .v4-pb{height:92px}
.v4-pc.p3 .v4-pb{height:72px}
/* you */
.v4-you{display:flex;align-items:center;gap:12px;background:var(--v-ink);color:var(--v-bg);border-radius:24px;padding:14px 18px;margin:12px 0 6px}
html[data-mood="dark"] .v4-you{background:#2a2420;color:#F3EEE8;border:1px solid #3a322b}
.v4-you .rk{font-size:24px;font-weight:700}
.v4-ya,.v4-ra{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;overflow:hidden;background:var(--v-card2);color:var(--v-ink);font-weight:700}
.v4-ya img,.v4-ra img{width:100%;height:100%;object-fit:cover}
.v4-you .t,.v4-row .t{flex:1;min-width:0;display:flex;flex-direction:column}
.v4-you .t b,.v4-row .t b{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4-you small{font-size:12.5px;opacity:.75}
.v4-you .r,.v4-row .r{text-align:right;display:flex;flex-direction:column;align-items:flex-end;flex:none}
.v4-you .r b{font-size:19px;font-weight:700}
.v4-you .r small{font-size:11.5px;max-width:130px}
.v4-you.off{background:var(--v-card);color:var(--v-ink)}
.v4-you.off small{color:var(--v-mut);opacity:1}
/* rows */
.v4-row{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:10px 6px;text-align:left;color:var(--v-ink);font:inherit;cursor:pointer;border-radius:18px}
.v4-row .rk{width:22px;color:var(--v-mut);font-size:15px;text-align:center;flex:none}
.v4-row .t small{font-size:13px;color:var(--v-mut)}
.v4-row .r b{font-size:16px;font-weight:700}
.v4-row .r small{font-size:12.5px;color:var(--v-mut)}
.v4-row.you{background:var(--v-card)}
.v4-st{color:var(--v-fire);font-weight:700;white-space:nowrap}
.v4fl{width:12px;height:12px;fill:currentColor;vertical-align:-1px;margin-right:1px}
.v4-vo{white-space:nowrap}.v4-vo .v4i{width:12px;height:12px;margin-right:2px;vertical-align:-1px}
.v4-zero{margin:12px 2px 0}
.v4-zero summary{cursor:pointer;color:var(--v-goldd);font-weight:700;font-size:14px;padding:6px 4px;list-style:none}
.v4-zero summary::-webkit-details-marker{display:none}
.v4-zero .stg-p{margin-top:8px}
/* rewards */
.v4-pts{position:relative;overflow:hidden;border-radius:26px;padding:20px 22px;margin:14px 0 0;color:#fff;background:var(--v-gg);min-height:126px}
.v4-pts img{position:absolute;right:-26px;top:-24px;width:150px;opacity:.28;mix-blend-mode:screen;pointer-events:none}
.v4-pts small{display:block;font-size:14px;opacity:.85}
.v4-pts b{display:block;font-size:46px;font-weight:700;line-height:1.1}
.v4-pts span{display:block;font-size:13px;opacity:.92}
.v4-rh{display:flex;justify-content:space-between;align-items:baseline;margin:18px 4px 10px}
.v4-rh b{font-size:15px;font-weight:700}
.v4-rh span{font-size:12.5px;color:var(--v-mut)}
.v4-rg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v4-rc{background:var(--v-white);border:1px solid var(--v-line);border-radius:22px;overflow:hidden;display:flex;flex-direction:column}
.v4-rc .im{height:130px;display:grid;place-items:center;background:#f8f6f2;overflow:hidden}
html[data-mood="dark"] .v4-rc .im{background:#24201c}
.v4-rc .im img{width:100%;height:100%;object-fit:cover}
.v4-rc .im img.lg{width:80px;height:80px;object-fit:contain}
.v4-rc .im .v4i{width:46px;height:46px;margin:0}
.v4-rc .tx{padding:10px 12px 12px;display:flex;flex-direction:column;flex:1}
.v4-rc .tx b{font-size:15px;font-weight:700;line-height:1.25}
.v4-rc .c{color:var(--v-goldd);font-size:13px;font-weight:700;margin:2px 0 10px}
.v4-rc button{margin-top:auto;border:0;border-radius:99px;background:var(--v-ink);color:var(--v-bg);font:600 15px "CR Khmer",Urbanist,sans-serif;padding:10px;cursor:pointer}
.v4-rc .go{margin-top:auto;font-size:13px;color:var(--v-mut);font-weight:600}
html.v4me.v4-lead #gameBtn{margin-top:14px}
.v4fl{width:13px;height:13px}

/* ---------- Profile (v4 design screen 4) ---------- */
html.v4me.v4-prof #v4Top,html.v4me.v4-prof .mb .mb-top,html.v4me.v4-prof .mb .mb-stats,html.v4me.v4-prof #scanBtn,html.v4me.v4-prof #gameBtn,html.v4me.v4-prof #pushCard,html.v4me.v4-prof #lnCard,html.v4me.v4-prof .mb-ci{display:none!important}
html.v4me #tprof{text-align:center}
.v4-cov{position:relative;height:calc(200px + env(safe-area-inset-top,0px));margin:0 -14px;border-radius:0 0 34px 34px;background:#111 url(/img/99a00e96c4.jpg) center/cover no-repeat;overflow:hidden}
.v4-cov::before{content:"";position:absolute;inset:0;background:inherit;filter:grayscale(1) contrast(1.1) brightness(.78)}
.v4-cb{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:1}
.v4-cb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#pfSetBtn{left:16px}#pfMood{right:16px}
.v4-pfav{position:relative;display:grid;place-items:center;width:116px;height:116px;margin:-62px auto 0;border-radius:50%;border:5px solid var(--v-bg);background:var(--v-card2);padding:0;cursor:pointer;overflow:visible}
.v4-pfav img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.v4-pfav b{font-size:40px;color:var(--v-ink)}
.v4-pfav i{position:absolute;right:4px;bottom:4px;width:28px;height:28px;border-radius:50%;background:var(--v-gold);color:#fff;font-style:normal;font-weight:700;display:grid;place-items:center;border:3px solid var(--v-bg)}
.v4-pfn{margin:8px 0 0;font-size:27px;font-weight:600;color:var(--v-ink)}
.v4-un{font-size:13px;color:var(--v-mut);margin-top:2px}
.v4-bio{margin:6px auto 0;max-width:320px;font-size:14.5px;line-height:1.45;color:var(--v-mut);white-space:pre-line}
.v4-addbio{margin-top:8px;border:0;background:none;color:var(--v-goldd);font:600 14px "CR Khmer",Urbanist,sans-serif;cursor:pointer}
.v4-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:12px}
.v4-chips span{background:var(--v-card);color:var(--v-ink);padding:6px 12px;border-radius:99px;font-size:13px;font-weight:700}
.v4-chips .lvc{background:#E7DCCB;color:#7a5a2c}
.v4-chips .fire{background:#F7E2D2;color:var(--v-fire)}
html[data-mood="dark"] .v4-chips .lvc{background:#3a3024;color:#e2c48f}
html[data-mood="dark"] .v4-chips .fire{background:#3a2518;color:#f3a36b}
.v4-stats{display:flex;margin:18px 6px 0}
.v4-stats>*{flex:1;display:flex;flex-direction:column;align-items:center;border:0;background:none;padding:0;font:inherit;color:var(--v-ink)}
.v4-stats>*+*{border-left:1px solid var(--v-line)}
.v4-stats button{cursor:pointer}
.v4-stats b{font-size:22px;font-weight:700}
.v4-stats span{font-size:13.5px;color:var(--v-mut)}
.v4-pfb{display:flex;gap:8px;margin:18px 0 0}
.v4-pfb button{flex:1;border:0;border-radius:99px;padding:13px 6px;background:var(--v-card);color:var(--v-ink);font:600 15.5px "CR Khmer",Urbanist,sans-serif;cursor:pointer}
.v4-pfb .dk{flex:1.25;background:var(--v-ink);color:var(--v-bg)}
.v4-ptabs{display:flex;justify-content:space-around;margin:18px 0 12px;border-bottom:1px solid var(--v-line)}
.v4-ptabs button{border:0;background:none;color:var(--v-mut);padding:10px 22px;cursor:pointer;border-bottom:2.5px solid transparent;margin-bottom:-1px}
.v4-ptabs button.on{color:var(--v-ink);border-bottom-color:var(--v-ink)}
.v4-ptabs svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v4-pt{text-align:left}
.v4-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.v4-gi{position:relative;aspect-ratio:1;border:0;padding:0;border-radius:12px;overflow:hidden;background:var(--v-card);cursor:pointer;color:var(--v-ink)}
.v4-gi img{width:100%;height:100%;object-fit:cover;display:block}
.v4-gi span{display:block;padding:8px;font-size:12px;line-height:1.3;text-align:left;height:100%;overflow:hidden}
.v4-gi em{position:absolute;left:6px;bottom:6px;font-style:normal;font-size:11px;font-weight:700;background:rgba(27,23,20,.6);color:#fff;padding:2px 7px;border-radius:99px}
.v4-ins{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:6px;border-radius:22px;transition:box-shadow .3s}
.v4-ins.flash{box-shadow:0 0 0 3px rgba(184,146,90,.45)}
.v4-ins div{background:var(--v-white);border:1px solid var(--v-line);border-radius:20px;padding:14px 16px}
.v4-ins b{display:block;font-size:26px;font-weight:700;color:var(--v-ink)}
.v4-ins span{font-size:13px;color:var(--v-mut)}
html.v4me #tprof h3{text-align:left}
html.v4me .lv{background:var(--v-card);border:0;border-radius:22px;padding:16px 18px}
html.v4me .lv .t b{font-size:17px}
html.v4me .lv .pb{background:var(--v-card2);height:9px}
html.v4me .lv .pb i{background:var(--v-gg)}
html.v4me .bg1{background:var(--v-white);border:1px solid var(--v-line);border-radius:20px}
/* edit sheet */
#pfBox.v4-sheet:not([hidden]){position:fixed;inset:0;z-index:240;display:flex;align-items:flex-end;background:rgba(27,23,20,.35)}
#pfBox.v4-sheet>.mb-row{width:100%;max-width:520px;margin:0 auto;max-height:92vh;overflow:auto;border-radius:28px 28px 0 0;background:var(--v-white);border:0;padding:12px 18px calc(24px + env(safe-area-inset-bottom,0px));text-align:left;animation:v4up .25s ease-out}
.v4-shh{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.v4-shh b{font-size:20px}
.v4-rb svg,.v4-seth .v4-rb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
html.v4me #pfBio{width:100%;box-sizing:border-box;border:0;border-radius:14px;background:var(--v-card);color:var(--v-ink);font:15px/1.45 "CR Khmer",Urbanist,sans-serif;padding:12px 14px;margin-bottom:16px;resize:none;outline:none}
html.v4me #pfBox input[type=text]{background:var(--v-card);border:0;color:var(--v-ink)}
/* settings screen */
#pfSet.v4-set:not([hidden]){position:fixed;inset:0;z-index:235;overflow:auto;background:var(--v-bg);padding:0 16px calc(30px + env(safe-area-inset-bottom,0px));text-align:left}
#pfSet>*{max-width:520px;margin-left:auto;margin-right:auto}
.v4-seth{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top,0px)) 0 6px}
.v4-seth h1{margin:0;font-size:23px;font-weight:600;flex:1;text-align:center}
html.v4-set-open #bnav,html.v4-set-open #v4Fab{display:none!important}
html.v4me #pfSet .mb-row{background:var(--v-white);border:1px solid var(--v-line)}
html.v4me .sw input:checked+i{background:var(--v-gold)!important}
html.v4me #pfRm{color:var(--v-mut)}

/* ---------- Badges: gold medals (earned) and sand outlines (locked) ---------- */
/* each badge keeps its own colour, in soft earthy tones that sit with cream / black / gold */
html[data-mood] .b-first{--m1:#DCE6D3;--m2:#93AE8C;--m3:#5E7A58;--r1:#93AE8C;--r2:#5E7A58;--gl:#B9D0B1}    /* sage */
html[data-mood] .b-three{--m1:#F6E7C6;--m2:#C9A46A;--m3:#8E6C3C;--r1:#C9A46A;--r2:#8E6C3C;--gl:#E9C98E}    /* gold */
html[data-mood] .b-ten{--m1:#F1D2BC;--m2:#C08159;--m3:#7E4A2C;--r1:#C08159;--r2:#7E4A2C;--gl:#E7B08C}      /* copper */
html[data-mood] .b-streak3{--m1:#F7D2B4;--m2:#DE7A3C;--m3:#9A4518;--r1:#DE7A3C;--r2:#9A4518;--gl:#F2A15F}  /* ember */
html[data-mood] .b-streak6{--m1:#D7DEE6;--m2:#8598AB;--m3:#4F6273;--r1:#8598AB;--r2:#4F6273;--gl:#B4C3D2}  /* slate blue */
html[data-mood] .b-vol{--m1:#F0D3CF;--m2:#C3837D;--m3:#86504B;--r1:#C3837D;--r2:#86504B;--gl:#E3AAA4}      /* dusty rose */
html[data-mood] .bg1{background:var(--v-white);border:1px solid var(--v-line);border-radius:22px;padding:16px 6px 14px}
html[data-mood] .bg1 .ic2{background:conic-gradient(from 210deg,var(--m1),var(--m2),var(--m3),var(--m2),var(--m1));box-shadow:0 6px 14px color-mix(in srgb,var(--m3) 30%,transparent)}
html[data-mood] .bg1 .ic2::before{inset:4px;background:radial-gradient(circle at 32% 26%,#3a3029,#141110 72%)}
html[data-mood] .bg1 .ic2 svg{filter:none}
html[data-mood] .bg1 span{color:var(--v-ink);font-weight:700;font-size:12.5px}
html[data-mood] .bg1.off{opacity:1}
html[data-mood] .bg1.off .ic2{background:var(--v-card2);box-shadow:none;color:var(--v-mut)}
html[data-mood] .bg1.off .ic2::before{background:var(--v-white)}
html[data-mood] .bg1.off .ic2::after{background:var(--v-card2)}
html[data-mood] .bg1.off span{color:var(--v-mut);font-weight:600}
html[data-mood="dark"] .bg1.off .ic2,html[data-mood="dark"] .bg1.off .ic2::after{background:#2c2622}
html[data-mood="dark"] .bg1.off .ic2::before{background:#1A1714}
/* small badges next to names in the feed */
html[data-mood] .mini{box-shadow:none}
html[data-mood] .mini::before{background:radial-gradient(circle at 32% 26%,#3a3029,#141110 72%)}
html.v4me .lv .v4-st,html.v4me .lv .v4-st .v4fl{color:var(--v-fire);fill:var(--v-fire)}

/* ---------- Club page (4 dots): club info + club feed together ---------- */
#v4Menu .cr-about{margin:14px 4px 0;font-size:15px;line-height:1.5;color:var(--v-ink)}
#v4Menu .cr-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 2px 0}
#v4Menu .cr-chips span{background:var(--v-card);border-radius:99px;padding:6px 12px;font-size:13px;font-weight:700;color:var(--v-ink)}
#v4Menu .cr-run{display:flex;align-items:center;gap:14px;background:var(--v-card);border-radius:24px;padding:14px}
#v4Menu .cr-run .tx{flex:1;min-width:0;display:flex;flex-direction:column}
#v4Menu .cr-run .tx b{font-size:17px}
#v4Menu .cr-run .tx small{font-size:13px;color:var(--v-mut)}
#v4Menu .cr-run .go{flex:none;border:0;border-radius:99px;background:var(--v-gg);color:#fff;font:700 15px "CR Khmer",Urbanist,sans-serif;padding:11px 16px;cursor:pointer}
#v4Menu .cr-know{background:var(--v-white);border:1px solid var(--v-line);border-radius:22px;padding:6px 16px}
#v4Menu .cr-know div{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:14.5px;line-height:1.35}
#v4Menu .cr-know div+div{border-top:1px solid var(--v-line)}
#v4Menu .cr-know svg{flex:none;width:22px;height:22px;color:var(--v-gold)}
#v4Menu .cr-fh{display:flex;justify-content:space-between;align-items:center}
#v4Menu .cr-fh button{border:0;background:none;color:var(--v-goldd);font:700 13px "CR Khmer",Urbanist,sans-serif;letter-spacing:0;text-transform:none;cursor:pointer;padding:0}
#v4Menu .cr-post{display:flex;align-items:center;gap:12px;width:100%;border:0;background:var(--v-white);border:1px solid var(--v-line);border-radius:20px;padding:10px 12px;margin-bottom:8px;text-align:left;color:var(--v-ink);font:inherit;cursor:pointer}
#v4Menu .cr-post .av{flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--v-card2);display:grid;place-items:center;font-weight:700}
#v4Menu .cr-post .av img{width:100%;height:100%;object-fit:cover}
#v4Menu .cr-post .av img.tm{background:#1B1714;object-fit:contain;padding:6px}
#v4Menu .cr-post .tx{flex:1;min-width:0;display:flex;flex-direction:column}
#v4Menu .cr-post .tx b{font-size:14.5px}
#v4Menu .cr-post .tx b em{font-style:normal;font-size:11px;color:var(--v-goldd);margin-left:4px}
#v4Menu .cr-post .tx span{font-size:13.5px;color:var(--v-mut);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#v4Menu .cr-post .ph{flex:none;width:56px;height:56px;border-radius:14px;object-fit:cover}
#v4Menu .cr-empty{color:var(--v-mut);font-size:14px;padding:10px 4px}
#v4Menu .cr-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
#v4Menu .cr-links .join{background:var(--v-gg);color:#fff}
#v4Menu .cr-links .tg{background:var(--v-ink);color:var(--v-bg)}
#v4Menu .cr-links .t{width:100%;box-sizing:border-box;border:0;margin:0;padding:16px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font:700 14.5px "CR Khmer",Urbanist,sans-serif}
#v4Menu .cr-links .t span{margin-top:6px}

/* ---------- Guest page (logged out) - replaces the old landing page ---------- */
#v4Guest{display:none}
html.v4guest #v4Guest{display:block;max-width:520px;margin:0 auto;padding:0 14px 40px;color:var(--v-ink)}
html.v4guest body>nav,html.v4guest .hero,html.v4guest #home,html.v4guest .mood,html.v4guest .langBtn{display:none!important}
html.v4guest body{background:var(--v-bg)}
#v4Guest .gtop{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:10px;margin:0 -14px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;background:var(--v-bg)}
#v4Guest .gtop h1{flex:1;margin:0;text-align:center;font-size:23px;font-weight:600}
#v4Guest .glog{border:0;border-radius:99px;background:var(--v-ink);color:var(--v-bg);font:600 15px "CR Khmer",Urbanist,sans-serif;padding:12px 16px;cursor:pointer}
#v4Guest .ghero{position:relative;height:300px;border-radius:28px;overflow:hidden;background:#222 url(/img/99a00e96c4.jpg) center/cover no-repeat}
#v4Guest .ghero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(20,14,8,.82))}
#v4Guest .ghero div{position:absolute;left:20px;right:20px;bottom:20px;z-index:1;color:#fff}
#v4Guest .ghero small{display:block;font-size:12.5px;letter-spacing:2px;font-weight:700;opacity:.85}
#v4Guest .ghero b{display:block;font-size:34px;font-weight:700;line-height:1.05;margin-top:6px}
#v4Guest .ghero span{display:block;font-size:14.5px;opacity:.9;margin-top:8px}
#v4Guest .gjoin{background:var(--v-white);border:1px solid var(--v-line);border-radius:24px;padding:18px;margin-top:12px}
#v4Guest .gjoin b{display:block;font-size:18px}
#v4Guest .gjoin>span{display:block;font-size:14px;color:var(--v-mut);margin:2px 0 14px}
#v4Guest .gp,#v4Guest .gs{display:block;width:100%;border:0;border-radius:99px;padding:14px;font:700 16px "CR Khmer",Urbanist,sans-serif;cursor:pointer}
#v4Guest .gp{background:var(--v-gg);color:#fff}
#v4Guest .gs{background:transparent;color:var(--v-ink);border:1.5px solid var(--v-line);margin-top:8px;font-weight:600}
#v4Guest .lbl{font-size:12px;letter-spacing:1.2px;color:var(--v-mut);font-weight:700;text-transform:uppercase;margin:22px 4px 8px}
#v4Guest .cr-run{display:flex;align-items:center;gap:14px;background:var(--v-card);border-radius:24px;padding:14px}
#v4Guest .cr-run:empty{display:none}
#v4Guest .cr-run .tx{flex:1;min-width:0;display:flex;flex-direction:column}
#v4Guest .cr-run .tx b{font-size:17px}
#v4Guest .cr-run .tx small{font-size:13px;color:var(--v-mut)}
#v4Guest .cr-run .go{flex:none;border:0;border-radius:99px;background:var(--v-gg);color:#fff;font:700 15px "CR Khmer",Urbanist,sans-serif;padding:11px 18px;cursor:pointer}
#v4Guest .cr-post{display:flex;align-items:center;gap:12px;background:var(--v-white);border:1px solid var(--v-line);border-radius:20px;padding:10px 12px;margin-bottom:8px}
#v4Guest .cr-post .av{flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--v-card2);display:grid;place-items:center;font-weight:700}
#v4Guest .cr-post .av img{width:100%;height:100%;object-fit:cover}
#v4Guest .cr-post .av img.tm{background:#1B1714;object-fit:contain;padding:6px}
#v4Guest .cr-post .tx{flex:1;min-width:0;display:flex;flex-direction:column}
#v4Guest .cr-post .tx b{font-size:14.5px}
#v4Guest .cr-post .tx span{font-size:13.5px;color:var(--v-mut);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#v4Guest .cr-post .ph{flex:none;width:56px;height:56px;border-radius:14px;object-fit:cover}
#v4Guest .cr-empty{color:var(--v-mut);font-size:14px;padding:10px 4px}
#v4Guest .gfoot{display:flex;justify-content:center;gap:8px;margin-top:22px;flex-wrap:wrap}
#v4Guest .gfoot>*{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--v-card);color:var(--v-ink);border-radius:99px;padding:9px 14px;font:600 13.5px "CR Khmer",Urbanist,sans-serif;text-decoration:none;cursor:pointer}
#v4Guest svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#v4Guest .gtop .v4-rb svg{width:22px;height:22px}

/* ---------- Log in page (logged out, #/me) ---------- */
html.v4auth body>nav,html.v4auth .mood,html.v4auth .langBtn{display:none!important}
html.v4auth body,html.v4auth #me.rest{background:var(--v-bg)}
html.v4auth #me.rest{color:var(--v-ink);--fg:var(--v-ink);--mut:var(--v-mut);overflow:visible;isolation:auto}
html.v4auth #me.rest::before,html.v4auth #me.rest::after{display:none}
html.v4auth #me .lt{padding:calc(14px + env(safe-area-inset-top,0px)) 18px 60px;max-width:440px}
html.v4auth #mbBack{color:var(--v-ink);font-weight:600}
html.v4auth #mbAuth h1{font-size:30px;font-weight:700;color:var(--v-ink)}
html.v4auth #mbAuth>p{color:var(--v-mut)}
html.v4auth .soc{border-radius:99px;padding:15px;font-weight:700}
html.v4auth .soc.gg{background:var(--v-white);color:var(--v-ink);border:1.5px solid var(--v-line)}
html.v4auth .mb .seg{background:var(--v-card);border-radius:99px}
html.v4auth .mb .seg button{border-radius:99px}
html.v4auth .mb .seg button.on{background:var(--v-ink);color:var(--v-bg)}
html.v4auth .mb input[type=text],html.v4auth .mb input[type=tel],html.v4auth .mb input[type=password]{background:var(--v-white);border:1px solid var(--v-line);color:var(--v-ink);border-radius:16px}
html.v4auth .mb label.f{color:var(--v-ink)}
html.v4auth #mbGo{background:var(--v-gg);color:#fff;border-radius:99px}
html.v4auth .or:before,html.v4auth .or:after{background:var(--v-line)}
html.v4auth .or span{color:var(--v-mut)}
html.v4auth .mb .chk{border-color:var(--v-line)}

/* ---------- Messages (v4 design) ---------- */
html.v4me .pnl{--pbg:var(--v-bg);--pfg:var(--v-ink);--pmut:var(--v-mut);--pline:var(--v-line);--pcard:var(--v-card);color:var(--v-ink)}
html.v4me #dmPnl{z-index:90;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
html.v4me #thPnl{z-index:130}
html.v4me .pnl-h{border-bottom:0;padding-top:calc(10px + env(safe-area-inset-top,0px));max-width:620px;width:100%;margin:0 auto;box-sizing:border-box}
html.v4me #dmPnl .pnl-h h2{font-size:23px;font-weight:600;flex:1;text-align:center}
html.v4me .pnl-x{width:46px;height:46px;background:var(--v-card);color:var(--v-ink)}
html.v4me #dmPnl .pnl-new{width:46px;height:46px;border-radius:50%;background:var(--v-card);color:transparent;font-size:0;position:relative}
html.v4me #dmPnl .pnl-new::after{content:"";position:absolute;inset:0;background:var(--v-ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 5.5 18.5 8.5 9 18l-4 1 1-4z'/%3E%3C/svg%3E") center/22px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 5.5 18.5 8.5 9 18l-4 1 1-4z'/%3E%3C/svg%3E") center/22px no-repeat}
.dm-q{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:99px;background:var(--v-card);color:var(--v-mut);font:500 15px "CR Khmer",Urbanist,sans-serif;padding:13px 16px;cursor:pointer;text-align:left}
.dm-q svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.dm-fav{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding:14px 2px 6px}
.dm-fav::-webkit-scrollbar{display:none}
.dm-fav button{flex:none;width:60px;border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--v-ink);font:500 13px "CR Khmer",Urbanist,sans-serif;cursor:pointer}
.dm-fav .r{width:58px;height:58px;border-radius:50%;padding:3px;background:var(--v-line)}
.dm-fav .r.on{background:var(--v-gg)}
.dm-fav .so-av{width:100%;height:100%;border:2.5px solid var(--v-bg);box-sizing:border-box}
.dm-fav small{max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-lbl{font-size:15px;font-weight:700;margin:12px 4px 4px}
html.v4me .so-row{border-bottom:1px solid var(--v-line);padding:12px 4px}
html.v4me .so-row.unread{background:none}
html.v4me .so-row.unread .so-last{color:var(--v-ink);font-weight:600}
html.v4me .so-av{width:52px;height:52px;background:var(--v-card2);color:var(--v-ink)}
html.v4me .so-t b{font-size:16px}
.so-last.typing{color:var(--v-goldd)!important;font-weight:700}
html.v4me .so-dot{background:var(--v-gold);color:#fff;min-width:22px;height:22px;line-height:22px;border-radius:11px}
/* chat */
html.v4me .th-h{border-bottom:1px solid var(--v-line)}
html.v4me .th-who .so-av{width:44px;height:44px}
html.v4me .th-who b{font-size:17px}
#thSub.typing{color:var(--v-goldd);font-weight:700}
html.v4me .th-menu{background:var(--v-white);border-color:var(--v-line)}
html.v4me .th-b{gap:7px;padding-top:14px}
html.v4me .bb{background:var(--v-card);border:0;border-radius:20px 20px 20px 6px;padding:10px 14px;font-size:15.5px;line-height:1.35;max-width:76%}
html.v4me .bb.me{background:var(--v-ink);color:var(--v-bg);border-radius:20px 20px 6px 20px}
html.v4me .bb-seen{color:var(--v-mut);opacity:1;margin-top:4px;font-size:11.5px}
.bb.k-sticker,.bb.k-photo{background:none!important;padding:0!important;border-radius:0!important}
.bb.k-sticker .bb-seen,.bb.k-photo .bb-seen{padding-right:4px}
.bb-ph{display:block;border:0;padding:0;background:none;border-radius:20px;overflow:hidden;cursor:zoom-in;max-width:230px}
.bb-ph img{display:block;width:100%;max-height:320px;object-fit:cover}
.bb.me .bb-ph{border-radius:20px 20px 6px 20px}
.bb-gone{border:1.5px dashed var(--v-line);color:var(--v-mut);border-radius:18px;padding:10px 14px;font-size:13px;background:var(--v-bg)}
.bb.k-photo .bb-gone,.bb.k-voice .bb-gone{margin:-10px -14px}
.bb.k-voice{padding:8px 14px 8px 8px}
.vc{display:flex;align-items:center;gap:10px;min-width:200px}
.vc-pl{flex:none;width:36px;height:36px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;padding:0;background:var(--v-ink);color:var(--v-bg)}
.bb.me .vc-pl{background:var(--v-gg);color:#fff}
.vc-pl svg{width:16px;height:16px;fill:currentColor;stroke:none}
.vc-w{display:flex;align-items:center;gap:2.5px;height:26px;flex:1}
.vc-w i{width:3px;border-radius:2px;background:currentColor;opacity:.35;flex:none}
.vc-w i.p{opacity:1;background:var(--v-gold)}
.bb.me .vc-w i.p{background:var(--v-goldl)}
.vc-d{font-size:12.5px;font-weight:600;opacity:.75;font-variant-numeric:tabular-nums}
.bb-pend{opacity:.55}
.bb-typing{align-self:flex-start;background:var(--v-card);border-radius:20px 20px 20px 6px;padding:13px 16px;display:flex;gap:5px}
.bb-typing i{width:8px;height:8px;border-radius:50%;background:var(--v-mut);animation:dmdot 1.2s infinite}
.bb-typing i:nth-child(2){animation-delay:.2s}.bb-typing i:nth-child(3){animation-delay:.4s}
@keyframes dmdot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
/* stickers */
.stk{width:104px;height:104px;display:grid;place-items:center;text-align:center;position:relative;font-family:"CR Khmer",Urbanist,sans-serif}
.stk .t{font-weight:800;line-height:.95;filter:drop-shadow(0 3px 4px rgba(0,0,0,.18));
 text-shadow:3px 0 #fff,-3px 0 #fff,0 3px #fff,0 -3px #fff,2px 2px #fff,-2px -2px #fff,2px -2px #fff,-2px 2px #fff,4px 1px #fff,-4px 1px #fff,1px 4px #fff,1px -4px #fff}
.stk .disc{border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 4px #fff,0 4px 10px rgba(0,0,0,.2)}
/* input bar */
html.v4me .th-f{gap:8px;align-items:center;border-top:0;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.th-ib,.th-go{flex:none;width:46px;height:46px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;padding:0}
.th-ib{background:var(--v-card);color:var(--v-ink)}
.th-go{background:var(--v-gg);color:#fff}
.th-go[hidden]{display:none}
.th-ib svg,.th-go svg,.th-stk svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.th-mic{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.th-fld{flex:1;min-width:0;display:flex;align-items:flex-end;background:var(--v-card);border-radius:24px;padding:0 6px 0 4px}
html.v4me .th-fld textarea{flex:1;border:0!important;background:none!important;padding:12px 10px;color:var(--v-ink)}
.th-stk{flex:none;width:38px;height:44px;border:0;background:none;color:var(--v-ink);cursor:pointer;display:grid;place-items:center}
.th-stk.on{color:var(--v-goldd)}
.th-f.recording .th-ib,.th-f.recording .th-fld{visibility:hidden}
.th-f.recording .th-mic{transform:scale(1.35);box-shadow:0 0 0 10px rgba(184,146,90,.18),0 0 0 22px rgba(184,146,90,.08)}
.th-rec{display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:620px;width:100%;margin:0 auto;box-sizing:border-box;padding:12px 18px 0;color:var(--v-ink)}
.th-rec[hidden]{display:none}
.th-rec .rd{width:10px;height:10px;border-radius:50%;background:var(--v-red);box-shadow:0 0 0 5px rgba(229,72,59,.18);animation:dmdot 1s infinite}
.th-rec b{font-variant-numeric:tabular-nums}
.th-rec .rw{display:flex;align-items:center;gap:2.5px;height:26px;flex:1}
.th-rec .rw i{width:3px;border-radius:2px;background:var(--v-gold)}
.th-rec small{width:100%;font-size:12.5px;color:var(--v-mut)}
.th-rec.cancel small{color:var(--v-red);font-weight:700}
.th-stkp{max-width:620px;width:100%;margin:0 auto;box-sizing:border-box;background:var(--v-white);border-top:1px solid var(--v-line);border-radius:24px 24px 0 0;padding:12px 12px 4px;max-height:46vh;overflow:auto}
.th-stkp[hidden]{display:none}
.sk-h{display:flex;justify-content:space-between;align-items:baseline;padding:0 4px 6px}
.sk-h small{color:var(--v-mut);font-size:11.5px}
.sk-g{display:grid;grid-template-columns:repeat(3,1fr)}
.sk-g button{border:0;background:none;display:grid;place-items:center;height:112px;cursor:pointer;border-radius:18px}
.sk-g button:active{background:var(--v-card)}
/* send photo + full-screen photo */
.dm-phs{position:fixed;inset:0;z-index:300;background:#0d0b0a;color:#fff;display:flex;flex-direction:column;padding:calc(10px + env(safe-area-inset-top,0px)) 14px calc(14px + env(safe-area-inset-bottom,0px))}
.dm-phs[hidden]{display:none}
.dm-phs .hd{display:flex;align-items:center;justify-content:space-between;font-size:14px}
.dm-phs .x{width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:24px;cursor:pointer}
.dm-phs .im{flex:1;min-height:0;margin:14px 0;display:grid;place-items:center}
.dm-phs .im img{max-width:100%;max-height:100%;border-radius:22px;object-fit:contain}
.dm-phs .ft{display:flex;gap:8px;max-width:620px;width:100%;margin:0 auto}
.dm-phs .ft input{flex:1;min-width:0;border:0;border-radius:99px;background:rgba(255,255,255,.12);color:#fff;font:15px "CR Khmer",Urbanist,sans-serif;padding:14px 18px;outline:none}
.dm-phs .go{flex:none;width:48px;height:48px;border-radius:50%;border:0;background:var(--v-gg);color:#fff;display:grid;place-items:center;cursor:pointer}
.dm-phs .go svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dm-phs>small{text-align:center;opacity:.55;font-size:12px;margin-top:10px}
.dm-view{position:fixed;inset:0;z-index:310;background:rgba(0,0,0,.92);display:grid;place-items:center;cursor:zoom-out;padding:16px}
.dm-view[hidden]{display:none}
.dm-view img{max-width:100%;max-height:100%;border-radius:12px}
html.v4-chat #v4Fab{display:none!important}
