/* Original art is never cropped or covered. The two existing painted entry areas are interactive. */
.official-gateway{margin:0;min-height:0;background:radial-gradient(ellipse at top,#754820,#3e2818);color:#ffe7a6;font-family:system-ui,sans-serif}.official-gate{width:min(100%,600px);margin:auto}.gate-site-name{font-size:17px;line-height:1.4;text-align:center;margin:0;padding:8px;color:#fbe3b0;letter-spacing:.15em}.gate-art{position:relative}.gate-art>img{display:block;width:100%;height:auto}.gate-links{position:absolute;inset:0;pointer-events:none}.gate-enter{position:absolute;top:52.6%;height:9.2%;width:47.5%;border-radius:10px;pointer-events:auto;box-sizing:border-box;outline-offset:3px;min-height:44px}.gate-palace{left:1.4%}.gate-school{right:1.4%}.gate-enter span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gate-enter:focus-visible{outline:4px solid #fff;box-shadow:0 0 0 8px #062d38}.gate-enter:hover{box-shadow:inset 0 0 0 3px #fff8}.official-home-label{display:block;font-size:12px;line-height:1.3;color:inherit}
body:has(.palace-catalog){background:radial-gradient(ellipse at top,#4b291a,#161514 75%)!important}.palace-page-title{text-align:center!important;font-size:clamp(30px,4vw,42px)!important;color:#f1d49a!important;line-height:1.3!important;margin:10px 0!important}.palace-catalog{color:#f8eedc;background:linear-gradient(130deg,#40281e,#1d292b);border:1px solid #ba985b;border-radius:14px;padding:20px;margin:12px 0}.palace-catalog :is(h2,h3,p,a,summary,dt,dd){color:inherit!important;-webkit-text-fill-color:currentColor!important}.palace-catalog h2{font-size:30px!important;line-height:1.4;margin:5px 0}.palace-catalog p{font-size:17px!important;line-height:1.6;margin:8px 0}.palace-catalog .space-eyebrow{color:#efc984!important;font-size:16px!important}.palace-catalog .palace-lead{font-size:21px!important;font-weight:750}.palace-catalog .palace-promise{font-size:19px!important;color:#f3d496!important}.palace-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.palace-product{min-width:0;border:1px solid #c4a15f;border-radius:10px;background:#2b2320;align-self:start;overflow-wrap:anywhere}.palace-product summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;padding:15px 12px;min-height:78px;box-sizing:border-box}.palace-product summary::-webkit-details-marker{display:none}.palace-product summary span{font-size:20px!important;font-weight:800}.palace-product summary small{grid-row:2;font-size:15px!important;color:#eddbb9!important}.palace-product summary b{grid-column:2;grid-row:1/3;font-size:22px}.palace-product[open]{grid-column:1/-1}.palace-product[open] summary{border-bottom:1px solid #977643;background:#64432b}.palace-product[open] summary b{transform:rotate(45deg)}.product-content{padding:16px}.product-content h3{font-size:20px!important;margin:12px 0 6px}.product-content dl{margin:8px 0}.product-content dl>div{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:8px;border-bottom:1px solid #ffffff25}.product-content dt{font-weight:700}.product-content dd{margin:0}.product-content :is(a,button){font-size:17px!important;min-height:44px;display:inline-flex;align-items:center;padding:9px 12px;border-radius:8px;box-sizing:border-box;white-space:normal}.product-content a{color:#f9e4ae!important;text-decoration:underline;outline-offset:3px}.product-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.product-actions a{background:#d9ba7c;color:#102735!important;font-weight:700}.product-actions button:disabled{background:#3d4342;color:#d9e0db!important;border:1px solid #9fa8a1;opacity:1}.palace-legacy{margin:16px 0;border:1px solid #b99c65;border-radius:10px}.palace-legacy>summary{padding:14px;color:#f9e3b3;font-size:18px;cursor:pointer;min-height:44px}.palace-legacy>.saju-room,.palace-legacy>.saju-guide{margin:12px!important}.space-note{font-size:16px!important;line-height:1.6!important}.seowon-welcome{display:grid!important;grid-template-columns:1fr 155px;gap:20px;align-items:center;padding:24px!important;border:1px solid #aa9973;background:linear-gradient(135deg,#21473b,#142b29)!important;border-radius:12px;margin:14px auto!important}.seowon-welcome h1{font-size:clamp(28px,4vw,40px)!important;line-height:1.4!important;color:#f9ecd2!important}.seowon-welcome p{font-size:18px!important;line-height:1.6;color:#f2e6ce!important}.seowon-welcome img{width:100%;height:215px;object-fit:cover;object-position:top;border:1px solid #b69f76;border-radius:8px}.seowon-site{background:radial-gradient(ellipse at top,#253c31,#141e1d 75%)!important}.seowon-entrances>a{background:#25463d!important;grid-template-columns:1fr!important;padding:16px!important;min-height:80px!important;color:#f8efd9!important}.seowon-entrances .entrance-copy>span{font-size:16px!important;color:#eee5d1!important}.seowon-entrances .entrance-label{font-size:22px!important;color:#f4d99b!important}.seowon-site main .seowon-entrances{grid-template-columns:repeat(3,minmax(0,1fr))!important}.seowon-site .brand-header{border-color:#b2a078!important}.seowon-site .home-entrances{scroll-margin-top:80px}summary:focus-visible,.product-content a:focus-visible{outline:3px solid #ffe4a6}
@media(max-width:760px){.palace-products{grid-template-columns:repeat(2,minmax(0,1fr))}.palace-catalog{padding:14px}.palace-catalog h2{font-size:26px!important}.palace-product summary{padding:12px 10px;min-height:85px}.palace-product summary span{font-size:19px!important}.seowon-welcome{grid-template-columns:1fr 105px;padding:16px!important;gap:12px}.seowon-welcome img{height:170px}.seowon-site main .seowon-entrances{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.product-content dl>div{grid-template-columns:1fr;gap:3px}.product-content{padding:12px}.product-actions a,.product-actions button{width:100%}.palace-catalog .palace-lead{font-size:19px!important}.palace-product summary span{font-size:18px!important}.seowon-welcome h1{font-size:27px!important}.seowon-welcome{grid-template-columns:1fr 88px}.seowon-welcome p{font-size:17px!important}.seowon-entrances>a{padding:12px!important}.seowon-entrances .entrance-label{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Public QA: keep new space themes above retained legacy !important rules. */
body.premium-dark .palace-catalog .palace-product{background:linear-gradient(145deg,#3d2b20,#211d18)!important;border:1px solid #bd9a5d!important;margin:0!important;border-radius:10px!important}
body.premium-dark .palace-catalog .palace-product summary{display:grid!important;grid-template-columns:1fr auto!important;gap:6px!important;padding:15px 12px!important;min-height:85px!important;color:#f7e5bb!important;background:transparent!important}
body.premium-dark .palace-catalog .palace-product summary::before,body.premium-dark .palace-catalog .palace-product summary::after{content:none!important;display:none!important}
body.premium-dark .palace-catalog .palace-product summary span{font-size:20px!important;line-height:1.4!important;color:#f7e5bb!important}
body.premium-dark .palace-catalog .palace-product[open] summary{background:#63432c!important}
body.premium-dark.seowon-site{background:radial-gradient(ellipse at top,#34473c,#131e1c 75%)!important}
body.premium-dark.seowon-site main .seowon-entrances>a{background:linear-gradient(135deg,#2e4b3f,#1a342e)!important;border-color:#b3a17b!important;grid-template-columns:1fr!important}
body.premium-dark.seowon-site .brand-header{background:#1c332c!important;border-bottom:1px solid #b3a17b!important}
body.premium-dark.seowon-site .seowon-welcome{border-top:5px double #b3a17b!important;box-shadow:inset 0 0 0 5px #ead9aa08}
@media(max-width:480px){body.premium-dark .palace-catalog .palace-product summary{padding:12px 10px!important}body.premium-dark .palace-catalog .palace-product summary span{font-size:18px!important}}

/* Confined to the existing floor diagram; upper portrait, signs and two entry regions untouched. */
.official-gateway .gate-diagram{position:absolute;left:0;top:64.3229167%;width:100%;height:30.5989583%;padding:0;margin:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;z-index:1;clip-path:ellipse(47.66% 47.87% at 50% 48.72%)}
.gate-diagram img{display:block;width:100%;height:100%;pointer-events:none}
.gate-diagram:focus-visible{outline:4px solid #fff4ac;outline-offset:-5px}
.official-gateway .gate-links{z-index:2}
#gate-diagram-dialog{padding:16px;width:min(1000px,calc(100vw - 32px));max-height:calc(100svh - 28px);box-sizing:border-box;overflow:auto;background:#2b2017;color:#fff0ce;border:2px solid #d9b674;border-radius:12px;font-family:system-ui,sans-serif}
#gate-diagram-dialog::backdrop{background:#000b}.gate-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.gate-dialog-head h2{font-size:22px;margin:0 0 10px}.gate-dialog-head button{font-size:18px;min-width:64px;min-height:44px;background:#efd297;color:#172a32;border:0;border-radius:8px;padding:8px 12px;cursor:pointer}.gate-diagram-scroll{overflow:auto;overscroll-behavior:contain}.gate-diagram-scroll img{display:block;width:100%;height:auto;min-width:620px}#gate-diagram-dialog p{font-size:18px;line-height:1.6;margin:9px 0}.gate-zoom-note{color:#e2cdaa}

/* Shared control sizing only. No application state, handlers or image assets. */
:root{--ui-touch:52px;--ui-gap:12px;--button-height:52px;--button-primary-height:58px;--button-font:18px}
html body :is(button:not(.gate-diagram),[role="button"],input[type="submit"],input[type="button"],.button,.action,.primary,.secondary,.gold,.text-link,.book-link,.home-link,.saju-guide-link,.saju-room-enter,.home-saju-primary,.member-primary,.nasabu-counsel-link,.reader-back-toc){
 min-height:var(--button-height)!important;min-width:44px!important;max-width:100%!important;box-sizing:border-box!important;
 font-size:var(--button-font)!important;line-height:1.45!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:anywhere!important;
 touch-action:manipulation;
}
html body :is(button:not(.gate-diagram):not(:has(img)),input[type="submit"],input[type="button"],a.button,a.action,a.primary,a.secondary,a.gold,a.text-link,a.book-link,a.home-link,a.saju-guide-link,a.saju-room-enter,a.home-saju-primary,a.member-primary,a.nasabu-counsel-link,a.reader-back-toc){padding:12px 16px!important}
html body :is(a.button,a.action,a.primary,a.secondary,a.gold,a.text-link,a.book-link,a.home-link,a.saju-guide-link,a.saju-room-enter,a.home-saju-primary,a.member-primary,a.nasabu-counsel-link,a.reader-back-toc){display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
html body :is(.primary,.gold,.member-primary,.home-saju-primary,.saju-room-enter,.participation-submit,[data-claim-submit],button[type="submit"]){min-height:var(--button-primary-height)!important;font-size:19px!important;font-weight:800!important}
html body.premium-dark :is(.primary,.gold,.member-primary,.home-saju-primary,.saju-room-enter,.participation-submit,[data-claim-submit]):not(:disabled):not([aria-disabled="true"]){background:#DCC18A!important;color:#102B3A!important;-webkit-text-fill-color:currentColor!important;border:2px solid #F0DCAA!important}
html body :is(button,.button,.action,.primary,.secondary,.reader-back-toc,summary):focus-visible{outline:3px solid #A96810;outline-offset:3px}
html body.premium-dark :is(button,.button,.action,.primary,.secondary,.reader-back-toc,summary):focus-visible{outline-color:#F0DCAA}
html body summary{min-height:52px!important;box-sizing:border-box!important;font-size:18px!important;line-height:1.45!important;padding-block:12px!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body :is(nav:not(.gate-links),.experience-actions,.participation-actions,.saju-room-front-actions,.nasabu-introduction-actions,.saju-guide-actions,.saju-app-actions,.home-saju-actions,.product-actions,.pair-actions,.pair-buttons,.face-options,.home-face-options,.face-tabs,.story-tabs,.shelf-chips,.example-picker,.reader-controls,.reader-toc-books,.ency-types,.ency-topics,.launch-links,.episode-nav,.comic-controls,.actions){gap:12px!important;min-width:0}
html body :is(nav:not(.gate-links),.experience-actions,.participation-actions,.saju-room-front-actions,.nasabu-introduction-actions,.saju-guide-actions,.saju-app-actions,.home-saju-actions,.product-actions,.pair-actions,.actions){flex-wrap:wrap}
html body :is(header,footer,nav:not(.gate-links),.episode-one-index,.product-actions,.pair-actions,.home-saju-actions,.saju-room-front-actions,.saju-guide-actions,.saju-app-actions,.experience-actions,.launch-links,.room-exits) > a:not(:has(img)):not(.skip):not(.brand):not(.brand-home):not(.neowana-brand):not(.room-home-link){min-height:52px!important;min-width:44px!important;max-width:100%;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:12px 14px!important;font-size:18px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center}
html body :is(button,.button,.action,.primary,.secondary,summary)[hidden]{display:none!important}
/* Older page-specific ID rules must also inherit the shared dimensions. */
html body :is(#match,#relation-experiences,#quick-start,#saju-application,#simple-participation,#ency-reading) :is(button:not(:has(img)),.button,.primary,.secondary){min-height:var(--button-height)!important;min-width:44px!important;font-size:var(--button-font)!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:12px 16px!important}
html body :is(#match,#relation-experiences,#quick-start,#saju-application,#simple-participation) :is(.primary,.gold,button[type="submit"]){min-height:var(--button-primary-height)!important;font-size:19px!important}
html body #match :is(.pair-buttons,.pair-actions),html body #relation-experiences .experience-actions{gap:12px!important}
html body main .comic-reader .reader-controls{gap:12px!important}
html body main .comic-reader .reader-controls button,html body main .comic-reader .reader-back-toc{min-height:56px!important;padding:12px 16px!important;font-size:18px!important;line-height:1.45!important}
html body main .comic-reader .reader-picker select{min-height:52px!important;font-size:18px!important}
html body .ency-types,html body .ency-topics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
html body .ency-types button,html body .ency-topics button{padding:12px 8px!important;font-size:18px!important}
html body .ency-types button:last-child{grid-column:auto}
html body :is(.brand-header,.info-header,.ency-header,.neowana-header,.comic-site>header){flex-wrap:wrap;gap:12px!important}
html body .face-trigger{padding:0!important;min-height:52px!important;min-width:52px!important}
/* Change only the lettering area of the baked red button. Its frame, icon,
   arrow and destinations remain intact. Both entrance frames share one height. */
html body .gate-palace .gate-palace-copy{position:absolute;left:30%;right:7.5%;top:12px;bottom:12px;width:auto;height:auto;margin:0;padding:0;clip-path:none;overflow:visible;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:linear-gradient(100deg,#570300,#750500 65%,#4e0500);color:#fff1d2;white-space:normal;text-align:center;font-family:serif;text-shadow:0 1px 2px #210000}
html body .gate-palace-copy strong{font-size:clamp(17px,3.6vw,26px);letter-spacing:-.6px;line-height:1.2;font-weight:800;white-space:nowrap}
html body .gate-palace-copy small{font-size:clamp(10px,2.75vw,17px)!important;line-height:1.3!important;white-space:nowrap;color:#ffdfa0!important}
html body .gate-palace-copy em{font-size:clamp(10px,2.45vw,15px);font-style:normal;font-weight:700;line-height:1.2;color:#fff8e8}
@media(min-width:761px){:root{--button-height:56px;--button-primary-height:60px;--button-font:19px}html body summary{min-height:56px!important;font-size:19px!important}}
@media(max-width:480px){
 html body :is(.experience-actions,.product-actions,.saju-app-actions,.saju-guide-actions,.home-saju-actions){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body :is(.experience-actions,.product-actions,.saju-app-actions,.saju-guide-actions,.home-saju-actions)>:is(a,button){width:100%!important;min-width:0!important}
 html body :is(.ency-types,.ency-topics){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #match .pair-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body main .comic-reader .reader-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

html body .gate-enter{min-height:52px}

/* Enlarge the two original gold frames using the original image's entrance
   strip (y=808..949). No bitmap replacement or font reduction. */
html body.official-gateway .gate-links{--gate-button-height:clamp(74px,15.333333vw,92px)}
html body.official-gateway .gate-links::before{content:"";position:absolute;left:0;right:0;top:calc(57.2% - var(--gate-button-height)/2);height:var(--gate-button-height);background-image:url('/assets/hyemyeong-official-gate.png');background-repeat:no-repeat;background-size:100% 1086.956522%;background-position:center 57.938%;pointer-events:none}
html body.official-gateway .gate-enter{top:calc(57.2% - var(--gate-button-height)/2);height:var(--gate-button-height);min-height:74px}
html body.official-gateway .gate-palace-copy>strong,html body.official-gateway .gate-palace-copy>small{flex:none;display:block;margin:0;padding:0}
html body .saju-entry-link{display:inline-flex;align-items:center;justify-content:center;min-height:52px;min-width:44px;box-sizing:border-box;max-width:100%;padding:12px 16px;font-size:18px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;text-align:center}

html body.seowon-site .seowon-saju-entry{margin-top:12px;width:min(100%,260px)}

body .order-legal-notice{margin:18px 0;padding:16px;border:1px solid #b69555;border-radius:12px;line-height:1.85;overflow-wrap:anywhere}body .order-legal-notice a{text-decoration:underline;text-underline-offset:3px}body .info-main p,body .info-main dd,body .info-main li{line-height:1.9;overflow-wrap:anywhere}body .info-main a{min-height:24px}body .info-main .privacy-items>div{min-width:0}body .info-main .legal-details>summary{padding:12px 0;cursor:pointer}@media(max-width:760px){body .info-main{width:calc(100% - 32px);max-width:820px;margin-inline:auto}body .info-main p,body .info-main dd,body .info-main li,body .order-legal-notice{font-size:17px}body .info-main h2{font-size:21px}body .order-legal-notice{padding:14px}body .info-main .privacy-items dt{font-size:18px}}

.gateway-legal{max-width:820px;margin:16px auto;padding:20px 16px;color:#eadfc7;font:14px/1.8 sans-serif;overflow-wrap:anywhere}.gateway-legal p{margin:0 0 8px}.gateway-legal nav{display:flex;flex-wrap:wrap;gap:6px 18px}.gateway-legal a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:underline}@media(max-width:760px){.gateway-legal{font-size:15px}.gateway-legal nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

body .customer-contact{line-height:1.85;overflow-wrap:anywhere}body .customer-contact a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere;color:inherit;text-decoration:underline;text-underline-offset:3px}body footer.site-footer.wrap .customer-contact{grid-column:1/-1}
