/* Product-owned token palette from @tiny-world/ui. Art is resolved through stable visual slots. */
[hidden]{display:none!important}
:root{--bg:#f4fbf5;--fg:#17243b;--muted:#445d79;--accent:#205c5a;--accent-fg:#f4fbf5;--surface:#ffffff;--line:#c4d8cf;--focus:#b87935;--radius:8px;--raised:#fff3d6;--ocean:#283d59}
@media(prefers-color-scheme:dark){:root{--bg:#17243b;--fg:#d8e8e8;--muted:#abc5ce;--accent:#6dc7a0;--accent-fg:#17243b;--surface:#283d59;--line:#445d79;--focus:#ffe194;--raised:#445d79}}
.public-page main,.public-page .site-header,.public-page .site-footer{max-width:1200px}.site-header{max-width:1200px;padding-block:20px}.brand{display:flex;align-items:center;gap:12px;letter-spacing:-.04em;font-size:22px}.site-header nav{gap:20px;font-size:14px}.site-header nav a{text-decoration:none}.site-footer{max-width:1200px;margin-top:48px}.site-footer p{display:flex;flex-wrap:wrap;gap:12px}.public-page main{padding-block:42px 60px}h1{font-size:clamp(30px,4vw,58px);font-weight:750;letter-spacing:-.045em;line-height:1.06}h2{line-height:1.25;letter-spacing:-.02em}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:700;color:var(--muted);margin-bottom:14px}.lead{max-width:46rem;font-size:18px;line-height:1.7}.hero{display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:48px;padding-block:24px 58px}.hero-copy .actions{margin-top:28px}.ocean-scene{position:relative;min-height:340px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--ocean)}#ocean-preview{display:block;width:100%;aspect-ratio:16/9;image-rendering:pixelated}.scene-label{position:absolute;bottom:18px;left:22px;font:11px/1.4 ui-monospace,monospace;letter-spacing:.08em;color:#d8e8e8}.scene-fallback{display:flex;gap:18px;align-items:center;justify-content:center;position:absolute;inset:0}.scene-fallback img{width:48px;height:48px;object-fit:contain}.scene-ready .scene-fallback{display:none}.pixel-art{image-rendering:pixelated;object-fit:contain}.feature-grid,.help-grid,.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.surface{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.surface h2:first-child{margin-top:0}.feature-grid h2{margin-top:18px;font-size:20px}.feature-grid p,.help-grid p{font-size:14px;color:var(--muted)}.feature-number{font:12px ui-monospace,monospace;color:var(--accent)}.art-strip{padding:36px 0;display:flex;align-items:center;justify-content:space-between;gap:32px;border-bottom:1px solid var(--line)}.art-strip h2{margin:0;font-size:18px}.art-icons{display:flex;flex-wrap:wrap;gap:16px;justify-content:end}.art-icons img{width:40px;height:40px}.page-heading{margin-bottom:32px}.heading-actions{display:flex;justify-content:space-between;align-items:center;gap:20px}.page-heading h1{font-size:38px}.tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:24px}.tabs a,.tabs button{padding:8px 14px;color:var(--muted);text-decoration:none;border-radius:6px;border:0;background:transparent;font:inherit;cursor:pointer}.tabs [aria-current]{background:var(--accent);color:var(--accent-fg)}.filter-bar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px}.filter-bar label{font-size:12px;font-weight:600;min-width:110px;flex:1}.filter-bar label:first-of-type{flex:2;min-width:180px}.filter-bar input,.filter-bar select{margin-top:4px}.checkbox-label{display:flex;align-items:center;gap:8px;min-height:42px}.creation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.creation-card{padding:0;overflow:hidden}.creation-art{display:flex;align-items:center;justify-content:center;background:var(--raised);height:200px}.creation-art img{max-width:85%;max-height:85%;width:160px;height:160px}.creation-copy{padding:20px}.creation-copy h2{margin:0 0 6px;font-size:20px}.creation-copy h2 a{text-decoration:none;color:var(--fg)}.creation-copy .eyebrow{font-size:10px;margin:0 0 8px}.card-description{font-size:13px;min-height:40px}.card-stats{display:flex;flex-wrap:wrap;gap:18px;font-size:11px;color:var(--muted)}.empty-state{padding:60px 28px;grid-column:1/-1;text-align:center;border:1px dashed var(--line);border-radius:var(--radius)}.empty-state img{width:128px;height:96px}.empty-state h2{font-size:20px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}.detail-grid h1{font-size:38px}.detail-art{display:flex;align-items:center;justify-content:center;min-height:400px;background:var(--raised)}.detail-art img{max-width:80%;max-height:360px;width:256px;height:256px}.detail-actions{margin-top:28px}.detail-lower,.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:28px}.detail-lower code{font-size:11px}.report-form{margin-top:28px;max-width:600px}.report-form label,.studio-grid label,#admin-action-form label{display:block;font-weight:600;font-size:13px;margin-bottom:18px}.report-form input,.report-form select,.report-form textarea,.studio-grid input,.studio-grid select,.studio-grid textarea,#admin-action-form input,#admin-action-form select,#admin-action-form textarea{display:block;margin-top:6px}.studio-grid .checkbox-label{display:flex}.preserve-lines{white-space:pre-wrap}.creator-heading{display:flex;gap:24px;align-items:center;margin-bottom:40px}.creator-heading img{width:120px;height:120px;background:var(--raised);border-radius:12px}.creator-heading h1{font-size:38px}.policy-copy{max-width:720px}.policy-copy h1{font-size:36px}.release-note{margin-bottom:20px}.release-note time{font-size:12px;color:var(--muted)}.price{font-size:28px;font-weight:700}.data-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.data-row small{color:var(--muted)}.data-row .actions{gap:8px}.data-row .button{font-size:12px;padding:6px 10px}button:disabled{opacity:.55;cursor:not-allowed}#web-message{max-width:100%;position:sticky;bottom:16px;z-index:30}progress{width:100%}input[type=file]{font:inherit;max-width:100%}textarea{min-height:90px}button,a.button{min-height:40px}#admin-action-form{max-width:650px}.admin-object{white-space:pre-wrap;font-size:12px;max-height:320px;overflow:auto}.editor-workspace{display:grid;grid-template-columns:150px minmax(0,1fr) 240px;gap:16px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.editor-toolbar .button{padding:8px 12px;font-size:12px}.editor-tools{display:flex;flex-direction:column;gap:8px}.editor-tools button[aria-pressed=true]{background:var(--accent);color:var(--accent-fg)}.editor-tools button{padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer;font-size:12px}.editor-tools img{width:16px;height:16px;vertical-align:middle;margin-right:6px}.canvas-viewport{min-height:450px;max-height:700px;overflow:auto;display:grid;place-items:center;background-color:var(--raised);border:1px solid var(--line);padding:24px;border-radius:8px}.pixel-canvas{image-rendering:pixelated;touch-action:none;cursor:crosshair;box-shadow:0 0 0 1px var(--line);background-color:#fff;background-image:linear-gradient(45deg,#dce3df 25%,transparent 25%),linear-gradient(-45deg,#dce3df 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dce3df 75%),linear-gradient(-45deg,transparent 75%,#dce3df 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.editor-panel{padding:16px}.editor-panel h2{font-size:14px;margin:0 0 14px}.editor-panel label{font-size:12px;display:block;margin-bottom:12px}.editor-panel button{font-size:11px}.editor-layer-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.layer-row{display:flex;gap:8px;align-items:center}.layer-row button{flex:1;padding:6px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--fg);text-align:left}.layer-row[aria-current=true] button{border-color:var(--accent);font-weight:700}.editor-frames{display:flex;gap:10px;overflow-x:auto;padding:12px 0}.frame-button{padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--fg);flex:none;cursor:pointer}.frame-button[aria-current=true]{border:2px solid var(--accent)}.frame-button canvas{width:48px;height:48px;display:block;image-rendering:pixelated}.preview-modes{display:flex;align-items:end;gap:24px;min-height:130px;margin-top:16px}.preview-modes figure{margin:0;text-align:center}.preview-modes canvas{image-rendering:pixelated}.preview-modes figcaption{font-size:11px;color:var(--muted)}.editor-bottom{margin-top:18px}.editor-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px}.editor-controls label{font-size:12px}.editor-controls input[type=number]{max-width:110px}.palette-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.color-swatch{padding:0;min-height:24px;width:24px;height:24px;border:1px solid var(--line);border-radius:4px}.editor-help{font-size:11px;color:var(--muted)}.editor-metadata{margin-top:18px}.editor-metadata label{font-size:12px;display:block;margin-bottom:12px}.editor-metadata select,.editor-metadata input{margin-top:5px}.editor-subactions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.editor-subactions button{padding:5px 8px;min-height:30px}.clip-mapping{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:6px;font-size:12px;margin-bottom:6px}.clip-mapping select{min-height:50px}.editor-draft-notice{font-size:12px}.editor-page .page-heading{margin-bottom:20px}.editor-page .page-heading h1{font-size:30px}
@media(max-width:950px){.hero{gap:28px;grid-template-columns:1fr 1fr}.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-workspace{grid-template-columns:120px 1fr}.editor-sidebar{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:16px}.editor-sidebar .editor-panel{margin:0}.site-header nav{gap:12px}.ocean-scene{min-height:270px}.art-strip{flex-direction:column;align-items:start}.art-icons{justify-content:start}}
@media(max-width:650px){.public-page main{padding-top:24px}.hero{grid-template-columns:1fr;gap:28px;padding-block:8px 36px}.hero h1{font-size:42px}.ocean-scene{min-height:220px}.feature-grid,.help-grid,.pricing-grid,.creation-grid,.detail-grid,.detail-lower,.studio-grid{grid-template-columns:1fr}.page-heading h1,.detail-grid h1{font-size:32px}.detail-art{min-height:280px}.site-header nav{font-size:12px}.surface{padding:20px}.creation-card{padding:0}.heading-actions{align-items:start;flex-direction:column}.editor-workspace{grid-template-columns:1fr}.editor-tools{flex-direction:row;flex-wrap:wrap}.editor-sidebar{grid-template-columns:1fr}.canvas-viewport{min-height:350px;padding:12px}.creator-heading img{width:80px;height:80px}.creator-heading h1{font-size:30px}.filter-bar{padding:14px}.scene-fallback{gap:8px}.scene-fallback img{width:32px;height:32px}}
.button.button-secondary{background:transparent;color:var(--accent)}input:not([type]){box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:4px;padding:10px;background:var(--surface);color:var(--fg);font:inherit}

.state-art{width:128px;height:128px;max-width:100%;object-fit:contain;image-rendering:pixelated}
.state-art[hidden]{display:none}

.editor-palette,.editor-palette-panel{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px}
.palette-swatches{display:flex;flex-wrap:wrap;gap:6px;max-height:160px;overflow:auto;margin-bottom:12px}
.palette-swatch{padding:3px!important;width:32px;min-width:32px;height:32px;min-height:32px;display:grid;place-items:center;background:repeating-conic-gradient(#e0e4dc 0% 25%,#fff 0% 50%) 50% / 12px 12px!important}
.palette-swatch canvas{width:24px;height:24px;image-rendering:pixelated;display:block}
.palette-swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}
.editor-palette input[type=number],.editor-palette-panel input[type=number]{width:90px}
.preview-modes{display:flex;flex-wrap:wrap;align-items:start;gap:12px}
.preview-modes figure{margin:0;max-width:100%;overflow:auto}
.preview-modes canvas{image-rendering:pixelated;max-width:none;width:auto;height:auto}
.preview-modes canvas[hidden]{display:none}
.workshop-search label{display:grid;gap:4px;font-size:12px;min-width:100px}
.workshop-search label input,.workshop-search label select{max-width:180px}
.workshop-search .checkbox-label{display:flex;align-items:center;gap:8px}

/* Keep large canvases and frame strips inside their own scroll areas on narrow screens. */
.editor-workspace > *{min-width:0}
.editor-subactions{min-width:0;max-width:100%}
.canvas-viewport{justify-items:safe center;align-items:safe center}
@media(max-width:650px){.editor-workspace{grid-template-columns:minmax(0,1fr)}}

/* Bounded admin rows: long identifiers and JSON stay inside the viewport. */
#admin-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
#admin-content .data-row>*{min-width:0;max-width:100%}
#admin-content .data-row details{flex:1 1 100%}
#admin-content .admin-object{box-sizing:border-box;width:100%;overflow-wrap:anywhere;word-break:break-word}
.admin-metric-section{margin-block:24px}
.admin-metric-section h2{font-size:18px}

/* Purchase references and expanded entitlement data must fit their own grid column. */
.purchases-grid>*{min-width:0}
.purchases-grid .data-row>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.purchases-grid details{min-width:0;max-width:100%;margin-top:16px;overflow-wrap:anywhere}
.purchase-object{box-sizing:border-box;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}

.creation-steps{display:flex;flex-wrap:wrap;gap:.8rem 2rem;margin-block:0 2rem;padding-left:1.5rem;font-weight:600;color:var(--muted)}
@media(max-width:650px){#admin-content .data-row{display:flex;flex-direction:column;align-items:stretch;gap:.6rem}#admin-content .data-row>button{align-self:flex-start}.tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:.5rem}.tabs>*{flex-shrink:0}#admin-action-form fieldset{min-width:0}.admin-object{max-height:18rem;overflow:auto}}

.profile-avatar-picker {display:flex;flex-wrap:wrap;gap:1rem;border:1px solid var(--border);border-radius:12px;padding:1rem;margin-bottom:1rem}.profile-avatar-picker label {display:grid;gap:.35rem;justify-items:center;min-width:74px}.profile-avatar-picker img {object-fit:contain;image-rendering:pixelated}
