/* GENERATED by tools/split_css.py from styles.css for quiz.html - do not edit, edit styles.css. */
/* IBM Plex Sans Thai, self-hosted since 2026-11-11 (was Google Fonts): same files and unicode ranges Google serves.
   The thai + latin files of 400 and 700 are preloaded in every page head. Refresh: tools note in AGENTS.md. */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-500-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-600-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-700-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plex/plex-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Happy IMPACT — structure borrowed from aliabdaal.com (inset rounded panels, two-voice headlines,
   intent cards, hand-drawn marker accents). Signature: the marker-circled wall calendar. */

@font-face{font-family:"Moraeul Thai";src:url("/assets/fonts/MoraeulThai.woff2") format("woff2");font-weight:400 700;font-display:swap}
:root{
  --orange:#F26C21;        /* marker orange — strokes, CTAs */
  --marker:#D9530C;        /* orange for handwritten text (contrast-safe) */
  --orange-tint:#FFEADF;
  --blue:#1A56DB;          /* IMPACT blue — headlines, primary buttons */
  --blue-soft:#5B8DEF;
  --sky:#E9F2FF;           /* panel background */
  --sky-deep:#D6E5FF;
  --ink:#0D1B3E;           /* text */
  --ink-soft:#4A5878;
  --paper:#FFFFFF;
  --stage:#170A03;

  --f-ui:"IBM Plex Sans Thai","Noto Sans Thai",system-ui,sans-serif;
  --f-hand:"Moraeul Thai","IBM Plex Sans Thai",cursive;

  --r-panel:36px;
  --r-card:24px;
  --wrap:1180px;
  --gutter:32px;
  color-scheme:light;
}
*{box-sizing:border-box}
/* manipulation: no double-tap zoom, so after a pinch-zoom iOS doesn't hold every tap back to wait for a second one;
   overflow-x clip: nothing (a hero circle, a doodle) can ever make the page wider than the screen */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;touch-action:manipulation;overflow-x:clip}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--f-ui);font-weight:400;font-size:18px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit}
h1,h2,h3,h4,p,ol,ul{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:8px}
.skip{position:absolute;left:16px;top:-80px;z-index:50;background:var(--ink);color:#fff;padding:8px 16px;border-radius:999px;text-decoration:none}
.skip:focus{top:16px}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.panel{position:relative;margin:16px;border-radius:var(--r-panel);overflow:hidden}
.panel--sky{background:var(--sky)}
.hand{font-family:var(--f-hand);color:var(--marker);font-size:30px;line-height:1.2}
/* ---------- buttons & links ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:10px 26px 11px;font-family:var(--f-ui);font-weight:500;font-size:18px;line-height:1.2;text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(13,27,62,.35)}
.btn--blue{background:var(--blue);color:#fff}
.btn--orange{background:var(--orange);color:var(--ink)}
.btn--ghost{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 2px var(--sky-deep)}
.link{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font-weight:500;font-size:17px;color:var(--ink);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px;cursor:pointer}
.link:hover{color:var(--blue)}
.link__arrow{transition:transform .15s ease}
.link:hover .link__arrow{transform:translateX(4px)}
.round{display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;background:var(--orange);color:var(--ink);cursor:pointer;transition:transform .15s ease}
.round:hover{transform:scale(1.06)}
.round svg{width:20px;height:20px}
.tag{display:inline-block;border-radius:999px;padding:2px 12px 3px;font-weight:500;font-size:14px;line-height:1.3;white-space:nowrap}
.tag--ok{display:inline-flex;align-items:center;gap:5px;background:#DDF3E6;color:#11613A}
.tag--tbc{background:var(--paper);color:var(--blue);box-shadow:inset 0 0 0 1.5px var(--blue-soft)}
.js .tag--tbc{position:relative;background:none;box-shadow:none}
.doodle--tag{position:absolute;left:-6%;top:-22%;width:112%;height:144%;max-width:none;overflow:visible;pointer-events:none}
.doodle--tag path{fill:none;stroke:var(--blue-soft);stroke-width:1.6;stroke-dasharray:5 4;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tag--live{background:var(--orange);color:var(--ink)}
.tag--done{display:inline-flex;align-items:center;gap:5px;background:#E6EAF2;color:var(--ink-soft)}
/* ---------- marker strokes (draw on view) ---------- */
.mark{fill:none;stroke:var(--orange);stroke-linecap:round;stroke-linejoin:round}
.js .draw path{stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0;transition:stroke-dashoffset .9s cubic-bezier(.65,.05,.3,1),opacity 0s}
.js .draw path + path{transition-delay:.8s;transition-duration:.25s}
.js .draw.is-drawn path{stroke-dashoffset:0;opacity:1}
/* ---------- doodles ---------- */
.hl{position:relative;display:inline-block}
.doodle{position:absolute;max-width:none;overflow:visible;pointer-events:none}
.doodle--underline,.doodle--wavy,.doodle--double{left:-2%;width:104%;bottom:-.16em;height:.34em}
.doodle--underline path{stroke-width:4}
.doodle--wavy path,.doodle--double path{stroke-width:3.5}
.doodle--ring{left:-9%;top:-42%;width:118%;height:184%}
.doodle--ring path{stroke-width:3}
.hover-draw path{stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0;transition:stroke-dashoffset .4s ease,opacity 0s}
a:hover > .hover-draw path,a:focus-visible > .hover-draw path{stroke-dashoffset:0;opacity:1}
[data-hover]{position:relative}
[data-hover] .doodle{bottom:-.3em}
/* sketchy outline + offset marker fill behind cards */
.sketch{position:absolute;inset:0;z-index:-1;width:100%;height:100%;max-width:none;overflow:visible;pointer-events:none}
.sketch__fill{fill:var(--sky)}
.sketch__line{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.8}
/* ---------- nav ---------- */
.nav{position:relative;z-index:10;display:flex;align-items:center;gap:28px;padding-top:26px;padding-bottom:10px}
.logo{position:relative;display:inline-flex;align-items:baseline;gap:6px;text-decoration:none;line-height:1}
.logo__happy{font-family:var(--f-hand);color:var(--marker);font-size:30px;transform:rotate(-6deg) translateY(-2px)}
.logo__impact{position:relative;font-weight:700;font-size:30px;color:var(--blue);letter-spacing:.01em}
.logo__smile{position:absolute;left:2%;width:98%;top:88%;height:auto;max-width:none;overflow:visible}
.logo__smile path{stroke-width:11}
.nav__links{display:flex;gap:28px;margin-left:auto}
.nav__links a{position:relative;font-weight:500;font-size:18px;text-decoration:none}
.nav__links a:hover{color:var(--blue)}
.nav__cta{white-space:nowrap}
/* a stored Supabase token = probably a member: keep the default login button hidden until nav-user.js knows (it drops has-sess for a guest) */
.has-sess .nav__user>.nav__cta{visibility:hidden}
/* ---------- hero ---------- */
.hero{padding-bottom:28px}
.hero::before{content:"";position:absolute;right:-280px;top:-320px;width:980px;height:980px;border-radius:50%;border:110px solid rgba(26,86,219,.05);pointer-events:none}
/* next-up card */
.next{position:relative}
.next::before{content:"";position:absolute;z-index:4;top:-14px;left:56%;width:124px;height:32px;transform:rotate(4deg);background:rgba(255,224,206,.85);box-shadow:0 1px 4px rgba(13,27,62,.14)}
.count{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}
/* "this year" strip — the logo row on Ali's hero */
.strip{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px 34px;padding-top:26px;margin-top:4px}
.strip::before{content:"";position:absolute;top:0;left:var(--gutter);right:var(--gutter);height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C180 3 380 6 560 4S860 3 998 5' fill='none' stroke='%235B8DEF' stroke-width='1.8' stroke-linecap='round' opacity='.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center/100% 100%}
.strip a{position:relative;font-weight:700;font-size:19px;text-decoration:none;color:var(--ink)}
.strip a:hover{color:var(--blue)}
/* ---------- split titles (two voices, like "How Can / I Help You?") ---------- */
.split-title{display:flex;flex-direction:column;gap:.05em;font-size:clamp(39px,5.0vw,66px);line-height:1.15;text-wrap:balance}
.split-title__light{font-weight:400;color:var(--ink)}
.split-title__bold{font-weight:700;color:var(--blue)}
/* ---------- events (intent cards) ---------- */
.events{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding-top:120px;padding-bottom:120px}
.card{display:flex;flex-direction:column;gap:12px;background:var(--sky);border-radius:var(--r-card);padding:40px 44px 40px}
.card .link{margin-top:8px;align-self:flex-start}
.js .card{position:relative;isolation:isolate;background:none;border-radius:0}
/* ---------- calendar ---------- */

.day{position:relative;display:flex;flex-direction:column;align-items:center;height:100%;padding-top:10px}
.ring{position:absolute;left:50%;top:-3px;width:62px;height:50px;transform:translateX(-50%) rotate(var(--rot,0deg));overflow:visible}
.ring path{fill:none;stroke:var(--orange);stroke-width:5.5;stroke-linecap:round}
@keyframes flash{0%,100%{background:transparent}25%{background:var(--orange-tint)}}
.nb{white-space:nowrap}
p,li,dd,figcaption{text-wrap:pretty}
.details{padding-top:124px;padding-bottom:110px;overflow-x:clip}
.details > .split-title{margin-bottom:64px}
/* ---------- art tiles ---------- */
.art{position:relative;overflow:hidden;width:100%;height:100%}
.art--voice{display:grid;place-items:center;background:
  radial-gradient(ellipse 70% 45% at 50% 108%,rgba(242,108,33,.7),transparent 70%),
  radial-gradient(ellipse 60% 60% at 50% 40%,rgba(242,108,33,.16),transparent 70%),
  var(--stage)}
.art--voice::before,.art--voice::after{content:"";position:absolute;top:-10%;width:34%;height:120%;background:linear-gradient(180deg,rgba(255,196,140,.32),transparent 75%);filter:blur(6px)}
.art--voice::before{left:6%;transform:rotate(-24deg);transform-origin:top}
.art--voice::after{right:6%;transform:rotate(24deg);transform-origin:top}
.art--voice img{position:relative;z-index:1;width:78%;height:auto;filter:drop-shadow(0 10px 24px rgba(0,0,0,.5))}
.art--sports{background:var(--blue)}
.art--logo{display:grid;place-items:center;background:var(--sky)}
.art--logo img{width:72%;height:auto;filter:drop-shadow(0 14px 22px rgba(13,27,62,.18))}
.art--sports svg{width:100%;height:100%}
.art--party{display:grid;place-items:center;background:var(--orange);container-type:size}
/* compact art inside the next-up card */

/* ---------- photos ---------- */
.photos{padding-top:120px;padding-bottom:120px}
/* ---------- about ---------- */
.about{padding:104px 0 0}
/* ---------- footer ---------- */
.footer{display:grid;grid-template-columns:1.4fr 2fr;gap:40px;padding-top:72px;padding-bottom:72px}
.footer__brand p{margin-top:18px;font-size:16px;color:var(--ink-soft)}
/* ---------- responsive ---------- */

@media (max-width:960px){
  :root{--gutter:24px}

  .stickers{margin-top:72px}
  
  .next{max-width:520px}
  .events{grid-template-columns:1fr;gap:28px;padding-top:88px;padding-bottom:88px}

  .footer{grid-template-columns:1fr 1fr}
  .footer__brand{grid-column:1/-1}
}
@media (max-width:640px){:root{--gutter:16px;--r-panel:26px}
body{font-size:17px}
.panel{margin:8px}
.nav{gap:16px;padding-top:18px}
.nav__links{display:none}
.nav__cta{margin-left:auto;padding:8px 14px 9px;font-size:15px}
.logo__impact{font-size:26px}
.logo__happy{font-size:26px}
.strip{gap:6px 20px}
.strip a{font-size:17px}
.card{padding:30px 24px}
.ring{width:46px;height:38px;top:0}
.details{padding-top:88px;padding-bottom:80px}
.about{padding-top:72px}
.footer{grid-template-columns:1fr;gap:28px}
.photos{padding-top:88px;padding-bottom:88px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
.js .draw path{stroke-dashoffset:0;opacity:1;transition:none}
.btn,.round,.link__arrow{transition:none}
.hover-draw path{transition:none}}
.logo--light .logo__impact{color:#fff}
/* clip player */
.vplayer{width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:22px;background:#0B0B0B;color:#FFF4EC;box-shadow:0 0 0 1.5px rgba(255,138,61,.4),0 40px 80px rgba(0,0,0,.6)}
.vplayer::backdrop{background:rgba(0,0,0,.78)}
.vplayer__box{display:flex;flex-direction:column;padding:16px 16px 18px}
.vplayer__head{display:grid;grid-template-columns:1fr auto;align-items:start;gap:0 12px;margin-bottom:12px}
.vplayer__id{grid-column:1;font-weight:600;font-size:14px;color:#FFA35C;letter-spacing:.04em}
.vplayer__name{grid-column:1;font-weight:700;font-size:24px;line-height:1.2}
.vplayer__close{grid-column:2;grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#1E1E1E;color:#FFF4EC;cursor:pointer}
.vplayer__close:hover{background:#FF7A2F;color:#120700}
.vplayer__close svg{width:20px;height:20px}
.vplayer__video{width:100%;max-height:calc(100vh - 150px);border-radius:14px;background:#000;object-fit:contain}
.auth{display:flex;flex-direction:column;align-items:center;gap:24px;padding:56px 16px 72px;min-height:calc(100vh - 140px)}
.auth__card{width:100%;max-width:460px;background:var(--paper);border-radius:28px;padding:36px 36px 30px;box-shadow:0 24px 50px -32px rgba(13,27,62,.3)}
.auth__hello{font-size:26px;margin:0 0 12px;transform:rotate(-2deg)}
.auth__title{font-weight:700;font-size:34px;line-height:1.2;color:var(--blue);margin:0 0 18px;text-wrap:balance}
.auth__title--sm{font-size:24px}
.auth__lead{color:var(--ink-soft);font-size:17px;margin:0 0 8px;text-wrap:pretty}
.auth__step{display:flex;flex-direction:column;gap:10px}
.auth__step[hidden]{display:none}
.auth__step label,.auth__step legend{font-weight:600;font-size:16px}
.auth__step fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.auth__step input,.auth__step select{font:inherit;font-size:18px;color:var(--ink);background:var(--paper);border:2px solid var(--sky-deep);border-radius:14px;padding:11px 14px;min-width:0;width:100%}
.auth__step input:focus,.auth__step select:focus{outline:none;border-color:var(--blue)}
.auth__step .btn{justify-content:center;margin-top:8px}
.auth__step .btn:disabled{opacity:.6;cursor:progress}
.auth__dob{display:grid;grid-template-columns:.8fr 1.5fr 1.1fr;gap:8px}
.auth__pin{letter-spacing:.5em;font-variant-numeric:tabular-nums;text-align:center}
.auth__back{align-self:center;border:0;background:none;font:inherit;font-size:15px;color:var(--ink-soft);text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:4px}
.auth__small{font-size:14px;color:var(--ink-soft);margin:6px 0 0;text-align:center}
.auth__msg{min-height:1.6em;margin:14px 0 0;font-size:16px;font-weight:500;color:#C2410C;text-wrap:pretty}
@media (max-width:560px){.auth{padding:32px 8px 48px}
.auth__card{padding:28px 22px 24px}
.auth__dob{grid-template-columns:1fr 1fr;}
.auth__dob select:nth-child(2){grid-column:1/-1;grid-row:1}}
/* ---------- back office ---------- */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tag--warn{background:#FDE7D7;color:#9A3412}
.bo{width:100%;max-width:960px;margin:0 auto;display:flex;flex-direction:column;gap:20px;min-width:0}
.bo__head .auth__title{margin-bottom:4px}
.bo__stats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.bo__stats li{background:var(--paper);border-radius:20px;padding:18px 20px;display:flex;flex-direction:column}
.bo__stats b{font-size:34px;font-weight:700;color:var(--blue);line-height:1.2;font-variant-numeric:tabular-nums}
.bo__stats span{font-size:15px;color:var(--ink-soft)}
.bo__card{max-width:none}
.bo__search{display:flex;gap:10px}
.bo__search input{flex:1;min-width:0;font:inherit;font-size:17px;border:2px solid var(--sky-deep);border-radius:14px;padding:10px 14px}
.bo__search input:focus{outline:none;border-color:var(--blue)}
.bo__list{list-style:none;margin:8px 0 0;padding:0}
.bo__row--av{justify-content:flex-start}
.bo__row--av .bo__actions{margin-left:auto}
.bo__av{flex:0 0 auto;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;overflow:hidden;background:var(--sky);color:var(--blue);font-weight:600;font-size:20px}
.bo__av img{width:100%;height:100%;object-fit:cover}
.bo__list--scroll{max-height:560px;overflow-y:auto;padding-right:6px}
#us-stats{margin-top:14px}
.bo__shots{list-style:none;margin:14px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.bo__shot{min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px}
.bo__shot a{display:block;margin-bottom:4px;border-radius:10px;overflow:hidden;background:var(--sky);aspect-ratio:9/16}
.bo__shot a.is-gone{opacity:.4}
.bo__shot img{display:block;width:100%;height:100%;object-fit:cover}
.bo__shot small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-soft)}
.bo__shot b{color:var(--ink)}
.bo__usage{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin-top:14px}
.bo__ubox{background:var(--paper);border-radius:20px;padding:16px 18px;min-width:0;overflow-x:auto}
#er-list .ap__note{overflow-wrap:anywhere}
.er__stack summary{cursor:pointer;font-size:13px;color:var(--blue)}
.er__stack pre{margin:6px 0 0;padding:8px 10px;background:var(--sky,#E9F2FF);border-radius:10px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.bo__ubox h3{margin:0 0 8px;font-size:17px;color:var(--blue)}
.bo__ubox table{width:100%;border-collapse:collapse;font-size:14px}
.bo__ubox th{text-align:left;font-weight:600;color:var(--ink-soft);padding:4px 8px 6px 0;border-bottom:1px solid #EDF2FB}
.bo__ubox td{padding:6px 8px 6px 0;border-bottom:1px solid #EDF2FB;vertical-align:top}
.bo__ubox td:not(:first-child),.bo__ubox th:not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bo__uempty{margin:0;color:var(--ink-soft);font-size:14px}
.bo__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 0;border-bottom:1px solid #EDF2FB}
.bo__who{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.bo__who b{font-size:17px}
.bo__who small{font-size:14px;color:var(--ink-soft)}
.bo__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ap__row{align-items:flex-start}
.ap__row .bo__who{flex:1 1 420px}
.ap__note{margin:6px 0 0;padding:10px 14px;border-radius:12px;background:var(--orange-tint);font-size:15px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.ap__note b{font-size:15px}
.bo__actions select{font:inherit;font-size:15px;border:2px solid var(--sky-deep);border-radius:12px;padding:6px 10px;background:var(--paper)}
.bo__actions .btn{font-size:15px;padding:7px 16px 8px}
@media (max-width:560px){.bo__stats{gap:8px}
.bo__stats li{padding:14px 12px}
.bo__stats b{font-size:26px}
.bo__stats span{font-size:13px}}
/* hero greeting: handwriting sweep, then the hand keeps waving */

.wave{display:inline-block;transform-origin:70% 80%}
.wave svg{width:1.05em;height:1.05em;overflow:visible;vertical-align:-.1em}
/* pen-drawn hand, no emoji (owner 2026-10-23) */
.js .wave{opacity:0;transition:opacity .3s ease}
@keyframes hello-wave{0%,55%,100%{transform:rotate(0)}8%{transform:rotate(16deg)}16%{transform:rotate(-8deg)}24%{transform:rotate(16deg)}32%{transform:rotate(-4deg)}40%{transform:rotate(10deg)}}
/* nav: member menu */
.nav__user{position:relative;flex:none}
@media (max-width:640px){.nav__user{margin-left:auto}}
.nav__menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;list-style:none;margin:0;padding:6px;min-width:180px;background:var(--paper);border-radius:16px;box-shadow:0 18px 40px -18px rgba(13,27,62,.35),0 0 0 1px rgba(13,27,62,.06)}
.nav__menu[hidden]{display:none}
.nav__menu a,.nav__menu button{display:block;width:100%;text-align:left;padding:10px 14px;border:0;border-radius:10px;background:none;font:inherit;font-size:16px;font-weight:500;color:var(--ink);text-decoration:none;cursor:pointer}
.nav__menu a:hover,.nav__menu button:hover,.nav__menu a:focus-visible,.nav__menu button:focus-visible{background:var(--sky);color:var(--blue);outline:none}
/* schedule: names open the audition clip */

/* footer: social channels */
.footer__social h3{font-weight:700;font-size:18px;margin-bottom:14px}
.footer__social ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.footer__social a{display:inline-flex;align-items:center;gap:12px;padding:10px 18px 10px 12px;border-radius:999px;background:var(--sky);color:var(--ink);text-decoration:none;transition:transform .15s ease,background .15s ease}
.footer__social a:hover{transform:translateY(-2px);background:var(--sky-deep)}
.footer__social svg{width:36px;height:36px;flex:none;overflow:visible}
.footer__social span{display:flex;flex-direction:column;line-height:1.3}
.footer__social b{font-size:16px}
.footer__social small{font-size:14px;color:var(--ink-soft)}
.nav__links a[aria-current="page"]{color:var(--blue)}
.bview{font-size:16px}
.bubble{position:absolute;left:0;top:0;width:84px;height:84px;transform:scale(0);transform-origin:50% 50%;will-change:transform;z-index:1}
.bubble.is-hot{z-index:2}
.bubble__btn{position:absolute;inset:0;display:grid;place-items:center;border:0;padding:0;margin:0;background:none;border-radius:50%;color:var(--ink);cursor:pointer;transition:transform .2s ease}
.bubble__btn:hover{transform:scale(1.035)}
.bubble__btn:focus-visible{outline:3px solid var(--blue);outline-offset:5px;border-radius:50%}
.bubble__svg{position:absolute;inset:0;width:100%;height:100%;max-width:none;overflow:visible;pointer-events:none}
.bubble__shadow{fill:#C9DAFF}
.bubble__face{fill:var(--paper)}
.bubble__line{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.85}
.bubble__shine{fill:none;stroke:var(--ink-soft);stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.35}
.bubble--hidden .bubble__line{stroke-dasharray:5 6;opacity:.55}
.bubble--hidden .bubble__btn{opacity:.6}
.bubble__text{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3em;width:74%;text-align:center;pointer-events:none}
.bubble__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:clamp(11px,calc(var(--R) * .17px + 3px),24px);font-weight:600;line-height:1.3;text-wrap:balance;overflow-wrap:anywhere}
.bubble[data-size="s"] .bubble__title{-webkit-line-clamp:2}
.bubble[data-size="l"] .bubble__title{-webkit-line-clamp:4}
.bubble[data-size="xs"] .bubble__meta{display:none}
.bubble[data-size="xs"] .bubble__title{-webkit-line-clamp:2;font-size:11px}
.bubble__meta{display:flex;gap:.7em;font-size:clamp(10px,calc(var(--R) * .1px + 3px),15px);line-height:1;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.bubble__meta > span,.bitem__counts > span{display:inline-flex;align-items:center;gap:.25em}
.bubble__meta svg,.bitem__counts svg{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.bubble__ring,.bubble__hot{display:none}
.bubble__ring{position:absolute;inset:0;width:100%;height:100%;max-width:none;overflow:visible;pointer-events:none}
.bubble__ring path{stroke-width:calc(170px / var(--R))}
/* ~3.4px at any size; non-scaling-stroke breaks the dash draw-in */
.bubble__hot{position:absolute;right:-4%;top:-3%;font-size:clamp(18px,calc(var(--R) * .13px + 6px),30px);transform:rotate(12deg);white-space:nowrap;pointer-events:none;-webkit-text-stroke:.22em var(--sky);paint-order:stroke fill}
.is-hot .bubble__ring,.is-hot .bubble__hot{display:block}
@keyframes bpulse{0%,35%{stroke:var(--orange);stroke-width:4;opacity:1}100%{stroke:var(--ink);stroke-width:2;opacity:.85}}
.bubble--ghost{pointer-events:none;opacity:.6}
.bubble--ghost .bubble__line{opacity:.3}
.bubble--ghost .bubble__shadow{fill:var(--sky-deep)}
/* dialogs */
.bdlg{width:min(620px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:4px;border:0;background:none;color:var(--ink);overflow-y:auto;overscroll-behavior:contain}
.bdlg::backdrop{background:rgba(13,27,62,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.bdlg__card{position:relative;isolation:isolate;padding:34px 36px 28px;background:var(--paper);border-radius:24px}
.bdlg__card > .sketch .sketch__fill{display:none}
.bdlg__close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--sky);color:var(--ink);cursor:pointer}
.bdlg__close svg{width:20px;height:20px}
.bdlg__close:hover{background:var(--sky-deep)}
.bdlg__kind{margin-bottom:8px}
.bdlg__title{padding-right:44px;font-size:28px;font-weight:700;line-height:1.3;color:var(--blue);text-wrap:balance;overflow-wrap:anywhere}
.bdlg__body{margin-top:12px;font-size:17px;white-space:pre-line;text-wrap:pretty;overflow-wrap:anywhere}
.bdlg__by{margin-top:12px;font-size:15px;color:var(--ink-soft)}
.bdlg__by b,.bcomment__by b{color:var(--ink);font-weight:600}
.bdlg__by time::before,.bcomment__by time::before{content:", "}
.bdlg__note{margin-top:12px;padding:8px 14px;border-radius:12px;background:var(--orange-tint);font-size:15px}
.bdlg__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}
@keyframes bheart{40%{transform:scale(1.3)}}
.bdlg__tools{display:flex;gap:4px}
.bcomments__form .btn:disabled,.bdlg__submit:disabled{opacity:.6;cursor:progress}
.bdlg__submit{width:100%;justify-content:center;margin-top:16px}
@media (max-width:640px){.bview{font-size:15px}
.bdlg{width:100%;margin:auto 0 0;max-height:92dvh;padding:0}
.bdlg__card{padding:28px 20px 22px;border-radius:24px 24px 0 0}
.bdlg__card > .sketch{display:none}
.bdlg__title{font-size:23px}}
@media (prefers-reduced-motion:reduce){.bubble__btn,.bitem,.bfilter button{transition:none}}
/* nav: five links (incl. IMPACT Buzz) stay on one line between 641px and 1180px */
.nav__links a{white-space:nowrap}
@media (max-width:1180px){.nav{gap:22px}
.nav__links{gap:18px}
.nav__links a{font-size:16.5px}}
@media (max-width:1280px){.nav__links{display:none}
.nav__user{margin-left:auto}}
.auth__mascot{width:170px;height:auto;margin:-8px 0 -46px;position:relative;z-index:1;transform:rotate(-4deg);pointer-events:none}
@media (max-width:640px){.auth__mascot{width:140px;margin-bottom:-38px}}
/* home page mascots: one per section, never over text */
.mascot{display:block;height:auto;max-width:none;pointer-events:none}
@media (max-width:640px){/* beside the heading (owner 2026-10-29) */}
/* mobile menu (nav-links.js): same links as the desktop nav, in a sheet under the bar */

/* overflow:clip so focusing something near the edge can't scroll a rounded panel sideways */
.panel{overflow:clip}
/* the mobile menu hangs below short headers (gallery, booth): let it out while it is open. Not the home hero: the menu
   fits inside it, and its 980px ring (.hero::before) would widen the page so iOS zooms out to fit it */
.panel:not(.hero).is-navmenu{overflow:visible;z-index:30}
/* nav-user.js sets it while the profile menu or the bell list is open */
@media (max-width:640px){.nav{gap:8px}}
@media (max-width:400px){.logo__happy,.logo__impact{font-size:23px}}
/* back office: IMPACT Buzz moderation */
.bo__stats--4{grid-template-columns:repeat(4,1fr);margin:6px 0 16px}
.bo__stats--4 li{background:var(--sky)}
.bo__search select{font:inherit;font-size:16px;border:2px solid var(--sky-deep);border-radius:14px;padding:8px 10px;background:var(--paper)}
@media (max-width:560px){.bo__stats--4{grid-template-columns:repeat(2,1fr)}
.bo__search{flex-wrap:wrap}}
/* back office Popular Vote (owner 2026-10-28) */

.vo__flags{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.vo__form{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:16px;border-radius:18px;background:var(--sky)}
.vo__form label{font-weight:600;margin-top:4px}
.vo__form input,.vo__form select{font:inherit;font-size:17px;border:2px solid var(--sky-deep);border-radius:14px;padding:10px 14px;background:var(--paper)}
.vo__who{color:var(--ink-soft);min-height:1.2em}
.vo__label{font-weight:600;margin-top:4px}
.vo__pick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.vo__fin{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px 8px;border:2px solid var(--sky-deep);border-radius:16px;background:var(--paper);color:var(--ink);font:inherit;font-size:16px;cursor:pointer;transition:opacity .15s,transform .15s,background .15s}
.vo__fin img{width:100%;aspect-ratio:1;height:auto;border-radius:12px;object-fit:cover;object-position:50% 6%;background:var(--sky)}
.vo__tick{position:absolute;top:-8px;right:-8px;width:30px;height:30px;padding:4px;border-radius:50%;background:var(--orange);color:#fff;box-shadow:0 0 0 3px var(--paper);opacity:0;transform:scale(.5);transition:.15s}
.vo__pick .vo__fin[aria-checked="true"]{opacity:1;filter:none;border-color:var(--orange);background:#FFF1E6;box-shadow:0 0 0 3px var(--orange);transform:scale(1.04);font-weight:700}
.vo__fin[aria-checked="true"] .vo__tick{opacity:1;transform:none}
.vo__fin:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
@media (max-width:560px){.vo__pick{grid-template-columns:repeat(3,minmax(0,1fr))}}
.vo__find{margin-top:16px;flex-wrap:wrap}
.vo__find select{flex:none}
.vo__n{display:inline-block;margin-left:6px;padding:0 10px 1px;border-radius:999px;background:var(--orange);color:#fff;font-size:.9em;white-space:nowrap}
.vo__garland{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#FFF1E6;font-size:14px;font-weight:600;cursor:pointer}
.vo__garland input{width:18px;height:18px;accent-color:#16A34A}
.vo__garland small{font-weight:400;color:var(--ink-soft)}
.vo__sect{position:sticky;top:0;z-index:1;margin-top:10px;padding:8px 12px;border-radius:10px;background:#DCFCE7;color:#166534;font-size:14px;font-weight:700}
.vo__live{display:flex;align-items:center;gap:6px;margin:2px 0 8px;font-size:13px;color:var(--ink-soft)}
.vo__live:not(:empty)::before{content:"";width:8px;height:8px;border-radius:50%;background:#16A34A;box-shadow:0 0 0 3px rgba(22,163,74,.2)}
@keyframes vofresh{0%,40%{background:#FFE8D6;box-shadow:inset 4px 0 0 var(--orange)}100%{background:transparent;box-shadow:inset 4px 0 0 transparent}}
.vo__switch{display:inline-flex;align-self:flex-start;align-items:center;gap:12px;cursor:pointer}
/* only the switch and its words toggle, not the empty row (owner 2026-10-29) */
.vo__switch input{position:absolute;opacity:0;width:1px;height:1px}
.vo__track{flex:none;position:relative;width:52px;height:30px;border-radius:99px;background:#C9D3E3;transition:background .2s}
.vo__track::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.vo__switch input:checked + .vo__track{background:var(--orange)}
.vo__switch input:checked + .vo__track::after{transform:translateX(22px)}
.vo__switch input:focus-visible + .vo__track{outline:3px solid var(--blue);outline-offset:2px}
.vo__switch small{display:block;color:var(--ink-soft)}
.vo__flags{gap:12px}
.vo__btns{display:flex;gap:10px;margin-top:8px}
.vo__rank{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.vo__rank li{display:flex;flex-direction:column;padding:10px 12px;border-radius:14px;background:var(--sky)}
.vo__rank li span{font-size:14px;color:var(--ink-soft)}
.vo__rank .vo__sum{grid-column:1/-1;background:none;padding:0;font-weight:600}
.phero{padding-bottom:12px}
.pface{position:relative;width:184px;height:184px;flex:none;margin:14px}
.pface::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--blue-soft);transform:translate(8px,9px)}
.pface__pic{position:absolute;inset:0;border-radius:50%;overflow:hidden;background:var(--blue);border:5px solid var(--paper);box-shadow:0 0 0 2px var(--ink);transition:opacity .2s ease}
.pface__pic img{width:100%;height:100%;object-fit:cover}
.pface__initial{display:grid;place-items:center;width:100%;height:100%;font-size:78px;font-weight:700;line-height:1;color:#fff}
.pface__ring{position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);max-width:none;overflow:visible;pointer-events:none}
.pface__ring path{stroke-width:1.5}
.pface__btn{position:absolute;right:-2px;bottom:4px;z-index:2;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--paper);color:var(--ink);box-shadow:0 0 0 2px var(--ink),0 10px 20px -10px rgba(13,27,62,.5);cursor:pointer;transition:transform .15s ease}
.pface__btn:hover{transform:translateY(-2px) rotate(-6deg)}
.pface__btn svg{width:30px;height:30px;overflow:visible}
.pface__btn{border:0;padding:0;font:inherit}
.pface:focus-within .pface__btn{outline:3px solid var(--blue);outline-offset:3px}
/* phones: a round icon button beside the name pencil, so the name line never wraps it below (owner 2026-11-27) */
@media (max-width:640px){.pmanage__btn{width:44px;height:44px;padding:0;justify-content:center;border-radius:50%}.pmanage__txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
.phero > .nav{position:relative;z-index:3}
/* above .pcard, so the menu sheet and user menu open over it */
.phero__doodle{position:absolute;left:0;width:100%;z-index:0;pointer-events:none;overflow:visible}
.phero__doodle path{fill:none;stroke:var(--ph-bgd);stroke-width:10;stroke-linecap:round;stroke-linejoin:round}
.phero__doodle--top{top:0;height:130px}
.phero__doodle--bottom{bottom:0;height:130px;transform:scaleY(-1)}
.phero__doodle--whole{inset:0;height:100%}
.phero__doodle--tr,.phero__doodle--bl{width:auto;height:clamp(110px,14vw,170px)}
.phero__doodle--tr{top:14px;right:14px;left:auto}
.phero__doodle--bl{bottom:14px;left:14px;transform:rotate(180deg)}
.phero__doodle--whole path{stroke-width:26px;vector-effect:non-scaling-stroke}
/* wide panels: keep the loop round instead of stretching it across the screen (owner 2026-10-24) */
@media (min-width:900px){.phero__doodle--whole{left:50%;right:auto;width:auto;aspect-ratio:1.5;transform:translateX(-50%)}}
:is(.phero,.h2top,.shero,.ghero,.qhero)[data-theme="blue"]{background:#1A56DB}
:is(.phero,.h2top,.shero,.ghero,.qhero)[data-theme="orange"]{background:#F26C21}
:is(.phero,.h2top,.shero,.ghero,.qhero)[data-theme="sun"]{background:#FFD84D}
:is(.phero,.h2top,.shero,.ghero,.qhero)[data-theme="cherry"]{background:#E8505B}
:is(.phero,.h2top,.shero,.ghero,.qhero)[data-theme="ink"]{background:#0D1B3E}
:is(.phero,.h2top,.shero,.ghero,.qhero)[data-theme="paper"]{background:#fff repeating-linear-gradient(180deg,transparent 0 34px,#E3EDFF 34px 36px)}
.phero.is-dark .nav__links > li > a,.phero.is-dark .pinfo__name,.phero.is-dark .pmsg{color:#fff}
.phero[data-theme="orange"] .plv__title,.phero[data-theme="orange"] .logo__happy{color:#fff}
.phero[data-theme="orange"] .pface__ring path,.phero[data-theme="orange"] .logo__smile path,.phero[data-theme="orange"] .nav__links .mark{stroke:var(--ink)}
.phero[data-theme="cherry"] .nav__links .mark{stroke:#FFD84D}
.phero[data-theme="cherry"] .logo__happy{color:#FFD84D}
/* the same colour on the Space, gallery and quiz headers (owner 2026-11-12) */
:is(.shero,.ghero,.qhero) > :not(.nav):not(.nav__ph):not(.phero__doodle){position:relative;z-index:1}
:is(.shero,.ghero,.qhero) > .nav:not(.is-stuck){position:relative;z-index:3}
:is(.shero,.ghero,.qhero).is-dark :is(.split-title__light,.fhead__lede,.gbar__note){color:#fff}
:is(.shero,.ghero,.qhero).is-dark .split-title__bold{color:#FFD84D}
:is(.shero,.ghero,.qhero):is([data-theme="blue"],[data-theme="cherry"]) :is(.fhead,.ghead,.qhead) :is(.hand,.fhead__pop){color:#FFD84D}
:is(.shero,.ghero,.qhero)[data-theme="orange"] :is(.fhead,.ghead,.qhead) :is(.hand,.split-title__bold,.fhead__pop){color:#fff}
:is(.shero,.ghero,.qhero)[data-theme="orange"] .logo__happy{color:#fff}
:is(.shero,.ghero,.qhero)[data-theme="orange"] .logo__smile path{stroke:var(--ink)}
:is(.shero,.ghero,.qhero)[data-theme="cherry"] .logo__happy{color:#FFD84D}
:is(.shero,.ghero,.qhero)[data-theme="cherry"] .logo__smile path{stroke:#FFD84D}
:is(.shero,.ghero,.qhero)[data-theme="sun"] :is(.fhead,.ghead,.qhead) .hand{color:#C2410C}
.pearn,.plog{position:relative;isolation:isolate;padding:24px 26px 20px}
.plog .sketch__fill{fill:var(--sky)}
.pearn__list,.plog__list{margin:0;padding:0;list-style:none}
.plog__list li{display:grid;grid-template-columns:44px 1fr auto;align-items:baseline;gap:8px;padding:8px 0;font-size:15px}
.plog__list li + li{border-top:1px solid rgba(13,27,62,.08)}
.plog__amt{font-weight:700;color:#15803D;font-variant-numeric:tabular-nums}
.plog__list time{font-size:13px;color:var(--ink-soft);white-space:nowrap}
li.plog__empty{display:block;font-size:15px;color:var(--ink-soft)}
/* nav button: profile photo next to the name */

.nav__me-face{width:26px;height:26px;flex:none;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.nav__me-face--initial{display:grid;place-items:center;background:var(--blue);color:#fff;font-size:13px;font-weight:700;line-height:1}
/* desktop: the จัดการ paintbrush sits in the panel's bottom-right corner, past the Level row (owner 2026-10-23) */

@media (max-width:1080px){
  .pcard{grid-template-columns:auto 1fr;gap:28px 40px}
  .pgem{grid-column:1/-1;max-width:560px}
  .pgemw{grid-column:1/-1;max-width:560px}
}
@media (max-width:760px){.pface{grid-area:face;width:118px;height:118px;margin:14px}
.pface__ring{inset:-14px;width:calc(100% + 28px);height:calc(100% + 28px)}
.pface__initial{font-size:50px}
.pface__btn{width:40px;height:40px;right:-4px;bottom:0}
.pface__btn svg{width:22px;height:22px}}
@media (max-width:640px){.phero{padding-bottom:0}}
@media (prefers-reduced-motion:reduce){.pgem__bar i,.pface__btn,.pinfo__edit,.pgem{transition:none}}
/* nav: members get a round photo button (pen style: ink outline + offset orange fill) */
.nav__avatar{position:relative;display:block;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;transition:transform .15s ease}
.nav__avatar::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--orange);transform:translate(3px,3px)}
.nav__avatar:hover{transform:translateY(-2px)}
.nav__avatar[aria-expanded="true"]{transform:none}
.nav__avatar .nav__me-face{position:relative;display:grid;place-items:center;width:44px;height:44px;box-shadow:0 0 0 2px var(--ink)}
.nav__avatar .nav__me-face--initial{font-size:19px}
.nav__avatar:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.logo--light ~ .nav__user .nav__avatar .nav__me-face{box-shadow:0 0 0 2px #fff}
.nav__menu-who{padding:10px 14px 8px;margin-bottom:4px;border-bottom:1px solid var(--sky);font-size:15px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
/* big activities: the yellow mascot stands beside the heading; the Voice artwork links to its page */
.details{position:relative}
/* nav: round photo + display name (owner, 2026-10-10) */
.nav__avatar{display:inline-flex;align-items:center;gap:10px;width:auto;height:auto;padding:0 4px 0 0;border-radius:999px;color:var(--ink);font:inherit}
.nav__avatar::before{width:44px;height:44px;inset:0 auto auto 0}
.nav__avatar-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:600}
.nav__avatar-chev{width:12px;height:8px;flex:none;transition:transform .2s ease}
.nav__avatar[aria-expanded="true"] .nav__avatar-chev{transform:rotate(180deg)}
.nav__avatar:hover .nav__avatar-name{color:var(--blue)}
.logo--light ~ .nav__user .nav__avatar{color:#fff}
@media (max-width:640px){.nav__avatar{gap:7px}
.nav__avatar-name{max-width:92px;font-size:15px}}
@media (max-width:400px){.nav__avatar-name{max-width:70px}}
/* mascots a little lower (owner, 2026-10-10) */

@media (max-width:400px){
  .nav__avatar::before,.nav__avatar .nav__me-face{width:38px;height:38px}
  .nav__avatar .nav__me-face--initial{font-size:16px}
  .nav__avatar-name{max-width:66px;font-size:14px}
  .nav__avatar-chev{display:none}
}
/* profile photo is a button: tap to re-position / zoom */
button.pface__pic{padding:0;margin:0;cursor:zoom-in;font:inherit;color:inherit;display:block}
button.pface__pic:focus-visible{outline:3px solid var(--blue);outline-offset:6px}
button.pface__pic:hover img{transform:scale(1.04)}
.pface__pic img{transition:transform .25s ease}
/* ===================== Buzz: crystal leaderboard ===================== */
.board{padding-top:96px;padding-bottom:40px}
.board__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:48px}
.board__head .split-title__bold{white-space:nowrap}
/* ความสุขสะสม / ไฟ Streak สะสม stay on one line; the switch wraps below (owner 2026-11-28) */

.gem{width:22px;height:22px;flex:none;overflow:visible}
.board__face{display:block;width:40px;height:40px;flex:none;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--ink)}
.board__face--initial{display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:700;font-size:17px;line-height:1}
.board__you{display:inline-block;margin-left:6px;padding:0 8px 1px;border-radius:999px;background:var(--orange);color:var(--ink);font-size:12px;font-weight:700;vertical-align:2px}
.board__lv{font-size:14px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
.board__gems{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
.board__gems b{font-size:20px;font-weight:700;color:var(--ink)}
.board__podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:24px;margin:0 0 28px;padding:0;list-style:none}
.board__step{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:4px;padding:28px 20px 24px;text-align:center;min-width:0}
.board__step .sketch__fill{fill:var(--sky)}
.board__step--first{padding-top:40px;padding-bottom:30px}
.board__step--first .sketch__fill{fill:var(--orange-tint)}
.board__step.is-me .sketch__fill{fill:#FFE3CF}
.board__pic{position:relative;margin-bottom:6px}
.board__step .board__face{width:76px;height:76px;font-size:30px;box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--ink)}
.board__step--first .board__face{width:104px;height:104px;font-size:40px}
.board__ring{position:absolute;inset:-22px;width:calc(100% + 44px);height:calc(100% + 44px);max-width:none;overflow:visible;pointer-events:none}
.board__ring path{stroke-width:1.6}
.board__place{font-size:24px;transform:rotate(-3deg)}
.board__step--first .board__place{font-size:30px}
.board__name{max-width:100%;font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.board__step--first .board__name{font-size:22px}
.board__dept{font-size:14px;color:var(--ink-soft);min-height:1.4em}
.board__step .board__gems{margin-top:6px}
.board__step--first .board__gems b{font-size:26px}
.board__step--first .gem{width:28px;height:28px}
.board__list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.board__row{display:grid;grid-template-columns:36px 40px 1fr auto auto;align-items:center;gap:14px;padding:10px 18px;border-radius:18px;background:var(--sky)}
.board__row.is-me{background:#FFE3CF;box-shadow:inset 0 0 0 2px var(--orange)}
.board__rank{font-size:20px;font-weight:700;color:var(--blue);text-align:center;font-variant-numeric:tabular-nums}
.board__who{display:flex;flex-direction:column;min-width:0}
.board__who b{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board__who small{font-size:13px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board__row .board__gems{justify-content:flex-end;min-width:72px}
.board__me{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:20px;padding:14px 18px;border-radius:18px;background:#FFE3CF;box-shadow:inset 0 0 0 2px var(--orange);font-size:16px}
.board__me b{font-size:18px}
@media (max-width:760px){.board{padding-top:72px}
.board__podium{grid-template-columns:1fr;gap:14px}
.board__step--first{order:-1}
.board__step{flex-direction:row;flex-wrap:wrap;text-align:left;align-items:center;gap:2px 12px;padding:16px 18px}
.board__step--first{padding:20px 18px}
.board__pic{margin:0 6px 0 0}
.board__step .board__face,.board__step--first .board__face{width:56px;height:56px;font-size:24px}
.board__ring{inset:-14px;width:calc(100% + 28px);height:calc(100% + 28px)}
.board__place,.board__step--first .board__place{font-size:22px;flex-basis:auto}
.board__name,.board__step--first .board__name{font-size:18px}
.board__dept{flex-basis:100%;min-height:0;font-size:13px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ฝ่าย shows on phones too (owner 2026-11-08) */
  .board__step .board__gems{margin:0 0 0 auto}
.board__step--first .board__gems b{font-size:22px}
.board__row{grid-template-columns:28px 36px 1fr auto;gap:10px;padding:10px 14px}
.board__row .board__face{width:36px;height:36px}
.board__row .board__lv{display:none}}
/* Happy Birthday cake on a face in the boards (owner 2026-11-20, quiz-board.js) */
.bday{position:relative;display:block;width:max-content;padding:0;border:0;border-radius:50%;background:none;color:inherit;line-height:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bday:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.board__row .bday .board__face{box-shadow:0 0 0 2px var(--ink),0 0 0 4px #FF7FAE}
.bday__cake{position:absolute;right:-30%;top:-46%;width:66%;height:auto;max-width:none;transform:rotate(12deg);transform-origin:50% 100%;pointer-events:none;animation:bdayBob 1.8s ease-in-out infinite}
.board__row .bday__cake{right:auto;left:-34%;top:-58%;width:72%;transform:rotate(-12deg)}
.board__row .bday__cake{animation-name:bdayBobL}
@keyframes bdayBobL{50%{transform:rotate(-5deg) translateY(-2px)}}
.board__step .bday__cake{right:-22%;top:-34%;width:54%}
.bday__flame{transform-box:fill-box;transform-origin:50% 100%;animation:bdayFlick .45s ease-in-out infinite alternate}
.bday.is-sent .bday__cake{animation:none}
@keyframes bdayBob{50%{transform:rotate(4deg) translateY(-2px)}}
@keyframes bdayFlick{to{transform:scale(.82,1.12) rotate(-8deg)}}
.bdaydlg__cake{width:64px;margin:0 auto -4px;line-height:0}
.bdaydlg__cake .bday__cake{position:static;width:100%;transform:none;animation:none}
.bdaydlg .bdlg__title{padding-right:0;text-align:center}
@media (prefers-reduced-motion:reduce){.bday__cake,.bday__flame{animation:none}}
.board__step--first .board__pic{margin-bottom:22px}
@media (max-width:760px){.board__step--first .board__pic{margin:0 14px 0 6px}}
@media (max-width:760px){.board__step,.board__step--first{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"pic place gems" "pic name gems" "pic lv gems";align-items:center;column-gap:14px;row-gap:0;text-align:left}
.board__pic,.board__step--first .board__pic{grid-area:pic;margin:0 4px 0 2px}
.board__step--first .board__pic{margin:0 10px 0 8px}
.board__place{grid-area:place;transform:rotate(-2deg);transform-origin:0 50%}
.board__name{grid-area:name}
.board__step .board__lv{grid-area:lv}
.board__step .board__gems{grid-area:gems;margin:0}}
/* phones: the calendar mascot stays beside the title, clear of the handwritten note below it */

/* ---------- จริงหรือมั่ว (/quiz) ---------- */
.page-quiz [hidden]{display:none !important}
.qhero{padding-bottom:64px}
.qhead{display:grid;grid-template-columns:1fr auto;align-items:end;gap:40px;padding-top:44px}
.qhead > *{min-width:0}
.qhead__hello{transform:rotate(-3deg);transform-origin:left;margin-bottom:6px}
/* same as .ghead__hello (owner 2026-11-08) */

.qside{display:flex;flex-wrap:nowrap;gap:10px}
.qwallet{display:flex;align-items:center;gap:12px;background:var(--paper);border-radius:999px;padding:10px 24px 10px 14px;box-shadow:inset 0 0 0 2px var(--sky-deep)}
.qwallet__gem{width:40px;height:40px;flex:none}
.qwallet p{margin:0;font-size:16px;line-height:1.2;color:var(--ink-soft)}
.qwallet b{font-size:26px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.qstage{padding-top:20px}
.qcard{position:relative;isolation:isolate;max-width:680px;margin:40px auto 0;padding:34px 40px 34px;background:var(--paper);border-radius:24px}
.qcard > .sketch .sketch__fill{display:none}
.qcard--center{margin-top:96px;text-align:center}
.qcard__mascot{position:absolute;left:50%;bottom:calc(100% - 22px);width:180px;height:auto;max-width:none;transform:translateX(-50%) rotate(-3deg);pointer-events:none}
.qcard .hand{font-size:25px;transform:rotate(-3deg);margin-bottom:6px}
.qcard__title{font-size:30px;font-weight:700;line-height:1.3;color:var(--blue);text-wrap:balance}
.qcard__text{margin:10px 0 18px;font-size:17px;color:var(--ink-soft);text-wrap:pretty}
.qcard__text b{color:var(--ink)}
.qcard__gain{margin:8px 0 14px;font-size:18px;text-wrap:pretty}
.qcard__gain b{color:var(--ink)}
.qmsg{margin-top:12px;font-size:15px;font-weight:500;color:#B4400F;text-wrap:pretty}
.qmsg:empty{display:none}
.qprog{display:flex;justify-content:center;gap:6px;margin:0 0 20px;padding:0;list-style:none}
.qcard--center .qprog{justify-content:center;margin-bottom:14px}
.qprog li{flex:1;max-width:44px;height:8px;border-radius:99px;background:var(--sky-deep)}
.qprog li.is-right{background:#1F9A4F}
.qprog li.is-wrong{background:var(--orange)}
.qprog li.is-now{background:var(--blue)}
.qcat{display:inline-block;margin:0 0 12px;padding:3px 12px 4px;border-radius:999px;background:var(--sky);font-size:14px;font-weight:600;color:var(--blue)}
.qcat__extra{margin-left:4px;font-weight:500;color:var(--ink-soft)}
.qstatement{margin:0 0 26px;font-size:26px;font-weight:600;line-height:1.45;color:var(--ink);text-wrap:pretty}
.qbtns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.qbtn{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;padding:18px 12px;border:2px solid var(--ink);border-radius:18px;background:var(--paper);box-shadow:4px 4px 0 var(--sky-deep);font-family:var(--f-ui);font-size:24px;font-weight:700;color:var(--ink);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,background .12s ease,opacity .2s ease}
/* hover only with a mouse: on phones the tap that starts the round left a stuck hover on the มั่ว button that
   appears under the finger (an orange tint, owner 2026-11-06) */
@media (hover:hover){
  .qbtn:hover:not(:disabled){transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--orange)}
  .qbtn--true:hover:not(:disabled){background:#EAF7EF}
  .qbtn--false:hover:not(:disabled){background:var(--orange-tint)}
}
.qbtn__icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1F9A4F;color:#fff;font-size:19px;line-height:1}
.qbtn__icon svg{width:18px;height:18px;overflow:visible}
.qbtn__icon path{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.qbtn--false .qbtn__icon{background:var(--orange);color:var(--ink)}
.qbtn:disabled{cursor:default}
.qbtn:disabled:not(.is-answer){opacity:.45}
.qbtn.is-answer{background:var(--sky)}
.qbtn.is-miss{text-decoration:line-through;text-decoration-thickness:2px}
.qring{position:absolute;left:-16px;top:-14px;width:calc(100% + 32px);height:calc(100% + 28px);max-width:none;overflow:visible;pointer-events:none}
.qring path{stroke-width:3}
.qfeed{margin-top:16px;padding:16px 20px 18px;border-radius:16px;background:var(--sky)}
.qfeed__head{margin:0;font-size:19px}
.qfeed__head.is-right b{color:#1F7A44}
.qfeed__head.is-wrong b{color:#B4400F}
/* verdict, points and the heart on one row (owner 2026-11-22) */
.qfeed__head{display:flex;align-items:center;flex-wrap:nowrap;gap:0 6px}
.qfeed__verdict{white-space:nowrap;min-width:0}
.qfeed__head .qgain{margin-left:0;flex:none}
.qfeed__head .qlike{float:none;margin:-6px -6px -6px auto;flex:none}
.qgain{display:inline-block;margin-left:6px;padding:1px 10px 2px;border-radius:999px;background:var(--orange);color:var(--ink);font-size:14px;font-weight:700;vertical-align:2px;animation:qpop .5s ease}
.qfeed__why{margin:6px 0 0;font-size:17px;line-height:1.55;text-wrap:pretty}
.qfeed__src{margin:6px 0 14px;font-size:13px;color:var(--ink-soft)}
.qappeal{margin:-4px 0 12px}
.qappeal__open{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border:0;border-radius:999px;background:var(--paper);color:#B4400F;font:inherit;font-size:15px;font-weight:600;box-shadow:inset 0 0 0 1.5px #F2B48F;cursor:pointer}
.qappeal__hand{width:20px;height:20px;flex:none;margin:-2px 0 0 -2px;overflow:visible}
.qappeal__open:hover{background:var(--orange-tint)}
.qappeal__form{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:14px;background:var(--paper)}
.qappeal__form label{font-size:16px;font-weight:600;line-height:1.45;text-wrap:pretty}
.qappeal__form small{display:block;font-weight:500;font-size:14px;color:var(--marker)}
.qappeal__form textarea{width:100%;font:inherit;font-size:16px;line-height:1.5;color:var(--ink);background:#fff;border:2px solid var(--sky-deep);border-radius:12px;padding:8px 12px;resize:vertical}
.qappeal__form textarea:focus{outline:none;border-color:var(--blue)}
.qappeal__row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.qappeal__row .btn:disabled{opacity:.6;cursor:progress}
.qappeal__msg{margin:0;font-size:14px;color:#B42318}
.qappeal__msg:empty{display:none}
.qappeal__sent{margin:0;padding:10px 14px;border-radius:12px;background:var(--paper);font-size:15px;line-height:1.5}
.qappeal__sent b{color:#1F7A44}
@keyframes qpop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}
.qscore{margin:4px 0 0;line-height:1}
.qscore b{font-size:72px;font-weight:700;color:var(--blue)}
.qscore span{margin-left:6px;font-size:28px;color:var(--ink-soft)}
.qrules__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:28px 0 0;padding:0;list-style:none}
.qrules__list li{display:flex;align-items:center;gap:14px;padding:20px 22px;border-radius:20px;background:var(--sky)}
.qrules__list b{min-width:2.2em;font-size:28px;font-weight:700;line-height:1.1;color:var(--blue)}
.qrules__list li > span{min-width:0;font-size:17px;line-height:1.45}
/* li > : the .nb spans inside <small> keep its size */
.qrules__list small{display:block;margin-top:4px;font-size:14px;color:var(--ink-soft);text-wrap:pretty}
/* จริงหรือมั่วจากเพื่อน (owner 2026-11-12): a member's question gets a sun-yellow card and its author on top */
.qcard--friend{background:#FFF4CC}
.qfrom{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.qfrom__pic{flex:none;width:44px;height:44px;border-radius:50%;border:2px solid var(--ink);object-fit:cover;background:var(--paper)}
.qfrom__pic--ini{display:grid;place-items:center;background:var(--orange);font-weight:700;color:var(--ink)}
.qfrom__txt{display:flex;flex-direction:column;min-width:0;margin:0;line-height:1.3}
.qfrom__tag{align-self:flex-start;margin-bottom:3px;padding:1px 10px 2px;border-radius:999px;background:var(--orange);font-size:13px;font-weight:700;color:var(--ink)}
.qfrom__txt b{font-size:17px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qfrom__txt small{font-size:13px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qcard--friend .qfeed{background:#FFE9A3}
/* ท้าเพื่อนแบบระบุตัว (owner 2026-11-16): friend picker, dared faces, inbox and the play pop-up */
.qdpick{display:grid;gap:8px}
.qdpick__chips{display:flex;flex-wrap:wrap;gap:6px}
.qdpick__chips:empty{display:none}
.qdchip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 4px 3px 3px;border-radius:999px;background:#FFF4CC;border:1.5px solid var(--ink);font-size:14px}
.qdchip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.qdchip img,.qdchip i,.qdpick__res img,.qdpick__res i,.qdface img,.qdface i{flex:none;width:26px;height:26px;border-radius:50%;object-fit:cover}
.qdchip i,.qdpick__res i,.qdface i{display:grid;place-items:center;background:var(--orange);color:var(--ink);font-style:normal;font-weight:700;font-size:13px}
.qdchip button{width:24px;height:24px;border:0;border-radius:50%;background:var(--ink);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.qdpick__box{display:flex;align-items:center;gap:8px;padding:0 12px;border:2px solid var(--ink);border-radius:14px;background:#fff}
.qdpick__box svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--ink-soft);stroke-width:2.2;stroke-linecap:round}
.qdpick__box input{flex:1;min-width:0;height:44px;border:0;background:none;font:inherit;font-size:16px;color:var(--ink);outline:none}
.qdpick__box:has(input:disabled){opacity:.55}
.qdpick__res{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.qdpick__res:empty{display:none}
.qdpick__res button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;border-radius:12px;background:var(--sky);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.qdpick__res button img,.qdpick__res button i{width:34px;height:34px}
.qdpick__res button span{display:grid;min-width:0;flex:1;line-height:1.3}
.qdpick__res b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qdpick__res small{font-size:12.5px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qdpick__res em{flex:none;font-style:normal;font-size:12px;color:var(--ink-soft)}
.qdpick__res button:disabled{opacity:.55;cursor:default}
.qdpick__none{padding:6px 4px;font-size:14px;color:var(--ink-soft)}
.qmconf__to{display:block;margin-top:8px;font-size:14px;font-weight:600;color:var(--blue)}
.qmine__dares{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:10px}
.qmine__dares small{font-size:13px;color:var(--ink-soft)}
.qdfaces{display:flex}
.qdfaces .qdface+.qdface{margin-left:-7px}
.qdface{display:inline-grid;border-radius:50%;box-shadow:0 0 0 2px #fff}
.qdface.is-right{box-shadow:0 0 0 2px #22A35A}
.qdface.is-fooled{box-shadow:0 0 0 2px var(--orange)}
.qdface.is-wait img,.qdface.is-wait i{filter:grayscale(1);opacity:.6}
.qdface--big img,.qdface--big i{width:46px;height:46px;font-size:18px}
.qmine__dare{margin-left:auto;padding:5px 12px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:2px 2px 0 var(--ink)}
.qmine__dare:active{transform:translate(2px,2px);box-shadow:none}
.qdsend .qappeal__form{max-height:min(86svh,640px);overflow:auto}
.qdares__list{display:grid;gap:8px;max-width:640px;margin:0;padding:0;list-style:none}
.qdares__row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:2px solid var(--ink);border-radius:16px;background:#FFF4CC;color:var(--ink);text-decoration:none;box-shadow:3px 3px 0 var(--ink)}
.qdares__row .qdface img,.qdares__row .qdface i{width:40px;height:40px}
.qdares__who{display:grid;min-width:0;flex:1;line-height:1.3}
.qdares__who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qdares__who small{font-size:13px;color:var(--ink-soft)}
.qdares__go{flex:none;padding:5px 14px;border-radius:999px;background:var(--orange);color:#fff;font-weight:700;font-size:14px;border:1.5px solid var(--ink)}
.qdplay .bdlg__card{background:#FFF4CC}
.qdplay__card{display:flex;flex-direction:column;gap:14px;padding:30px 22px 22px}
.qdplay .qfrom{margin:0}
.qdplay__st{margin:0;font-size:22px;font-weight:700;line-height:1.45;text-wrap:pretty}
.qdplay__btns{margin:4px 0 0}
.qdplay__btns .qbtn.is-picked{transform:translate(3px,3px);box-shadow:none}
.qdplay__was{margin:0;font-size:14px;color:var(--ink-soft)}
.qdplay__res{padding:14px 16px;border-radius:14px;background:#FFE9A3}
.qdplay__res.is-right{background:#DDF5E5}
.qdplay__verdict{margin:0;font-size:20px;font-weight:700}
.qdplay__res.is-right .qdplay__verdict{color:#16803F}
.qdplay__res.is-wrong .qdplay__verdict{color:#C2410C}
.qdplay__verdict b{color:var(--ink);font-size:16px}
.qdplay__key{margin:6px 0 0;font-size:15px}
.qdplay__why{margin:6px 0 0;font-size:15px;color:var(--ink-soft);text-wrap:pretty}
.qdplay__done{width:100%;justify-content:center;text-align:center}
.qmine{padding-top:64px;padding-bottom:24px}
.qmine__cta{margin-top:24px;max-width:640px}
.qmine__lede{margin:0;font-size:19px;line-height:1.55;text-wrap:pretty}
.qmine__pay{margin:12px 0 0;font-size:16px}
.qmine__pay b{margin-right:4px;font-size:24px;color:var(--blue)}
.qmine__open{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;min-width:260px}
.qmine__open svg{width:20px;height:20px}
.qmine__open:disabled{opacity:.5;cursor:default}
.qmine__list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.qmine__row{padding:14px 16px;border-radius:14px;background:var(--sky)}
.qmine__row.is-off{opacity:.55}
.qmine__st{margin:0;font-size:16px;font-weight:600;text-wrap:pretty}
.qmine__key{margin-left:4px;font-size:13px;font-weight:500;color:var(--ink-soft);white-space:nowrap}
.qmine__stat{margin:4px 0 0;font-size:14px;color:var(--ink-soft)}
/* owner 2026-11-25: plays, points and hearts on one line, centred to each other */
.qmine__stat{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}
.qmine__stat b{color:var(--blue)}
.qmine__stat .qmine__likes{display:inline-flex;align-items:center;gap:4px;line-height:1;white-space:nowrap}
.qmine__stat .qmine__likes svg{width:16px;height:16px;flex:none}
.qwho{margin-top:10px;border-top:1.5px dashed rgba(13,27,62,.18);padding-top:8px}
.qwho summary{cursor:pointer;font-size:14px;font-weight:700;color:var(--blue);list-style:none}
.qwho summary::-webkit-details-marker{display:none}
.qwho summary::after{content:" ▾"}
.qwho[open] summary::after{content:" ▴"}
.qwho__h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:10px 0 4px;font-size:13px;font-weight:700;color:var(--ink-soft)}
.qwho__h span{font-weight:500}
.qmine__why{margin:6px 0 0;font-size:14px;line-height:1.45;color:var(--ink);text-wrap:pretty}
.qmine__why b{margin-right:4px;color:var(--ink-soft);font-weight:700}
.qmine__mybtn{position:relative}
.qmine__row{scroll-margin-top:12px}
.qmine__row.is-flash{animation:qmineflash 1.6s ease-out}
@keyframes qmineflash{0%,30%{box-shadow:0 0 0 3px var(--orange)}100%{box-shadow:0 0 0 3px transparent}}
.qwho__list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.qwho__row{display:flex;align-items:center;gap:10px}
.qwho__face{flex:none;width:32px;height:32px;border-radius:50%;overflow:hidden;display:grid;place-items:center}
.qwho__face img,.qwho__face i{width:100%;height:100%;object-fit:cover}
.qwho__face i{display:grid;place-items:center;background:var(--orange);color:var(--ink);font-style:normal;font-weight:700;font-size:14px}
.qwho__nm{flex:1;min-width:0;display:grid;line-height:1.25}
.qwho__nm b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qwho__nm small{font-size:12px;line-height:1.35;color:var(--ink-soft)}
.qwho__tag{flex:none;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#fff;color:var(--ink-soft)}
.qwho__tag.is-fooled{background:var(--orange);color:#fff}
.qwho__tag.is-right{background:#1F9D55;color:#fff}
.qwho__none{margin:0;font-size:13px;color:var(--ink-soft)}
@media (max-width:640px){.qmine__open{width:100%;min-width:0}}
/* the write-a-question sheet: centred on computers, a bottom sheet on phones (like the Space upload) */
.qmdlg:focus{outline:none}
.qmdlg__card{display:flex;flex-direction:column;gap:8px;background:#FFF4CC;will-change:transform}
.qmdlg__grab{display:none}
.qmine__left{margin:-2px 0 6px;font-size:15px;font-weight:700;color:var(--ink)}
.qmine__left b{color:var(--orange)}
.qmine__tips{margin:0 0 2px;font-size:14px;line-height:1.45;color:var(--ink-soft);text-wrap:pretty}
/* touch phones while typing: room below the last box so any box can scroll up to the sheet's top */
.qmdlg.is-typing:not(.is-kb) .qmdlg__card{padding-bottom:60vh}
/* keyboard seen: the send button rides just above the keys, clear of Safari's floating address pill */
.qmdlg.is-kb .qmdlg__card{padding-bottom:76px}
.qmdlg.is-kb .qmine__send{bottom:62px}
.qmine__label{display:flex;justify-content:space-between;margin:6px 0 0;font-size:15px;font-weight:600}
.qmine__label small{font-weight:400;color:var(--ink-soft)}
.qmine__label--wrap{flex-wrap:wrap;column-gap:8px}
.qmdlg textarea{width:100%;padding:10px 12px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);font:inherit;font-size:16px;line-height:1.5;resize:vertical}
.qmine__keys{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qmine__cats{display:flex;flex-wrap:wrap;gap:8px}
.qmine__hint{font-size:13px;font-weight:500;color:var(--ink-soft)}
.qmine__label.is-need,.qmine__label.is-need .qmine__hint{color:#C2333A}
.qmdlg textarea.is-need{border-color:#E5484D;background:#FFF1F1}
.qmine__cats.is-need,.qmine__keys.is-need{padding:6px;margin:-6px;border-radius:14px;outline:2px dashed #E5484D;outline-offset:-2px;background:#FFF1F1}
.qmine__cats.is-need .qmine__cat,.qmine__keys.is-need .qmine__key-btn{border-color:#E5484D}
.qmine__chk{margin:2px 0 4px;padding:10px 12px;border:2px dashed #E8A33A;border-radius:12px;background:#FFF6E0;font-size:14px;line-height:1.45}
.qmine__chk.is-block{border-color:#E5484D;background:#FFECEC}
.qmine__chk-h{margin:0 0 4px;font-weight:700}
.qmine__chk.is-block .qmine__chk-h{color:#C2333A}
.qmine__chk ul{margin:0;padding-left:18px;color:var(--ink-soft)}
.qmine__chk li{margin:2px 0;text-wrap:pretty}
.qmine__chk-cat{margin:6px 0 0}
.qmine__chk-rule p{margin:0}
.qmine__chk-rule .qmine__chk-h{margin-bottom:2px}
.qmine__chk-rule .qmine__chk-cat{margin-top:4px}
.qmine__chk-rule+*{margin-top:8px;padding-top:8px;border-top:1px dashed #E8A33A}
.qmine__chk ul+.qmine__chk-cat{padding-top:6px;border-top:1px dashed #E8A33A}
.qmine__chk .link{font-size:14px;font-weight:700}
.qmine__cat{padding:7px 13px;border:2px solid var(--ink);border-radius:999px;background:var(--paper);font:inherit;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.qmine__cat[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.qmconf__cat{display:block;margin-top:6px;font-size:14px;color:var(--ink-soft)}
.qmine__key-btn{padding:10px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);font:inherit;font-size:17px;font-weight:700;color:var(--ink);cursor:pointer}
.qmine__key-btn--true[aria-pressed=true]{background:#1F9A4F;color:#fff}
.qmine__key-btn--false[aria-pressed=true]{background:var(--orange)}
.qmine__send{position:sticky;bottom:6px;z-index:1;margin-top:8px;justify-content:center;box-shadow:0 8px 20px -6px rgba(13,27,62,.4)}
.qmine__send:disabled{opacity:.6}
@media (max-width:640px){.qmdlg{width:100%;max-width:100%;margin:auto 0 0;padding:0;max-height:calc(100dvh - 24px)}
.qmdlg__card{padding:22px 18px calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
.qmdlg__grab{display:block;width:44px;height:5px;margin:-10px auto 4px;border-radius:99px;background:rgba(13,27,62,.25)}
.qmdlg .bdlg__title{font-size:24px}
.qmdlg[open]{animation:qmup .26s cubic-bezier(.2,.8,.2,1)}}
@keyframes qmup{from{transform:translateY(40%);opacity:.4}}
@media (prefers-reduced-motion:reduce){.qmdlg[open]{animation:none}}
.qtoast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));z-index:60;transform:translateX(-50%);max-width:calc(100vw - 32px);margin:0;padding:12px 18px;border-radius:999px;background:var(--ink);color:#fff;font-size:15px;font-weight:600;text-align:center;box-shadow:0 10px 26px -8px rgba(13,27,62,.5);animation:qtin .25s ease;transition:opacity .35s}
.qtoast.is-out{opacity:0}
@keyframes qtin{from{opacity:0;transform:translate(-50%,10px)}}
/* tap feedback while the server checks: the picked button presses in, the other fades */
.qbtn.is-picked{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--sky-deep);background:var(--sky)}
.qcard.is-checking .qbtn:not(.is-picked){opacity:.45}
.qcard.is-checking .qbtn.is-picked .qbtn__icon{animation:qthink .7s ease-in-out infinite}
@keyframes qthink{50%{transform:scale(.82)}}
.js .qring.draw path{transition-duration:.42s}
/* reset costs crystals: red price + red confirm button so it reads as spending */

.qfire__icon{display:block;width:26px;height:36px;flex:none}
.qwallet.qfire{gap:14px}
/* visible gap = the smile's (its 40px box has ~2.4px of air on the right) */
.qfire__icon svg{display:block;width:100%;height:100%}
.qfire.is-cold .qfire__icon{filter:grayscale(1);opacity:.55}
.qclock{margin:14px 0 0;font-size:15px;color:var(--ink-soft)}
.qclock b{font-variant-numeric:tabular-nums;color:var(--ink)}
/* full-width "next" bar between the answer buttons and the explanation */
.qnext{display:flex;justify-content:center;width:100%;margin-top:20px;padding:14px 20px 15px;font-size:19px;font-weight:600}
@media (max-width:900px){.qrules__list{grid-template-columns:1fr}}
@media (max-width:640px){.qhead{padding-top:28px}
.qcard{padding:26px 20px 24px}
.qcard--center{margin-top:72px}
.qcard__mascot{width:150px}
.qstatement{font-size:21px}
.qbtns{gap:12px}
.qbtn{padding:16px 8px;font-size:21px}
.qscore b{font-size:60px}}
@media (prefers-reduced-motion:reduce){.qgain{animation:none}
.qbtn{transition:none}}
/* playing (owner 2026-11-12): a small header, and the whole card fits the screen between it and the tab bar, every
   part in a fixed place: progress, who/category row, the question (takes what is left, big type, long ones shrink),
   จริง/มั่ว, ข้อต่อไป (its room kept while hidden), the answer box (fixed height, kept while empty, scrolls inside when
   long); nothing moves between questions or after a tap, and the page never scrolls by itself */
/* owner 2026-11-13: one header on every quiz screen: Moraeul note + title with its wavy line on the left, ความสุข and
   fire pills on the right of the same row (it used to change between the start/done cards and play) */
.qhero{padding-bottom:12px}
.qhead.qhead{grid-template-columns:1fr auto;align-items:end;gap:12px}
.qhead .qside{justify-self:end;align-self:end;gap:6px;margin-bottom:4px}
.qhead .qwallet{gap:6px;padding:4px 12px 4px 6px}
.qhead .qwallet__gem{width:26px;height:26px}
.qhead .qwallet b{font-size:18px}
.qhead .qfire__icon{width:18px;height:26px}
.qstage{padding-top:0}
.qcard--play{display:flex;flex-direction:column;margin-top:12px;padding:22px 32px 20px;
  height:calc(100svh - var(--qtop, 200px) - var(--qbot, 16px) - 36px - env(safe-area-inset-bottom));min-height:400px;max-height:720px}
.qcard--play > *{flex:none}
.qcard--play .qprog{margin-bottom:12px}
.qcard--play .qfrom{height:48px;margin:0}
.qcard--play .qcat{display:flex;align-items:center;width:max-content;max-width:100%;height:30px;margin:9px 0;padding-top:0;padding-bottom:0}
.qcard--play .qstatement{flex:1 1 0;min-height:60px;display:flex;align-items:center;margin:0;padding:6px 0 12px;overflow:hidden;font-size:34px;line-height:1.35}
.qcard--play .qstatement > p{margin:0;font-size:inherit;font-weight:600;text-wrap:pretty}
.qcard--play .qstatement{align-items:safe center}
.qcard--play .qstatement.is-over{overflow-y:auto;overscroll-behavior:contain}
.qcard--play .qstatement > p{min-width:0;max-width:100%;overflow-wrap:anywhere}
.qnext.is-wait,.qfeed.is-wait{visibility:hidden}
.qcard--play .qnext{margin-top:12px;padding-top:12px;padding-bottom:13px}
.qcard--play .qstatement{margin-bottom:12px}
.qcard--play .qslot{position:relative;height:150px;margin-bottom:14px}
.qcard--play .qfeed{position:absolute;inset:0;margin:0;padding:12px 16px;overflow-y:auto;overscroll-behavior:contain}
.qtimer{position:absolute;inset:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;align-items:center;column-gap:14px;row-gap:12px;padding:16px 18px;border-radius:16px;background:var(--sky);color:var(--ink)}
.qcard--friend .qtimer{background:#FFE9A3}
.qtimer__ic{width:52px;height:52px;grid-row:1}
.qtimer__n{margin:0;display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}
.qtimer__n b{font-size:46px;font-weight:700;line-height:1;color:var(--blue)}
.qtimer__n span{font-size:17px;color:var(--ink-soft)}
.qtimer__bar{grid-column:1 / -1;height:12px;border-radius:99px;background:var(--paper);box-shadow:inset 0 0 0 2px var(--ink);overflow:hidden}
.qtimer__bar i{display:block;height:100%;background:var(--blue);transform-origin:left;will-change:transform}
.qtimer.is-low .qtimer__n b{color:#C81E1E;animation:qtpulse .5s ease}
.qtimer.is-low .qtimer__bar i{background:var(--orange)}
@keyframes qtpulse{50%{transform:scale(1.18)}}
.qcard.is-answered .qtimer{visibility:hidden}
@media (prefers-reduced-motion:reduce){.qtimer.is-low .qtimer__n b{animation:none}}
.qcard--play .qfeed:not(.is-wait){display:flex;flex-direction:column;overflow:hidden}
.qcard--play .qfeed__head{flex:none;margin:0;font-size:17px;line-height:1.5}
.qcard--play .qfeed__why{flex:1 1 auto;min-height:0;margin:4px 0 0;overflow-y:auto;overscroll-behavior:contain;font-size:16px;line-height:1.5}
.qcard--play .qfeed__foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding-top:6px}
/* ที่มา and ขอค้าน: always on the bottom line */
.qcard--play .qfeed__src{flex:1 1 0;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qcard--play .qappeal{flex:none;margin:0}
.qcard--play .qappeal__open{padding:4px 12px;font-size:14px}
.qcard--play .qappeal__sent{flex:none;padding:4px 10px;border-radius:999px;background:var(--paper);font-size:13px}
.qcard--play .qappeal__sent b{color:#1F7A44}
/* the ขอค้าน pop-up */
.qadlg:focus{outline:none}
.qadlg .qappeal__form{display:flex;flex-direction:column;gap:12px;padding:30px 24px 22px}
.qadlg .bdlg__title{font-size:24px}
.qadlg label{font-size:17px;font-weight:600;line-height:1.5;text-wrap:pretty}
.qadlg label small{display:block;margin-top:2px;font-weight:500;font-size:14px;color:var(--marker)}
.qadlg textarea{width:100%;padding:10px 12px;border:2px solid var(--ink);border-radius:12px;background:#fff;font:inherit;font-size:16px;line-height:1.5;resize:vertical}
.qadlg .qappeal__row .btn{flex:1;justify-content:center}
/* centred on every width (owner 2026-11-13), not a bottom sheet like the other .bdlg on phones */
.qadlg.qadlg{width:min(480px,calc(100vw - 32px));margin:auto;padding:4px}
.qadlg.qadlg .qappeal__form{border-radius:24px}
/* ท้าเพื่อน (owner 2026-11-13): โจทย์ของคุณ is a button (grey until there is one) opening a list pop-up; a confirm
   before sending; an invite on the day's done card */
.qmine__mybtn{display:flex;justify-content:center;margin-top:10px;min-width:260px}
.qmine__mybtn:disabled{opacity:1;background:#E4E8EF;color:#8A93A6;box-shadow:none;cursor:default}
@media (max-width:640px){.qmine__mybtn{width:100%;min-width:0}}
.qmlist .qmdlg__card{background:var(--paper)}
.qmlist__sum{margin:0 0 6px;font-size:15px;color:var(--ink-soft)}
.qmlist__sum b{color:var(--blue)}
.qmlist .qmine__list{max-height:min(60dvh,520px);overflow-y:auto;overscroll-behavior:contain}
.qmconf__st{margin:0;padding:12px 14px;border-radius:12px;background:#FFF4CC;font-size:17px;font-weight:600;line-height:1.5;text-wrap:pretty}
.qmconf__note{margin:0;font-size:15px;line-height:1.55;color:#B4400F;text-wrap:pretty}
.qdare{margin:10px auto 4px;max-width:420px;padding:12px 16px 14px;border-radius:18px;background:#FFF4CC;box-shadow:inset 0 0 0 2px var(--orange)}
.qdare__t{margin:0;font-size:16px;font-weight:700;line-height:1.45;color:var(--ink);text-wrap:balance}
.qdare__s{margin:2px 0 10px;font-size:14px;color:var(--ink-soft)}
.qdare__go{justify-content:center;width:100%}
@media (max-width:640px){.qcard--play{margin-top:8px;padding:16px 16px 14px}
.qcard--play .qstatement{font-size:28px}
.qcard--play .qbtn{padding:13px 8px}
.qcard--play .qslot{height:140px}
.qtimer__n b{font-size:40px}}
/* crystal motion (gem-fx.js), shared by quiz, Buzz and profile */
.gemfx{position:fixed;z-index:9999;left:0;top:0;pointer-events:none;transform:translate(-50%,-50%)}
.gemfx svg{display:block;width:100%;height:100%}
.gemfx--gem{width:28px;height:28px}
.gemfx--tag{padding:2px 12px 3px;border-radius:999px;font:700 17px/1.2 var(--f-ui);white-space:nowrap}
.gemfx--plus{background:var(--orange);color:var(--ink);box-shadow:0 2px 0 rgba(13,27,62,.15)}
.gemfx--loss{display:flex;align-items:center;gap:4px;font:700 26px/1 var(--f-ui);color:#D7261E;white-space:nowrap;text-shadow:0 1px 0 #fff}
.gemfx--loss svg{width:34px;height:34px}
/* notice box: Level up / streak unlocked (gem-fx.js notice) */
.gemnote{position:fixed;z-index:10000;left:50%;top:18px;display:flex;align-items:center;gap:14px;width:min(420px,calc(100vw - 32px));padding:14px 44px 14px 16px;border:2px solid var(--ink);border-radius:20px;background:var(--paper);box-shadow:5px 5px 0 var(--orange);transform:translateX(-50%);animation:gemnote-in .5s cubic-bezier(.2,1.4,.4,1)}
.gemnote--streak{box-shadow:5px 5px 0 #FFD84D}
.gemnote.is-out{opacity:0;transform:translate(-50%,-12px);transition:opacity .25s ease,transform .25s ease}
.gemnote__icon{flex:none;width:48px;height:48px;display:grid;place-items:center}
.gemnote__icon svg{display:block;width:100%;height:100%}
.gemnote__text{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.gemnote__text b{font-size:19px;color:var(--blue)}
.gemnote--streak .gemnote__text b{color:#C2410C}
.gemnote__text span{font-size:15px;color:var(--ink-soft)}
.gemnote__close{position:absolute;right:8px;top:6px;width:32px;height:32px;border:0;background:none;font-size:24px;line-height:1;color:var(--ink-soft);cursor:pointer}
@keyframes gemnote-in{from{opacity:0;transform:translate(-50%,-24px) scale(.9)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media (prefers-reduced-motion:reduce){.gemnote{animation:none}}
/* Buzz: quiz streak leaderboard */
/* streak board = the ความสุข board's rows (owner 2026-11-02): .board + .board__list + .board__row, only the value differs */
.fboard__row{grid-template-columns:36px 40px 1fr auto}
.fboard__fire{color:var(--ink-soft);font-size:15px;white-space:nowrap}
.fboard__fire{gap:7px}
.fboard__fire svg{width:16px;height:22px}
/* as tall as the 22px smile on the ความสุข board */
.fboard__fire b{color:#C2410C}
.fboard__empty{padding:18px 20px;border-radius:18px;background:var(--sky);color:var(--ink-soft);text-wrap:pretty}
@media (max-width:600px){.fboard__row{grid-template-columns:28px 36px 1fr auto}}
.tag--soon{margin-left:6px;background:var(--ink);color:#fff;font-size:13px;vertical-align:3px}
/* red "watch live" button in the next-event card and the upcoming list */

@media (prefers-reduced-motion:reduce){a.sticker{transition:none}}
/* mobile nav order: logo ... menu button, user button (user button keeps the right edge) */

@media (max-width:640px){.stickers{height:auto;aspect-ratio:1/1}}
@keyframes flashFill2{0%,100%{fill:var(--orange-tint)}30%{fill:#FFD84D}}
.bo__dn{display:block;margin-top:2px}
.bo__dn i{font-style:normal;color:var(--ink-soft)}
/* home: hidden activities (Sports Day, Staff Party, ทำดี): stay hidden even where a rule sets display */
.card[hidden]{display:none!important}
/* nav: IMPACT Voice 2 link sits last, with an orange outline (owner, 2026-10-14) */

/* home upcoming list: blurred teaser card for activities not announced yet (owner, 2026-10-15) */

/* nav: IMPACT Voice 2 sits last with a hand-drawn marker ring that draws itself once (owner, 2026-10-15) */
/* gaps are measured from the text: the ring hangs outside the link (no side margin), right margin keeps it off the user button */
.nav__links a.nav__voice{position:relative;display:inline-block;margin:0 14px 0 0;font-weight:600}
.nav__voice-ring{position:absolute;left:-14px;top:-38%;width:calc(100% + 28px);height:176%;max-width:none;overflow:visible;pointer-events:none}
.nav__voice-ring path{stroke-width:3;stroke-dasharray:1 2;stroke-dashoffset:1;animation:navring .9s cubic-bezier(.65,.05,.3,1) .4s forwards}
@keyframes navring{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.nav__voice-ring path{animation:none;stroke-dashoffset:0}}
.rw{white-space:nowrap}
.rw--free,.nb.rw--free{white-space:normal}
.rrow{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:3cqi}
@keyframes rcutpop{0%{transform:scale(.6) rotate(-12deg)}60%{transform:scale(1.12) rotate(4deg)}100%{transform:none}}
@keyframes rcutup{from{opacity:0;transform:translateY(18px)}}
@keyframes rcutbob{50%{transform:translateY(-5px)}}
@keyframes rcutshake{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}
@keyframes rcutpulse{50%{transform:scale(1.07)}}
@keyframes rcutrise{from{transform:translateY(34px)}}
@keyframes rcutflash{0%{opacity:0}50%{opacity:1}}
@keyframes rcutdraw{from{stroke-dashoffset:1}}
.ghead{padding-top:28px}
.ghead2__top.ghead2__top--chips{justify-content:center;margin-bottom:16px}
.ghead2 .ghead2__top--chips{margin-bottom:10px}
.bswitch a{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:99px;font-size:14px;font-weight:700;color:var(--ink-soft);text-decoration:none}
.bswitch a[aria-pressed=true]{background:var(--blue);color:#fff}
.bswitch a[data-v=d][aria-pressed=true]{background:var(--orange)}
.ghead__hello{transform:rotate(-3deg);transform-origin:left;margin-bottom:6px}
/* loading skeleton (gallery.html, replaced once the album list arrives) */
.gskel{pointer-events:none}
/* ONE loading look for the whole site (owner 2026-11-16): every placeholder is this shimmer, in the shape of what is
   coming. New ones: class="skel" on a block sized by its own rule (or .skel--tile / a .skelrow list row). On a dark
   or coloured box set --skel-a / --skel-b on the container. No bouncing dots or a bare กำลังโหลด line for content that is on its way (embeds keep their orange ring, buttons their own progress). */
.skel,.gskel__img,.gskel__line,.pskel span,.fskel,.ho-me__skel,.sdsk{display:block;background:linear-gradient(100deg,var(--skel-a,var(--sky)) 30%,var(--skel-b,#f6f9ff) 50%,var(--skel-a,var(--sky)) 70%) 0 0/300% 100%;animation:gskel 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.skel,.gskel__img,.gskel__line,.pskel span,.fskel,.ho-me__skel,.sdsk{animation:none}}
.skel{border-radius:6px}
.skel--tile{aspect-ratio:3/4;border-radius:0}
.skelrow{display:flex;align-items:center;gap:12px;padding:10px 6px;list-style:none}
.skelrow .skel{height:12px}
.skelrow .skel--face{flex:none;width:36px;height:36px;border-radius:50%}
.skelrow__t{flex:1;min-width:0;display:grid;gap:8px}
.fs__list{--skel-a:rgba(255,255,255,.1);--skel-b:rgba(255,255,255,.24)}
.gskel__img,.gskel__line{border-radius:4px}
.gskel__img{width:100%;aspect-ratio:3/2;border-radius:0}
.gskel__line{width:62%;height:18px;margin:14px 4px 10px}
.gskel__line--meta{width:44%;height:14px;margin:12px 0 0}
@keyframes gskel{from{background-position:100% 0}to{background-position:0 0}}
.ghead2{display:flex;flex-direction:column;gap:6px;margin-bottom:24px}
.ghead2 .link{align-self:flex-start}
.ghead2__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.ghead2__top .link{align-self:center}
.ghead2__title{margin-top:6px;font-size:clamp(28px,3.4vw,40px);font-weight:700;line-height:1.25;color:var(--blue);text-wrap:balance}
.ghead2__meta{font-size:16px;color:var(--ink-soft);text-wrap:pretty}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
/* photo viewer: solid black (owner 2026-10-23); one-finger moves go to light-swipe.js (pinch still zooms); the page
   behind doesn't scroll while it is open, the viewer scrolls it to the photo on screen instead */
.glight{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:#fff;touch-action:none;overscroll-behavior:contain}
html:has(.glight[open]){overflow:hidden}
.glight::backdrop{background:transparent}
.glight{overflow:hidden}
.glight:focus{outline:none}
/* the dialog takes focus itself (autofocus), so ✕ shows no ring on open */   /* the photo sliding out (and its neighbour) must not give the dialog a scrollbar */
.glight[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.glight__top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.glight__count{font-size:15px;opacity:.85;white-space:pre}
.glight__album{display:flex;width:max-content;align-items:center;gap:6px;margin-top:8px;padding:6px 14px 7px 10px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}
.glight__album svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.glight__top{align-items:flex-start}
.glight__close{width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.glight__fig{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:0 64px}
.glight__ring{position:absolute;border:3px dashed #FFD84D;border-radius:50%;box-shadow:0 0 0 3px rgba(9,14,30,.35);pointer-events:none}
.glight__fig img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.glight__fig img.glight__ghost{position:absolute;top:0;bottom:0;margin:auto;pointer-events:none}
.glight__nav{position:absolute;top:50%;width:48px;height:48px;margin-top:-24px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:32px;line-height:1;cursor:pointer}
.glight__nav--prev{left:10px}
.glight__nav{transition:opacity .25s}
.glight__nav--next{right:10px}
/* bottom bar: round icons in one row of a fixed height, so the photo never moves (owner 2026-10-23) */
.glight__bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:100px;padding:0 16px 14px}
.glight__l,.glight__c,.glight__r{position:relative;display:flex;align-items:center;gap:12px}
.glight__l{justify-self:start}
.glight__r{justify-self:end}
.glight__ic{position:relative;display:grid;place-items:center;flex:none;width:58px;height:58px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;text-decoration:none;cursor:pointer;transition:transform .12s ease,background .15s}
.glight__ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.glight__ic:hover{background:rgba(255,255,255,.24)}
.glight__ic:active{transform:scale(.92)}
.glight__ic:focus-visible{outline:3px solid #FFD84D;outline-offset:2px}
.glight__ic:disabled{opacity:.35;cursor:default}
@keyframes glspin{to{transform:rotate(360deg)}}
.glight__ic--orange,.glight__ic--orange:hover{background:var(--orange);color:var(--ink)}
.glight__ic--blue,.glight__ic--blue:hover{background:var(--blue);color:#fff}
.glight__ic--light,.glight__ic--light:hover{background:#fff;color:var(--ink)}
.glight__ic--green,.glight__ic--green:hover{background:#22A35A;color:#fff}
.glight__ic--red,.glight__ic--red:hover{background:#E5484D;color:#fff}
.glight__ic--me,.glight__ic--me:hover{background:none;box-shadow:inset 0 0 0 2px var(--orange);color:var(--orange);cursor:default}
button.glight__ic--me{cursor:pointer}
.glight__ic--on,.glight__ic--on:hover{background:#fff;color:var(--ink)}
.glight__ask{position:relative;display:flex;gap:12px}
.glight__menu{position:absolute;left:0;bottom:calc(100% + 10px);display:flex;flex-direction:column;min-width:190px;padding:6px;border-radius:16px;background:#1b1b1d;box-shadow:0 10px 30px rgba(0,0,0,.5);z-index:2}
.glight__menu[hidden]{display:none}
.glight__menu button{display:flex;align-items:center;gap:10px;padding:12px 14px;border:0;border-radius:10px;background:none;color:#fff;font:inherit;font-size:15px;text-align:left;cursor:pointer}
.glight__menu button:hover{background:rgba(255,255,255,.1)}
.glight__menu svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* one button in the middle: แชร์ on touch phones (the share sheet saves), ดาวน์โหลด on computers (owner 2026-10-24) */
@media (hover:none) and (pointer:coarse){.glight__ic--dl{display:none}}
@media not ((hover:none) and (pointer:coarse)){.glight__ic--sh{display:none}}
.glight__asklbl{position:absolute;left:50%;bottom:calc(100% + 2px);transform:translateX(-50%) rotate(-3deg);font-size:20px;line-height:1;color:#FFD84D;white-space:nowrap;pointer-events:none}
@media (max-width:640px){.glight__fig{padding:0 8px}
.glight__nav{width:40px;height:40px;margin-top:-20px;font-size:26px;background:rgba(9,14,30,.55)}
.glight__bar{gap:8px;height:92px;padding:0 12px 12px}
.glight__l,.glight__c,.glight__r{gap:10px}
.glight__ic{width:54px;height:54px}
.glight__ask{gap:10px}}
.agdlg{width:min(1200px,96vw);max-height:94vh;border:0;border-radius:20px;padding:14px;background:var(--paper);color:var(--ink)}
.agdlg::backdrop{background:#0D1B3ECC}
.agdlg__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-weight:600}
.agdlg__img{margin:0 auto}
@keyframes sfeedIn{from{opacity:0;transform:translateY(30px) scale(.94)}}
.btmain{padding-top:6px;padding-bottom:40px}
@keyframes btpop{0%{transform:scale(.4);opacity:0}25%{transform:scale(1.1);opacity:1}80%{opacity:1}100%{transform:scale(.9);opacity:0}}
@keyframes btflash{0%{opacity:.95}100%{opacity:0}}
.btn:disabled{opacity:.5;cursor:default}
html:has(#bt-share[open]){overflow:hidden;overscroll-behavior:none}
/* no footer on a page that only asks the guest to log in (owner 2026-11-10) */
body:has(a[href^="/login"]:not(.nav__cta)) .footer[data-site-footer],body.is-guest .footer[data-site-footer]{display:none}
@keyframes btpose{0%{transform:translateX(-50%) rotate(-3deg) scale(.3);opacity:0}100%{transform:translateX(-50%) rotate(-3deg) scale(1);opacity:1}}
@keyframes btkhint{50%{transform:translateX(-50%) rotate(-2deg) scale(1.06)}}
@media (max-width:600px){.btmain{padding-left:10px;padding-right:10px}}
@keyframes vspin{to{transform:rotate(360deg)}}
/* clip feed (owner 2026-10-23): the previous / next player waits above / below while the finger drags up or down */
.vplayer{overflow:visible}
.vplayer__ghost{position:absolute;left:0;width:100%;border-radius:22px;background:#0B0B0B;color:#FFF4EC;box-shadow:0 0 0 1.5px rgba(255,138,61,.4);visibility:hidden;pointer-events:none}
.vplayer__ghost[data-d="1"]{top:calc(100% + 24px)}
.vplayer__ghost[data-d="-1"]{bottom:calc(100% + 24px)}
.vplayer__ghost .vplayer__close{visibility:hidden}
.vplayer__ghost img.vplayer__video{display:block;object-fit:cover}
/* the player takes focus itself (autofocus), so the ✕ shows no ring on open (owner 2026-10-23); no page scroll behind */
.vplayer:focus{outline:none}
.vplayer{touch-action:none;overscroll-behavior:contain}
html:has(.vplayer[open]){overflow:hidden}
/* ✕ on the card's top-right corner */
@media (max-width:600px){
  .cone__card .cbub{--g:1.25;font-size:19px}
  .bdlg.cone{width:calc(100% - 24px);margin:auto}   /* centred, not a bottom sheet: it is one card */
  .cone .bdlg__card{padding:56px 8px 8px}
  .cone .bdlg__close{top:78px;right:-2px}
}
.cstage{position:relative;max-width:1440px;margin:0 auto;width:calc(100% - 32px);padding:34px 22px 0;border-radius:28px;overflow:hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 104%,rgba(255,122,47,.45),transparent 70%),
    repeating-conic-gradient(from 180deg at 50% -10%,rgba(255,214,170,.06) 0 4deg,transparent 4deg 12deg),
    #0a0a0a}
/* the stage fills the screen; bubbles drift right to left and push each other (cheer.js sim), round and round */
.cstage{display:flex;flex-direction:column;height:calc(100svh - var(--ctop,110px) - 16px);min-height:420px;padding-top:18px}
@keyframes cglow{from{box-shadow:4px 4px 0 var(--orange),0 0 0 3px var(--marker),0 0 18px rgba(255,163,92,.6)}to{box-shadow:4px 4px 0 var(--orange),0 0 0 5px #FFD84D,0 0 44px rgba(255,200,120,1)}}
@media (max-width:899px){.cstage{margin:0 8px;width:auto;padding:10px 12px 0;border-radius:22px;height:calc(100svh - var(--ctop,80px) - 8px);min-height:380px}}
/* the send dialog never moves the page behind it; phones with the keyboard open: fitted to what is visible (cheer.js
   fitDlg), the ส่งกำลังใจ button stuck to its bottom, right above the keyboard */
html:has(.cdlg[open]){overflow:hidden}
/* solid, so nothing shows through the stuck button */
@media (max-width:899px){
  .cdlg.is-kb[open]{position:fixed;inset:var(--vvt,0) 0 auto;height:var(--vvh,100dvh);max-height:var(--vvh,100dvh);margin:0;display:flex;flex-direction:column}
  .cdlg.is-kb .bdlg__card{margin-top:auto;border-radius:20px 20px 0 0}
}
/* ชวนคุย compose (owner 2026-10-26, like /cheer): the page behind never scrolls, the button follows the keyboard */
html:has(.kdlg[open]){overflow:hidden}
.kdlg:focus{outline:none}
.kdlg .bdlg__submit{position:sticky;bottom:10px;z-index:1;box-shadow:0 8px 22px rgba(13,27,62,.28)}
@media (max-width:899px){.kdlg.is-kb[open]{position:fixed;inset:var(--vvt,0) 0 auto;height:var(--vvh,100dvh);max-height:var(--vvh,100dvh);margin:0;display:flex;flex-direction:column}
.kdlg.is-kb .bdlg__card{margin-top:auto;border-radius:20px 20px 0 0}}
.vboard__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding-right:44px}
.vboard__head .hand{flex-basis:100%;font-size:20px;color:var(--marker);transform:rotate(-1.5deg);transform-origin:0 100%}
.vboard__head h2{font-size:30px;font-weight:700;color:#fff;line-height:1.2}
.vboard__closed{padding:2px 12px 3px;border-radius:999px;background:#FFD84D;color:#111;font-weight:700;font-size:15px;transform:rotate(-2deg)}
.vboard__list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
@keyframes vup{50%{background:#3a2406;box-shadow:inset 0 0 0 3px #FFD84D,0 0 40px rgba(255,216,77,.8)}}
@keyframes vhit{to{box-shadow:inset 0 0 0 3px #FFD84D,0 0 30px rgba(255,216,77,.7)}}
.vboard__lead{margin-top:10px;color:var(--ink-soft)}
.vboard__faces{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;text-align:center}
.vboard__faces img{width:100%;height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;object-position:50% 6%;background:#1d1d1d}
.vboard__faces b{display:block;margin-top:4px;font-size:15px}
.vboard__sum{margin-top:12px;text-align:right;color:var(--ink-soft);font-size:15px}
@keyframes vfade{from{opacity:0}}
@keyframes vfadeout{to{opacity:0}}
@keyframes vpopin{from{transform:scale(.92);opacity:0}}
@keyframes vpopout{to{transform:scale(.96);opacity:0}}
@keyframes vring{to{stroke-dashoffset:0}}
@media (max-width:600px){.vboard__head h2{font-size:24px}}
@keyframes vrays{to{transform:rotate(360deg)}}
@keyframes vspark{0%{opacity:1;transform:translate(0,0) scale(.4)}80%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1) rotate(200deg)}}
@keyframes vglow{to{filter:brightness(1.06);transform:scale(1.02)}}
@keyframes vflash{0%{opacity:.95}100%{opacity:0}}
@keyframes vshake{20%{transform:translate(-6px,3px)}40%{transform:translate(5px,-4px)}60%{transform:translate(-4px,2px)}80%{transform:translate(3px,-1px)}}
@keyframes vshakebig{20%{transform:translate(-16px,8px) rotate(-.6deg)}40%{transform:translate(14px,-10px) rotate(.6deg)}60%{transform:translate(-10px,6px)}80%{transform:translate(8px,-4px)}}
@keyframes cvote{to{filter:brightness(1.12)}}
@keyframes vhistrun{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@keyframes vhistin{from{transform:translateX(-30px);opacity:0}}
/* the Voice nav ring is orange: on an orange header (profile colour ส้ม) it turns white (owner 2026-10-29) */
[data-theme="orange"] .nav__voice-ring path{stroke:#fff}
/* beside the heading (owner 2026-10-29) */
/* the heading's light line wraps before the mascot, so a wider phone (or iOS's wider Thai line) never runs it under the mascot (owner 2026-11-04) */
@media (max-width:640px){.details > .split-title .split-title__light{padding-right:128px}}
/* IMPACT Dance art (owner 2026-11-05: neon dance-game look in orange/red, like a synthwave warm-up video): black room, glowing speed streaks, a neon grid floor (inline SVG .art__neon); the logo's orange is recoloured red */
.art--dance{display:grid;place-items:center;background:#0B0306}
.art--dance .art__neon{position:absolute;inset:0;width:100%;height:100%;max-width:none}
.art--dance img{position:relative;z-index:1;width:84%;height:auto;transform:rotate(-3deg);filter:drop-shadow(0 12px 22px rgba(0,0,0,.55))}
/* I'M app link (owner 2026-10-29): while the SSO token is turned into a session, every page shows only the sky and
   /login shows the Happy IMPACT loading screen, so the code form never flashes */
html.is-applogin{background:var(--sky)}
html.is-applogin body > :not(.applogin){visibility:hidden}
.applogin{display:none}
html.is-applogin .applogin{position:fixed;inset:0;z-index:100;display:grid;place-content:center;justify-items:center;gap:22px;background:var(--sky);text-align:center}
.applogin__logo .logo__happy,.applogin__logo .logo__impact{font-size:44px}
/* owner 2026-11-02: just the logo, its smile drawing in and out on a loop (no text, no spinner) */
.applogin__logo .logo__smile .mark{stroke-dasharray:320;stroke-dashoffset:320;animation:applogin-draw 1.6s .1s cubic-bezier(.45,0,.3,1) infinite}
@keyframes applogin-draw{0%{stroke-dashoffset:320}45%,70%{stroke-dashoffset:0}100%{stroke-dashoffset:-320}}
@media (prefers-reduced-motion:reduce){.applogin__logo .logo__smile .mark{animation:none;stroke-dashoffset:0}}
/* must-pick-a-name popup (nav-user.js, owner 2026-10-29): can't be closed until a name is saved */
html:has(.nameask[open]){overflow:hidden}
.nameask .bdlg__card{display:grid;gap:10px}
.nameask__lede{margin:0 0 6px;font-size:16px;color:var(--ink-soft);text-wrap:pretty}
.nameask label{font-weight:600;font-size:16px}
.nameask input{font:inherit;font-size:18px;color:var(--ink);background:var(--paper);border:2px solid var(--sky-deep);border-radius:14px;padding:11px 14px;width:100%;min-width:0}
.nameask input:focus{outline:none;border-color:var(--blue)}
.nameask__msg{margin:0;min-height:1.4em;font-size:15px;color:#C62828}
.nameask .bdlg__submit{margin-top:4px}
/* quiz loading skeleton */
.qload{display:grid;gap:14px}
.qload .gskel__line{margin:0;height:16px;width:40%}
.qload .qload__big{height:30px;width:88%}
.qload__btns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}
.qload__btns .gskel__line{width:100%;height:64px;border-radius:16px}
/* /admin-vote garlands: one finalist at a time (owner 2026-10-29) */
.vo__gpick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0}
.vo__gfin{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border:2px solid var(--sky-deep);border-radius:16px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
.vo__gfin img{width:72%;aspect-ratio:1;height:auto;border-radius:50%;object-fit:cover;object-position:50% 6%;background:var(--sky)}
.vo__gfin small{font-size:13px;color:#C2410C;font-weight:600}
.vo__gpick .vo__gfin[aria-checked="true"]{opacity:1;border-color:var(--orange);background:#FFF1E6;box-shadow:0 0 0 3px var(--orange)}
@media (max-width:560px){.vo__gpick{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* /admin-vote (owner 2026-10-29): baht written inside the amount box; ซ่อนอันดับ as one clear toggle card */
.vo__money{position:relative;display:block}
.vo__money input{width:100%;padding-right:64px !important}
.vo__money > span{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-weight:600;color:var(--ink-soft);pointer-events:none}
.vo__hide{gap:14px;padding:12px 18px 12px 14px;border:2px solid var(--sky-deep);border-radius:18px;background:var(--paper);transition:border-color .2s,background .2s}
.vo__hide b{font-size:17px}
.vo__hide .vo__state{margin-left:8px;padding:3px 12px 4px;border-radius:999px;background:#E5EAF2;color:var(--ink-soft);font-size:14px;font-weight:700;white-space:nowrap}
.vo__hide .vo__state::after{content:"แสดงอันดับอยู่"}
.vo__hide:has(input:checked){border-color:var(--orange);background:#FFF1E6}
.vo__hide:has(input:checked) .vo__state{background:var(--orange);color:#fff}
.vo__hide:has(input:checked) .vo__state::after{content:"ซ่อนอยู่"}
#garland-admin .vo__find{margin-top:6px}
.vo__b{display:inline-block;margin-left:8px;padding:0 10px 1px;border-radius:999px;background:var(--blue);color:#fff;font-size:.9em;white-space:nowrap}
/* baht first, then votes (owner 2026-10-29) */
.vo__b + .vo__n{margin-left:4px}
.fchips{display:flex;gap:8px;max-width:var(--wrap,1180px);margin:16px auto 0;padding:2px 16px 4px;overflow-x:auto;scrollbar-width:none}
.fchips::-webkit-scrollbar{display:none}
.fchip{flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border:0;border-radius:999px;background:#1a1a1a;color:#fff;font:inherit;font-size:15px;cursor:pointer;box-shadow:inset 0 0 0 1.5px #2e2e2e}
.fchip--face{padding-left:4px}
.fchip img{width:32px;height:32px;border-radius:50%;object-fit:cover;object-position:50% 8%;background:var(--orange)}
.fchip.is-on{background:var(--orange);color:#111;font-weight:700;box-shadow:none}
.fchip:focus-visible{outline:3px solid var(--marker);outline-offset:2px}
/* player */
.fplayer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden;touch-action:none;overscroll-behavior:contain}
.fplayer::backdrop{background:#000}
.fplayer:focus{outline:none}
html:has(.fplayer[open]){overflow:hidden}
.fp__track{position:absolute;inset:0;margin:0 auto;width:min(100vw,calc(100dvh * 9 / 16 + 120px))}
.fp__panel{position:absolute;inset:0;background:#000;overflow:hidden}
.fp__video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.fp__still{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;pointer-events:none}
.fp__still[hidden]{display:none}
/* iPhone + MediaSource (2026-11-12): the video is drawn on a separate GPU layer, so everything that must show over it
   gets its own layer and a z-index above it (painted into the panel, the caption and buttons ended up under it) */
.fp__panel--cur{isolation:isolate}
/* pinch zoom (owner 2026-11-27): the clip or photo grows in place; caption and buttons step aside meanwhile */

.fp__video{z-index:0}
.fp__still,.fp__alb{z-index:1}
.fp__shade,.fp__info,.fp__rail,.fp__heart{z-index:2;will-change:transform}
.fp__pause,.fp__fast{will-change:transform}
.fp__ghost{visibility:hidden;pointer-events:none}
.fp__ghost[data-d="1"]{top:100%;bottom:-100%}
.fp__ghost[data-d="-1"]{top:-100%;bottom:100%}
.fp__ghost>img{width:100%;height:100%;object-fit:contain}
.fp__pause{position:absolute;z-index:2;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;display:grid;place-items:center;border-radius:50%;background:rgba(0,0,0,.45);pointer-events:none}
.fp__pause svg{width:56px;height:56px}
.fp__pause.is-out{animation:fppout .26s ease-in both}
@keyframes fppin{0%{opacity:0;transform:scale(.6)}60%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@keyframes fppout{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}
@media (prefers-reduced-motion:reduce){.fp__pause.is-in,.fp__pause.is-out{animation:none}}
.fplayer:has(.fp__flash.is-on) .fp__pause{visibility:hidden}
.fp__flash{position:absolute;z-index:3;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;display:grid;place-items:center;border-radius:50%;background:rgba(0,0,0,.45);opacity:0;pointer-events:none}
.fp__flash svg{width:56px;height:56px}
.fp__flash.is-on{animation:fpflash .7s ease-out forwards}
@keyframes fpflash{0%{opacity:0;transform:scale(.6)}25%{opacity:1;transform:scale(1.05)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.15)}}
@media (prefers-reduced-motion:reduce){.fp__flash.is-on{animation:none;opacity:0}}
.fp__pause[hidden]{display:none}
.fp__info{position:absolute;left:0;right:76px;bottom:0;padding:60px 16px calc(30px + env(safe-area-inset-bottom));pointer-events:none}
/* one shade across the whole width behind the name and the rail (it stopped at the rail before: owner's iPhone) */
.fp__shade{position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(transparent,rgba(0,0,0,.25) 40%,rgba(0,0,0,.72));pointer-events:none}
.fp__info a,.fp__info button{pointer-events:auto}
.fp__by{display:flex;align-items:center;gap:10px}
.fp__by img,.fp__ini{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 2px #fff}
.fp__ini{display:grid;place-items:center;background:var(--orange);color:#111;font-weight:700}
.fp__by b{display:block;font-size:16px;line-height:1.2}
.fp__by small{display:block;font-size:13px;color:#E6DED7}
.fp__cap{margin-top:8px;font-size:15px;line-height:1.45;text-wrap:pretty;white-space:pre-line;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.fp__rail{position:absolute;right:8px;bottom:calc(30px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:14px}
.fp__act{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:56px;padding:0;border:0;background:none;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.fp__act svg{width:34px;height:34px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.fp__views svg{width:26px;height:26px}
.fp__views{cursor:default}
.fp__act:disabled{cursor:default;opacity:.8}
.fp__like.is-on svg{animation:fpbeat .35s ease-out}
@keyframes fpbeat{40%{transform:scale(1.25)}}
.fp__act:focus-visible{outline:3px solid var(--marker);outline-offset:3px;border-radius:12px}
.fp__menu{position:absolute;right:62px;bottom:0;min-width:160px;padding:6px;border-radius:14px;background:#1a1a1a;box-shadow:0 10px 30px rgba(0,0,0,.5),inset 0 0 0 1.5px #2e2e2e}
.fp__menu[hidden]{display:none}
.fp__menu button{display:block;width:100%;padding:11px 12px;border:0;border-radius:10px;background:none;color:#fff;font:inherit;font-size:15px;text-align:left;cursor:pointer}
.fp__menu button:hover{background:#2a2a2a}
.fp__bar{position:absolute;z-index:3;left:0;right:0;bottom:0;height:26px;display:flex;flex-direction:column;justify-content:flex-end;cursor:pointer;touch-action:none}
.fp__line{height:3px;background:rgba(255,255,255,.22);transition:height .15s}
.fp__line span{display:block;height:100%;background:var(--orange);transform-origin:0 50%;transform:scaleX(0)}
.fp__time{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:rgba(0,0,0,.6);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;opacity:0;transition:opacity .15s;pointer-events:none;white-space:nowrap}
/* hold = 2x */
.fp__fast{position:absolute;z-index:2;left:50%;top:calc(22px + env(safe-area-inset-top));transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:rgba(0,0,0,.55);font-weight:700;font-size:16px;opacity:0;transition:opacity .15s;pointer-events:none}
.fp__fast svg{width:24px;height:16px;color:var(--orange)}
.fp__panel--cur{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
/* comments sheet */
.fp__scrim{position:absolute;inset:0;z-index:4;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .25s}
.fp__sheet{position:absolute;z-index:5;left:0;right:0;bottom:0;margin:0 auto;width:min(100vw,560px);height:min(68dvh,620px);display:flex;flex-direction:column;border-radius:20px 20px 0 0;background:#141414;box-shadow:0 -10px 40px rgba(0,0,0,.5),inset 0 1.5px 0 #2a2a2a;transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.2,1);touch-action:pan-y}
.fp__sheet[hidden]{display:none}
.fs__head{display:flex;align-items:center;justify-content:center;position:relative;padding:14px 56px 10px}
.fs__head h2{font-size:16px;font-weight:700}
.fs__grab{position:absolute;top:6px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:4px;background:#3a3a3a}
.fs__close{position:absolute;right:8px;top:6px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:none;color:#fff;cursor:pointer}
.fs__close svg{width:20px;height:20px}
.fs__list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 16px 8px;display:flex;flex-direction:column;gap:14px}
.fs__empty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink-soft);text-align:center}
.fs__empty b{color:#fff;font-size:16px}
.fs__reply{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;border-top:1px solid #262626;font-size:13px;color:#BDB5AE}
.fs__reply b{color:#fff;font-weight:600}
.fs__reply button{width:28px;height:28px;border:0;border-radius:50%;background:#262626;color:#fff;display:grid;place-items:center;padding:0}
.fs__reply svg{width:14px;height:14px}
.fs__reply[hidden]{display:none}
.fs__msg{padding:0 16px;color:#FF8A8A;font-size:14px}
.fs__msg:empty{display:none}
.fp__act>span{display:block;line-height:18px;min-height:18px;font-variant-numeric:tabular-nums}
.fs__form{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #262626}
.fs__form input{flex:1;min-width:0;height:44px;padding:0 16px;border:2px solid #333;border-radius:999px;background:#0d0d0d;color:#fff;font:inherit;font-size:16px}
.fs__form input:focus{outline:none;border-color:var(--orange)}
.fs__send{height:44px;padding:0 18px;margin:0}
.fs__send:disabled{opacity:1;background:#5C2E12;color:#C99272}
.fp__heart{position:absolute;inset:0;pointer-events:none}
.fp__pop{position:absolute;width:96px;height:96px;margin:-48px 0 0 -48px;animation:fppop .85s ease-out forwards}
.fp__pop svg{width:100%;height:100%;color:#fff;filter:drop-shadow(0 4px 10px rgba(0,0,0,.4))}
@keyframes fppop{0%{transform:rotate(var(--r)) scale(.3);opacity:0}25%{transform:rotate(var(--r)) scale(1.15);opacity:1}55%{transform:rotate(var(--r)) scale(1)}100%{transform:rotate(var(--r)) translateY(-90px) scale(.8);opacity:0}}
.fp__close{position:absolute;z-index:2;top:calc(12px + env(safe-area-inset-top));left:12px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;cursor:pointer}
.fp__close svg{width:22px;height:22px}
.fp__nav{position:absolute;z-index:2;right:calc(50% - min(50vw, calc(100dvh * 9 / 32 + 60px)) - 64px);top:50%;transform:translateY(-50%);display:none;flex-direction:column;gap:12px;opacity:0;transition:opacity .3s}
.fp__nav button{display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;background:#1f1f1f;color:#fff;cursor:pointer}
.fp__nav button:hover{background:var(--orange);color:#111}
.fp__nav button:disabled{opacity:.3;cursor:default;background:#1f1f1f;color:#fff}
.fp__nav svg{width:24px;height:24px}
.fplayer.is-nav .fp__nav{opacity:1}
@media (hover:hover) and (min-width:900px){.fp__nav{display:flex}
.fp__panel{border-radius:0}}
@media (prefers-reduced-motion:reduce){.fp__pop,.fp__like.is-on svg{animation:none}}
.fu__pick{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:14px;padding:22px 16px;border-radius:18px;background:#141414;border:2px dashed #3a3a3a;cursor:pointer;text-align:center}
.fu__pick[hidden]{display:none}
.fu__pick svg{width:52px;height:52px;color:#fff}
.fu__pick b{font-size:18px}
.fu__pick small{color:var(--ink-soft)}
.fu__pick:hover{border-color:var(--orange)}
.fu__edit{display:flex;gap:16px;margin-top:14px;align-items:flex-end}
.fu__edit[hidden]{display:none}
.fu__prev{position:relative;width:120px;max-height:220px;flex:none;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#000}
.fu__prev canvas{display:block;width:100%;height:100%;object-fit:cover;background:#000}
/* tap the preview to play it (owner 2026-11-25) */
.fu__prev{cursor:pointer}
.fu__play{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;display:grid;place-items:center;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;pointer-events:none}
.fu__play svg{width:22px;height:22px;margin-left:3px}
.fu__trim .fu__strip{width:100%;height:100%}
.fu__ph{position:absolute;z-index:3;top:0;bottom:0;width:3px;margin-left:-1.5px;border-radius:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.35);pointer-events:none;display:none}
.fu__mutebadge{display:none;position:absolute;left:6px;bottom:6px;padding:1px 6px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:600}
.fu__dur{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:2px 7px;border-radius:6px;background:#fff;color:#111;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none}
.fu__win{overflow:visible}
.fu__ph{width:28px!important;margin-left:-14px!important;background:none!important;box-shadow:none!important;pointer-events:auto;cursor:ew-resize;top:-6px!important;bottom:-6px!important}
.fu__ph::before{content:"";position:absolute;left:12px;top:0;bottom:0;width:4px;border-radius:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.4)}
.fu__len{position:absolute;right:6px;bottom:6px;padding:1px 6px;border-radius:6px;background:rgba(0,0,0,.6);font-size:12px;font-weight:600}
.fu__side{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.fu__cover{display:flex;flex-direction:column;gap:6px;font-weight:600}
.fu__cover input{width:100%;accent-color:var(--orange)}
.fu__err{margin-top:8px;color:#FF8A8A;font-size:15px;text-wrap:pretty}
.fu__err:empty{display:none}
.fu__who{margin:16px 0 0;padding:0;border:0}
.fu__who legend{font-weight:600}
.fu__who legend small,.fdlg .bfield small{font-weight:400;color:var(--ink-soft)}
.fu__earn{margin-top:12px;font-size:15px;color:#E6DED7}
.fu__earn b{color:var(--orange)}
.fu__earn small{color:var(--ink-soft)}
@media (max-width:520px){.fu__prev{width:96px}}
/* /admin Fancam card */
.fa__stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-size:15px;color:var(--ink-soft)}
.fa__stats b{color:var(--ink)}
.fa__row{align-items:flex-start;flex-wrap:nowrap}
.fa__row .bo__who{flex:1 1 auto;min-width:0}
.fa__thumb{flex:none;width:72px;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#111}
.fa__thumb img{width:100%;height:100%;object-fit:cover}
.fa__rep{margin:6px 0 0;padding:10px 14px;border-radius:12px;background:#FDECEC;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.fa__row .bo__actions{flex-direction:column;align-items:stretch}
.fa__del{color:#C8102E}
.fa__csv{flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:15px}
.fa__csv label{display:flex;align-items:center;gap:6px}
.fa__watch{margin-top:8px;max-height:320px;overflow:auto;border:1px solid #dfe6f3;border-radius:12px}
.fa__watch table{width:100%;border-collapse:collapse;font-size:14px}
.fa__watch th,.fa__watch td{padding:6px 8px;text-align:left;border-bottom:1px solid #eef2f8;vertical-align:top;white-space:nowrap}
.fa__watch td:first-child{white-space:normal;min-width:130px}
.fa__watch td small{display:block;color:var(--ink-soft)}
.fa__watch th{position:sticky;top:0;background:#F6F9FF;font-weight:600}
@media (max-width:640px){.fa__row{flex-wrap:wrap}
.fa__row .bo__who{flex-basis:calc(100% - 88px)}
.fa__row .bo__actions{flex-direction:row;flex-wrap:wrap;width:100%}}
/* /fancam upload: trim bar */
.fu__edit{flex-wrap:wrap}
.fu__trimbox{flex:1 1 100%}
.fu__trimbox[hidden]{display:none}
.fu__trimlab{display:flex;justify-content:space-between;gap:8px;font-size:15px}
.fu__trimlab span{color:var(--ink-soft);font-variant-numeric:tabular-nums}
.fu__trim{position:relative;height:60px;margin-top:8px;border-radius:10px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.fu__strip{position:absolute;inset:0;width:100%;height:100%}
.fu__shade{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.66);pointer-events:none}
.fu__shade--l{left:0}
.fu__shade--r{right:0}
.fu__win{position:absolute;top:0;bottom:0;border:3px solid var(--orange);border-left-width:0;border-right-width:0;pointer-events:none}
.fu__h{position:absolute;top:-3px;bottom:-3px;width:18px;padding:0;border:0;background:var(--orange);pointer-events:auto;cursor:ew-resize}
.fu__h::after{content:"";position:absolute;left:7px;top:50%;width:4px;height:20px;margin-top:-10px;border-radius:2px;background:#111}
.fu__h--l{left:-2px;border-radius:8px 0 0 8px}
.fu__h--r{right:-2px;border-radius:0 8px 8px 0}
.fu__h:focus-visible{outline:3px solid #fff;outline-offset:1px}
.fu__hint{margin-top:6px;font-size:14px;color:#FFC79E;text-wrap:pretty}
.fu__hint:empty{display:none}
/* /fancam sort (owner 2026-11-05): a round doodle button at the right end of the chip row; the native select lies
   invisible on top so a tap opens the phone's picker; orange once a sort other than random is picked */
.fchipbar{display:flex;align-items:center;gap:8px;max-width:var(--wrap,1180px);margin:16px auto 0;padding:0 16px 0 0}
.fchipbar[hidden]{display:none}
.fchipbar .fchips{flex:1;min-width:0;margin:0;max-width:none}
.fchipbar .fchips{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:28px}
@keyframes vgive{50%{filter:drop-shadow(0 0 20px rgba(255,150,70,.95)) drop-shadow(0 0 60px rgba(255,122,47,.6))}}
@keyframes vsweep{0%{background-position:100% 0}60%,100%{background-position:0 0}}
/* Voice hero: three glowing boxes (ส่งกำลังใจ, Fancam, แกลเลอรี; owner 2026-11-05) on one row on wide screens */
@media (min-width:961px){.vfacts{grid-template-columns:repeat(3,minmax(0,1fr))}.vfacts__cheer b{font-size:19px}}
/* /fancam upload progress (owner 2026-11-05): one look everywhere (dark track, orange fill, light text, one overall
   percentage): the send button while the dialog is open, a full-width bar along the bottom once it is closed (the +
   buttons step aside), a strip at the top of the player while a clip is open */
.fu__send{position:relative;overflow:hidden;isolation:isolate}
.fu__fill{position:absolute;inset:0;z-index:-1;transform-origin:0 50%;transform:scaleX(0)}
.fp__up{position:absolute;z-index:6;top:calc(14px + env(safe-area-inset-top));left:70px;right:70px;margin:0 auto;max-width:360px;min-height:44px;padding:4px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:999px;font-size:14px;line-height:1.25}
.fp__up[hidden]{display:none}
@keyframes fnew{0%,30%{box-shadow:inset 0 0 0 4px var(--orange)}100%{box-shadow:inset 0 0 0 0 transparent}}
/* ===================== Site menu (nav-links.js, owner 2026-11-06, like YouTube's) =====================
   Every page's nav: ☰, the Happy IMPACT logo, then the profile (or เข้าสู่ระบบ) at the far right; the nav's own links
   are hidden on every width. ☰ opens a drawer from the left in the page's own header colours (nav-links.js copies them
   onto the panel as --sm-bg / --sm-ink), with its ☰ and logo laid exactly over the nav's. */
.nav .nav__links{display:none}
.nav{gap:6px}
.nav > .nav__user,.page-auth .nav > :last-child:not(.logo){margin-left:auto}
.nav__menu-btn{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-left:-10px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.nav__menu-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.nav__menu-btn:hover{background:color-mix(in srgb,currentColor 9%,transparent)}
.nav__menu-btn:focus-visible{outline:3px solid var(--marker);outline-offset:1px}
.nav__menu-btn.is-light{color:#fff}
.nav__menu-btn + .logo{margin-left:-2px}
/* owner 2026-11-06: logo close to ☰ */
/* the bar stays at the top on scroll (nav-links.js): fixed at the same x and width, header colour across the screen */
.nav.is-stuck{position:fixed;top:env(safe-area-inset-top,0px);z-index:60;margin:0}
.nav__cap{position:fixed;z-index:29;top:0;left:0;right:0;pointer-events:none;padding-top:env(safe-area-inset-top,0px);box-sizing:content-box}
/* touches the top edge: iOS 26 Safari tints its status bar from a fixed bar there. z-index under .panel.is-navmenu (30): at 59 it covered the logo and bell while the bell list or profile menu was open */
html.is-swback .nav__cap{display:none}
.nav.is-stuck::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:-100vmax;right:-100vmax;background:var(--bar-bg);box-shadow:0 8px 18px -12px rgba(0,0,0,.35)}
.nav__ph[hidden]{display:none}
.smenu{position:fixed;inset:0;z-index:1000;width:100%;height:100%;margin:0;padding:0;border:0;background:none;overflow:hidden}
.smenu:not(.is-shown){visibility:hidden;pointer-events:none}
.smenu__panel{will-change:transform}
.smenu__scrim{will-change:opacity}
.smenu::backdrop{background:none}
.smenu__scrim{position:absolute;inset:0;touch-action:none;background:rgba(13,27,62,.45);opacity:0;transition:opacity .26s ease}
.smenu.is-open .smenu__scrim{opacity:1}
.smenu__panel{position:absolute;top:0;bottom:0;left:0;width:var(--sm-w,300px);max-width:92vw;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;padding:0 0 calc(16px + env(safe-area-inset-bottom));background:var(--sm-bg,var(--paper));color:var(--sm-ink,var(--ink));box-shadow:12px 0 40px -18px rgba(0,0,0,.5);transform:translateX(-100%);transition:transform .26s cubic-bezier(.2,.8,.2,1)}
.smenu.is-open .smenu__panel{transform:none}
.smenu__panel:focus{outline:none}
/* the head: copies of the nav's ☰ and logo, sliding in with the panel and landing exactly where the nav has them;
   a sticky band, so the list scrolls under it */
.smenu__head{position:sticky;top:0;z-index:1;touch-action:none;flex:none;height:var(--sm-head,72px);background:var(--sm-bg,var(--paper))}
.smenu__head > *{position:absolute;margin:0 !important}
.smenu__group{padding:8px 0;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent)}
.smenu .smenu__group > *{margin-left:var(--sm-x,0px)}
.smenu__body > .smenu__group:first-child{border-top:0}
.smenu__group ul{margin:0;padding:0 8px;list-style:none}
.smenu__title{display:flex;align-items:center;gap:4px;margin:0;padding:8px 22px 6px;font-size:16px;font-weight:700;line-height:1.3;color:inherit;text-decoration:none}
a.smenu__title:hover{opacity:.75}
.smenu__fire{display:inline-flex;align-items:center;gap:4px;margin-left:6px;font-size:15px;font-weight:700}
.smenu__fire svg{width:16px;height:22px}
.smenu__fire:not(.is-lit){opacity:.55}
.smenu__new{margin-left:auto;padding:1px 9px 2px;border-radius:999px;background:#F26C21;color:#fff;font-size:12px;font-weight:700;line-height:1.5;box-shadow:0 0 0 1.5px #FF9A55,0 0 12px rgba(255,122,47,.8);animation:smnew 1.6s ease-in-out infinite alternate}
@keyframes smnew{to{box-shadow:0 0 0 1.5px #FFB27A,0 0 20px rgba(255,122,47,1)}}
@media (prefers-reduced-motion:reduce){.smenu__new{animation:none}}
.smenu__chev{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.smenu__item{display:flex;align-items:center;gap:18px;min-height:46px;padding:6px 14px;border-radius:12px;font-size:16px;font-weight:500;line-height:1.3;color:inherit;text-decoration:none}
.smenu__item:hover,.smenu__item:focus-visible{background:color-mix(in srgb,currentColor 9%,transparent);outline:none}
.smenu__item[aria-current="page"]{background:color-mix(in srgb,currentColor 13%,transparent);font-weight:700}
/* pen doodles, outline only (owner 2026-11-06: no colour fill) */
.smenu__ic{flex:none;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.smenu__panel,.smenu__scrim{transition:none}}
/* profile menu (nav-user.js): a card (photo, name, Lv, ความสุข) then โปรไฟล์, แกลเลอรี, ออกจากระบบ with pen icons */
:root{--navmenu-w:min(320px,calc(100vw - 32px))}
/* the profile menu and the bell list: same place, same width */
.nav__menu{min-width:0;width:var(--navmenu-w);padding:8px}
/* items spaced like the ☰ menu's (owner 2026-11-06) */
.nav .nav__menu a,.nav .nav__menu button{display:flex;align-items:center;gap:18px;min-height:46px;padding:6px 14px;border-radius:12px;font-size:16px;font-weight:500;line-height:1.3}
.nav__menu-ic{flex:none;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nav .nav__menu .nav__menu-card{display:flex;align-items:center;gap:12px;padding:8px 14px 10px;min-height:0}
/* the card is a link to /profile too (owner 2026-11-06) */
.nav__menu-card .nav__me-face{display:grid;place-items:center;flex:none;width:44px;height:44px;box-shadow:0 0 0 2px var(--ink)}
.nav__menu-card .nav__menu-who{min-width:0;max-width:none;display:flex;flex-direction:column;padding:0;margin:0;border:0;line-height:1.3;white-space:normal;overflow:visible}
.nav__menu-name{font-size:16px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.nav__menu-lv{font-size:13px;font-weight:600;color:var(--marker)}
.nav__menu-lv:empty{display:none}
.nav__menu-gems{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:15px;font-weight:600;color:var(--ink)}
.nav__menu-gems[hidden]{display:none}
.nav__menu-gems svg{width:22px;height:22px}
/* profile button = photo only (owner 2026-11-06); the name lives in its menu's card */
.nav__avatar .nav__avatar-name,.nav__avatar .nav__avatar-chev{display:none}
.nav__user{display:flex;align-items:center;gap:4px}
/* notifications bell (nav-user.js, owner 2026-11-06): before the photo, the same size and stroke as ☰ (44px, 26px icon) */
.nav__bellbox{position:relative}
.nav__bell{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.nav .nav__bell svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nav__bell:hover{background:color-mix(in srgb,currentColor 9%,transparent)}
.nav__bell:focus-visible{outline:3px solid var(--marker);outline-offset:1px}
.logo--light ~ .nav__user .nav__bell{color:#fff}
.nav__bell-n{position:absolute;top:3px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#F26C21;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--paper)}
.nav__bell-n[hidden]{display:none}
.nav__notifs{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:var(--navmenu-w);max-height:min(70vh,560px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:var(--paper);color:var(--ink);border-radius:16px;box-shadow:0 18px 40px -18px rgba(13,27,62,.4),0 0 0 1px rgba(13,27,62,.06)}
.nav__notifs[hidden]{display:none}
.nav__notifs-head{padding:6px 12px 8px;font-size:16px;font-weight:700}
.nav__notifs-list{margin:0;padding:0;list-style:none}
.nav__notif > a,.nav__notif > div{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:12px;color:inherit;text-decoration:none}
.nav__notif > a:hover{background:var(--sky)}
.nav__notif.is-new > a,.nav__notif.is-new > div{background:color-mix(in srgb,#F26C21 9%,transparent)}
.nav__notif-pic{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--sky);color:var(--ink);font-weight:700}
.nav__notif-pic--ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nav__notif-txt{min-width:0;font-size:15px;line-height:1.45;text-wrap:pretty}
.nav__notif-body{display:block;color:var(--ink-soft)}
.nav__notif-txt small{display:block;margin-top:2px;font-size:13px;color:var(--ink-soft)}
.nav__notifs-empty{padding:18px 12px;color:var(--ink-soft);text-align:center;font-size:15px}
/* back office: announcements card */
.bo__notify{display:grid;gap:6px;margin-top:10px}
.bo__notify label{font-weight:600;font-size:15px;margin-top:6px}
.bo__notify label small{font-weight:400;color:var(--ink-soft)}
.bo__notify input,.bo__notify textarea,.bo__notify select{width:100%;padding:10px 14px;border:2px solid var(--sky-deep);border-radius:12px;background:var(--paper);font:inherit;font-size:16px;color:var(--ink)}
.bo__notify .btn{justify-self:start;margin-top:10px}
.bo__notifs{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.bo__notifs li{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:12px;background:var(--sky)}
.bo__notifs li > div{flex:1;min-width:0;display:flex;flex-direction:column;font-size:15px}
.bo__notifs li small{color:var(--ink-soft);font-size:13px}
.bo__notifs .btn{padding:6px 14px;font-size:14px}
/* /login: the header inside the sky panel like every other page (owner 2026-11-06) */
.auth--nav{padding-top:0}
.auth--nav > .nav{align-self:stretch;width:100%;max-width:var(--wrap);margin-inline:auto;margin-bottom:8px}
@media (max-width:560px){.auth--nav{padding-top:0}}
/* pop-up announcement in the middle of the screen (nav-user.js, owner 2026-11-06): shows once per member */
.npop{max-width:min(420px,calc(100vw - 32px))}
.npop__card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:28px 24px 24px}
.npop__ic{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--sky);margin-bottom:4px}
.npop__ic svg{width:40px;height:40px;overflow:visible;fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.npop__ic svg .npop__ic-fill{stroke:var(--orange);opacity:.55}
.npop__hand{font-size:20px;color:var(--marker);transform:rotate(-2deg)}
.npop__title{font-size:22px;font-weight:700;line-height:1.35;color:var(--ink);text-wrap:balance}
.npop__body{font-size:16px;line-height:1.55;color:var(--ink-soft);text-wrap:pretty;white-space:pre-line}
.npop__btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px;width:100%}
.npop__btns .btn{flex:1;min-width:120px;justify-content:center}
.bo__notify .bo__check{display:flex;align-items:center;gap:8px;font-weight:500}
.bo__notify .bo__check input{width:20px;height:20px;padding:0}
.bo__notify input[hidden]{display:none}
/* the pop-up stays in the middle on phones too (dialogs here are bottom sheets on phones) */
.bdlg.npop{width:min(420px,calc(100vw - 32px));margin:auto}
.bdlg.npop .npop__card{border-radius:24px;padding:28px 22px 22px}
/* desktop header to the panel's edges (owner 2026-11-06, like YouTube): ☰ at the far left, bell + profile at the far right */
@media (min-width:641px){
  .nav.wrap,.auth--nav > .nav{max-width:none;padding-inline:22px}
}
.fp__alb{position:absolute;inset:0;overflow:hidden;background:#000}
.fp__alb[hidden]{display:none}
.fp__albtrack{display:flex;height:100%;will-change:transform}
.fp__pic{flex:0 0 100%;height:100%;display:grid;place-items:center}
.fp__pic{background:#000 center/contain no-repeat}
/* 2026-11-25: the photo is absolutely placed in its slide. As a grid item with height:100% iPhone Safari sized the
   row by the photo's own height, so a tall photo filled the width and its bottom ran off the screen */
.fp__pic{position:relative}
.fp__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;user-select:none;transition:opacity .18s}
.fp__pic img.is-wait{opacity:0;transition:none}
.fp__dots{position:absolute;z-index:3;left:0;right:0;top:auto;display:flex;justify-content:center;gap:6px;margin:0;pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.fp__dots[hidden],.fp__albn[hidden]{display:none}
.fp__dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);transition:background .2s,transform .2s}
.fp__dots i.is-on{background:#fff;transform:scale(1.15)}
/* N / M pill at the top right, like TikTok's photo mode (owner 2026-11-25) */
.fp__albn{position:absolute;z-index:3;top:calc(16px + env(safe-area-inset-top));right:14px;margin:0;padding:5px 12px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:15px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;pointer-events:none}
.fp__albn:empty{display:none}
/* name line: the name (cut with …) and the รูปภาพ chip on one line (owner 2026-11-25) */
.fp__by b{display:flex;align-items:center;gap:8px;min-width:0}
.fp__by > span{min-width:0}
.fp__nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp__with{display:block;font-size:14px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* tagged friends under the name (owner 2026-11-25) */
.fp__kind{flex:none;display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:7px;background:rgba(255,255,255,.2);font-size:12px;font-weight:600;line-height:1.3}
/* tagged friends: two faces like a YouTube collab, the line opens the list */
.fp__by--tags,.fp__by--who{pointer-events:auto;cursor:pointer}
/* .fp__info lets taps through to the clip; the author line takes them (friend profile) */
.fp__faces{flex:none;display:flex}
.fp__faces > *{width:36px;height:36px}
.fp__faces > * + *{margin-left:-14px}
.fu__tagrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.fu__tag{display:inline-flex;align-items:center;gap:4px;padding:3px 4px 3px 10px;border-radius:999px;background:var(--sky,#E9F2FF);font-size:14px}
.fu__tag button{width:22px;height:22px;border:0;border-radius:50%;background:none;font-size:16px;line-height:1;color:var(--ink-soft);cursor:pointer}
.fp__kind svg{width:13px;height:13px}
.fp__albgo{position:absolute;z-index:4;top:50%;width:40px;height:40px;margin-top:-20px;display:none;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.85);color:#0D1B3E;cursor:pointer}
.fp__albgo svg{width:22px;height:22px}
.fp__albgo--l{left:12px}
.fp__albgo--r{right:12px}
@media (hover:hover){.fp__alb:not(.is-first) .fp__albgo--l,.fp__alb:not(.is-last) .fp__albgo--r{display:grid}}
/* upload: the picked photos in a row, the first is the cover */
.fu__alb{margin-top:14px}
.fu__alb[hidden]{display:none}
.fu__pics{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0;padding:0;list-style:none}
.fu__pics li{position:relative;aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:var(--sky)}
.fu__pics img{width:100%;height:100%;object-fit:cover}
.fu__picx{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:rgba(13,27,62,.75);color:#fff;cursor:pointer}
.fu__picx svg{width:14px;height:14px}
.fu__picc{position:absolute;left:4px;bottom:4px;padding:1px 7px;border-radius:999px;background:var(--orange);color:#fff;font-size:11px;font-weight:700}
.fu__albrow{display:flex;align-items:center;gap:14px;margin:10px 0 0;font-size:14px;color:var(--ink-soft)}
.fu__albrow #fu-picn{margin-left:auto}
.fu__pichint{margin:8px 0 0;font-size:13px;color:var(--ink-soft)}
.fu__pics li{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.fu__pics img{pointer-events:none;-webkit-user-drag:none}
#fu-evbox[hidden]{display:none}
.fu__prep{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:24px;border-radius:inherit;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.fu__prep[hidden]{display:none}
.fu__prepbox{display:grid;gap:10px;width:min(300px,100%);text-align:center;font-size:16px}
.fu__prepbox small{font-size:13px;color:var(--ink-soft)}
.fu__prepbar{height:12px;border-radius:999px}
.fu__more{cursor:pointer}
.fu__more[hidden]{display:none}
/* /admin-gallery photo viewer: page through the list (owner 2026-11-06) */
.agdlg__wrap{position:relative}
.agdlg__n{margin-right:auto;margin-left:10px;font-weight:400;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.agdlg__go{position:absolute;top:50%;z-index:2;width:48px;height:48px;margin-top:-24px;border:2px solid var(--ink);border-radius:50%;background:var(--paper);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:3px 3px 0 var(--ink)}
.agdlg__go svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.agdlg__go--l{left:8px}
.agdlg__go--r{right:8px}
.agdlg__go:disabled{opacity:.3;cursor:default}
.agdlg__go[hidden]{display:none}
@media (hover:hover){.agdlg__go:not(:disabled):hover{background:var(--orange);color:#fff}}
/* App-style navigation (owner 2026-11-08, trial on /home, app-nav.js; pages opt in with html.appnav):
   back | logo in the middle | bell, and a floating bottom tab bar like Facebook's for members */
.appnav .nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.appnav .nav > .nav__menu-btn,.appnav .nav > .nav__links{display:none}
.appnav .nav > .nav__back{grid-column:1;justify-self:start}
.appnav .nav > .logo{grid-column:2;justify-self:center;margin:0}
.appnav .nav > .nav__user{grid-column:3;justify-self:end;margin:0 -8px 0 0}
.appnav.has-atabs .nav .nav__avatar,.appnav.has-atabs .nav .nav__menu{display:none}
/* the photo button lives in the tab bar: hidden from the first paint (it flashed at the top on a refresh, owner 2026-11-12), except on pages without the bar */
.appnav:not(.no-atabs) .nav .nav__avatar,.appnav:not(.no-atabs) .nav .nav__menu{display:none}
.nav__back{display:grid;place-items:center;width:44px;height:44px;margin-left:-10px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.nav__back svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nav__back:hover{background:color-mix(in srgb,currentColor 9%,transparent)}
.nav__back:focus-visible{outline:3px solid var(--marker);outline-offset:1px}
.nav__back.is-none{visibility:hidden}
.logo--light ~ .nav__back,.nav:has(.logo--light) .nav__back{color:#fff}
/* owner 2026-11-08: Facebook's size, as close to Safari's address bar as it goes */
.aptr{position:absolute;top:-52px;left:50%;width:36px;height:36px;margin-left:-18px;opacity:0;pointer-events:none;z-index:60}
.aptr svg{display:block;width:100%;height:100%;overflow:visible;transform:rotate(-90deg);transition:transform .15s}
.aptr circle{fill:none;stroke:var(--orange);stroke-width:3.6;stroke-linecap:round}
.aptr--ready svg{transform:rotate(-90deg) scale(1.15)}
.atabs{position:fixed;z-index:70;left:12px;right:12px;bottom:calc(4px + env(safe-area-inset-bottom));max-width:420px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;height:52px;padding:0 4px;background:#fff;border:2px solid var(--ink);border-radius:999px;box-shadow:3px 3px 0 var(--ink)}
.atab{position:relative;display:grid;place-items:center;height:40px;margin:0 2px;border-radius:999px;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background .15s ease}
.atab svg{width:30px;height:30px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.atab .atab__o{stroke:none}
.atab[aria-current] {background:var(--sky)}
.atab[aria-current] .atab__o{fill:var(--orange)}
.atab[aria-current] .atab__f{fill:#FFD84D}
.atab__face{width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--ink)}
.atab[aria-current] .atab__face{box-shadow:0 0 0 2px var(--ink),3px 3px 0 1px var(--orange)}
.atab__dot{position:absolute;top:5px;left:calc(50% + 8px);width:10px;height:10px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 2px #fff}
.atab__dot[hidden]{display:none}
@media (hover:hover){.atab:not([aria-current]):hover{background:color-mix(in srgb,var(--sky) 60%,transparent)}}
.atab:focus-visible{outline:3px solid var(--marker);outline-offset:-3px}
.has-atabs body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
/* the profile tab's menu sheet (app-nav.js) */
.asheet{position:fixed;inset:0;z-index:1000}
.asheet[hidden]{display:none}
.asheet__scrim{position:absolute;inset:0;background:rgba(13,27,62,.45);opacity:0;transition:opacity .28s ease;touch-action:none}
.asheet.is-open .asheet__scrim{opacity:1}
.asheet__panel{position:absolute;left:0;right:0;bottom:0;max-width:520px;margin:0 auto;max-height:86svh;display:flex;flex-direction:column;background:var(--sky);color:var(--ink);border:2px solid var(--ink);border-bottom:0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom);transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1);outline:none}
.asheet.is-open .asheet__panel{transform:none}
.asheet__head{flex:none;padding:8px 14px 6px;touch-action:none}
.asheet__grab{display:block;width:42px;height:5px;margin:0 auto 10px;border-radius:3px;background:color-mix(in srgb,var(--ink) 30%,transparent)}
.asheet__card{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:#fff;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);color:inherit;text-decoration:none}
.asheet__face{flex:none;width:52px;height:52px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--ink)}
.asheet__face--none{display:grid;place-items:center;background:var(--orange);color:#fff;font-weight:700;font-size:22px}
.asheet__who{display:flex;flex-direction:column;min-width:0;flex:1}
.asheet__who b{font-size:18px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asheet__who small{font-size:14px;opacity:.7}
.asheet__gems{display:inline-flex;align-items:center;gap:6px;font-size:17px}
.asheet__gems svg{width:24px;height:24px}
.asheet__body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 0}
.asheet button.smenu__item{width:100%;border:0;background:none;color:inherit;cursor:pointer;font-family:inherit;text-align:left;-webkit-appearance:none;appearance:none}
.asheet button.smenu__item:hover,.asheet button.smenu__item:focus-visible{background:color-mix(in srgb,currentColor 9%,transparent)}
.atab--me{border:0;background:none;padding:0;cursor:pointer;font:inherit}
.atab--me[aria-expanded="true"]{background:var(--sky)}
@media (min-width:600px){.asheet__panel{bottom:calc(66px + env(safe-area-inset-bottom));border-bottom:2px solid var(--ink);border-radius:24px;box-shadow:4px 4px 0 var(--ink);transform:translateY(24px);opacity:0;transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
.asheet.is-open .asheet__panel{opacity:1}}
/* the tab bar and the sheet keep the site's light colours on dark pages (Voice, Fancam redefine --ink/--sky) */
.atabs,.asheet{--ink:#0D1B3E;--sky:#E9F2FF;--orange:#F26C21;color:#0D1B3E}
.npop__card:focus{outline:none}
.npop__btns .btn{white-space:nowrap}
/* owner 2026-11-08: the header sits higher (less room above back / logo / bell and above its panel) */
.appnav .nav{padding-top:8px;padding-bottom:6px}
.appnav .panel:has(> .nav){margin-top:6px}
@media (max-width:640px){.appnav .panel:has(> .nav){margin-top:4px}}
/* the tab bar slides away while scrolling down and comes back on the way up (owner 2026-11-08) */
.atabs{transition:transform .25s cubic-bezier(.2,.8,.2,1),scale .18s cubic-bezier(.25,1,.5,1)}
.atabs.is-press{scale:1.025}
/* swells under the finger like Facebook's bar (owner 2026-11-18) */
.atabs-away .atabs{transform:translateY(calc(100% + 12px + env(safe-area-inset-bottom)))}
/* ควิซ tab popover (owner 2026-11-16): จริงหรือมั่ว / ดูดวงประจำสัปดาห์ */
.apop{position:fixed;z-index:72;width:max-content;min-width:236px;padding:6px;background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:18px;box-shadow:3px 3px 0 var(--ink);display:grid;gap:2px;transform-origin:var(--ax) 100%;animation:apopin .18s cubic-bezier(.2,.8,.2,1)}
.apop[hidden]{display:none}
.apop:after{content:"";position:absolute;left:calc(var(--ax) - 8px);bottom:-9px;width:14px;height:14px;background:#fff;border:solid var(--ink);border-width:0 2px 2px 0;transform:rotate(45deg);border-bottom-right-radius:3px}
@keyframes apopin{from{opacity:0;transform:translateY(6px) scale(.94)}}
.apop__row{position:relative;display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;border-radius:12px;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.apop__row[aria-current]{background:var(--sky)}
@media (hover:hover){.apop__row:not([aria-current]):hover{background:color-mix(in srgb,var(--sky) 60%,transparent)}}
.apop__ic{flex:none;width:40px;height:40px;display:grid;place-items:center}
.apop__ic svg{width:34px;height:34px;overflow:visible}
.apop__ic svg:not(.apop__ball){fill:none;stroke:var(--ink);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.apop__ic .atab__o{stroke:none;fill:var(--orange)}
.apop__ic .atab__f{fill:#FFD84D}
.apop__t{display:grid;line-height:1.3}
.apop__t b{font-size:15px}
.apop__t small{font-size:12.5px;color:var(--ink-soft)}
.apop__dot{position:absolute;right:12px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--orange)}
.atab--quiz,.atab--gallery{border:0;background:none;padding:0;cursor:pointer;font:inherit}
.atab--quiz.is-open,.atab--gallery.is-open{background:var(--sky)}
@media (prefers-reduced-motion:reduce){.apop{animation:none}}
/* ติดต่อทีมงาน form (app-nav.js contact(), owner 2026-11-08) */
.bdlg.npop--form{margin:max(16px,6svh) auto auto}
.ctalk{gap:8px}
.ctalk textarea{width:100%;font:inherit;font-size:16px;line-height:1.5;border:2px solid var(--ink);border-radius:14px;padding:10px 12px;resize:vertical;min-height:120px;background:#fff;color:var(--ink)}
.ctalk textarea:focus{outline:none;border-color:var(--blue)}
.ctalk__msg{margin:0;min-height:1.2em;font-size:14px;color:#9A3412}
.board__step .fboard__fire{font-size:inherit}
.board__step .fboard__fire svg{width:20px;height:28px}
/* 2026-11-11 review fixes (375px): bigger tap areas without changing the look, notices clear of the top bar */
.pchips__link,.cheart,.bview{position:relative}
.pchips__link::after,.cheart::after,.bview::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,40px);height:max(100%,40px);transform:translate(-50%,-50%)}
.gemnote__close{right:4px;top:4px;width:40px;height:40px}
.nav__cta{min-height:40px}
@media (max-width:640px){.gemnote{top:calc(env(safe-area-inset-top,0px) + 76px)}}
[data-until][hidden]{display:none !important}
#fu-ev{width:100%;min-height:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:12px;background:#fff;font:inherit}
.se__form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-top:12px}
.se__form label{display:grid;gap:4px;font-size:14px}
.se__form input:not([type=checkbox]){min-height:40px;padding:6px 10px;border:2px solid var(--ink);border-radius:10px;font:inherit}
.se__form .se__tick{display:flex;align-items:center;gap:8px}
.fp__sound{position:absolute;z-index:3;left:50%;top:max(14px,calc(env(safe-area-inset-top) + 10px));transform:translateX(-50%);margin:0;padding:7px 14px;border-radius:99px;background:rgba(0,0,0,.62);color:#fff;font-size:14px;font-weight:600;white-space:nowrap;pointer-events:none}
.fp__sound[hidden]{display:none}
/* swipe right = back, the iOS way (app-nav.js, owner 2026-11-12): the page moves piece by piece over .swsheet (its
   own background + edge shadow); .swprev is a sketch of the previous page behind it */
.swprev{position:fixed;inset:0;z-index:-2;pointer-events:none;overflow:hidden}
.swprev>i{position:absolute;display:block;box-sizing:border-box}
.swprev__t{border-radius:99px;opacity:.16}
.swprev__m{background:rgba(127,140,160,.22)}
.swprev__logo{position:absolute;white-space:nowrap}
.swprev__page{position:absolute;left:0;right:0}
.swprev__page>body{margin:0;min-height:0}
.swprev>i.swprev__row{position:relative;height:84px;margin:84px 16px -70px;border-radius:16px;background:rgba(13,27,62,.07)}
.swprev>i.swprev__row.is-w{height:150px}
.swprev__dim{position:fixed;inset:0;background:#000;opacity:.35}
.swsheet{position:fixed;inset:0;z-index:-1;pointer-events:none;box-shadow:-10px 0 24px rgba(0,0,0,.18)}
html.is-swback,html.is-swback body{overflow-x:clip}
/* gallery and quiz headers in Space's size (owner 2026-11-12): 20px hand note, 28px title (21px on phones), tight top */
:is(.ghead,.qhead){padding-top:6px}
:is(.ghead__hello,.qhead__hello){font-size:20px;line-height:1.1;margin-bottom:2px}
:is(.ghead,.qhead) .split-title{font-size:28px;line-height:1.25;gap:0}
:is(.ghead,.qhead) .split-title__light{font-weight:700}
.is-qplay .qhead .split-title__bold{font-size:28px;line-height:1.25}
@media (max-width:640px){:is(.ghead,.qhead) .split-title,.is-qplay .qhead .split-title__bold{font-size:21px}}
/* cherry on /profile: the logo's line and the photo ring yellow too (owner 2026-11-12) */
.phero[data-theme="cherry"] .logo__smile path,.phero[data-theme="cherry"] .pface__ring path{stroke:#FFD84D}
/* small headers (Space, gallery, quiz; owner 2026-11-12): one scribble, not a pair */
:is(.shero,.ghero) :is(.phero__doodle--bottom,.phero__doodle--bl){display:none}
/* quiz's panel is tall: both scribbles (owner 2026-11-13) */
/* title underlines: gallery one straight pen line, Space a tilted zigzag, quiz its wavy (owner 2026-11-12) */
.doodle--line{left:-2%;width:104%;bottom:-.12em;height:.3em}
.doodle--line path{stroke-width:4}
.doodle--zig{left:0;width:100%;bottom:-.3em;height:.36em;transform:rotate(-2.5deg)}
.doodle--zig path{stroke-width:3}
:is(.shero,.ghero,.qhero).is-dark :is(.fhead,.ghead,.qhead) .doodle path,:is(.shero,.ghero,.qhero)[data-theme="cherry"] :is(.fhead,.ghead,.qhead) .doodle path{stroke:#FFD84D}
:is(.shero,.ghero,.qhero)[data-theme="orange"] :is(.fhead,.ghead,.qhead) .doodle path{stroke:var(--ink)}
.ghead .split-title__bold .hl{margin-right:.25em}
/* the site footer only on wide screens (owner 2026-11-12) */
@media (max-width:899px){.footer[data-site-footer]{display:none}}
.swprev>i.is-soft{background:rgba(13,27,62,.07)}
.swprev>i.swprev__t.is-soft{background:rgba(13,27,62,.12);opacity:1}
/* while a swipe moves the page, the stuck bar's band stays its own width (it reached across the screen and hid the page behind) */
html.is-swback .nav.is-stuck::before{left:-24px;right:-24px}
/* Space, gallery and quiz titles at the size of quiz's ความสุข number (26px), Moraeul upright (owner 2026-11-13) */
:is(.ghead,.qhead) .split-title,.is-qplay .qhead .split-title__bold,.page-space .fhead__lede{font-size:26px;line-height:1.25}
@media (max-width:640px){:is(.ghead,.qhead) .split-title,.is-qplay .qhead .split-title__bold,.page-space .fhead__lede{font-size:26px}}
:is(.ghead__hello,.qhead__hello),.fhead__title .hand{transform:none}
/* gallery title: แกลเลอรี in the bold colour, ชาวอิมแพ็ค in the other (owner 2026-11-13) */
.ghead__rest{color:var(--ink)}
/* quiz page: every section title at the header's size (owner 2026-11-13) */

/* owner 2026-11-13: +N with the ความสุข face; the streak pops over the button and fades */
.qgain{display:inline-flex;align-items:center;gap:3px;padding:1px 6px 1px 9px;vertical-align:-1px}
.qgain__ic{width:18px;height:18px;flex:none}
.qstreakpop{position:fixed;z-index:9999;left:0;top:0;pointer-events:none;white-space:nowrap;font-family:var(--f-hand);font-size:26px;font-weight:700;color:var(--orange);text-shadow:0 2px 0 #fff,0 0 8px #fff;transform:translate(-50%,-50%)}
/* a bit more room for the answer, buttons a bit shorter, card closer to the tab bar */
.qcard--play{height:calc(100svh - var(--qtop, 200px) - var(--qbot, 16px) - 14px - env(safe-area-inset-bottom))}
/* owner 2026-11-13: keep this gap above the tab bar */
.qcard--play .qstatement{font-size:30px;margin-bottom:6px}
@media (max-width:640px){.qcard--play .qstatement{font-size:24px}}
.qcard--play .qslot{height:auto;flex:0 1 176px;min-height:124px}
.qcard--play .qbtn{padding-top:10px;padding-bottom:10px}
@media (max-width:640px){.qcard--play .qslot{flex-basis:170px}
.qcard--play .qbtn{padding:9px 8px}}
/* owner 2026-11-13 (later): start/done cards in the play card's box, content centred; mascot inside the card */
/* owner 2026-11-13 (later): start/done keep their own card size (mascot above it) but sit in the middle of the play
   card's box, so the theme panel ends where it does during play (margins set by sizeCard() in quiz.js) */
.qstage{display:flow-root}
/* taller จริง / มั่ว */
.qcard--play .qbtn{padding-top:16px;padding-bottom:16px}
@media (max-width:640px){.qcard--play .qbtn{padding:15px 8px}}
/* friend's question: name and ฝ่าย centred beside the photo; the tag now sits on the source line */
.qcard--play .qfrom{align-items:center}
.qfrom__txt{justify-content:center}
.qfeed__src .qfrom__tag{display:inline-block;margin:0 0 0 2px;vertical-align:1px;font-size:12px;padding:1px 9px 2px}
/* cherry header: the title in white, the note stays yellow */
.qhero[data-theme="cherry"] .qhead .split-title__bold{color:#fff}
/* gallery ชาวอิมแพ็ค orange on the light looks (owner 2026-11-13) */
.ghead__rest{color:var(--orange)}
/* a fire of 10+ days: red-yellow (owner 2026-11-13) */
.is-hot svg path:nth-of-type(1){fill:#B91C1C}
.is-hot svg path:nth-of-type(2){fill:#E5262B}
.is-hot svg path:nth-of-type(3){fill:#FFD84D}
/* 30 days: purple, 100 days: blue (owner 2026-11-29) */
.is-f30 svg path:nth-of-type(1){fill:#5B21B6}
.is-f30 svg path:nth-of-type(2){fill:#A855F7}
.is-f30 svg path:nth-of-type(3){fill:#F0ABFC}
.is-f100 svg path:nth-of-type(1){fill:#1A56DB}
.is-f100 svg path:nth-of-type(2){fill:#38BDF8}
.is-f100 svg path:nth-of-type(3){fill:#BAE6FD}
/* quiz sections: title closer to its content, sections closer together, each title underlined (owner 2026-11-13) */

.qrules__list{margin-top:18px}
.qmine{padding-top:40px}
#board,#fboard{padding-top:44px;padding-bottom:16px}
#board .board__head,#fboard .board__head{margin-bottom:18px}
/* owner 2026-11-13: ท้าเพื่อน comes first after the game, in its own drawn frame */
.qmine.wrap{margin-top:40px;padding-top:28px;padding-bottom:26px;border:2px solid var(--ink);border-radius:26px 22px 28px 20px/22px 28px 20px 26px;background:#FFFBEA;box-shadow:5px 6px 0 var(--orange)}
@media (max-width:640px){.qmine.wrap{margin-left:16px;margin-right:16px;padding-left:18px;padding-right:18px}}
.page-quiz .board .board__head{margin-bottom:28px}
/* +N always carries the ความสุข face (owner 2026-11-13) */
.qplus__ic{display:inline-block;width:.8em;height:.8em;margin-left:.08em;vertical-align:-.04em}
.qrules__list b{white-space:nowrap}
/* +N blocks (owner 2026-11-13): number and face 3px apart like the +1 tag in the answer box, right-aligned in a
   fixed column so every face sits at the same x and the descriptions start at the same x */
.qplus__ic{width:.82em;height:.82em;margin:0;vertical-align:0;flex:none}
.qrules__list b,.qmine__pay b,.pearn__list b{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px}
.qrules__list b{flex:none;width:3.3em;min-width:0}
/* owner 2026-11-13: the face as tall as the number, the +N block further left */
.qplus__ic{width:1em;height:1em}
.qrules__list li{padding-left:14px;gap:12px}
.qrules__list b{width:3.25em}
.qrules__list li{padding-left:8px}
.qrules__list b{width:3.1em}
.qplus__ic{position:relative;top:-.09em}
/* digits sit high in their line box: lift the face to their middle (owner 2026-11-13) */
.btn--danger{color:#B91C1C;box-shadow:inset 0 0 0 2px #B91C1C}
/* ---------- /admin-impact: cross-division dashboard (owner 2026-11-14) ---------- */
.imp .bo__stats--4 small{font-size:12.5px;color:var(--ink-soft);margin-top:4px;line-height:1.35}
.imp__range{flex-wrap:wrap;align-items:center;margin:4px 0 2px}
.imp__range label{font-size:15px;color:var(--ink-soft)}
.imp__range input{flex:0 1 170px}
.imp__scroll{overflow-x:auto;margin:6px -4px 0;padding:0 4px}
.imp__table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.imp__table th,.imp__table td{padding:9px 10px;border-bottom:1px solid #EDF2FB;text-align:left;vertical-align:middle}
.imp__table thead th{font-size:13px;font-weight:600;color:var(--ink-soft);white-space:nowrap;border-bottom:2px solid var(--sky-deep)}
.imp__table tbody th{font-weight:500;min-width:150px}
.imp__table tbody th small{display:block;font-size:12.5px;font-weight:400;color:var(--ink-soft)}
.imp__table .imp__num{text-align:right;white-space:nowrap}
.imp__barcell{width:26%;min-width:90px}
.imp__bar{display:block;height:10px;border-radius:6px;background:var(--sky-deep);overflow:hidden}
.imp__bar i{display:block;height:100%;border-radius:6px;background:var(--orange)}
.imp__table--sort thead button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.imp__table--sort thead button:hover{color:var(--blue)}
.imp__table--sort th[aria-sort] button{color:var(--blue)}
.imp__table--sort th[aria-sort="descending"] button::after{content:" ▾"}
.imp__table--sort th[aria-sort="ascending"] button::after{content:" ▴"}
.imp__notes{margin:8px 0 0;padding-left:20px;font-size:15px;line-height:1.6}
.imp__notes li+li{margin-top:6px}
@media (max-width:560px){.imp__range input{flex:1 1 130px}
.imp__table{font-size:14px}
.imp__table th,.imp__table td{padding:8px 6px}
.imp__barcell{min-width:64px}}
/* /admin: back office rights beside the role (profiles.perms, owner 2026-11-16) */

.bo__perm{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;padding:6px 10px;border:2px solid var(--sky-deep);border-radius:12px;cursor:pointer;white-space:nowrap}
.bo__perm input{width:16px;height:16px;accent-color:var(--blue);margin:0}
.bo__perm:has(input:checked){border-color:var(--blue);background:var(--sky)}
/* friend search layer (owner 2026-11-16): fills what is left of the screen above the keyboard, search box on top */
.qdpdlg{position:fixed;inset:0 0 auto;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#FFF4CC;color:var(--ink);overflow:hidden}
.qdpdlg[open]{display:flex;flex-direction:column}
.qdpdlg::backdrop{background:rgba(13,27,62,.4)}
.qdpdlg__head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 16px 8px}
.qdpdlg__head h2{margin:0;font-size:20px}
.qdpdlg__head small{font-size:14px;font-weight:500;color:var(--ink-soft)}
.qdpdlg__head .btn{min-height:40px;padding:0 20px}
.qdpdlg__box{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 16px 16px}
.qdpdlg__box .qdpick__box{order:-1;flex:none}
.qdpdlg__box .qdpick__chips{flex:none}
.qdpdlg__box .qdpick__res{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start}
.qdpick__open{display:flex;align-items:center;gap:8px;width:100%;min-height:46px;padding:0 14px;border:2px dashed var(--ink);border-radius:14px;background:#fff;color:var(--ink-soft);font:inherit;font-size:15px;text-align:left;cursor:pointer}
.qdpick__open svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
@media (min-width:640px){.qdpdlg{inset:8vh 0 auto;width:min(560px,calc(100vw - 32px));height:min(640px,84vh)!important;margin:0 auto;border:2px solid var(--ink);border-radius:20px;box-shadow:5px 5px 0 var(--ink)}
.qdpdlg__head{padding-top:16px}}
/* ทั้งอิมแพ็ค / ฝ่ายคุณ switch at the right of each /quiz board title (owner 2026-11-16) */
.board__head:has(.bswitch){flex-wrap:wrap;align-items:flex-start}
/* wraps on phones since the titles got สะสม (owner 2026-11-28) */
.bswitch{display:flex;flex:none;margin-left:auto;padding:3px;border:2px solid var(--ink);border-radius:99px;background:var(--paper);box-shadow:2px 2px 0 var(--ink)}
.bswitch button{min-height:34px;padding:0 13px;border:0;border-radius:99px;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--ink-soft);cursor:pointer}
.bswitch button[aria-pressed=true]{background:var(--blue);color:#fff}
/* /quiz board titles the size of the จริงหรือมั่ว? title, the switch on the same line (owner 2026-11-29) */
.page-quiz .board__head:has(.bswitch){flex-wrap:nowrap;align-items:flex-end;gap:12px}
.page-quiz .board__head .split-title{font-size:26px;line-height:1.25;gap:0;min-width:0}
.board__morerow{list-style:none;display:flex;justify-content:center;padding-top:6px}
.board__more{min-height:42px;padding:0 22px;border:2px solid var(--ink);border-radius:99px;background:var(--paper);font:inherit;font-size:15px;font-weight:700;color:var(--ink);cursor:pointer;box-shadow:2px 2px 0 var(--ink)}
.board__more:disabled{opacity:.6}
/* profile sheet: Back office drops down its pages (owner 2026-11-16) */
.asheet__bo .asheet__chev{width:20px;height:20px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.asheet__bo[aria-expanded=true] .asheet__chev{transform:rotate(180deg)}
.asheet__sub{margin:2px 0 4px;padding:0 0 0 22px;list-style:none;border-left:2px solid color-mix(in srgb,currentColor 14%,transparent);margin-left:26px}
.asheet__sub .smenu__item{min-height:42px;font-size:15px}
.asheet__sub .smenu__ic{width:22px;height:22px}
/* a floating ใหม่! on the top-right corner of a new control, gone after its first tap (owner 2026-11-16) */
.qdpick__open,.bswitch button{position:relative}
.newtag{position:absolute;z-index:2;top:-13px;right:-8px;padding:1px 9px 2px;border-radius:999px;background:#F26C21;color:#fff;font-family:"Moraeul Thai",cursive;font-size:15px;font-weight:400;line-height:1.2;white-space:nowrap;pointer-events:none;box-shadow:0 0 0 1.5px #FF9A55,0 0 12px rgba(255,122,47,.8);transform:rotate(6deg);animation:newtag 1.6s ease-in-out infinite alternate}
@keyframes newtag{to{transform:rotate(6deg) translateY(-3px);box-shadow:0 0 0 1.5px #FF9A55,0 0 18px rgba(255,122,47,1)}}
@media (prefers-reduced-motion:reduce){.newtag{animation:none}}
/* board switch (owner 2026-11-16): ทุกฝ่าย blue, ฝ่ายคุณ orange */
.bswitch button[data-v=d][aria-pressed=true]{background:var(--orange);color:#fff}
.dbtn{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;border-radius:999px;font-weight:700;font-size:18px;background:#FF3B2F;color:#fff;text-decoration:none}
.dbtn--off{background:rgba(11,3,6,.85);color:#FFB8A8;box-shadow:inset 0 0 0 1.5px rgba(255,90,60,.5)}
/* owner 2026-11-17: กติกา is a button under the ความสุข / ไฟ pills that opens a pop-up (was a section at the page's end) */
.qsidew{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
/* owner 2026-11-17: the header copy sits exactly where /space's and /gallery's do (hand line at the same y, title at the
   same y; measured 68/92 at 375, 70/94 at 1440). DO NOT move it again: anything added to the header goes beside or
   under it, never above (align-items:start keeps the copy pinned whatever the right column holds). The ความสุข / fire
   pills sit centred on the "Quiz ชาวอิมแพ็ค" line; กติกา sits under the title. */
.qhead.qhead{align-items:start}
.qhead .qsidew{justify-self:end;align-self:start;margin-top:4px}
/* 5px higher (owner 2026-11-17, later) */
/* owner 2026-11-17 (later): the pills look and sit like the home page's ความสุข pill (.h2gem: white, ink line, orange
   offset shadow, centred on the two-line copy beside it) */
.qhead .qwallet{gap:6px;padding:3px 12px 3px 5px;background:#fff;border:1.5px solid var(--ink);box-shadow:2px 2px 0 var(--orange)}
.qhead .qwallet__gem{width:24px;height:24px}
.qhead .qfire__icon{width:17px;height:24px;margin-left:3px}
.qhero:is([data-theme="orange"],[data-theme="cherry"]) .qhead .qwallet{box-shadow:3px 3px 0 var(--ink)}
.qhead .qsidew .qside{margin-bottom:0}
.qrdlg__card .qrules__list{margin-top:14px}
.qrdlg__card .bdlg__title{padding-right:36px}
.is-qplay .qrlink{display:none}
/* owner 2026-11-17: เลื่อนลงดูอันดับ under the done card (same look as /horo's เลื่อนลงอ่านต่อ) */
/* owner 2026-11-17 (later): place and motion copied from .ho-peek in horo.css (bottom/padding with and without the tab
   bar, the rise-in, the nudge), so both hints sit at the same spot */
.qpeek{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;padding:44px 16px calc(14px + env(safe-area-inset-bottom));border:0;background:none;cursor:pointer;transition:opacity .3s,transform .3s;animation:qpeekup .5s ease .6s backwards}
.has-atabs .qpeek{bottom:calc(58px + env(safe-area-inset-bottom));padding:30px 16px 8px}
@keyframes qpeekup{from{opacity:0;transform:translateY(18px)}}
.qpeek b{display:flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--orange);animation:qnudge 1.2s ease-in-out infinite;text-shadow:0 1px 2px rgba(255,255,255,.95),0 0 10px rgba(255,255,255,.9)}
.qpeek svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(255,255,255,.95))}
.qpeek.is-gone{opacity:0;transform:translateY(20px);pointer-events:none}
@keyframes qnudge{50%{transform:translateY(5px)}}
@media (prefers-reduced-motion:reduce){.qpeek,.qpeek b{animation:none}}
/* ---------- /admin-activity: member activity log (owner 2026-11-17); shares .imp__range / .imp__notes ---------- */
.act__who{position:relative;margin-bottom:12px}
.act__find{display:flex;flex-direction:column;gap:6px;position:relative}
.act__find[hidden],.act__picked[hidden]{display:none}
.act__lbl{font-size:15px;color:var(--ink-soft)}
.act__find input{font:inherit;font-size:17px;border:2px solid var(--sky-deep);border-radius:14px;padding:10px 14px;min-width:0}
.act__find input:focus{outline:none;border-color:var(--blue)}
.act__results{position:absolute;z-index:5;top:100%;left:0;right:0;margin:6px 0 0;padding:6px;list-style:none;background:var(--paper);border-radius:16px;box-shadow:0 14px 34px -10px rgba(13,27,62,.35);max-height:340px;overflow-y:auto}
.act__results button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:12px;background:none;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.act__results button:hover,.act__results button:focus-visible{background:var(--sky);outline:none}
.act__results b,.act__picked b,.act__who-btn b{display:block;font-weight:600;line-height:1.3}
.act__results small,.act__picked small,.act__who-btn small{display:block;font-size:12.5px;color:var(--ink-soft);line-height:1.3}
.act__picked{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.act__picked>span:not(.act__av){flex:1 1 160px;min-width:0}
.act .auth__msg:empty{display:none}
.act__av{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--sky);color:var(--blue);font-weight:600;font-size:15px}
.act__av img{display:block;width:100%!important;height:100%!important;max-width:none;aspect-ratio:1;object-fit:cover;border-radius:50%}
.act__av--big{width:64px;height:64px;font-size:24px}
.act__range{margin:0 0 12px}
.act__chips,.act__counts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.act__chip{--c:var(--blue);font:inherit;font-size:14px;padding:6px 12px;border-radius:999px;border:1.5px solid var(--c);background:var(--paper);color:var(--c);cursor:pointer}
.act__chip[aria-pressed="true"]{background:var(--c);color:#fff}
.act__chip--all{--c:var(--ink);border-style:dashed}
.act__chip--login{--c:#1A56DB}
.act__chip--page{--c:#5B6B8C}
.act__chip--quiz{--c:#C2410C}
.act__chip--space{--c:#7549B8}
.act__chip--voice{--c:#B4235A}
.act__chip--horo{--c:#3B3486}
.act__chip--loy{--c:#B4570B}
.act__chip--mission{--c:#A16207}
.act__chip--booth{--c:#0E7C86}
.act__chip--gallery{--c:#2F7D32}
.act__chip--share{--c:#8A5A00}
.act__chip--buzz{--c:#9C3D10}
.act__chip--sd{--c:#0B6E4F}
.act__chip--points{--c:#B7791F}
.act__chip--gotit{--c:#E11D48}
.act__chip--birthday{--c:#B5179E}
.act__chip--other{--c:#0D1B3E}
.act__counts .act__chip{cursor:default;background:var(--paper)}
.act__counts b{font-variant-numeric:tabular-nums}
.act__phead{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.act__phead .auth__title{margin:0}
.act__meta{margin:2px 0 0;color:var(--ink-soft);font-size:15px}
.act__facts{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.act__facts li{background:var(--sky);border-radius:14px;padding:10px 14px;display:flex;flex-direction:column}
.act__facts span{font-size:13px;color:var(--ink-soft)}
.act__facts b{font-size:17px;font-variant-numeric:tabular-nums}
.act__facts small{font-size:12.5px;color:var(--ink-soft)}
.act__feed{list-style:none;margin:0;padding:0}
.act__day{font-weight:600;color:var(--blue);font-size:15px;padding:14px 0 6px;border-bottom:2px solid var(--sky-deep)}
.act__day:first-child{padding-top:0}
.act__row{display:grid;grid-template-columns:52px minmax(170px,240px) 1fr;gap:6px 12px;align-items:center;padding:9px 0;border-bottom:1px solid #EDF2FB;font-size:15px}
.act__row time{color:var(--ink-soft);font-variant-numeric:tabular-nums;font-size:14px}
.act__who-btn{display:flex;align-items:center;gap:8px;min-width:0;padding:2px 6px 2px 2px;border:0;border-radius:12px;background:none;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.act__who-btn:hover,.act__who-btn:focus-visible{background:var(--sky);outline:none}
.act__who-btn span{min-width:0}
.act__who-btn b,.act__who-btn small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.act__what{min-width:0;overflow-wrap:anywhere;line-height:1.45}
.act__what a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--sky-deep);text-underline-offset:3px}
.act__what a:hover{color:var(--blue)}
.act__tag{display:inline-block;margin-right:8px;padding:1px 9px;border-radius:999px;font-size:12.5px;color:#fff;background:var(--c,var(--ink));vertical-align:1px;white-space:nowrap}
.act__none{color:var(--ink-soft);padding:10px 0;list-style:none}
.act__more{display:block;margin:14px auto 0}
.act__skel{display:flex;flex-direction:column;gap:12px;padding:8px 0}
.act__skel .skel{height:22px;border-radius:8px}
@media (max-width:640px){.act__row{grid-template-columns:44px 1fr;font-size:14.5px}
.act__row:not(.is-one) .act__what{grid-column:2}
.act__row time{grid-row:span 2;align-self:start;padding-top:6px}}
/* owner 2026-11-17 (later): กติกา is a text link like /profile's วิธีเก็บและแลกความสุข →, under the pills */
.qhead .qsidew{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.qrlink{appearance:none;border:0;background:none;padding:2px 2px;margin:0;font:inherit;font-size:15px;font-weight:600;line-height:1.3;color:var(--blue);cursor:pointer}
.qrlink:hover .link__arrow{transform:translateX(4px)}
.qhero:is(.is-dark,[data-theme="blue"],[data-theme="cherry"]) .qrlink{color:#FFD84D}
.qhero[data-theme="orange"] .qrlink{color:#fff}
/* the กติกา sheet: no focus ring on the sheet itself (a blue line ran along its top on the iPhone) */
.qrdlg:focus,.qrdlg:focus-visible{outline:none}
.qrdlg__card .qrules__list{grid-template-columns:1fr}
/* one column in the sheet: two columns pushed the nowrap lines out of their boxes on desktop */
.qrdlg__card .qrules__list li > span{min-width:0}
@keyframes fcmpop{40%{transform:scale(1.35)}}
.fs__add{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:2px solid #333;color:#ddd;cursor:pointer}
.fs__add svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fs__add:active{transform:scale(.94)}
.fs__pic{position:relative;align-self:flex-start;margin:8px 12px 0;width:72px;height:72px;border-radius:12px;overflow:hidden;border:2px solid #333}
.fs__pic img{width:100%;height:100%;object-fit:cover}
.fs__pic button{position:absolute;right:3px;top:3px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(0,0,0,.7);color:#fff;display:grid;place-items:center;padding:0}
.fs__pic button svg{width:14px;height:14px}
.qrlink{font-size:13px}
/* กติกาเก็บความสุข →, 2px smaller (owner 2026-11-17) */
/* ===== ท้าพิเศษ + ขอขิง (owner 2026-11-18, quiz.js) ===== */
.qmine__dbtn.has-new{background:#FFF4CC;border-color:var(--ink);color:var(--ink);box-shadow:3px 3px 0 var(--orange)}
.qdares__none{padding:18px 4px;color:var(--ink-soft);font-size:15px;text-align:center}
#dares-dlg .qdares__list{margin-top:6px}
.qdask__t{margin:2px 0 0;font-size:20px;font-weight:600;line-height:1.45;text-wrap:balance}
.qdask__t b{color:var(--orange-ink,#C2410C)}
.qdask__note{margin:0;font-size:14px;color:var(--ink-soft);text-wrap:pretty}
.qdask__row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}
.qdask__row .btn{justify-content:center;width:100%}
.qdplay__timer{position:relative;inset:auto;background:#FFE9A3}
.qdplay__res{position:relative}
/* ขอขิง floats above ขอค้าน and may cover the answer text (owner: don't push anything) */
.qbrag{position:absolute;z-index:3;right:12px;display:inline-flex;align-items:center;gap:6px;padding:4px 13px 4px 6px;border:2px solid var(--ink);border-radius:999px;background:var(--ink);color:#FFD84D;font:inherit;font-size:14px;font-weight:700;box-shadow:2px 2px 0 var(--orange);cursor:pointer;animation:qbragin .45s cubic-bezier(.2,.8,.3,1.4) .25s backwards}
.qbrag__ic{width:26px;height:26px;flex:none;overflow:visible}
.qfeed .qbrag{bottom:44px}
.qdplay__res .qbrag{top:10px}
.qbrag--sent{background:#fff;color:var(--ink);box-shadow:none;cursor:default;animation:none}
.qbrag:not(.qbrag--sent):hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 var(--orange)}
@keyframes qbragin{from{transform:scale(.4) rotate(-12deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.qbrag{animation:none}}
/* ชอบโจทย์ (owner 2026-11-22): a plain heart at the right end of the answer line (ไม่ใช่นะ ข้อนี้มั่ว), no label, no shadow */
.qlike{float:right;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin:-5px -6px -5px 6px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.qlike__ic{width:24px;height:24px;flex:none;overflow:visible}
.qlike.is-on{color:#C2333A}
.qlike.is-pop .qlike__ic{animation:qlikepop .45s cubic-bezier(.2,.8,.3,1.6)}
@keyframes qlikepop{0%{transform:scale(1)}40%{transform:scale(1.45)}100%{transform:scale(1)}}
.qmine__likes{display:inline-flex;align-items:center;gap:3px;color:#C2333A;font-weight:700}
.qmine__likes .qlike__ic{width:15px;height:15px}
@media (prefers-reduced-motion:reduce){.qlike.is-pop .qlike__ic{animation:none}}
.qbragdlg .bdlg__title{display:flex;align-items:center;gap:8px}
.qbragdlg .bdlg__title .qbrag__ic{width:34px;height:34px}
/* the centred quiz pop-ups (ท้าพิเศษ, ขอค้าน, ...) keep all four corners round on phones: the phone rule for .bdlg__card
   turned them into a bottom sheet's shape (square bottom) though they sit mid-screen (owner 2026-11-18) */
.qadlg.qadlg .bdlg__card{border-radius:24px}
/* /admin-quiz: a reply box under each waiting ขอค้าน, sent with the decision (owner 2026-11-18) */
.ap__reply{grid-column:1/-1;display:grid;gap:6px;width:100%;margin-top:4px;font-size:14px;font-weight:600}
.ap__reply small{display:block;font-weight:500;color:var(--ink-soft)}
.ap__reply textarea{width:100%;padding:8px 12px;border:1.5px solid var(--sky-deep);border-radius:12px;font:inherit;font-size:15px;font-weight:400;resize:vertical;background:#fff}
/* Happy Birthday: a party hat behind the member's own photo (bday.js hat(); owner 2026-11-20, replaced the cake badge).
   Placed in % of the (square) photo box: its base centre sits halfway out from the middle at 1 o'clock, tilted 30deg,
   so both base corners stay under the photo (owner: no corner may show) */
.has-bdhat{position:relative}
.bdhat{position:absolute;z-index:0;left:37.5%;top:-45.4%;width:62%;height:auto;max-width:none;overflow:visible;pointer-events:none;transform:rotate(30deg);transform-origin:50% 90%;animation:bdhatBob 2.6s ease-in-out infinite}
.h2avw.has-bdhat{align-self:flex-start}
.h2avw.has-bdhat .h2av{position:relative;z-index:1}
.bdhatw{position:relative;display:inline-flex;flex:none;line-height:0}
.bdhatw>:not(.bdhat){position:relative;z-index:1}
@keyframes bdhatBob{50%{transform:rotate(25deg)}}
@media (prefers-reduced-motion:reduce){.bdhat{animation:none}}
/* owner 2026-11-26: the reason a moderator gave for hiding your Space post */
.nav__notif-why{color:var(--orange);background:linear-gradient(transparent 55%,rgba(255,214,0,.55) 55%);padding:0 2px;border-radius:2px}
#lg-chips{margin:12px 0 6px}
.phero.panel:has(~ .pmain > .mtabs:not([hidden])){margin-bottom:4px}
#m-box{margin-top:2px}
:is(#board,#fboard) :is(.board__face,.board__name,.board__who b),.fp__by > img:first-child,.fp__by .fp__faces > :first-child,.fp__nm,#fs-list [data-member] .fcm__face,#fs-list [data-member] .fcm__by b{cursor:pointer}
@keyframes bdgSwing{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@keyframes bdgDot{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-2.4px)}}
@keyframes bdgTilt{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
@keyframes bdgSing{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg) scale(1.05)}}
@keyframes bdgShout{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(3deg) scale(1.06)}}
@keyframes bdgWaves{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes bdgFloat{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-2px) rotate(3deg)}}
@keyframes bdgFlick{from{transform:scale(.85,1.1)}to{transform:scale(1.1,.9)}}
@keyframes bdgWater{0%,100%{transform:translateX(0)}50%{transform:translateX(-3px)}}
@keyframes bdgFlag{0%,100%{transform:skewY(0)}50%{transform:skewY(-8deg) scaleX(.92)}}
@keyframes bdgFire{from{transform:scale(.94,1.04) rotate(-2deg)}to{transform:scale(1.05,.96) rotate(2deg)}}
@keyframes bdgBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes bdgQ{0%,100%{opacity:1}50%{opacity:.55}}
@keyframes bdgBeat{0%,40%,100%{transform:scale(1)}20%{transform:scale(1.14)}30%{transform:scale(.96)}}
@keyframes bdgTick{0%{stroke-dashoffset:22}40%,80%{stroke-dashoffset:0}100%{stroke-dashoffset:22}}
@keyframes bdgShine{0%{transform:translateX(0) skewX(-20deg)}60%,100%{transform:translateX(150px) skewX(-20deg)}}
@keyframes bdgSpin{to{transform:rotate(360deg)}}
@keyframes bdgSpark{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1.1)}}
@keyframes bdgGlow{0%,100%{filter:drop-shadow(0 0 4px rgba(255,195,0,.5))}50%{filter:drop-shadow(0 0 14px rgba(255,195,0,.95))}}
@keyframes bdgCrown{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-3px) rotate(4deg)}}
/* the card takes focus on open: no ring at its corners */
@media (max-width:640px){.bdlg.bdet,.bdlg.bnew{width:calc(100% - 32px);max-width:400px;margin:auto}.bdet .bdlg__card,.bnew .bdlg__card{border-radius:24px}}
@keyframes bnewPop{from{transform:scale(.2) rotate(-20deg);opacity:0}to{transform:none;opacity:1}}
@keyframes bnewBurst{from{transform:rotate(var(--a)) translateY(0);opacity:1}to{transform:rotate(var(--a)) translateY(-130px);opacity:0}}
