html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }
img, canvas { -webkit-touch-callout: none; -webkit-user-drag: none; }
.company-direction { --world-cream: #f4e6c7; --world-gold: #d5ac65; --world-red: #a93e48; }
#worldLetter[hidden], #worldObjective[hidden] { display: none; }
#worldLetter { position: absolute; inset: 0; z-index: 145; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(12, 9, 14, .78); backdrop-filter: blur(4px); container-type: size; }
.world-letter { width: min(850px, 100%); max-height: 100%; overflow: auto; padding: clamp(14px, 3cqh, 28px); color: #f4e6c7; background: #281c28; border: 18px solid transparent; border-image: url('../assets/ui-monster/panel.webp') 100 fill / 18px / 0 stretch; border-radius: 8px; box-shadow: 0 18px 55px #0009; font-family:var(--ui-font); animation: world-file-in .42s cubic-bezier(.2,.85,.25,1.12) both; }
.world-letter header { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid #bb94694d; font-size: clamp(10px, 2.1cqh, 13px); letter-spacing: .13em; color: #cbb18d; }
.world-letter-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(15px, 4cqw, 40px); padding: clamp(12px, 4cqh, 30px) 0; }
.world-letter h1 { font-size: clamp(19px, 5cqh, 32px); line-height: 1.4; margin: 0 0 12px; color: #ffe8ae; }
.world-letter p { font-size: clamp(12px, 2.7cqh, 16px); line-height: 1.8; margin: 0; }
.world-letter blockquote { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid #b99258; color: #c9b9ad; font-size: clamp(11px, 2.4cqh, 14px); line-height: 1.6; }
.world-seal { width: clamp(65px, 16cqh, 125px); aspect-ratio: 1; display: grid; place-items: center; border: 3px double #d25d60; border-radius: 50%; color: #e27c7a; transform: rotate(-12deg); box-shadow: inset 0 0 0 6px #281c28, inset 0 0 0 7px #b85056; font-size: clamp(16px, 4cqh, 25px); font-weight: 900; text-align: center; animation: world-stamp .55s .15s both; }
.world-seal span { max-width: 3em; }
.world-seal .world-seal-four { max-width: 2em; }
.world-letter-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.world-letter-actions button { display: grid; align-content: center; gap: 6px; min-height: 46px; padding: 12px 14px; border: 1px solid #997c55; background: #382a32; color: #f5e6cf; border-radius: 5px; text-align: left; touch-action: manipulation; cursor: pointer; transition: transform .12s, background .12s; }
.world-letter-actions button:first-child { background: #e4bd75; border-color: #ffe5a7; color: #2e1e1c; }
.world-letter-actions button:active { transform: translateY(2px) scale(.99); }
.world-letter-actions button:focus-visible { outline: 3px solid #b6ebe5; outline-offset: 3px; }
.world-letter-actions button:disabled { opacity: .45; cursor: not-allowed; }
.world-letter-actions strong { font-size: clamp(13px, 2.8cqh, 16px); }
.world-letter-actions span { font-size: clamp(11px, 2.2cqh, 13px); line-height: 1.55; }
.world-report { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 8px; gap: 12px; }
.world-report dt { color: #c5b09e; font-size: 11px; }
.world-report dd { font-size: clamp(18px, 4cqh, 28px); margin: 4px 0 0; color: #ffe3a1; font-variant-numeric: tabular-nums; }
.world-letter .world-report-events { font-size: 12px; color: #c7bbad; }
#worldObjective { position: absolute; z-index: 23; top: max(19%, 75px); left: 50%; transform: translateX(-50%); max-width: 52%; padding: 7px 15px; border: 1px solid #ddbc76; border-radius: 4px; color: #fff0cc; background: #201823e8; font: 700 clamp(11px, 1.4vw, 15px)/1.5 var(--ui-font); text-align: center; pointer-events: none; }
@keyframes world-file-in { from { opacity: 0; transform: translateY(22px) rotate(-1deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes world-stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.5); } 55% { opacity: 1; transform: rotate(-12deg) scale(.94); } 100% { transform: rotate(-12deg) scale(1); } }
@media(max-width:430px) { .world-letter-main { grid-template-columns: 1fr; } .world-seal { display: none; } .world-letter-actions { grid-template-columns: 1fr; } .world-report { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .world-letter, .world-seal { animation: none; } .world-letter-actions button { transition: none; } }

/* Author-facing entrance to isolated scenarios; not part of the in-game shop UI. */
.world-preview-page { margin: 0; min-height: 100dvh; color: #f5e7cc; background: linear-gradient(#18101be0,#18101bf5), url('../assets/art-review/workplace-arena.webp') center / cover fixed; font-family:var(--ui-font); padding: max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
.world-preview-page * { box-sizing: border-box; }
.world-preview-page main { max-width: 1140px; margin: auto; }
.world-preview-page header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0 22px; border-bottom: 1px solid #997f524d; }
.world-preview-page header span { letter-spacing: .12em; font-size: 12px; color: #cdb78f; }
.world-preview-page a { touch-action: manipulation; color: inherit; text-decoration: none; }
.world-preview-page header a { font-size: 13px; color: #e2bd77; border-bottom: 1px solid #9a805d; padding: 8px 0; }
.world-preview-hero { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 20px; align-items: center; padding: 38px 0 28px; }
.world-preview-hero h1 { font-size: clamp(29px,4vw,53px); color: #ffe3a9; margin: 0 0 14px; line-height: 1.3; }
.world-preview-hero p { color: #cfbba7; line-height: 1.7; }
.world-preview-hero .world-seal { width: 150px; justify-self: center; font-size: 30px; background:#281c28; }
.world-preview-page .world-preview-play { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 36px; background: #e0b66c; color: #241a1f; border: 2px solid #f9dca4; box-shadow: 0 4px 0 #76573d; border-radius: 5px; font-weight: 900; }
.world-preview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.world-preview-grid a { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 8px 12px; align-items: center; padding: 20px 16px; border: 1px solid #8e6d50; border-radius: 7px; background: #2e222bed; transition: border-color .15s,transform .15s; }
.world-preview-grid a:hover { border-color: #f1ce89; transform: translateY(-3px); }
.world-preview-grid img { width: 44px; height: 50px; object-fit: contain; grid-row: span 2; }
.world-preview-grid strong { font-size: 15px; color: #f4d69d; }
.world-preview-grid span { font-size: 12px; color: #c6b5ab; line-height: 1.6; }
.world-preview-note { color: #aa9b95; font-size: 12px; padding-top: 22px; }
.world-preview-page h2 { font-size: 16px; letter-spacing: .12em; margin: 20px 0 16px; }
@media(max-width:768px) { .world-preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .world-preview-hero { grid-template-columns: minmax(0,1fr) 130px; } .world-preview-hero .world-seal { width: 110px; font-size: 24px; } }
@media(max-width:430px) { .world-preview-hero { grid-template-columns: 1fr; } .world-preview-hero .world-seal { display: none; } .world-preview-grid { grid-template-columns: 1fr; } }
