@import "https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&display=swap";
:root{--navy:#101e34;--deep:#0c1627;--paper:#fff9ef;--muted:#738098;--pink:#f75d79;--orange:#ffb15b}*{box-sizing:border-box}body{background:var(--paper);color:var(--navy);margin:0;font-family:Kanit,system-ui,sans-serif}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}main{min-height:100vh;position:relative;overflow:hidden}.ambient{z-index:-1;filter:blur(70px);pointer-events:none;border-radius:50%;position:absolute}.ambient-one{background:#ffe2c4;width:380px;height:380px;top:0;right:-100px}.ambient-two{background:#ffe5eb;width:250px;height:250px;top:600px;left:-130px}.topbar{justify-content:space-between;align-items:center;max-width:1240px;height:88px;margin:auto;padding:0 26px;display:flex}.brand{color:var(--navy);align-items:center;gap:11px;font-size:22px;font-weight:800;line-height:1;text-decoration:none;display:flex}.brand strong{color:#f35f73}.brand small{letter-spacing:2px;color:var(--muted);margin-top:5px;font-size:10px;font-weight:500;display:block}.brand-icon{font-size:35px}.top-actions{align-items:center;gap:14px;display:flex}.status{color:#2c9c7e;background:#e7f7eb;border-radius:30px;padding:8px 13px;font-size:11px;font-weight:700}.status i{background:#32ba89;border-radius:50%;width:6px;height:6px;margin-right:5px;display:inline-block}.coin{color:#ab762e;background:#fffcf3;border:1px solid #f4d9b6;border-radius:14px;padding:10px 15px;font-weight:700}.coin small{color:#9f927c;margin-left:7px;font-size:10px;font-weight:400}.hero{color:#fff;background:linear-gradient(105deg,#132a41 7%,#1b4050 65%,#2d6370);border-radius:32px;max-width:1188px;min-height:400px;margin:20px auto 64px;padding:60px;display:flex;position:relative;overflow:hidden;box-shadow:0 22px 55px #21334a23}.hero:before{content:"";opacity:.15;background:radial-gradient(circle at 80% 35%,#fff3c2,#0000 55%);position:absolute;inset:0}.hero-text{z-index:2;max-width:620px;position:relative}.eyebrow{letter-spacing:2px;color:#e7a95c;align-items:center;gap:8px;font-size:11px;font-weight:700;display:flex}.hero h1{margin:16px 0;font-size:clamp(36px,4.5vw,64px);line-height:1.17}.hero h1 span{color:#f7b75e}.hero p{color:#c7d9df;max-width:470px;font-size:14px;line-height:2}.hero-badges{flex-wrap:wrap;gap:9px;margin-top:24px;display:flex}.hero-badges span{background:#ffffff17;border:1px solid #ffffff27;border-radius:20px;padding:8px 12px;font-size:11px}.hero-art{text-align:center;position:absolute;top:12%;right:12%}.ferris{filter:drop-shadow(0 18px 20px #091523);font-size:175px;display:block}.booth{font-size:100px;position:absolute;bottom:-30px;right:-95px}.hero-star{color:#ffcb68;font-size:30px;position:absolute}.star-one{top:20px;left:-30px}.star-two{top:0;right:0}.hero-chip{color:#27465a;background:#fff8ec;border-radius:14px;min-width:230px;padding:13px;font-size:13px;font-weight:700;position:absolute;bottom:-22px;left:0;box-shadow:0 10px 25px #0003}.section-heading{justify-content:space-between;align-items:end;max-width:1188px;margin:0 auto 25px;display:flex}.section-heading h2{margin:5px 0 3px;font-size:30px}.section-heading p{color:var(--muted);margin:0;font-size:13px}.player-tag{color:#8b8f9a;font-size:11px}.games{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1188px;margin:0 auto;display:grid}.game-card{background:#fff;border:1px solid #f3e9df;border-radius:22px;transition:transform .2s;overflow:hidden;box-shadow:0 10px 25px #172e3a08}.game-card:hover{transform:translateY(-4px)}.game-banner{background:#ffe0e2;justify-content:center;align-items:center;height:152px;display:flex;position:relative}.rose .game-banner{background:linear-gradient(140deg,#ffd7cf,#ffb5c9)}.orange .game-banner{background:linear-gradient(140deg,#ffe3ba,#ffc48d)}.mint .game-banner{background:linear-gradient(140deg,#bcefe5,#a7e7ce)}.violet .game-banner{background:linear-gradient(140deg,#ddd3ff,#c9c0ff)}.blue .game-banner{background:linear-gradient(140deg,#c8efff,#a6daf8)}.game-emoji{filter:drop-shadow(0 9px 6px #102b4520);font-size:88px}.mini-tag{color:#3f5564;background:#fffd;border-radius:20px;padding:5px 11px;font-size:10px;font-weight:600;position:absolute;top:12px;right:13px}.game-body{padding:21px 22px 23px}.game-body small{color:#e6945f;letter-spacing:1.5px;font-size:10px;font-weight:700}.game-body h3{margin:5px 0;font-size:20px}.game-body p{color:var(--muted);min-height:44px;font-size:12px}.game-body button,.primary{color:#fff;background:#ed6576;border:0;border-radius:11px;justify-content:center;align-items:center;gap:9px;width:100%;height:42px;margin-top:12px;font-size:12px;font-weight:700;display:flex}.game-body button:disabled{color:#9da4ad;opacity:1;background:#f2f3f5}.bottom-features{border-block:1px solid #eae6de;justify-content:space-around;max-width:1188px;margin:60px auto;padding:27px;display:flex}.bottom-features>div{grid-template-columns:36px auto;align-items:center;column-gap:12px;display:grid}.bottom-features svg{color:#e7a358;grid-row:span 2;width:28px;height:28px}.bottom-features strong{font-size:14px}.bottom-features small{color:var(--muted);font-size:10px}footer{text-align:center;color:#97a0ac;margin-bottom:28px;font-size:11px}.error{color:#a92138;background:#fff0ee;border:1px solid #ffd5d6;border-radius:12px;max-width:1188px;margin:12px auto;padding:12px 18px}.error button{color:#a92138;background:0 0;border:none;text-decoration:underline}.play-layout{grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:20px;max-width:1188px;margin:32px auto;display:grid}.play-area,.score-side{background:#fff;border:1px solid #ede5d8;border-radius:25px;padding:22px;box-shadow:0 14px 35px #172e3a0a}.play-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;font-weight:700;display:flex}.back{color:#60748c;background:0 0;border:none;font-size:12px}.game-stage{background:#123a41;border-radius:18px;justify-content:center;align-items:center;width:100%;height:450px;display:flex;overflow:hidden}.play-hint{color:#71869b;align-items:center;gap:8px;margin:17px 0 0;font-size:12px;display:flex}.side-label{color:#7d8ea5;letter-spacing:2px;font-size:11px}.score-value{color:#fa9b4d;font-size:68px;font-weight:700}.score-value span{letter-spacing:1px;color:#94a0ad;font-size:11px}.progress-track{background:#f2ece5;border-radius:20px;height:9px;overflow:hidden}.progress-track div{background:#f3a75d;height:100%;transition:width .2s}.score-side p{color:#94a0ad;font-size:12px}.result-msg{color:#9d6b31;text-align:center;background:#fff9eb;border-radius:12px;min-height:70px;margin:35px 0 16px;padding:14px;font-weight:600}.finish{color:#d48c31;flex-direction:column;align-items:center;gap:6px;padding:15px;display:flex}.finish span{font-size:12px}.score-side .primary{font-size:13px}.note{color:#97a0ad;text-align:center;margin-top:19px;font-size:11px;line-height:1.7}@media (max-width:950px){.hero-art{opacity:.6;right:2%}.games{grid-template-columns:repeat(2,1fr)}.hero,.games,.section-heading,.play-layout,.bottom-features{margin-left:20px;margin-right:20px}}@media (max-width:650px){.topbar{height:74px;padding:0 15px}.brand{font-size:15px}.brand-icon{font-size:25px}.status{font-size:9px}.coin small,.player-tag{display:none}.hero{min-height:355px;margin:8px 12px 40px;padding:43px 24px}.hero h1{font-size:37px}.hero-art{opacity:.22;right:-80px}.hero-badges span{font-size:9px}.section-heading{margin:0 15px 20px}.section-heading h2{font-size:23px}.games{grid-template-columns:1fr;gap:15px;margin:0 15px}.game-banner{height:135px}.play-layout{grid-template-columns:1fr;margin:10px}.game-stage{height:300px}.bottom-features{flex-direction:column;gap:14px;margin:36px 12px}.bottom-features>div{justify-content:start}}
body,button,input{font-family:Kanit,Noto Sans Thai,Sarabun,Tahoma,Arial,system-ui,sans-serif}.toolbar-btn{color:#244355;background:#fffaf3;border:1px solid #e7ded4;border-radius:11px;justify-content:center;align-items:center;gap:7px;padding:9px 12px;font-size:12px;font-weight:600;display:inline-flex}.toolbar-btn:hover{background:#f8efe3}.history-link{width:100%;margin-top:12px}.modal-backdrop{z-index:1000;background:#0b2039a6;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.account-modal{background:#fffdf8;border-radius:22px;width:min(100%,500px);max-height:min(86vh,760px);padding:26px;overflow:auto;box-shadow:0 30px 110px #0005}.modal-heading{justify-content:space-between;align-items:center;gap:15px;display:flex}.modal-heading h2{margin:0;font-size:23px}.close-modal{color:#41546a;background:#f4eae2;border:0;border-radius:10px;width:36px;height:36px;font-size:16px}.account-modal label{margin:14px 0 6px;font-size:12px;font-weight:650;display:block}.account-modal input{color:#14243b;background:#fff;border:1px solid #d9d6d1;border-radius:11px;width:100%;padding:12px;font-size:15px}.account-modal input:focus{outline-offset:2px;outline:2px solid #e89b57}.account-modal .primary{font-size:13px}.auth-switch{background:#f4f0ea;border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;margin:19px 0;padding:5px;display:grid}.auth-switch button{background:0 0;border:0;border-radius:8px;padding:10px;font-size:13px;font-weight:600}.auth-switch button.active{color:#db697a;background:#fff;box-shadow:0 2px 6px #0001}.muted{color:#77879b;font-size:12px;line-height:1.8;display:block}.history-total{background:#fdf1db;border-radius:12px;justify-content:space-between;align-items:center;padding:16px;font-size:13px;display:flex}.history-total strong{color:#a97128;font-size:26px}.history-list{flex-direction:column;gap:5px;max-height:380px;margin:15px 0;display:flex;overflow:auto}.history-row{border-bottom:1px solid #eee4db;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.history-row strong{font-size:13px;display:block}.history-row small{color:#81909c;margin-top:3px;font-size:11px;display:block}.history-row b{font-size:17px}.history-row .plus{color:#298d70}.history-row .minus{color:#b86352}@media (max-width:750px){.top-actions{gap:5px}.top-actions .toolbar-btn{padding:8px}.top-actions .toolbar-btn span{display:none}.top-actions .coin{padding:8px;font-size:12px}.account-modal{padding:18px}}.version-indicator{color:#213e59;white-space:nowrap;font-variant-numeric:tabular-nums;background:#eaf2fb;border:1px solid #cddbe8;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:94px;padding:7px 10px;line-height:1;display:inline-flex}.version-label{color:#617b93;font-size:10px;font-weight:600}.version-indicator strong{letter-spacing:.25px;font-size:16px;font-weight:800}@media (max-width:750px){.top-actions .status{display:none}.version-indicator{border-radius:9px;min-width:auto;padding:9px 7px}.version-indicator .version-label{display:none}.version-indicator strong{font-size:12px}}.storage-notice{color:#754e24;background:#fff2df;border:1px solid #e9cf9e;border-radius:12px;align-items:center;gap:10px;max-width:1188px;margin:0 auto 12px;padding:10px 15px;font-size:12px;line-height:1.65;display:flex}.storage-notice svg{flex:none}.storage-notice.persistent{color:#246d51;background:#e8f6f0;border-color:#b2dec8}@media (max-width:950px){.storage-notice{margin:0 20px 14px}}@media (max-width:650px){.storage-notice{margin:0 12px 14px;font-size:11px}}
:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--paper:#0a1020;--navy:#edf4ff;--deep:#080e1b;--muted:#a0b1ca;--pink:#fa7995;--orange:#ffc27b}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#fff9ef;--navy:#101e34;--deep:#0c1627;--muted:#738098;--pink:#f75d79;--orange:#ffb15b}body{transition:background-color .18s,color .18s}.theme-toggle{white-space:nowrap;min-width:102px}.theme-toggle:focus-visible,button:focus-visible,.brand:focus-visible{outline-offset:3px;outline:3px solid #e5ad74}:root[data-theme=dark] .ambient-one{opacity:.5;background:#183f5d}:root[data-theme=dark] .ambient-two{opacity:.34;background:#492b64}:root[data-theme=dark] .brand small{color:#9cacc6}:root[data-theme=dark] .brand strong{color:#ff829b}:root[data-theme=dark] .toolbar-btn{color:#d9e6fa;background:#1b2940;border-color:#3c4e68}:root[data-theme=dark] .toolbar-btn:hover{background:#293e59;border-color:#6b849f}:root[data-theme=dark] .toolbar-btn:active{background:#354c69}:root[data-theme=dark] .version-indicator{color:#ddedff;background:#182f48;border-color:#426180}:root[data-theme=dark] .version-label{color:#a8bfd7}:root[data-theme=dark] .status{color:#8dedc9;background:#143e38}:root[data-theme=dark] .status i{background:#4ad1a0}:root[data-theme=dark] .coin{color:#ffd794;background:#33271c;border-color:#665033}:root[data-theme=dark] .coin small{color:#d7c39f}:root[data-theme=dark] .hero{background:linear-gradient(110deg,#13283f 3%,#1a354c 49%,#31506a 100%);border:1px solid #38556a;box-shadow:0 25px 60px #0006}:root[data-theme=dark] .hero-chip{color:#ffdfaa;background:#1b344b;border:1px solid #48657a}:root[data-theme=dark] .section-heading h2{color:#eff5ff}:root[data-theme=dark] .player-tag{color:#9eaeca}:root[data-theme=dark] .game-card{background:#131f32;border-color:#30415a;box-shadow:0 14px 38px #0005}:root[data-theme=dark] .game-card:hover{border-color:#6686a4;box-shadow:0 18px 40px #0008}:root[data-theme=dark] .game-body h3{color:#f1f6ff}:root[data-theme=dark] .game-body small{color:#ffb47c}:root[data-theme=dark] .game-body button:disabled{color:#9eacc0;background:#263246}:root[data-theme=dark] .bottom-features{border-color:#293952}:root[data-theme=dark] footer{color:#96abc6}:root[data-theme=dark] .play-area,:root[data-theme=dark] .score-side{background:#142137;border-color:#30435e;box-shadow:0 14px 35px #0004}:root[data-theme=dark] .back{color:#aed2ed}:root[data-theme=dark] .play-hint{color:#b0c2d8}:root[data-theme=dark] .side-label{color:#a2b7d1}:root[data-theme=dark] .score-value span,:root[data-theme=dark] .score-side p,:root[data-theme=dark] .note{color:#b6c8dc}:root[data-theme=dark] .progress-track{background:#334157}:root[data-theme=dark] .result-msg{color:#ffd28d;background:#3c2c25;border:1px solid #67503c}:root[data-theme=dark] .finish{color:#ffc27b}:root[data-theme=dark] .modal-backdrop{background:#030a17d9}:root[data-theme=dark] .account-modal{color:#edf4ff;background:#17233a;border:1px solid #43556c;box-shadow:0 30px 120px #000a}:root[data-theme=dark] .close-modal{color:#e1edff;background:#293a51}:root[data-theme=dark] .close-modal:hover{background:#394e68}:root[data-theme=dark] .account-modal input{color:#f1f7ff;background:#0d192b;border-color:#50657e}:root[data-theme=dark] .account-modal input:focus{outline-color:#ffbf72}:root[data-theme=dark] .auth-switch{background:#0f1b2e}:root[data-theme=dark] .auth-switch button{color:#bdd0e7}:root[data-theme=dark] .auth-switch button.active{color:#ffc0ce;background:#2d3d56;box-shadow:0 2px 8px #0005}:root[data-theme=dark] .muted,:root[data-theme=dark] .history-row small{color:#aec1d8}:root[data-theme=dark] .history-total{color:#ebf3ff;background:#3b3028}:root[data-theme=dark] .history-total strong{color:#ffcf8c}:root[data-theme=dark] .history-row{border-bottom-color:#304157}:root[data-theme=dark] .history-row .plus{color:#79dfbc}:root[data-theme=dark] .history-row .minus{color:#ff9d91}:root[data-theme=dark] .storage-notice{color:#ffddb2;background:#422b22;border-color:#785443}:root[data-theme=dark] .storage-notice.persistent{color:#b5f1d8;background:#15382f;border-color:#326f59}:root[data-theme=dark] .error{color:#ffb6b6;background:#46242f;border-color:#87485b}:root[data-theme=dark] .error button{color:#ffd0d0}@media (max-width:750px){.theme-toggle{min-width:0}}@media (max-width:650px){.topbar{flex-direction:column;justify-content:center;align-items:stretch;gap:10px;height:auto;min-height:115px;padding:13px 15px;display:flex}.brand{align-self:flex-start}.top-actions{justify-content:space-between;align-items:center;gap:5px;display:flex}.top-actions .toolbar-btn{min-width:35px;min-height:36px}.top-actions .coin{white-space:nowrap}}@media (prefers-reduced-motion:reduce){body,.game-card{transition:none}}
