:root{color-scheme:dark;--ink:#101310;--paper:#f0e8d7;--gold:#c9a66d;--muted:#a9aaa0;--line:#c9a66d35;font-family:'Noto Sans Thai',Tahoma,sans-serif;background:var(--ink);color:var(--paper)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0}a{color:inherit;text-decoration:none}button{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #f8d696;outline-offset:6px}::selection{background:#c9a66d;color:#101310}
.gateway{min-height:100svh;display:flex;flex-direction:column;position:relative;isolation:isolate;overflow-x:hidden}.scene{position:absolute;inset:0;z-index:-2;background:#19201b url('../../assets/front/portal-dragon.png') 60% center/cover no-repeat}.scene:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0b100feb 0%,#0c1210b8 30%,#10151024 68%),linear-gradient(0deg,#0c110ff5,transparent 30%,transparent 70%,#0c110f8c)}.grain{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 70% 40%,transparent 25%,#07100c38 90%)}
.portal-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 5.2%;position:relative;z-index:2}.brand{display:flex;gap:13px;align-items:center;font:600 21px/1.1 'Cormorant Garamond',Georgia,serif;letter-spacing:2px;white-space:nowrap}.brand small{display:block;font:8px/1.5 Arial,sans-serif;letter-spacing:3.1px;margin-top:7px;color:var(--gold)}.brand-seal{display:grid;place-items:center;width:42px;height:46px;border:1px solid var(--gold);color:var(--gold);font-size:30px;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);background:#c9a66d12}.header-caption{font:9px Arial,sans-serif;letter-spacing:3px;color:#c0bba8}.gateway-main{flex:1;display:flex;align-items:center;position:relative;padding:35px 8.5% 40px;min-height:0}.gateway-copy{width:min(680px,100%)}.overline{font:10px/1.8 Arial,sans-serif;letter-spacing:3.2px;color:var(--gold);margin:0 0 23px;display:flex;align-items:center;gap:12px}.overline>span{width:30px;height:1px;background:var(--gold)}.gateway h1{font:500 clamp(68px,7.8vw,124px)/.78 'Cormorant Garamond',Georgia,serif;letter-spacing:6px;margin:0;text-shadow:0 3px 30px #0007}.gateway h1>span{display:inline-block;margin-top:12px;letter-spacing:20px;color:#dfc294}.gateway h1 em{display:block;font:500 clamp(20px,2vw,28px)/1.6 'Noto Sans Thai',Tahoma,sans-serif;letter-spacing:2px;color:var(--paper);margin-top:25px}.intro{font-size:14px;line-height:1.95;color:#c3c5b9;margin:20px 0 28px}.gateway-actions{display:flex;gap:14px}.gate-button{display:flex;align-items:center;gap:20px;padding:20px 24px;min-height:91px;min-width:225px;border:1px solid #d5b77b88;position:relative;transition:background .2s,transform .2s,box-shadow .2s}.gate-button:hover{transform:translateY(-3px);box-shadow:0 8px 35px #0005}.gate-play{background:linear-gradient(115deg,#e1c693,#bb914e);color:#201e16;border-color:#e5cba2}.gate-play:hover{background:linear-gradient(115deg,#f1daae,#d3ad6a)}.gate-info{background:#111a15b8;backdrop-filter:blur(10px);color:#f2dfba}.gate-info:hover{background:#344035bd}.gate-button svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.2}.gate-button strong{display:block;font-size:20px;font-weight:600}.gate-button small{display:block;font:8px/1.8 Arial,sans-serif;letter-spacing:2px;margin-top:4px;opacity:.8}.gate-button b{margin-left:auto;font-size:22px;font-weight:400}.gateway-note{color:#a6ac9d;font-size:10px;margin:15px 0 0}.scene-caption{position:absolute;right:5.2%;bottom:60px;display:flex;flex-direction:column;align-items:flex-end;gap:16px;font:9px Arial,sans-serif;letter-spacing:2px;color:#d8c4a0}.scene-caption i{width:70px;height:1px;background:var(--gold)}.scene-caption small{font:italic 16px 'Cormorant Garamond',Georgia,serif;letter-spacing:0;color:#c5bba5}.gateway-footer{margin:0 5.2%;padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;font:9px Arial,sans-serif;letter-spacing:1.4px;color:#b4b9ab}.gateway-footer i{font-style:normal;margin:0 7px;color:var(--gold)}.gateway-footer a{font:11px 'Noto Sans Thai',Tahoma,sans-serif;letter-spacing:0}.gateway-footer a span{margin-left:12px;color:var(--gold)}.footer-number{font-size:8px;letter-spacing:2px}
.information{background:#101510}.information .portal-header{background:#0d120f;border-bottom:1px solid var(--line)}nav{display:flex;align-items:center;gap:30px;font-size:12px;color:#c8c9bc}.nav-play{padding:12px 25px;border:1px solid #b89a62;color:#e3c28a}.nav-play span{margin-left:18px}nav a:hover,.text-link:hover{color:#ffe1a6}.info-hero{position:relative;isolation:isolate;min-height:590px;display:flex;align-items:center;padding:85px 8.5%}.info-hero .scene{background-position:60% 43%}.info-hero h1{font-size:clamp(32px,4vw,60px);font-weight:500;line-height:1.45;margin:0}.info-hero h1 em{font-style:normal;color:#d8b77a}.text-link{display:inline-flex;align-items:center;gap:35px;font-size:12px;color:var(--gold);padding-bottom:10px;border-bottom:1px solid #a98e58}.hero-index{position:absolute;bottom:30px;right:5.2%;font:9px Arial,sans-serif;letter-spacing:3px;color:var(--gold)}.content-section{max-width:1240px;margin:auto;padding:85px 7%}.editorial{display:grid;grid-template-columns:1fr 1fr;gap:65px}.content-section h2{font-size:clamp(24px,2.8vw,36px);font-weight:500;line-height:1.55;margin:0}.editorial p,.world-features p,.class-panel p,.steps p{font-size:13px;line-height:1.95;color:#bcc2b3;margin:0 0 16px}.editorial .muted{font-size:11px;color:#929b8d}.world-features{display:grid;grid-template-columns:repeat(3,1fr);margin-top:45px;border-top:1px solid var(--line);gap:35px;padding-top:30px}.world-features article>span,.section-number{font:9px Arial,sans-serif;letter-spacing:2px;color:var(--gold)}h3{font-weight:500}.world-features h3{font-size:18px;margin:14px 0 10px}.class-section{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.section-heading .overline{margin-bottom:14px}.section-number{white-space:nowrap;margin-bottom:10px}.class-tabs{display:flex;border-bottom:1px solid var(--line);margin-top:35px;gap:10px}.class-tabs button{cursor:pointer;flex:1;border:0;border-bottom:2px solid transparent;padding:18px 5px;background:none;color:#949e8f;font:500 20px 'Cormorant Garamond',Georgia,serif}.class-tabs button[aria-selected=true]{color:#e4c58b;border-bottom-color:#d6b474;background:linear-gradient(0deg,#c9a66d14,transparent)}.class-tabs button:hover{color:#eddbb8}.class-panel{display:grid;grid-template-columns:230px 1fr;align-items:center;gap:55px;min-height:300px;padding:35px 20px}.class-panel h3{font-size:28px;margin:5px 0 15px}.class-panel p{max-width:490px}.class-emblem{width:175px;height:175px;display:grid;place-items:center;border:1px solid #c9a66d55;transform:rotate(45deg);margin:auto;background:radial-gradient(#c9a66d17,transparent)}.class-emblem span{font:500 110px 'Cormorant Garamond',Georgia,serif;transform:rotate(-45deg);color:#cfaf73;text-shadow:0 0 40px #c9a66d33}.class-panel .overline{font-size:9px;margin:0}.steps{list-style:none;margin:40px 0;padding:0}.steps li{display:flex;align-items:flex-start;gap:28px;border-top:1px solid var(--line);padding:25px 0 10px}.steps li>span{font:36px 'Cormorant Garamond',Georgia,serif;color:#b99c66}.steps h3{font-size:18px;margin:2px 0 8px}.controls{border:1px solid var(--line);padding:22px 28px}.controls summary{cursor:pointer;display:flex;justify-content:space-between;font-size:14px;color:#e1c58e;list-style:none}.controls summary::-webkit-details-marker{display:none}.controls[open] summary>span{transform:rotate(45deg)}.controls dl{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;margin:18px 0 0}.controls dl>div{display:flex;gap:16px;justify-content:space-between;padding:12px 0;border-top:1px solid #c9a66d1a;font-size:11px}.controls dt{color:#c9c9ba}.controls dd{margin:0;color:#929d8a;text-align:right}.final-cta{padding:80px 20px;text-align:center;background:radial-gradient(ellipse at 50% 100%,#44422955,transparent 70%);border-top:1px solid var(--line)}.final-cta .overline{justify-content:center}.final-cta h2{font-size:38px;line-height:1.6;font-weight:500;margin:15px 0 30px}.final-cta .gate-button{max-width:355px;margin:auto;text-align:left}.return-link{display:block;width:fit-content;margin:25px auto 0;font-size:11px;color:#a8b19e}.info-footer{padding:30px 5.2%;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;color:#959f8e;font-size:10px}.info-footer .brand{font-size:18px;color:#dfcca5}
@media(min-width:1500px){.gateway-main{padding-left:12%}.gateway-copy{width:740px}.gate-button{min-width:250px}.gateway .intro{margin:30px 0 35px;font-size:16px}}
@media(max-width:900px){.header-caption,.scene-caption,.footer-number{display:none}.gateway-main{padding:35px 7%}.gateway .scene{background-position:62% center}.gateway .scene:after{background:linear-gradient(90deg,#0b100fe8,#0c121082 70%),linear-gradient(0deg,#0c110f,transparent 60%)}.gateway h1{font-size:90px}.gateway-footer{margin:0 7%}.portal-header{padding:24px 7%}nav{gap:18px}nav a:not(.nav-play){display:none}.editorial{gap:30px}.section-number{display:none}.class-panel{grid-template-columns:170px 1fr;gap:35px}.class-emblem{width:125px;height:125px}.class-emblem span{font-size:80px}.content-section{padding:60px 7%}}
@media(max-width:600px){.portal-header{padding:22px 7%}.brand{font-size:17px;letter-spacing:1.7px;gap:10px}.brand small{font-size:7px;letter-spacing:2px}.brand-seal{width:33px;height:38px;font-size:25px}.gateway-main{padding-top:25px;padding-bottom:25px}.gateway h1{font-size:76px;letter-spacing:4px}.gateway h1>span{letter-spacing:14px;margin-top:10px}.gateway h1 em{font-size:20px;letter-spacing:1px;margin-top:22px}.gateway .overline{font-size:8px;letter-spacing:2.4px;margin-bottom:22px}.intro{font-size:12px;margin:16px 0 23px}.gateway-actions{flex-direction:column;gap:11px}.gate-button{min-height:75px;padding:14px 20px;gap:18px;min-width:0}.gate-button strong{font-size:18px}.gate-button small{font-size:7px}.gateway-note{font-size:9px;margin-top:12px}.gateway-footer{padding:16px 0;font-size:8px;letter-spacing:.6px;gap:12px}.gateway-footer a{font-size:9px}.gateway-footer a span{margin-left:5px}.gateway .scene{background-position:67% center}.gateway .scene:after{background:linear-gradient(90deg,#0b100fdd,#0c121073),linear-gradient(0deg,#0c110ff5,transparent 85%)}.nav-play{padding:10px 13px;font-size:11px}.nav-play span{margin-left:8px}.info-hero{min-height:530px;padding:60px 7%}.info-hero h1{font-size:34px}.info-hero .overline{font-size:8px;letter-spacing:2px}.info-hero .scene:after{background:linear-gradient(90deg,#0b100fe8,#0c121082),linear-gradient(0deg,#101510,transparent)}.editorial{grid-template-columns:1fr;gap:20px}.world-features{grid-template-columns:1fr;gap:20px}.world-features article{padding-bottom:10px;border-bottom:1px solid var(--line)}.class-tabs{gap:0}.class-tabs button{font-size:17px;padding:15px 3px}.class-panel{grid-template-columns:1fr;padding:40px 0 10px;gap:40px}.class-panel h3{font-size:25px}.class-emblem{width:100px;height:100px}.class-emblem span{font-size:65px}.class-panel .overline{font-size:8px}.controls{padding:20px}.controls dl{grid-template-columns:1fr}.steps li{gap:20px}.final-cta h2{font-size:30px}.info-footer{flex-wrap:wrap;padding:25px 7%}.info-footer .brand{width:100%;margin-bottom:5px}.content-section>.overline{font-size:9px}}
@media(max-height:740px) and (min-width:901px){.portal-header{padding-top:20px;padding-bottom:20px}.gateway-main{padding-top:15px;padding-bottom:20px}.gateway h1{font-size:85px}.gateway h1 em{margin-top:18px;font-size:22px}.gateway .overline{margin-bottom:18px}.gateway .intro{margin:15px 0 20px}.gate-button{min-height:77px;padding-top:14px;padding-bottom:14px}.gateway-footer{padding:16px 0}}
@media(max-height:740px) and (max-width:600px){.gateway .portal-header{padding-top:15px;padding-bottom:15px}.gateway-main{padding-top:15px;padding-bottom:15px}.gateway h1{font-size:60px}.gateway h1 em{font-size:18px;margin-top:15px}.gateway .overline{margin-bottom:17px;font-size:7px}.gateway .intro{font-size:11px;margin:12px 0 18px}.gateway .gate-button{min-height:66px;padding:10px 16px}.gateway-note{display:none}.gateway-footer{padding:12px 0}}
@media(max-width:600px){.gateway h1{font-size:clamp(52px,19.5vw,76px)}}
@media(max-height:740px) and (max-width:600px){.gateway h1{font-size:clamp(46px,16vw,60px)}}
@media(max-height:500px) and (min-width:601px){.gateway .portal-header{padding-top:12px;padding-bottom:12px}.gateway .brand{font-size:15px}.gateway .brand-seal{width:28px;height:32px;font-size:20px}.gateway .brand small{font-size:6px;margin-top:4px}.gateway-main{padding-top:10px;padding-bottom:10px}.gateway .overline{font-size:7px;margin-bottom:14px}.gateway h1{font-size:50px;letter-spacing:2px}.gateway h1 br{display:none}.gateway h1>span{letter-spacing:4px;margin:0 0 0 12px}.gateway h1 em{font-size:16px;margin-top:15px;letter-spacing:0}.gateway .intro{font-size:10px;margin:10px 0 14px}.gateway .gate-button{min-height:60px;padding:10px 16px;min-width:210px}.gateway .gate-button strong{font-size:16px}.gateway .gate-button small{font-size:6px}.gateway-note,.scene-caption{display:none}.gateway-footer{padding:12px 0}}
/* Centered gateway: a single circular entry, with a quiet text link below it. */
.gateway.gateway-round{display:block;--realm-size:184px}
.gateway-round .portal-header{position:absolute;inset:0 0 auto;padding:25px 5.2%}
.gateway-round .gateway-main{display:block;padding:0;min-height:100svh}
.gateway-round .gateway-copy{display:grid;grid-template-rows:1fr var(--realm-size) 1fr;min-height:100svh;width:100%;padding:0 24px;text-align:center}
.gateway-round .gateway-title{align-self:end;padding-bottom:38px}
.gateway-round .overline{justify-content:center;font-size:8px;letter-spacing:3.5px;margin:0 0 17px}
.gateway-round .overline>span{display:none}
.gateway.gateway-round h1{font-size:clamp(42px,5.8vw,82px);line-height:1;letter-spacing:5px}
.gateway.gateway-round h1>span{display:inline;letter-spacing:5px;margin:0;color:#e1c897}
.gateway.gateway-round h1 em{font-size:17px;line-height:1.6;letter-spacing:2px;margin-top:16px;color:#e4dfd0;font-weight:400}
.gateway-round .gateway-actions{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:0}
.realm-button{width:var(--realm-size);height:var(--realm-size);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-radius:50%;position:relative;border:1px solid #e4c783;color:#f3dfb5;background:radial-gradient(circle at 45% 20%,#60523794,#17221ee8 60%,#0f1917f2);box-shadow:0 0 0 7px #b9914c10,0 0 55px #d6ab5b26,inset 0 0 30px #cfaa5e14;backdrop-filter:blur(12px);transition:transform .3s,box-shadow .3s,background .3s}
.realm-button:before,.realm-button:after{content:'';position:absolute;border-radius:50%;pointer-events:none}
.realm-button:before{inset:-13px;border:1px solid #c9a66d50;border-left-color:transparent;border-right-color:transparent;transform:rotate(-35deg)}
.realm-button:after{inset:8px;border:1px solid #e7c88a40}
.realm-button svg{width:29px;height:29px;stroke:#dcbf80;stroke-width:1;filter:drop-shadow(0 0 8px #eac58150)}
.realm-button strong{font-size:27px;line-height:1.3;font-weight:500;letter-spacing:1px}
.realm-button small{font:7px/1.5 Arial,sans-serif;letter-spacing:2.5px;color:#c9ae7c}
.realm-button:hover{transform:scale(1.045);background:radial-gradient(circle at 45% 20%,#8e7349bc,#29352de8 60%,#14221df2);box-shadow:0 0 0 8px #b9914c18,0 0 75px #d6ab5b40,inset 0 0 35px #cfaa5e22}
.realm-button:active{transform:scale(.98)}
.gateway-round .gateway-secondary{padding-top:38px}
.website-link{display:inline-flex;align-items:center;gap:12px;padding:7px 3px;font-size:13px;color:#dfd8c4;border-bottom:1px solid #c9a66d55;transition:color .2s,border-color .2s}
.website-link span{font-size:15px;color:#c9a66d}
.website-link:hover{color:#ffe5b3;border-color:#e4c783}
.welcome-account{position:relative;flex:none}
.welcome-account:has(.welcome-logout[hidden]){display:none}
.welcome-logout{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:160px;min-height:50px;padding:10px 18px;background:url('../../assets/front/selection-logout-button.svg') center/100% 100% no-repeat;border:0;color:#f2d899;font:600 12px 'Noto Sans Thai',Tahoma,sans-serif;white-space:nowrap;cursor:pointer;filter:drop-shadow(0 3px 6px #0006)}
.welcome-logout svg{flex:none;width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.welcome-logout:hover:not(:disabled){filter:brightness(1.15) drop-shadow(0 3px 6px #0006)}
.welcome-logout[hidden]{display:none}
.welcome-logout:focus-visible{outline:2px solid #e4c783;outline-offset:4px}
.welcome-logout:disabled{opacity:.6;cursor:wait}
.welcome-logout-status{position:absolute;top:100%;right:0;width:max-content;max-width:min(320px,80vw);margin:8px 0 0;padding:10px 14px;border:1px solid #c9a66d66;background:#111a15f2;color:#f0c8b8;font-size:13px;overflow-wrap:anywhere}
@media(max-width:1100px){.gateway-round .header-caption{display:none}}
@media(max-width:700px){
 .gateway-round .portal-header{flex-wrap:wrap;gap:10px}
 .gateway-round .pwa-header-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px}
 .gateway-round .pwa-header-actions .pwa-install{order:3}
 .welcome-logout{width:140px;min-height:44px;padding:8px 14px;gap:10px}
 .welcome-logout svg{width:18px;height:18px}
}
.gateway-round .gateway-note{display:block;margin:21px 0 0;font-size:9px;letter-spacing:1px;color:#b1b5a7}
.gateway-round .gateway-footer{position:absolute;bottom:0;left:0;right:0;padding:20px 0}
.gateway-round .scene{background-position:60% center}
.gateway-round .scene:after{background:radial-gradient(ellipse at 50% 47%,#07110c99,transparent 70%),linear-gradient(0deg,#080f0eef,transparent 40%,#0b100e1a 65%,#09100eab)}
@media(max-width:600px){
 .gateway.gateway-round{--realm-size:164px}
 .gateway-round .portal-header{padding:21px 7%}
 .gateway.gateway-round h1{font-size:clamp(33px,9.2vw,52px);letter-spacing:2px;white-space:nowrap}
 .gateway.gateway-round h1>span{letter-spacing:2px}
 .gateway.gateway-round h1 em{font-size:15px;letter-spacing:1px;margin-top:16px}
 .gateway-round .overline{font-size:6px;letter-spacing:2.3px;margin-bottom:18px}
 .gateway-round .gateway-title{padding-bottom:37px}
 .gateway-round .gateway-secondary{padding-top:34px}
 .realm-button strong{font-size:25px}
 .realm-button small{font-size:6px;letter-spacing:2px}
 .gateway-round .gateway-footer{padding:15px 0}
 .gateway-round .scene{background-position:64% center}
}
@media(max-height:600px){
 .gateway.gateway-round{--realm-size:138px}
 .gateway-round .gateway-title{padding-bottom:24px}
 .gateway.gateway-round h1{font-size:36px;letter-spacing:3px}
 .gateway.gateway-round h1 em{font-size:13px;margin-top:10px}
 .gateway-round .overline{display:none}
 .gateway-round .gateway-secondary{padding-top:24px}
 .realm-button{gap:7px}
 .realm-button svg{width:23px;height:23px}
 .realm-button strong{font-size:23px}
 .realm-button small{font-size:6px;letter-spacing:1.8px}
 .gateway-round .gateway-note{display:none}
}
@media(max-height:430px){
 .gateway.gateway-round{--realm-size:112px}
 .gateway-round .portal-header{padding:12px 5.2%}
 .gateway-round .portal-header .brand{font-size:13px}
 .gateway-round .portal-header .brand-seal{width:24px;height:29px;font-size:18px}
 .gateway-round .portal-header .brand small{font-size:5px}
 .gateway-round .gateway-title{padding-bottom:20px}
 .gateway.gateway-round h1{font-size:30px}
 .gateway.gateway-round h1 em{display:none}
 .gateway-round .gateway-secondary{padding-top:19px}
 .realm-button strong{font-size:21px}
 .realm-button svg{width:20px;height:20px}
 .realm-button small{font-size:5px;letter-spacing:1.2px}
 .gateway-round .gateway-footer{padding:11px 0}
}
.community-footer-links{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:22px}
.community-footer-links a{display:inline-block!important;color:#c6cdbb;font-size:11px}
.community-footer-links a:hover{color:#ffe1a6}
.community-section{border-top:1px solid var(--line)}
.community-intro{max-width:760px;font-size:14px;line-height:1.95;color:#bcc2b3;margin:25px 0 35px}
.community-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.community-grid article{padding:30px;border:1px solid var(--line);background:linear-gradient(135deg,#26312466,transparent)}
.community-grid .overline{font-size:9px;margin-bottom:13px}.community-grid h3{font-size:24px;margin:0 0 15px}
.community-grid article>p:not(.overline){color:#bcc2b3;font-size:13px;line-height:1.9;min-height:76px;margin:0 0 25px}
.community-report{font-size:11px;line-height:1.9;color:#929e8b;margin:22px 0 0}
.faq-section{padding-top:0}.faq-section h2{margin-bottom:25px}.faq-section details{border-top:1px solid var(--line);padding:19px 0}
.faq-section details:last-child{border-bottom:1px solid var(--line)}.faq-section summary{cursor:pointer;font-size:15px;color:#dfc58f;line-height:1.8}.faq-section details p{max-width:800px;font-size:13px;line-height:1.95;color:#bcc2b3;margin-bottom:0}
@media(max-width:900px){.gateway-round .gateway-footer{flex-wrap:wrap;justify-content:center}.gateway-round .gateway-footer>span:first-child{font-size:8px}}
@media(max-width:600px){.gateway-round .gateway-footer{display:grid;grid-template-columns:1fr;text-align:center;gap:12px;padding:13px 0 28px}.community-footer-links{gap:19px}.community-footer-links a{font-size:10px}.community-grid{grid-template-columns:1fr}.community-grid article{padding:24px}.community-grid article>p:not(.overline){min-height:0}.community-intro{font-size:13px}.info-footer .community-footer-links{justify-content:flex-start}.faq-section summary{font-size:14px}}
@media(max-height:430px){.gateway-round .gateway-footer{padding:10px 0;display:flex;gap:20px}.gateway-round .community-footer-links{gap:14px}.gateway-round .community-footer-links a{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* Dragon monogram: transparent artwork replaces the welcome header seal. */
.brand-seal.brand-seal-dragon{width:52px;height:56px;object-fit:contain;flex-shrink:0;border:0;clip-path:none;background:transparent;filter:drop-shadow(0 2px 5px #0006)}
@media(max-width:600px){.brand-seal.brand-seal-dragon{width:42px;height:46px}}

/* Keep the welcome route within the visible mobile viewport, including browser chrome. */
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 .gateway.gateway-round{display:flex;height:100dvh;min-height:0;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 .gateway-round .portal-header{position:relative;flex:none;padding:12px 5.2%}
 .gateway-round .gateway-main{flex:1;min-height:0;padding-block:8px}
 .gateway-round .gateway-copy{height:100%;min-height:0}
 .gateway-round .gateway-footer{position:relative}
 .gateway-round .gateway-title{padding-bottom:clamp(12px,3dvh,30px)}
 .gateway-round .gateway-secondary{padding-top:clamp(12px,3dvh,26px)}
 .gateway-round .gateway-footer{flex:none;padding:10px 0;gap:8px}
 .gateway-round .community-footer-links{gap:12px;padding-right:40px}
 .gateway-round .community-footer-links a{min-height:32px;display:inline-flex!important;align-items:center;font-size:10px}
 .gateway-round .line-friend-link{width:44px;height:44px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px))}
 .gateway-round .line-friend-link svg{width:34px;height:34px}
}
@media(max-width:700px) and (max-height:650px){
 .gateway.gateway-round{--realm-size:132px}
 .gateway-round .overline{margin-bottom:12px;font-size:8px}
 .gateway.gateway-round h1{font-size:38px}
 .gateway.gateway-round h1 em{font-size:13px;margin-top:12px}
}

/* Static player handbook: readable without JavaScript on phones and desktop. */
.player-guide{border-top:1px solid var(--line);scroll-margin-top:24px}
.player-guide h2{font-size:clamp(25px,3vw,38px);line-height:1.5;margin:0 0 22px}
.player-guide p,.guide-steps{font-size:14px;line-height:2;color:#c6cdbb;max-width:880px}
.player-guide p a,.guide-back{color:#e6c58c;text-decoration:underline;text-underline-offset:4px}
.player-guide .guide-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0}
.player-guide .guide-index a{display:grid;gap:5px;border:1px solid var(--line);padding:18px 22px;background:#23302455;min-width:0;white-space:normal}
.guide-index strong{font:600 24px/1.4 'Cormorant Garamond',serif;color:#e6c58c}
.guide-index span{font-size:13px;line-height:1.6;color:#c6cdbb}
.player-guide .guide-index a:hover{background:#38432e88;border-color:#dfbd77}
.player-guide :focus-visible{outline:2px solid #e6c58c;outline-offset:4px}
.player-guide .guide-note{padding:14px 18px;border-left:3px solid #b69658;background:#24302066;font-size:13px;margin:24px 0}
.guide-table-wrap{max-width:100%;overflow-x:auto;margin:24px 0;border:1px solid var(--line)}
.guide-table-wrap table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.9;text-align:left}
.guide-table-wrap caption{text-align:left;padding:14px 18px;color:#e6c58c;font-weight:600;background:#29342566}
.guide-table-wrap th,.guide-table-wrap td{padding:13px 18px;border-top:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.guide-table-wrap thead th{color:#e6c58c;background:#29342544}
.guide-table-wrap tbody th{width:30%;font-weight:500;color:#e0d8c4}
.guide-table-wrap td{color:#c6cdbb}
.player-guide code,.player-guide kbd{font-family:ui-monospace,Consolas,monospace;color:#f0d69f;overflow-wrap:anywhere}
.player-guide kbd{padding:1px 6px;border:1px solid var(--line);border-radius:4px;background:#29342566}
.guide-steps{padding-left:24px}.guide-steps li{padding:4px 0 10px 6px}
.guide-back{display:inline-block;padding:12px 0;font-size:13px;min-height:44px}
.class-reference{margin-top:35px;padding-top:22px}.class-reference h3{font-size:23px}
.class-guide-data{margin:30px 0}
.class-guide-details{margin:8px 0;border:1px solid var(--line);background:#29342544}
.class-guide-details summary{padding:12px 14px;cursor:pointer;color:#e6c58c}
.class-guide-details > p{margin:0 14px 12px}
.class-guide-details .guide-table-wrap{margin:0;border:0;border-top:1px solid var(--line)}
.class-guide-details .guide-table-wrap tbody th{width:auto}
.class-guide-details[id^="stats-"] .guide-table-wrap td{white-space:nowrap}
@media(max-width:600px){.player-guide .guide-index{grid-template-columns:1fr}.guide-table-wrap th,.guide-table-wrap td{padding:10px;font-size:13px}.guide-table-wrap tbody th{width:36%}.player-guide p,.guide-steps{font-size:13px}.player-guide .guide-index a{padding:15px 18px}}

.handbook-shortcuts {
  position:sticky;
  top:0;
  height:0;
  z-index:1;
}
.handbook-toggle,.handbook-navigation {
  background:#182019;
  border:1px solid var(--line);
  color:var(--paper);
}
.handbook-navigation {
  display:block;
  position:absolute;
  padding:10px;
  overflow:auto;
  overscroll-behavior:contain;
}
.handbook-navigation h2 {
  margin:0 8px 6px;
  padding:4px 4px 8px;
  border-bottom:1px solid var(--line);
  color:#e6c58c;
  font-size:14px;
}
.handbook-navigation ul {list-style:none;margin:0;padding:0}
.handbook-navigation a {
  display:block;
  padding:4px 10px;
  border-radius:3px;
  font-size:14px;
  line-height:1.6;
}
.handbook-navigation a:is(:hover,[aria-current="location"]) {
  background:#c9a66d24;
  color:#f4d49e;
}
.handbook-navigation .handbook-classes {
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  margin:2px 0 6px 9px;
  padding-left:5px;
  border-left:1px solid var(--line);
}
.handbook-classes a {padding:2px 5px;color:#e6c58c;font-size:13px}
.handbook-shortcuts :is(a,button):focus-visible {outline:2px solid #e6c58c;outline-offset:-2px}
.handbook > section[id],.handbook .class-guide-details {scroll-margin-top:24px}

@media (min-width:1440px) {
  .handbook-shortcuts {top:clamp(24px,15vh,140px)}
  .handbook-toggle {display:none}
  .handbook-navigation {
    right:calc(50% + 620px - 7vw + 24px);
    width:clamp(150px,calc(57vw - 680px),232px);
    max-height:calc(100dvh - clamp(24px,15vh,140px) - 24px);
  }
}
@media (width < 1440px) {
  .handbook-shortcuts {top:env(safe-area-inset-top,0px)}
  .handbook-toggle {
    position:absolute;
    top:8px;
    left:7%;
    min-height:44px;
    padding:6px 12px;
    border-radius:4px;
    font:inherit;
    font-size:13px;
    cursor:pointer;
  }
  .handbook-toggle::after {content:"";display:inline-block;margin-left:8px;border:4px solid transparent;border-top-color:#e6c58c;vertical-align:middle}
  .handbook-toggle[aria-expanded="true"]::after {transform:rotate(180deg);vertical-align:baseline}
  .handbook-toggle[aria-expanded="false"] + .handbook-navigation {display:none}
  .handbook-navigation {
    top:58px;
    left:7%;
    width:min(256px,86%);
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - 80px);
  }
  .handbook-navigation h2 {display:none}
  .handbook-shortcuts .handbook-navigation a {display:flex;align-items:center;min-height:38px}
  .handbook-shortcuts:not([hidden]) ~ section[id],
  .handbook-shortcuts:not([hidden]) ~ #classes .class-guide-details {scroll-margin-top:calc(env(safe-area-inset-top,0px) + 62px)}
}
