[hidden]{display:none!important}.paint-mode{max-width:1640px;margin:auto;padding:30px}.paint-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.paint-stage-shell,.paint-controls{border:1px solid #cdece126;background:#15232d;border-radius:22px;overflow:hidden}.paint-stage-top,.paint-stage-bottom{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;gap:10px}.paint-stage-top{border-bottom:1px solid #cdece126}.paint-stage-top small{color:#99c6c7}.paint-stage-bottom{justify-content:center;flex-wrap:wrap}.paint-stage-bottom button,.paint-controls button:not(.primary-button){border:1px solid #cce9e12b;border-radius:12px;color:#e2ede7;background:#ffffff06;padding:10px 14px;cursor:pointer}.paint-stage-bottom button.active{color:#adf0dc;background:#46a69829}.paint-controls{padding:24px;display:flex;flex-direction:column;gap:18px}.paint-controls label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#b8cfce;font-size:13px}.paint-controls select{width:100%;padding:12px;background:#22333e;color:#eef6ef;border:1px solid #abcac83b;border-radius:10px}.paint-controls h2{font-size:15px;margin:8px 0 0}.paint-controls input[type=range]{width:100%;accent-color:#84ddd0}.paint-controls input[type=color]{border:0;background:none;width:45px;height:35px}.paint-colors{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.paint-colors button{aspect-ratio:1;border-radius:50%!important;padding:0!important;border:3px solid #ffffff60!important;min-height:35px}.paint-history{display:flex;gap:6px}.paint-history button{flex:1;font-size:12px}.paint-hint,.paint-save-note{font-size:12px;line-height:1.6;color:#90aaa9;margin:0}.paint-controls .primary-button{min-height:50px;width:100%;line-height:1.35}#paintStage{height:min(66vh,680px);min-height:420px;position:relative}.paint-mode button:disabled{opacity:.38;cursor:not-allowed}.app-nav{gap:22px}.world-card .world-tour-button{margin-top:9px;background:#22333a;color:#c7e8df;border:1px solid #80c8bc44}.free-preview-card{position:relative}.mobile-editor-jump{display:none}.world-tour-overlay{position:fixed;inset:0;z-index:250;background:#07121e}.world-tour-overlay canvas{width:100%;height:100%;display:block}.tour-top{position:absolute;top:20px;left:26px;right:26px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#eff8f1}.tour-top h2{margin:0;font-size:25px;text-shadow:0 2px 12px #000}.tour-top p{margin:6px 0;font-size:12px;text-shadow:0 2px 8px #000}.tour-buttons{display:flex;gap:8px}.tour-buttons button{color:#eff8f1;background:#112538b3;border:1px solid #e6f4ec55;padding:12px;border-radius:12px}.tour-bottom{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);width:min(760px,85vw);padding:18px 22px;background:#071626c9;backdrop-filter:blur(14px);border:1px solid #bce8df33;border-radius:18px;display:flex;align-items:center;gap:15px}.tour-bottom input{flex:1;min-width:60px;accent-color:#9fe8d4}.tour-bottom small{color:#e1efee;white-space:nowrap}.worlds-view .world-picture{background:linear-gradient(135deg,#22353c,#18202e)}.release-badge{font-size:10px;letter-spacing:.12em;color:#90beba;margin-left:8px}
@media(max-width:900px){.paint-mode{padding:20px}.paint-layout{grid-template-columns:1fr}.paint-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.paint-controls .paint-colors{grid-column:1/-1;display:flex}.paint-colors button{width:38px;height:38px}#paintStage{height:52vh;min-height:330px}.paint-controls h2{grid-column:1/-1}.paint-controls .paint-hint,.paint-save-note{grid-column:1/-1}.paint-stage-top,.paint-stage-bottom{padding:12px}.paint-mode .project-actions{flex-wrap:wrap}.tour-top h2{font-size:18px}.tour-top{top:15px;left:15px;right:15px}}
@media(max-width:600px){.top-nav{gap:8px}.top-nav button{font-size:11px;padding:10px 4px}.paint-mode{padding:15px}.paint-controls{padding:15px}.paint-stage-bottom button{padding:9px 8px;font-size:11px}.paint-mode h1{font-size:30px}.paint-controls .primary-button{font-size:12px}.mobile-editor-jump{display:flex;position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:24;background:#18323ee8;border:1px solid #92d5c955;border-radius:30px;backdrop-filter:blur(10px);padding:4px;box-shadow:0 7px 28px #0008}.mobile-editor-jump button{border:0;border-radius:24px;padding:11px 18px;background:transparent;color:#e5f5f0}.mobile-editor-jump button:active{background:#3c645f}.free-bottom-hint{padding-bottom:70px}.paint-stage-top small{font-size:10px}.tour-bottom{padding:14px}.tour-buttons button{padding:9px}}

.world-identity{min-height:200px;position:relative;display:grid;place-items:center;overflow:hidden}.world-glyph{font-size:116px;color:#ebfff7a1;transform:rotate(-12deg);text-shadow:4px 12px 30px #031b2a77}.world-identity:after{content:'';position:absolute;inset:18%;border:1px solid #ffffff2b;transform:rotate(24deg);border-radius:38px}.top-nav [data-view=paint]{white-space:nowrap}.tour-bottom input{height:24px}

@media(min-width:1000px) and (max-height:820px){.paint-mode{padding:14px 24px}.paint-mode .free-heading{margin-bottom:16px}.paint-mode h1{font-size:34px}.paint-mode .free-subtitle{margin:7px 0}.paint-mode .eyebrow{margin:0 0 8px}#paintStage{height:calc(100vh - 290px);min-height:280px}.paint-controls{padding:16px;gap:10px}.paint-controls select{padding:9px}.paint-controls label{font-size:12px}.paint-controls .paint-hint,.paint-save-note{font-size:10px}.paint-colors{gap:8px}.paint-colors button{max-width:42px}.paint-controls .primary-button{min-height:42px}.paint-stage-top,.paint-stage-bottom{padding:10px 14px}.paint-controls h2{margin:0}.paint-controls button:not(.primary-button){padding:8px 10px}}
/* v15: the scene selector must not push Close beyond a portrait viewport. */
.tour-top>div:first-child{min-width:0}.tour-buttons{flex-wrap:wrap;justify-content:flex-end;min-width:0}.tour-buttons button{white-space:nowrap;cursor:pointer}.tour-top p{max-width:58vw}
@media(max-width:700px){.tour-top{flex-direction:column;align-items:stretch;gap:8px}.tour-top p{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tour-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.tour-buttons #tourEncounter{grid-column:1/-1;width:100%;max-width:none!important;min-width:0}.tour-buttons button{min-width:0;padding:10px 5px;font-size:12px}.tour-bottom{max-width:calc(100vw - 24px);box-sizing:border-box;gap:9px}.tour-bottom small{font-size:10px}}

/* v17: settings never displace the close control outside portrait screens. */
.tour-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0}.tour-buttons select{max-width:100%;min-height:38px}.tour-top{align-items:flex-start;flex-wrap:wrap}.tour-top>div:first-child{min-width:0}.tour-top #tourName{font-size:clamp(15px,2.5vw,23px)}
@media(max-width:600px){.tour-top{gap:8px;padding:12px}.tour-buttons{width:100%;justify-content:flex-start}.tour-buttons #tourEncounter{max-width:190px!important;flex:1 1 160px}.tour-buttons #tourClose{margin-left:auto}#tourDistrict{font-size:11px;margin:4px 0}}
