:root {
  color-scheme:light; --bg:#fffafb; --paper:#fff; --ink:#281b35; --muted:#6d5e74; --accent:#9b315f;
  --action:#96385f; --action-text:white; --stroke:#e6dbe4; --wash:#f7ecf2; --blush:#fff4f7;
  font:100%/1.6 "RF Inter","RF Noto Thai",system-ui,sans-serif; color:var(--ink); background:var(--bg);
}
:root[data-theme=dark] {
  color-scheme:dark; --bg:#211a29; --paper:#302536; --ink:#fbf0f6; --muted:#c6b4c9; --accent:#f2a5c8;
  --action:#efa0c3; --action-text:#321627; --stroke:#524155; --wash:#443043; --blush:#382738;
}
* {box-sizing:border-box}
body {margin:0}
h1,h2,h3,p,dl,figure {margin:0}
button,input {font:inherit}
button,a {cursor:pointer; -webkit-tap-highlight-color:transparent}
a {color:inherit; text-decoration:none}
button {color:inherit; border:0; background:none}
button:focus-visible,a:focus-visible,input:focus-visible {outline:3px solid var(--accent); outline-offset:4px}
[hidden] {display:none!important}
.wrap {width:min(1192px,calc(100% - clamp(32px,8vw,136px))); margin-inline:auto}
#header {background:var(--paper); border-bottom:1px solid var(--stroke)}
.head,.head nav,.tools,.brand,.btn,.account,.actions,.poster-tag,.poster-head,.foot,.poster-base {display:flex; align-items:center}
.head {min-height:76px; gap:clamp(22px,4vw,70px)}
.brand {font-size:1.24rem; letter-spacing:-.055em; font-weight:750; gap:.22em; white-space:nowrap}
.brand img {object-fit:contain; margin-right:4px}.brand b {color:var(--accent);font-weight:750}
.head nav {gap:26px; align-self:stretch;align-items:stretch}
.head nav a {display:grid; align-items:center; position:relative; font-weight:600; font-size:.92rem; color:var(--muted)}
.head nav a[aria-current] {color:var(--accent)}
.head nav a[aria-current]:after {content:"";position:absolute;bottom:12px; height:2px; left:0;right:0;background:var(--accent);border-radius:2px}
.tools {margin-left:auto;gap:10px}
.locale,.round,.account {border:1px solid var(--stroke);border-radius:9px; background:var(--paper); min-height:38px}
.round {display:inline-grid;place-items:center;width:38px}
.locale {display:flex;align-items:center;gap:5px;padding:4px 9px;font-size:.875rem;color:var(--muted)}
.locale i {font-style:normal;opacity:.5}.locale .active {color:var(--accent);font-weight:750}
.account {padding:5px 12px;gap:6px;color:var(--accent);background:var(--blush);font-weight:650;font-size:.9rem}
.tools .google-signin {padding:0;width:40px;height:40px;border:0;border-radius:4px;background:transparent}
.google-signin img {width:40px;height:40px;display:block}
.google-avatar {width:26px;height:26px;object-fit:cover;border-radius:50%}
.account span {max-width:11em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.google-details {overflow-wrap:anywhere}.google-details .google-avatar {width:52px;height:52px}
.google-details p {margin:4px 0}.google-status:empty {display:none}
.icon {width:1.15em;height:1.15em;flex:none}
.hero {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(28px,5vw,80px);padding:clamp(48px,6vw,90px) 0}
.eyebrow {display:flex;align-items:center;gap:9px;font-size:.79rem;letter-spacing:.085em;font-weight:750;color:var(--accent);text-transform:uppercase}
.eyebrow i {display:inline-block;width:21px;height:2px;background:currentColor;border-radius:2px}
h1,h2,h3 {line-height:1.24;letter-spacing:-.045em}
.hero h1 {font-size:clamp(3.3rem,5.4vw,5.1rem);line-height:1.12;margin:22px 0}
:lang(th) h1,:lang(th) h2,:lang(th) h3 {letter-spacing:-.035em;line-height:1.4}
h1 em {font-style:normal;color:var(--accent)}
.lead,.guide-copy p,.support-body p:not(.eyebrow),.editor>p,dialog>p:not(.eyebrow) {color:var(--muted)}
.lead {font-size:1.08rem;max-width:55ch}
.actions {gap:12px;flex-wrap:wrap}
.intro .actions {margin:28px 0 16px}
.btn {display:inline-flex;justify-content:center;gap:8px;min-height:46px;padding:10px 19px;border-radius:11px;font-weight:650;font-size:.96rem;text-align:center}
.btn.primary {background:var(--action);color:var(--action-text);border:1px solid transparent}
.btn.secondary {background:var(--paper);border:1px solid var(--stroke)}
.btn:hover,.tools button:hover {filter:brightness(.95)}
.store-note,.foot,.hint,figcaption,.form-end small {color:var(--muted);font-size:.875rem}
.store-note {display:flex;align-items:center;gap:8px}.store-note i {width:7px;height:7px;border-radius:50%;background:#ab7756}
.poster,.support-art {isolation:isolate;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 75%,#966caf 0%,#5c436f 45%,#352b45 78%,#2a223b 100%); color:#fff}
.poster {aspect-ratio:1.36;border:5px solid #fff7fc;outline:1px solid var(--stroke);border-radius:24px;box-shadow:0 16px 32px -24px #552749; container-type:inline-size}
.poster-head,.poster-base {position:absolute;left:5%;right:5%;justify-content:space-between;z-index:3}
.poster-head {top:6%}.poster-tag {gap:7px;padding:4px 9px;border:1px solid #ffffff42;background:#241d3157;border-radius:6px;letter-spacing:.12em;font-size:.7rem;font-weight:650}
.lights {display:flex;gap:5px}.lights i {width:5px;height:5px;border-radius:50%;background:#dcadcf}.lights i:first-child {background:#897794}.lights i:last-child {background:#f7d898}
.orbit {position:absolute;border:1px dashed #f9d6fb44;border-radius:50%;width:78%;height:47%;top:25%;left:11%;transform:rotate(-18deg)}
.o2 {transform:rotate(21deg);width:65%;left:17%;height:52%;border-style:solid;border-color:#ffdeff17}
.floor {position:absolute;inset:65% -40% -65%;background-image:linear-gradient(#f2c2f82c 1px,transparent 1px),linear-gradient(90deg,#f2c2f82c 1px,transparent 1px);background-size:36px 25px;transform:perspective(170px) rotateX(55deg);transform-origin:50% 0;mask-image:linear-gradient(transparent,black 22%)}
.stars {position:absolute;inset:0;opacity:.35;background:radial-gradient(1px 1px at 28% 30%,#fff 95%,transparent),radial-gradient(1px 1px at 15% 55%,#fff 95%,transparent);background-size:70px 77px,109px 91px}
.shadow {position:absolute;left:17%;right:13%;height:11%;top:71%;background:#28193178;border-radius:50%;filter:blur(9px)}
.mascot {position:absolute;object-fit:contain;filter:drop-shadow(0 9px 5px #28183460)}
.mascot.pink {width:39%;height:51%;left:30%;top:28%;transform:rotate(-7deg)}
.mascot.ghost {width:26%;height:39%;left:9%;top:30%;transform:rotate(-13deg)}
.mascot.king {width:29%;height:40%;right:8%;top:44%;transform:rotate(9deg)}
.spark {position:absolute;color:#f4d6a1;line-height:1}.s1{left:24%;top:21%;font-size:6cqw}.s2{right:23%;top:26%;font-size:4cqw}.s3{left:18%;top:70%;font-size:4cqw}.s4{right:10%;top:38%;font-size:2cqw}
.poster-base {bottom:6%;align-items:flex-end}.poster-base strong {font-size:clamp(.75rem,2.4cqw,1rem);letter-spacing:.18em}
.keys {display:flex;gap:5px}.keys span {border-radius:50%;width:21px;height:21px;display:grid;place-items:center;background:#33283f;color:#f1c778;border:1px solid #bca47e;font-size:11px;font-weight:750}.keys span:nth-child(2){color:#a5d4f4}.keys span:nth-child(3){color:#ffa7c8}.keys span:last-child{color:#a9e9c8}
#setup {border-top:1px solid var(--stroke);padding:42px 0 64px;scroll-margin:20px}
h2 {font-size:clamp(1.65rem,3vw,2.45rem)}.section-head h2 {margin:8px 0 22px}
#guide,.panel,.support-card {background:var(--paper);border:1px solid var(--stroke);border-radius:18px;overflow:hidden}
.guide-menu {display:flex;border-bottom:1px solid var(--stroke)}
.guide-menu button {flex:1;font-weight:650;color:var(--muted);min-height:52px;border-bottom:3px solid transparent;display:flex;align-items:center;justify-content:center;gap:10px}
.guide-menu button[aria-pressed=true] {background:var(--blush);border-bottom-color:var(--accent);color:var(--accent)}
.guide-menu span {font-size:.78rem;letter-spacing:.06em}
.guide-detail {display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,70px);align-items:center;padding:clamp(22px,3.5vw,44px)}
.guide-copy h3 {font-size:1.65rem;margin:10px 0}.guide-copy p {max-width:50ch}
figure {padding:16px;background:var(--wash);border-radius:12px;text-align:center}
figure img {display:block;max-width:100%;height:155px;object-fit:contain;margin:auto;border-radius:5px}
figcaption {margin-top:8px;font-size:.78rem}
footer {border-top:1px solid var(--stroke);background:var(--paper)}
.foot {gap:20px;min-height:76px;flex-wrap:wrap;padding-block:12px}.foot a:last-child {margin-left:auto;color:var(--accent)}.foot .brand {font-size:1.02rem}.foot .brand img {width:26px;height:26px}
.donation {padding:48px 0 64px}.donation h1 {font-size:clamp(2.1rem,4vw,3.65rem);margin:8px 0}
.donation-heading>.lead {max-width:70ch}.steps {display:flex;align-items:center;list-style:none;gap:24px;padding:0;margin:25px 0}
.steps li {display:flex;align-items:center;gap:7px;font-size:.9rem;color:var(--muted)}.steps b {display:grid;place-items:center;background:var(--wash);border-radius:50%;width:26px;height:26px}
.steps [aria-current] {font-weight:700;color:var(--accent)}.steps [aria-current] b {background:var(--action);color:var(--action-text)}
.donate-grid {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:24px;align-items:start}
.panel,.support-body {padding:clamp(20px,2.8vw,36px)}.editor h2,.support-body h2,dialog h2 {font-size:1.55rem}
fieldset {border:0;padding:0;margin:0 0 26px;min-width:0}legend {font-weight:700;font-size:1.12rem;padding:0}
.hint {margin:2px 0 9px}.chips,.methods {display:flex;gap:8px;flex-wrap:wrap}
.chips label,.methods label {position:relative;cursor:pointer}
.chips input,.methods input {position:absolute;opacity:0;width:1px;height:1px}
.chips span,.methods span {display:flex;align-items:center;justify-content:center;gap:8px;background:var(--paper);border:1px solid var(--stroke);border-radius:9px;min-height:44px;padding:8px 15px;font-weight:600;font-size:.93rem}
input:checked+span {background:var(--blush);border-color:var(--accent);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
input:focus-visible+span {outline:3px solid var(--accent);outline-offset:2px}
#custom-wrap {margin-top:12px}#custom-wrap label {margin-right:10px}#custom {width:145px;border:1px solid var(--stroke);border-radius:8px;background:var(--paper);color:var(--ink);padding:8px}
.error {margin-top:5px;color:var(--accent)}.methods {margin-top:10px}.methods label {flex:1}.methods span {justify-content:flex-start}
.methods i {margin-left:auto;border-radius:50%;width:13px;height:13px;border:1px solid var(--muted)}.methods input:checked+span i {background:var(--accent);border:3px solid var(--paper);outline:1px solid var(--accent)}
.form-end {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid var(--stroke)}
.form-end strong {font-size:1.6rem;display:block}.support-art {height:140px;display:flex;align-items:center;justify-content:center;gap:20px;background-image:radial-gradient(ellipse at 50% 100%,#9875a9,#544164 65%,#32283e)}
.support-art img {height:95px;filter:drop-shadow(0 5px 4px #2f213871)}.support-art span {color:#eed4a5;font-size:1.7rem}.support-body .eyebrow {margin-bottom:4px}.support-body>p,.support-body>.btn {margin-top:12px}
.rows {margin:16px 0}.rows>div {display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-bottom:1px solid var(--stroke)}
.rows dt {color:var(--muted)}.rows dd {margin:0;text-align:right;font-weight:650}
.note {background:var(--blush);border-radius:10px;padding:14px;margin:14px 0 20px}
.success-mark {color:var(--accent);background:var(--wash);border-radius:50%;display:grid;place-items:center;height:42px;width:42px;margin-bottom:10px;font-size:1.5rem}
dialog {width:min(425px,calc(100% - 32px));max-height:90dvh;border:1px solid var(--stroke);border-radius:18px;background:var(--paper);color:var(--ink);padding:28px;box-shadow:0 16px 65px #160b2840}
dialog::backdrop {background:#1a0e298c}.dismiss {position:absolute;right:14px;top:14px}.modal-pet {width:72px;height:72px;object-fit:contain}
dialog h2 {margin:4px 0 9px}dialog>.btn {margin-top:15px}
@media(max-width:850px) {
  .head {gap:18px}.head nav {gap:13px}.tools {gap:5px}
  .hero {gap:25px}.poster {aspect-ratio:1.12}.hero h1 {font-size:3.2rem}.lead {font-size:1rem}
  .intro .actions {gap:7px}.intro .btn {padding:9px 12px}.donate-grid {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px}
}
@media(max-width:680px) {
  .head {flex-wrap:wrap;gap:0;min-height:0;padding-top:12px}.head nav {order:3;width:100%;gap:25px;height:46px}.head nav a[aria-current]:after {bottom:0}.brand {font-size:1.12rem}.account span {display:none}.account {padding:8px}.tools {gap:6px}
  .hero {grid-template-columns:1fr;gap:28px;padding:36px 0}.hero h1 {font-size:clamp(3rem,9.4vw,4rem);margin:16px 0}.intro .actions {margin:18px 0 10px}.poster {aspect-ratio:1.5}
  #setup {padding:28px 0 40px}.guide-menu button {font-size:.88rem;line-height:1.4;padding:9px 5px;gap:4px;flex-direction:column}.guide-detail {grid-template-columns:1fr;gap:18px}
  .foot {gap:8px 14px}.donation {padding:30px 0 42px}.donate-grid {grid-template-columns:1fr}.steps {gap:14px}
}
@media(max-width:390px) {.head .brand img {width:27px}.methods {flex-direction:column}.form-end {flex-wrap:wrap}.chips span {padding:8px 11px}.poster-tag {font-size:.6rem}.keys span {width:17px;height:17px}}
