:root{--header-h:72px;--phone-frame:390px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#fffdf9;color:#3f3330}html{scroll-behavior:smooth}html.detail-open{overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden;container-type:inline-size;container-name:app-surface}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,[role="link"]:focus-visible{outline:2px solid currentColor;outline-offset:3px}img{display:block;-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}.clean-header{position:sticky;top:0;z-index:90;height:var(--header-h);display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:var(--header,#d8b8c7);color:var(--header-text,#21152a);transition:background .18s ease,color .18s ease}.clean-brand{font:800 24px/.83 Arial,sans-serif;letter-spacing:.06em}.clean-nav{display:flex;gap:34px}.clean-nav button{appearance:none;border:0;background:transparent;color:inherit;padding:8px 0;font:500 13px/1 Arial,sans-serif;letter-spacing:.18em}.clean-main{min-height:calc(100svh - var(--header-h));container-type:inline-size;container-name:clean-main}.clean-error,.clean-empty{padding:40px;text-align:center;color:#8d4d4d}.clean-loader{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;background:#fffaf5;color:#7d625e;opacity:1;transition:opacity .14s ease}.clean-loader[hidden]{display:none}.clean-loader.is-leaving{opacity:0;pointer-events:none}.clean-loader-inner{text-align:center}.clean-loader-brand{font:600 22px/1 Arial,sans-serif;letter-spacing:.18em}.clean-loader-label{margin-top:14px;font:600 9px/1 Arial,sans-serif;letter-spacing:.28em;opacity:.6}.clean-loader-inner::after{content:'•••';display:block;margin-top:18px;letter-spacing:.55em;opacity:.3;animation:loaderPulse 1.05s ease-in-out infinite}@keyframes loaderPulse{50%{opacity:.8}}[data-fade]{opacity:0;transition:opacity .2s ease}[data-fade].is-ready{opacity:1}
body:not([data-clean-page]) .clean-header{display:none}
/* Direct phone HOME bands keep deterministic width even if a wide-screen rule leaves grid alignment properties behind. */
.home-mobile-intro,.home-mobile-lace{width:100%;justify-self:stretch}.home-mobile-notice{width:calc(100% - 10px);justify-self:stretch}
/* WORLD table chrome is preloaded before reveal. Do not run a second opacity reveal that can expose names before their art. */
.world-page .world-tray-art[data-fade],.world-page .world-cutlery[data-fade],.world-page .world-char-art img[data-fade],.world-page .world-nav img[data-fade]{opacity:1!important;transition:none!important}
/* The visually approved full-size iPad HOME has no global site header. */
@media(min-width:701px){body[data-clean-page='home'] .clean-header{display:none}body[data-clean-page='home'] .clean-main{min-height:100svh}}
/* The approved iPad landscape WORLD used a compact 44px chrome bar. */
@media(min-width:900px) and (orientation:landscape){body[data-clean-page='world']{--header-h:44px}body[data-clean-page='world'] .clean-header{height:44px;min-height:44px;padding:0 4vw;box-shadow:none;border:0}body[data-clean-page='world'] .clean-brand{font-size:19px}body[data-clean-page='world'] .clean-nav{gap:28px}body[data-clean-page='world'] .clean-nav button{font-size:11px}}
@media(max-width:700px){:root{--header-h:64px}.clean-header{padding:0 18px}.clean-brand{font-size:19px}.clean-nav{gap:16px}.clean-nav button{font-size:10px;letter-spacing:.12em}}
/* Split View is only a frame around the exact phone surface. No HOME/WORLD/DETAIL geometry is re-authored here. */
html[data-clean-viewport='framed-mobile']{--header-h:64px;background-color:#fff;background-image:radial-gradient(circle,#7768621a 0 1.2px,transparent 1.5px),radial-gradient(circle,#7768621a 0 1.2px,transparent 1.5px);background-size:26px 26px;background-position:0 0,13px 13px}
html[data-clean-viewport='framed-mobile'] body{width:var(--phone-frame);margin-inline:auto;background:#fffdf9;box-shadow:0 0 28px #79645b12}
/* Keep vertical touch scrolling on the document. overflow-x:hidden on BODY
   creates an additional scrolling container in WebKit and can rubber-band/trap
   vertical swipes near the horizontal WORLD card rail. clip avoids that. */
html[data-clean-viewport='mobile'] body[data-clean-page='home'],
html[data-clean-viewport='framed-mobile'] body[data-clean-page='home']{
  overflow-x:clip;
  overflow-y:visible;
}
/* Normal finger scrolling should never inherit animated root scrolling. */
html[data-clean-viewport='mobile']:not(.detail-open):has(body[data-clean-page='home']),
html[data-clean-viewport='framed-mobile']:not(.detail-open):has(body[data-clean-page='home']){
  scroll-behavior:auto;
}
html[data-clean-viewport='framed-mobile'] body[data-clean-page] .clean-header{display:flex;height:64px;min-height:64px;padding:0 18px}
html[data-clean-viewport='framed-mobile'] .clean-brand{font-size:19px}
html[data-clean-viewport='framed-mobile'] .clean-nav{gap:16px}
html[data-clean-viewport='framed-mobile'] .clean-nav button{font-size:10px;letter-spacing:.12em}
html[data-clean-viewport='framed-mobile'] body[data-clean-page='home'] .clean-main{min-height:calc(100svh - var(--header-h))}
html[data-clean-viewport='framed-mobile'] .clean-loader{left:50%;right:auto;width:var(--phone-frame);translate:-50% 0;box-shadow:0 0 28px #79645b18}
/* Fixed detail chrome is clipped to the framed phone surface; its internal geometry still comes from the one shared phone ruleset. */
html[data-clean-viewport='framed-mobile'] .detail-overlay,html[data-clean-viewport='framed-mobile'] .detail-page-bg,html[data-clean-viewport='framed-mobile'] .detail-pattern{left:50%;right:auto;width:var(--phone-frame);translate:-50% 0}
/* The translated 390px overlay is itself the positioning context for the close button. */
html[data-clean-viewport='framed-mobile'] .detail-close{right:18px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.world-title-part {
  display: inline-block;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
