@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&family=Noto+Serif+Thai:wght@400;500;600&display=swap');
:root{--wine:#5b1722;--red:#822b38;--gold:#d4b475;--ink:#382a29;--muted:#70615e;--line:#e5d9c9;--paper:#fffdf8;--cream:#f7f2e9;font-size:18px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Noto Sans Thai',Tahoma,sans-serif;line-height:1.65}button,input{font:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input{outline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ae7a23}button{transition:background .15s,border-color .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(.96)}.skip{position:absolute;left:16px;top:-80px;background:white;color:var(--wine);padding:12px;z-index:20}.skip:focus{top:12px}.demo-bar{text-align:center;background:#eee3ce;color:#594425;font-size:.85rem;padding:7px 12px;font-weight:600}.demo-bar span{padding:0 10px}header{background:var(--wine);color:#f7e6bd}.header-inner{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:6px 28px}.brand{display:flex;align-items:center}.brand img{width:270px;height:90px;object-fit:contain}nav{display:flex;gap:24px}.nav-btn{border:0;background:none;color:#fff2d8;display:flex;align-items:center;gap:9px;font-size:.88rem;min-height:48px}main{max-width:1120px;margin:auto;padding:0 28px;outline:none}.intro{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;padding:24px 36px 16px;min-height:410px}.eyebrow{font-size:.82rem;letter-spacing:.08em;color:#8b642c;margin:0 0 16px}h1,h2,h3,p{margin-top:0}h1,h2,.fortune-title{font-family:'Noto Serif Thai',Georgia,serif;font-weight:500}h1{font-size:2.45rem;line-height:1.65;color:var(--wine);margin-bottom:15px}h1 span{white-space:nowrap}.intro-desc{color:var(--muted);font-size:1rem;line-height:1.9;margin-bottom:16px}.intro-note{font-size:.85rem;color:#7a6340}.hero-art{position:relative;display:grid;place-items:center;height:390px}.hero-art img{width:390px;max-width:100%;height:auto;z-index:1;filter:drop-shadow(0 20px 16px #542e2220)}.halo{position:absolute;width:305px;height:305px;border:1px solid #d7ba824f;border-radius:50%;background:radial-gradient(circle,#eedbb35e,transparent 70%)}.halo:after{content:'';position:absolute;inset:15px;border:1px solid #d7ba8230;border-radius:50%}.art-caption{position:absolute;bottom:0;font-size:.78rem;letter-spacing:.06em;color:#836a42}.workflow{background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 45px #5b172208;max-width:940px;margin:12px auto 0;overflow:hidden}.steps{display:flex;justify-content:center;gap:42px;list-style:none;padding:23px;margin:0;border-bottom:1px solid var(--line);background:#faf6ef;color:#877a6e;font-size:.9rem}.steps li{display:flex;align-items:center;gap:10px}.steps span{display:inline-flex;border:1px solid #c6baa8;border-radius:50%;width:31px;height:31px;align-items:center;justify-content:center}.steps li.active{color:var(--wine);font-weight:600}.steps .active span,.steps .done span{background:var(--wine);color:#f7e5c0;border-color:var(--wine)}#screen{padding:34px 40px 36px;outline:none}.section-title{text-align:center;font-size:1.65rem;color:var(--wine);margin-bottom:4px}.sub{text-align:center;color:var(--muted);margin-bottom:26px}.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:26px 0}.plan{position:relative;border:1px solid #d9ccbc;background:#fffdf9;border-radius:12px;text-align:left;padding:22px 18px;min-height:156px;color:var(--ink)}.plan[aria-checked=true]{border:2px solid var(--wine);padding:21px 17px;background:#fcf3ef;box-shadow:0 0 0 3px #5b172207}.plan-top{display:flex;justify-content:space-between;align-items:center}.plan-name{font-weight:600;font-size:1rem}.check{width:23px;height:23px;border-radius:50%;border:1px solid #bfae99;text-align:center;font-size:15px;line-height:21px;flex-shrink:0}.plan[aria-checked=true] .check{background:var(--wine);border-color:var(--wine);color:white}.price{font-family:Georgia,serif;font-size:2.25rem;color:var(--wine);line-height:1.2;margin:10px 0 6px}.price span{font-family:'Noto Sans Thai',sans-serif;font-size:.85rem;margin-left:5px}.plan-desc{font-size:.82rem;color:var(--muted);display:block}.field-heading{display:block;font-size:1rem;font-weight:600;margin:20px 0 12px}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.category{min-height:84px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:9px;font-size:.95rem}.category svg{width:24px;height:24px;stroke:#946d3e;fill:none;stroke-width:1.6}.category[aria-checked=true]{background:var(--wine);color:#fff4de;border-color:var(--wine)}.category[aria-checked=true] svg{stroke:#f0d5a4}.selected-info{background:#f5efe4;border-radius:10px;padding:18px 22px;color:#67543b}.selected-info p{margin:0}.actions{margin-top:28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.primary{border:1px solid var(--wine);background:var(--wine);color:#fff4db;border-radius:11px;padding:15px 28px;min-height:60px;font-size:1.05rem;font-weight:600}.primary.wide{width:100%}.secondary{border:1px solid #cbbb9f;background:transparent;color:var(--wine);border-radius:10px;padding:13px 20px;min-height:54px}.text-btn{border:0;background:none;color:var(--wine);text-decoration:underline;text-underline-offset:5px;min-height:44px;padding:5px}.summary-text{font-size:.9rem;color:var(--muted)}.summary-text strong{color:var(--wine);font-size:1.12rem}.micro{text-align:center;color:var(--muted);font-size:.8rem;margin:14px 0 0}.how{max-width:940px;margin:56px auto 38px;text-align:center}.how h2{font-size:1.4rem;color:var(--wine);margin-bottom:26px}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.how-grid span{display:inline-flex;align-items:center;justify-content:center;color:#946d3e;font-family:serif;font-size:1.7rem;border:1px solid #d8c49f;border-radius:50%;width:50px;height:50px;margin-bottom:15px}.how h3{font-size:1rem;margin-bottom:6px;font-weight:600}.how p{font-size:.85rem;color:var(--muted)}footer{text-align:center;padding:30px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}footer p{margin-bottom:8px}footer p:first-child{font-size:.93rem;color:var(--wine)}footer span{padding:0 8px}footer button{font-size:.8rem}.notice{border-left:3px solid #b28c44;background:#f5eddb;padding:16px 20px;margin:20px 0;border-radius:0 8px 8px 0}.notice strong{color:#6c431c}.notice p{margin:4px 0 0;font-size:.9rem}.order-summary{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.order-summary p{margin:0}.order-summary b{font-size:1.6rem;color:var(--wine)}.upload{display:block;position:relative;text-align:center;padding:28px 18px;border:2px dashed #bb9d6b;border-radius:12px;background:#fffcf6;cursor:pointer}.upload-icon{font-size:1.8rem;color:#976e31}.upload strong{display:block;font-size:1.12rem;color:var(--wine)}.upload small{display:block;font-size:.85rem;color:var(--muted);margin-top:8px}.upload:focus-within{outline:3px solid #ae7a23;outline-offset:4px}.upload input{position:absolute;width:1px;height:1px;opacity:0}.preview{max-height:160px;max-width:100%;border-radius:8px;margin:10px auto;display:block}.upload-success{color:#355c35;background:#edf3e9;padding:13px 18px;border-radius:8px;font-size:.9rem;margin-top:14px}.error{color:#9b2030;margin-top:12px}.sample-row{text-align:center;margin-top:10px}.sample-row button{font-size:.9rem}.ritual{text-align:center}.ritual-art{position:relative;max-width:360px;height:340px;margin:auto;display:grid;place-items:center}.ritual-art .halo{width:260px;height:260px}.ritual-art img{position:relative;width:350px;max-width:100%;height:auto;filter:drop-shadow(0 15px 16px #542e2220)}.ritual-copy{font-size:1.05rem;color:var(--wine);margin-bottom:20px}.ritual .primary{min-width:290px}.ritual .text-btn{display:block;margin:16px auto 0;font-size:.85rem}.revealed-stick{position:absolute;z-index:2;top:15px;right:70px;width:32px;height:150px;background:linear-gradient(90deg,#b88946,#f5d89d,#c99954);border-radius:10px 10px 3px 3px;border-top:20px solid #8c2836;box-shadow:3px 5px 12px #0003;transform:rotate(12deg);animation:rise .5s ease-out}.revealed-stick span{color:#5b1722;display:block;font-weight:700;margin-top:15px}.result-head{text-align:center;border-bottom:1px solid var(--line);padding-bottom:26px}.result-tag{color:#8d6a33;font-size:.85rem}.fortune-number{width:74px;height:74px;margin:14px auto;border:1px solid #c7a666;display:grid;place-items:center;border-radius:50%;color:var(--wine);font:2.2rem Georgia,serif;background:#f6edda}.fortune-title{font-size:1.8rem;color:var(--wine);margin:12px 0}.verse{font-family:'Noto Serif Thai',serif;color:#856135;line-height:2;font-size:1.07rem;margin:16px 0}.date-line{font-size:.8rem;color:var(--muted)}.reading{padding:25px 0;border-bottom:1px solid var(--line)}.reading h3{color:var(--wine);font-size:1.2rem;margin:0 0 12px}.reading p{line-height:1.95}.reading .advice{border-radius:8px;background:#f4eddf;padding:15px 20px;margin:14px 0 0}.reading .advice strong{display:block;color:#765622;font-size:.9rem}.reading .caution{font-size:.92rem;color:var(--muted);margin-bottom:0}.all-reading{border-bottom:1px solid var(--line);padding:16px 0}.all-reading summary{font-size:1.1rem;color:var(--wine);font-weight:600;cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;list-style:none}.all-reading summary::-webkit-details-marker{display:none}.all-reading summary:after{content:'＋';font-size:1.3rem}.all-reading[open] summary:after{content:'−'}.all-reading .reading{border:0;padding:12px 0}.all-reading .reading h3{display:none}.result-bottom{text-align:center;margin-top:22px}.result-bottom p{font-size:.8rem;color:var(--muted)}.top-back{margin-bottom:16px}.large-text{font-size:22px}.large-text .categories{grid-template-columns:repeat(2,1fr)}dialog{border:1px solid var(--line);border-radius:18px;padding:25px;max-width:650px;width:calc(100% - 32px);max-height:85vh;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#23101399}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:12px}.dialog-head h2{font-size:1.3rem;color:var(--wine);margin:0}.close-btn{width:48px;height:48px;border:1px solid var(--line);background:white;border-radius:50%;font-size:1.7rem;color:var(--wine)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#382a29;color:white;padding:13px 22px;border-radius:10px;z-index:30;max-width:90%;text-align:center;display:none}.hidden{display:none!important}@keyframes rise{from{transform:translateY(70px) rotate(0);opacity:0}to{transform:translateY(0) rotate(12deg);opacity:1}}@media(max-width:700px){:root{font-size:18px}.header-inner{padding:4px 16px}.brand img{width:200px;height:70px}nav{gap:10px}.nav-btn{font-size:.75rem;gap:3px;flex-direction:column;line-height:1.2;justify-content:center}main{padding:0 16px}.intro{padding:28px 8px 10px;grid-template-columns:1fr;text-align:center;min-height:0}.eyebrow{font-size:.74rem;margin-bottom:10px}h1{font-size:1.85rem;line-height:1.7;margin-bottom:10px}.intro-desc{font-size:.95rem;margin-bottom:10px}.intro-note{font-size:.8rem;margin-bottom:0}.hero-art{height:225px}.hero-art img{width:260px}.halo{width:210px;height:210px}.art-caption{font-size:.72rem;bottom:-1px}.workflow{margin-top:22px;border-radius:14px}.steps{gap:14px;padding:18px 10px;font-size:.77rem}.steps li{gap:6px}.steps span{width:26px;height:26px}#screen{padding:25px 18px}.section-title{font-size:1.4rem}.sub{font-size:.9rem;margin-bottom:20px}.plans{gap:8px;margin:20px 0}.plan{padding:14px 10px;min-height:152px}.plan[aria-checked=true]{padding:13px 9px}.plan-name{font-size:.84rem;white-space:nowrap}.plan-top{display:block}.check{position:absolute;right:8px;bottom:10px;width:18px;height:18px;line-height:16px;font-size:12px}.price{font-size:1.9rem}.price span{font-size:.72rem;margin-left:2px}.plan-desc{font-size:.72rem;line-height:1.7;padding-bottom:12px}.categories{grid-template-columns:repeat(2,1fr);gap:10px}.category{min-height:68px;font-size:.95rem}.actions{flex-wrap:wrap;gap:12px}.actions .primary{width:100%}.actions .summary-text{width:100%;text-align:center}.actions .text-btn{order:2;margin:auto}.how{margin-top:36px}.how-grid{grid-template-columns:1fr;gap:12px;text-align:left}.how-grid>div{display:grid;grid-template-columns:50px 1fr;column-gap:18px;align-items:center}.how-grid span{grid-row:span 2;margin:0}.how-grid h3{margin-bottom:0}.how-grid p{margin:0}.ritual-art{height:300px}.ritual-art img{width:320px}.ritual .primary{min-width:0;width:100%}.fortune-title{font-size:1.5rem}.verse{font-size:1rem}.large-text{font-size:22px}.large-text .plans{grid-template-columns:1fr}.large-text .plan{min-height:0;display:grid;grid-template-columns:1fr 1fr;align-items:center}.large-text .price{grid-column:2;grid-row:1/3;justify-self:end;margin:0 25px}.large-text .plan-desc{padding:0}.large-text .steps{font-size:.65rem;gap:8px}.large-text .brand img{width:175px}.large-text .nav-btn{font-size:.65rem}.large-text .category{font-size:.85rem}.large-text h1{font-size:1.7rem}.large-text .desktop-br{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{header,.demo-bar,.intro,.steps,.how,footer,.result-bottom,.top-back,#toast,dialog{display:none!important}body{background:white;font-size:14px}main{max-width:none;padding:0}.workflow{border:0;box-shadow:none}#screen{padding:0}.all-reading .reading{display:block!important}.reading{break-inside:avoid}.result-head{break-inside:avoid}}
@media(max-width:700px){.intro{grid-template-columns:1fr 120px;text-align:left;padding:22px 0 8px;gap:4px}.intro h1{font-size:1.35rem;line-height:1.65}.intro .eyebrow{font-size:.68rem;letter-spacing:0}.intro-desc{font-size:.85rem;line-height:1.7}.intro .desktop-br{display:none}.hero-art{height:180px}.hero-art img{width:180px;max-width:none}.hero-art .halo{width:130px;height:130px}.art-caption{display:none}.intro-note{font-size:.74rem}.large-text .intro{grid-template-columns:1fr}.large-text .hero-art{display:none}.large-text .intro h1{font-size:1.5rem}}
@media(max-width:700px){.hero-art{min-width:0}.hero-art img{width:155px;max-width:100%}.brand img{width:180px;height:64px}.header-inner{padding-left:12px;padding-right:12px}.nav-btn{max-width:95px;min-width:44px}nav{gap:8px}}

.omen{display:inline-block;border:1px solid #d8bc83;color:#73521d;background:#faf1dd;padding:5px 17px;border-radius:30px;font-size:.87rem;margin:0 0 10px}.verse-line{display:block}.stanza-break{display:block;height:16px}.blessing{text-align:center;padding:25px 12px 5px;color:#7d5d2b;font-family:"Noto Serif Thai",serif}.blessing>span{font-size:1.8rem}.blessing p{max-width:600px;margin:8px auto 0}.edition-note{font-size:.78rem;color:var(--muted);text-align:center;margin:20px 0 0}#modal-body a{color:var(--wine);text-underline-offset:4px}.result-head .verse{font-size:1.06rem;line-height:2.1}@media(max-width:400px){.result-head .verse{font-size:.94rem;line-height:2.05}}

.poem-source{margin-top:22px;border:1px solid var(--line);border-radius:10px;padding:12px 18px}.poem-source summary{cursor:pointer;color:var(--wine);min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:.92rem}.poem-source summary:after{content:"＋"}.poem-source[open] summary:after{content:"−"}.poem-source-title{text-align:center;color:var(--wine);margin:14px 0 8px}.poem-source .verse{text-align:center;font-size:1rem;line-height:2}.poem-source summary::-webkit-details-marker{display:none}@media(max-width:400px){.poem-source .verse{font-size:.9rem}}

/* Hub integration, v4 */
.hub-back{color:#fff2d8;text-decoration:none;display:flex;align-items:center;min-height:48px;font-size:.88rem}.hub-back:hover{text-decoration:underline}.footer-links a{color:var(--wine);display:inline-block;min-height:44px;padding:9px 2px}.edition-note{font-size:.85rem}.intro .eyebrow{letter-spacing:.02em}.steps li{white-space:nowrap}@media(max-width:700px){header nav{gap:14px}.hub-back{font-size:.8rem}.brand img{width:170px;height:65px}.intro h1{font-size:1.8rem}.intro-note{font-size:.88rem}.demo-bar{font-size:.85rem}}@media(max-width:380px){.header-inner{padding-inline:10px}.brand img{width:155px}.hub-back{font-size:.76rem}header nav{gap:8px}.steps{gap:9px;font-size:.72rem}}
@media(max-width:700px){.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.steps li{flex-direction:column;gap:4px;white-space:normal;text-align:center;line-height:1.6}.large-text .header-inner{flex-wrap:wrap;justify-content:center}.large-text header nav{width:100%;justify-content:space-between}.large-text .nav-btn{flex-direction:row;gap:8px}.large-text .plans{grid-template-columns:1fr}.large-text .plan{min-height:0;padding:18px}.large-text .plan[aria-checked=true]{padding:17px}.large-text .plan-name{white-space:normal;font-size:1rem}.large-text .plan-top{display:flex}.large-text .check{position:static}.large-text .price{margin:8px 0}.large-text .plan-desc{font-size:.9rem}}@media(max-width:380px){.header-inner{flex-wrap:wrap;justify-content:center}header nav{width:100%;justify-content:space-between}.nav-btn{flex-direction:row;gap:8px}.brand img{width:195px;height:65px}}
.nav-btn,.nav-btn span{white-space:nowrap}.nav-btn{flex-shrink:0}@media(max-width:700px){.large-text .plan{display:block}.large-text .price{margin:8px 0}.large-text .steps{font-size:.75rem}}
