:root{--orange:#ff6b25;--orange-deep:#f04b26;--ink:#192032;--muted:#858995;--paper:#fff;--warm:#fff8f1;--line:#f0eee9;--shadow:0 10px 30px rgba(46,37,28,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#faf8f6;color:var(--ink);font-family:"Noto Sans Thai",Thonburi,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.site-shell{max-width:1180px;min-height:100vh;margin:auto;background:#fff;box-shadow:0 0 50px rgba(58,38,24,.06);padding-bottom:90px}.site-header{background:rgba(255,255,255,.95);position:sticky;top:0;z-index:15;backdrop-filter:blur(16px)}.header-row{height:76px;display:flex;align-items:center;gap:24px;padding:0 36px}.brand{border:0;background:none;display:flex;gap:12px;align-items:center;padding:0;text-align:left;flex:0 0 auto}.brand-mark{width:48px;height:42px;position:relative;display:block}.brand-mark span{display:block;position:absolute;background:var(--orange);border-radius:3px 9px 1px 2px;box-shadow:inset -3px -3px 0 rgba(255,255,255,.22)}.brand-mark span:nth-child(1){width:20px;height:33px;left:4px;top:4px;transform:skewY(12deg)}.brand-mark span:nth-child(2){width:20px;height:33px;right:4px;top:4px;transform:skewY(-12deg);border-radius:9px 3px 2px 1px}.brand-mark span:nth-child(3){width:46px;height:4px;left:1px;bottom:1px;border-radius:50% 50% 4px 4px;background:#f0501d}.brand-copy{display:flex;flex-direction:column;line-height:1.12}.brand-name{font-family:Arial,sans-serif;font-size:26px;font-weight:800;letter-spacing:-1px;color:#101116;white-space:nowrap}.brand-name em{font-style:normal;color:var(--orange)}.brand-copy small{font-size:13px;color:#242424;font-weight:600;margin-top:4px}.search-prompt{height:46px;max-width:500px;flex:1;border:0;border-radius:99px;background:#f5f4f3;display:flex;align-items:center;gap:12px;color:#8f9198;text-align:left;padding:0 18px;overflow:hidden}.search-prompt span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-prompt svg{flex:0 0 23px;color:#71747a}.icon-button{background:none;border:0;display:grid;place-items:center;width:38px;height:42px;position:relative;color:#171d29}.notification i{position:absolute;right:5px;top:5px;width:8px;height:8px;background:#ff3e48;border-radius:50%;box-shadow:0 0 0 2px #fff}.top-tabs{display:flex;align-items:center;gap:16px;overflow:auto;scrollbar-width:none;padding:8px 36px 16px}.top-tabs::-webkit-scrollbar,.book-scroll::-webkit-scrollbar{display:none}.top-tabs button{border:0;background:none;color:#858993;font-size:16px;font-weight:700;white-space:nowrap;padding:9px 17px;border-radius:99px}.top-tabs button.active{color:#fff;background:linear-gradient(125deg,#ff8b24,#ff6520);box-shadow:0 8px 17px rgba(255,104,33,.2)}main{padding:0 36px 24px}.hero{height:320px;border-radius:16px;overflow:hidden;background:#fae6d9 url('./assets/hero.jpg') center / cover no-repeat;position:relative;box-shadow:var(--shadow)}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 38%,rgba(255,236,223,.1) 54%,rgba(255,244,232,.3) 100%);pointer-events:none}.hero-copy{position:absolute;z-index:1;left:54%;right:5%;top:16%;color:#4c1d16}.hero-kicker{display:inline-flex;align-items:center;gap:4px;color:#fff;background:linear-gradient(110deg,#ff9034,#ff6d21);padding:5px 12px;border-radius:0 0 0 12px;position:absolute;right:-6%;top:-55px;font-size:13px;font-weight:700}.hero-copy h1{font-family:Georgia,"Noto Sans Thai",serif;font-size:clamp(23px,3.2vw,40px);line-height:1.22;margin:12px 0 12px;font-weight:800;letter-spacing:-.04em}.hero-copy p{font-size:15px;line-height:1.65;margin:0 0 18px;max-width:320px}.pill-button,.primary-button{border:0;border-radius:99px;background:linear-gradient(105deg,#ff842a,#ff512a);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(255,103,39,.24);display:inline-flex;align-items:center;gap:7px;padding:10px 22px}.pill-button svg{width:19px;height:19px}.hero-dots{position:absolute;z-index:2;right:20px;bottom:18px;display:flex;gap:7px}.hero-dots button{width:8px;height:8px;background:#d7c8c0;border:0;border-radius:99px;padding:0}.hero-dots button.active{width:20px;background:var(--orange)}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px;padding:19px 10px 15px;border-radius:16px;background:#fff;box-shadow:var(--shadow)}.quick-links button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:8px;color:#30394a;font-size:14px;font-weight:700}.quick-links .quick-icon{width:48px;height:45px;display:grid;place-items:center;color:var(--orange);filter:drop-shadow(0 5px 5px rgba(255,94,38,.15))}.quick-links svg{width:31px;height:31px;stroke-width:2.3}.section{margin-top:18px;background:#fff;border-radius:17px;padding:18px 0 12px;box-shadow:0 7px 32px rgba(41,39,34,.035)}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 12px}.section-title{display:flex;align-items:center;gap:9px;margin:0;font-size:21px;line-height:1.3;font-weight:800}.section-title .badge{width:31px;height:31px;background:linear-gradient(130deg,#ff6842,#fa3644);border-radius:50%;color:#fff;display:grid;place-items:center}.section-title .badge svg{width:19px;height:19px;fill:currentColor;stroke-width:1}.text-link{border:0;background:none;color:#848a95;display:flex;align-items:center;gap:2px;font-size:14px;padding:4px 0}.text-link svg{width:18px;height:18px}.book-scroll{display:flex;overflow-x:auto;gap:14px;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 1px 10px}.book-card{width:145px;flex:0 0 145px;border:0;background:none;padding:0;text-align:left;color:inherit;scroll-snap-align:start}.book-cover{aspect-ratio:2/2.75;width:100%;object-fit:cover;border-radius:8px;box-shadow:0 4px 9px rgba(25,21,19,.12);display:block}.book-card strong{font-size:15px;line-height:1.36;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:9px;min-height:40px}.book-card small{display:block;color:var(--muted);font-size:13px;margin-top:3px}.book-meta{display:flex;gap:5px;align-items:center;color:#8b9098;font-size:12px;margin-top:2px}.book-meta svg{width:14px;height:14px}.update-list{display:flex;flex-direction:column}.update-item{border:0;border-bottom:1px solid var(--line);background:none;display:flex;align-items:center;width:100%;gap:14px;padding:10px 0;text-align:left;color:inherit}.update-item:last-child{border:0}.update-item img{width:64px;height:70px;object-fit:cover;border-radius:8px;flex:0 0 auto}.update-copy{min-width:0;flex:1}.update-copy strong{font-size:15px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.update-copy small{font-size:13px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.update-item time{color:#999da6;font-size:12px;white-space:nowrap;align-self:flex-end;margin-bottom:10px}.new-tag{background:#ff4f51;color:#fff;font-size:10px;font-weight:800;padding:2px 5px;border-radius:4px;margin-left:5px}.reward-banner{margin-top:18px;border-radius:16px;min-height:106px;display:flex;align-items:center;gap:18px;padding:17px 24px;background:radial-gradient(circle at 16% 32%,#ffe0a8,transparent 25%),linear-gradient(105deg,#fff6ec,#ffeddb);overflow:hidden}.gift-art{font-size:58px;line-height:1;filter:drop-shadow(0 6px 5px rgba(236,99,34,.17))}.reward-copy{flex:1}.reward-copy h2{margin:0;font-size:22px;line-height:1.25;color:#9f3d12}.reward-copy h2 b{color:#f05a17}.reward-copy p{margin:4px 0 0;font-size:14px;color:#7a4d37}.reward-copy p b{color:#e8541e}.reward-banner .pill-button{white-space:nowrap}.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1180px);height:74px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.98);border-top:1px solid #f3f1ef;display:flex;box-shadow:0 -8px 26px rgba(29,28,33,.04)}.bottom-nav button{flex:1;border:0;background:none;color:#9499a2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;font-weight:700}.bottom-nav button.active{color:#fb5924}.bottom-nav svg{width:24px;height:24px;stroke-width:1.8}.bottom-nav button.active svg{fill:rgba(255,101,37,.12);stroke-width:2.2}.page-head{padding:12px 0 18px;display:flex;align-items:center;gap:12px}.page-head h1{margin:0;font-size:25px}.page-head p{margin:1px 0 0;color:var(--muted);font-size:13px}.back-button{width:34px;height:34px;display:grid;place-items:center;background:#f6f5f3;border:0;border-radius:50%;flex:0 0 auto}.view{min-height:calc(100vh - 220px)}.search-box{display:flex;align-items:center;gap:10px;border:1.5px solid #f1e2d6;background:#fffaf6;border-radius:14px;padding:0 14px;height:50px}.search-box svg{color:var(--orange);width:21px}.search-box input{outline:none;border:0;background:none;flex:1;min-width:0;color:var(--ink);font-size:15px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 20px}.chip{border:1px solid #eee6e1;background:#fff;border-radius:99px;padding:7px 13px;color:#68707d;font-size:13px}.chip.active{border-color:#ff9c67;background:#fff1e7;color:#e45f22;font-weight:800}.result-count{color:#8c919b;font-size:13px;margin:0 0 10px}.result-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-card{border:1px solid #f0ede9;border-radius:12px;background:#fff;display:flex;gap:12px;padding:10px;text-align:left;color:inherit;min-width:0}.result-card img{width:69px;aspect-ratio:2/3;object-fit:cover;border-radius:7px}.result-card strong{display:block;font-size:14px;line-height:1.38}.result-card small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.result-card p{font-size:12px;color:#626a77;line-height:1.45;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty-state{text-align:center;padding:55px 20px;color:#77808e;border-radius:16px;background:#fff8f3}.empty-state .empty-icon{font-size:45px}.empty-state h2{font-size:19px;color:var(--ink);margin:10px 0 4px}.empty-state p{margin:0 0 15px;font-size:14px}.detail-hero{display:flex;gap:24px;padding:22px;border-radius:17px;background:linear-gradient(125deg,#fff4eb,#fffbf8)}.detail-hero img{width:190px;aspect-ratio:2/3;object-fit:cover;border-radius:10px;box-shadow:0 10px 25px rgba(39,20,20,.2)}.detail-info{min-width:0}.eyebrow{color:#f36a27;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.detail-info h1{font-size:27px;line-height:1.32;margin:8px 0}.detail-info p{font-size:15px;color:#65707e;line-height:1.7}.detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.secondary-button{border:1px solid #ffb693;border-radius:99px;background:#fff;color:#f46824;font-weight:800;padding:10px 18px;display:inline-flex;gap:6px;align-items:center}.secondary-button svg{width:18px;height:18px}.detail-section{margin-top:22px}.detail-section h2{font-size:18px}.detail-section p{line-height:1.85;color:#505b6b}.demo-note{font-size:12px;color:#989da5;background:#faf9f7;padding:10px 14px;border-radius:9px;margin-top:18px}.reader{max-width:760px;margin:auto}.reader-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 18px;border-bottom:1px solid var(--line)}.reader-title{font-size:14px;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-tools{display:flex;gap:4px}.reader-tools button{border:0;background:#f7f6f4;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:17px;color:#535c68}.reader-tools svg{width:17px;height:17px}.chapter-label{text-align:center;color:#e86c2c;font-weight:800;font-size:13px;letter-spacing:.03em;margin-top:30px}.reader h1{text-align:center;font-size:25px;margin:7px 0 20px}.reader-text{font-size:19px;line-height:2.1;color:#333744;max-width:660px;margin:auto}.reader-text p{text-indent:2em;margin:0 0 1.3em}.reader-end{text-align:center;margin:30px 0 40px}.reader.night{background:#232735;color:#ecedf1;margin:-24px -36px;padding:24px 36px;min-height:calc(100vh - 140px)}.reader.night .reader-text{color:#dadce5}.reader.night .reader-tools button{background:#33384a;color:#e4e5ed}.reader.night .reader-bar{border-color:#414658}.reader.night .demo-note{background:#33384a;color:#aeb4c4}.reward-intro{border-radius:19px;background:linear-gradient(125deg,#ff7a2b,#ff4f30);padding:26px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px}.reward-intro h1{font-size:26px;margin:0 0 6px}.reward-intro p{margin:0;font-size:14px;opacity:.95}.reward-intro .gift-art{font-size:62px}.reward-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.reward-tile{border:1px solid #f1e7dc;border-radius:14px;padding:18px;background:#fff}.reward-tile .n{font-size:29px;color:#ef6022;font-weight:800}.reward-tile h2{font-size:16px;margin:4px 0}.reward-tile p{font-size:13px;line-height:1.6;color:#78808c;margin:0}.profile-card{padding:24px;border-radius:18px;background:linear-gradient(135deg,#fff2e6,#fffaf7);display:flex;gap:16px;align-items:center}.avatar{width:57px;height:57px;border-radius:50%;background:#fff;display:grid;place-items:center;color:#ff7630}.avatar svg{width:29px;height:29px}.profile-card h1{margin:0;font-size:22px}.profile-card p{margin:3px 0;color:#7d8491;font-size:13px}.info-list{margin-top:18px;border:1px solid #f0eee9;border-radius:15px;overflow:hidden}.info-row{padding:16px 18px;border-bottom:1px solid #f0eee9;display:flex;justify-content:space-between;color:#586170;font-size:14px}.info-row:last-child{border:0}.toast{position:fixed;z-index:40;bottom:93px;left:50%;transform:translateX(-50%) translateY(12px);background:#253044;color:#fff;padding:10px 17px;border-radius:99px;font-size:13px;box-shadow:0 10px 22px rgba(0,0,0,.16);opacity:0;pointer-events:none;transition:.22s;white-space:nowrap;max-width:calc(100vw - 30px);overflow:hidden;text-overflow:ellipsis}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:700px){.site-shell{padding-bottom:83px}.header-row{height:78px;padding:0 18px;gap:12px}.brand-mark{width:40px;height:36px}.brand-mark span:nth-child(1),.brand-mark span:nth-child(2){width:17px;height:28px}.brand-mark span:nth-child(3){width:39px}.brand-name{font-size:21px}.brand-copy small{font-size:10px}.search-prompt{height:38px;padding:0 10px;gap:6px;min-width:0;font-size:11px}.search-prompt span{display:block}.search-prompt svg{width:20px;height:20px}.icon-button{width:30px}.top-tabs{gap:5px;padding:2px 18px 11px}.top-tabs button{font-size:13px;padding:8px 14px}main{padding:0 18px 22px}.hero{height:225px;border-radius:13px;background-position:42% center}.hero:after{background:linear-gradient(90deg,transparent 31%,rgba(255,246,238,.3) 56%,rgba(255,242,230,.48) 100%)}.hero-copy{left:54%;right:3%;top:13%}.hero-copy h1{font-size:21px;line-height:1.28;margin:20px 0 7px}.hero-copy p{font-size:11px;line-height:1.5;margin-bottom:11px}.hero-kicker{top:-29px;right:-3%;font-size:10px;padding:4px 8px}.pill-button{font-size:12px;padding:7px 14px}.pill-button svg{width:14px;height:14px}.hero-dots{right:13px;bottom:11px}.quick-links{margin-top:13px;padding:12px 5px 10px;border-radius:13px}.quick-links button{font-size:11px;gap:4px}.quick-links .quick-icon{width:36px;height:36px}.quick-links svg{width:26px;height:26px}.section{margin-top:13px;padding:12px 0 8px}.section-heading{padding-bottom:10px}.section-title{font-size:17px;gap:7px}.section-title .badge{width:25px;height:25px}.section-title .badge svg{width:16px;height:16px}.text-link{font-size:12px}.book-scroll{gap:10px}.book-card{width:111px;flex-basis:111px}.book-card strong{font-size:12px;min-height:34px;margin-top:6px}.book-card small{font-size:11px;margin-top:1px}.book-meta{font-size:10px}.update-item{gap:9px;padding:7px 0}.update-item img{width:47px;height:56px}.update-copy strong{font-size:12px}.update-copy small{font-size:11px;margin-top:4px}.update-item time{font-size:10px;margin-bottom:7px}.new-tag{font-size:8px}.reward-banner{padding:12px 10px;gap:7px;min-height:83px}.gift-art{font-size:42px}.reward-copy h2{font-size:15px}.reward-copy p{font-size:10px;line-height:1.4}.reward-banner .pill-button{padding:7px 9px;font-size:10px}.bottom-nav{height:70px}.bottom-nav button{font-size:10px}.bottom-nav svg{width:23px;height:23px}.page-head h1{font-size:22px}.result-list{grid-template-columns:1fr}.detail-hero{padding:15px;gap:14px}.detail-hero img{width:110px}.detail-info h1{font-size:18px;margin:4px 0}.detail-info p{font-size:12px;margin:5px 0;line-height:1.5}.detail-actions{margin-top:10px}.primary-button,.secondary-button{padding:8px 12px;font-size:11px}.reader.night{margin:-22px -18px;padding:22px 18px}.reward-grid{grid-template-columns:1fr}.reward-tile{padding:14px}.reward-intro h1{font-size:21px}}
@media(max-width:375px){.header-row{gap:8px;padding:0 13px}.brand-name{font-size:18px}.brand-copy small{font-size:9px}.brand-mark{width:34px}.brand-mark span:nth-child(1),.brand-mark span:nth-child(2){width:15px}.brand-mark span:nth-child(3){width:35px}.hero{height:200px}.hero-copy h1{font-size:18px}.hero-copy p{font-size:10px}.book-card{width:101px;flex-basis:101px}.update-item time{display:none}.reward-banner .pill-button{font-size:0;gap:0}.reward-banner .pill-button svg{width:16px;height:16px}}
